diff --git a/XPS/WebUserControls/mod_elencoComm.ascx b/XPS/WebUserControls/mod_elencoComm.ascx index e5d8277..072ff82 100644 --- a/XPS/WebUserControls/mod_elencoComm.ascx +++ b/XPS/WebUserControls/mod_elencoComm.ascx @@ -191,27 +191,24 @@ - - + + + + + - - - - - - - + @@ -221,17 +218,9 @@ -
-
- - -
- -
-
- -
-
+ +
+
num: @@ -243,6 +232,12 @@
+ + + + + + diff --git a/XPS/WebUserControls/mod_elencoComm.ascx.cs b/XPS/WebUserControls/mod_elencoComm.ascx.cs index ea6fcb3..9d04e98 100644 --- a/XPS/WebUserControls/mod_elencoComm.ascx.cs +++ b/XPS/WebUserControls/mod_elencoComm.ascx.cs @@ -1,14 +1,8 @@ +using SteamWare; using System; using System.Data; -using System.Configuration; -using System.Collections; -using System.Web; -using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; -using SteamWare; using XPS_data; namespace XPS.WebUserControls @@ -337,7 +331,23 @@ namespace XPS.WebUserControls cbeOkDueDate.ConfirmText = traduci("confermaOkDueDate"); cbeOkStati.ConfirmText = traduci("confermaOkCambioStati"); } - + /// + /// Controlla css x cambio colore secondo stato urgenza/confermato + /// + /// + /// + /// + public string checkCss(object prior, object conf) + { + string answ = ""; + bool isPrior = false; + bool isConf = false; + bool.TryParse(prior.ToString(), out isPrior); + bool.TryParse(conf.ToString(), out isConf); + answ += isPrior ? "text-danger " : ""; + answ += isConf ? "font-weight-bold " : ""; + return answ; + } /// /// mostra/nasconde pannello nuovo /// @@ -427,6 +437,22 @@ namespace XPS.WebUserControls // blocco update! e.Cancel = true; break; + case "setPriority": + // aggiorno lo stato dell'oggetto e dei child, x aggiornare prendo tutto quanto INIZIA come l'idx principale (meno il campo "D" quindi del DDT...) + XPS_data.XPS.obj.taObj.updatePrior(true, user_std.UtSn.utente, DateTime.Now, idxObj.Replace("D", "%")); + grView.EditIndex = -1; + grView.DataBind(); + // blocco update! + e.Cancel = true; + break; + case "remPriority": + // aggiorno lo stato dell'oggetto e dei child, x aggiornare prendo tutto quanto INIZIA come l'idx principale (meno il campo "D" quindi del DDT...) + XPS_data.XPS.obj.taObj.updatePrior(false, user_std.UtSn.utente, DateTime.Now, idxObj.Replace("D", "%")); + grView.EditIndex = -1; + grView.DataBind(); + // blocco update! + e.Cancel = true; + break; default: // nulla! break; @@ -670,6 +696,24 @@ namespace XPS.WebUserControls memLayer.ML.setSessionVal("nextObjCommand", "fatturaObj"); } /// + /// salvo in session che il prox comando è impostare priorità URGENTE... + /// + /// + /// + protected void lbtSetPriority_Click(object sender, EventArgs e) + { + memLayer.ML.setSessionVal("nextObjCommand", "setPriority"); + } + /// + /// salvo in session che il prox comando è togliere priorità URGENTE... + /// + /// + /// + protected void lbtRemPriority_Click(object sender, EventArgs e) + { + memLayer.ML.setSessionVal("nextObjCommand", "remPriority"); + } + /// /// Codice OBJ selezionato /// protected string CodSel