-
OK
+
+
+ Data
+
+
+ Ora
+
+
+ NumPz
-
-
- Note controllo NON superato (opzionali)
-
-
-
CONFERMA controllo KO
+
+ BtnSalva
\ No newline at end of file
+
diff --git a/MP-Tablet/WebUserControls/mod_regScarti.ascx.cs b/MP-Tablet/WebUserControls/mod_regScarti.ascx.cs
index 2fd31d51..d3767661 100644
--- a/MP-Tablet/WebUserControls/mod_regScarti.ascx.cs
+++ b/MP-Tablet/WebUserControls/mod_regScarti.ascx.cs
@@ -35,7 +35,9 @@ namespace MoonProTablet.WebUserControls
private void checkAll()
{
- fixSelMacc();
+#if false
+ fixSelMacc();
+#endif
checkOdl();
lblOut.Text = "";
switchBtnConferma(false);
@@ -54,6 +56,7 @@ namespace MoonProTablet.WebUserControls
///
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
///
+#if false
protected bool isMulti
{
get
@@ -67,7 +70,8 @@ namespace MoonProTablet.WebUserControls
private void fixSelMacc()
{
divSelMacc.Visible = isMulti;
- }
+ }
+#endif
///
/// restituisce css disabled SE odl NON OK...
///
@@ -109,25 +113,16 @@ namespace MoonProTablet.WebUserControls
get
{
string answ = memLayer.ML.StringSessionObj("IdxMacchina");
- // verifoc: se multi uso selettore tendina...
- if (isMulti)
- {
- if (ddlSubMacc.SelectedValue == "")
- {
- ddlSubMacc.DataBind();
- }
- if (ddlSubMacc.SelectedValue != "")
- {
- answ = ddlSubMacc.SelectedValue;
- }
- }
return answ;
}
+#if false
set
{
memLayer.ML.setSessionVal("IdxMacchina", value);
- }
+ }
+#endif
}
+#if false
///
/// idx macchina selezionata
///
@@ -141,7 +136,8 @@ namespace MoonProTablet.WebUserControls
{
memLayer.ML.setSessionVal("IdxMacchina", value);
}
- }
+ }
+#endif
///
/// cambio stato visibilità pannello e testo button
///
@@ -149,16 +145,14 @@ namespace MoonProTablet.WebUserControls
///
protected void lbtShowContr_Click(object sender, EventArgs e)
{
- switchBtnConferma(!lbtOK.Visible);
+ switchBtnConferma(!divDetail.Visible);
}
///
/// determina comportamento btn conferma
///
private void switchBtnConferma(bool showConf)
{
- lbtOK.Visible = showConf;
- lbtKO.Visible = showConf;
- lbtSalva.Visible = showConf;
+ divDetail.Visible = showConf;
if (showConf)
{
lblShowScarti.Text = "Nascondi SCARTI";
@@ -180,8 +174,10 @@ namespace MoonProTablet.WebUserControls
///
protected void lbtSalva_Click(object sender, EventArgs e)
{
+#if false
// salvo controllo KO
- DataLayer.obj.taRC.insertQuery(idxMacchina, DataLayer.MatrOpr, false, txtNoteContr.Text.Trim(), DateTime.Now);
+ DataLayer.obj.taRC.insertQuery(idxMacchina, DataLayer.MatrOpr, false, txtNote.Text.Trim(), DateTime.Now);
+#endif
// sollevo evento!
if (eh_newVal != null)
{
@@ -192,32 +188,11 @@ namespace MoonProTablet.WebUserControls
private void resetControlli()
{
- txtNoteContr.Text = "";
+ txtNote.Text = "";
// nascondo!
switchBtnConferma(false);
- divNote.Visible = false;
}
- protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e)
- {
- subMaccSel = ddlSubMacc.SelectedValue;
- checkAll();
- }
-
- protected void ddlSubMacc_DataBound(object sender, EventArgs e)
- {
- // se ho in memoria un valore LO REIMPOSTO...
- if (subMaccSel != "")
- {
- // provo a preselezionare...
- try
- {
- ddlSubMacc.SelectedValue = subMaccSel;
- }
- catch
- { }
- }
- }
///
/// Sotto sistema (macchina) selezionato
///
@@ -235,8 +210,10 @@ namespace MoonProTablet.WebUserControls
protected void lbtOK_Click(object sender, EventArgs e)
{
+#if false
// Salvo controllo come OK
- DataLayer.obj.taRC.insertQuery(idxMacchina, DataLayer.MatrOpr, true, "", DateTime.Now);
+ DataLayer.obj.taRC.insertQuery(idxMacchina, DataLayer.MatrOpr, true, "", DateTime.Now);
+#endif
// sollevo evento!
if (eh_newVal != null)
{
@@ -245,9 +222,5 @@ namespace MoonProTablet.WebUserControls
resetControlli();
}
- protected void lbtKO_Click(object sender, EventArgs e)
- {
- divNote.Visible = true;
- }
}
}
\ No newline at end of file
diff --git a/MP-Tablet/WebUserControls/mod_regScarti.ascx.designer.cs b/MP-Tablet/WebUserControls/mod_regScarti.ascx.designer.cs
index 166a7101..90839d8d 100644
--- a/MP-Tablet/WebUserControls/mod_regScarti.ascx.designer.cs
+++ b/MP-Tablet/WebUserControls/mod_regScarti.ascx.designer.cs
@@ -49,85 +49,22 @@ namespace MoonProTablet.WebUserControls {
protected global::System.Web.UI.WebControls.Label lblShowScarti;
///
- /// Controllo divSelMacc.
+ /// Controllo divDetail.
///
///
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSelMacc;
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
///
- /// Controllo ddlSubMacc.
+ /// Controllo txtNote.
///
///
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
- protected global::System.Web.UI.WebControls.DropDownList ddlSubMacc;
-
- ///
- /// Controllo ods.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource ods;
-
- ///
- /// Controllo lbtOK.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lbtOK;
-
- ///
- /// Controllo lbtKO.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lbtKO;
-
- ///
- /// Controllo divNote.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl divNote;
-
- ///
- /// Controllo Label1.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.Label Label1;
-
- ///
- /// Controllo txtNoteContr.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.TextBox txtNoteContr;
-
- ///
- /// Controllo lbtSalva.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lbtSalva;
+ protected global::System.Web.UI.WebControls.TextBox txtNote;
///
/// Controllo lblOut.