completati update x registro controlli + SQL...

This commit is contained in:
Samuele E. Locatelli
2018-03-13 18:30:57 +01:00
parent f087e70d71
commit 17896ecf01
6 changed files with 170 additions and 74 deletions
@@ -11,10 +11,6 @@ namespace MoonProTablet.WebUserControls
{
public partial class mod_controlliProd : System.Web.UI.UserControl
{
/// <summary>
/// registrato nuovo valore
/// </summary>
public event EventHandler eh_inserting;
/// <summary>
/// registrato nuovo valore
/// </summary>
@@ -185,14 +181,24 @@ namespace MoonProTablet.WebUserControls
/// <param name="e"></param>
protected void lbtSalva_Click(object sender, EventArgs e)
{
// salvo controllo KO !!!FARE!!!
// salvo controllo KO
DataLayer.obj.taRC.insertQuery(idxMacchina, DataLayer.MatrOpr, false, txtNoteContr.Text.Trim(), DateTime.Now);
// sollevo evento!
if (eh_newVal != null)
{
eh_newVal(this, new EventArgs());
}
resetControlli();
}
private void resetControlli()
{
txtNoteContr.Text = "";
// nascondo!
switchBtnConferma(false);
divNote.Visible = false;
}
protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
{
subMaccSel = ddlSubMacc.SelectedValue;
@@ -237,6 +243,7 @@ namespace MoonProTablet.WebUserControls
{
eh_newVal(this, new EventArgs());
}
resetControlli();
}
protected void lbtKO_Click(object sender, EventArgs e)