diff --git a/Jenkinsfile b/Jenkinsfile index 6788f04..f5474a0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=279']) { + withEnv(['NEXT_BUILD_NUMBER=280']) { // env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.versionNumberBeta = VersionNumber(versionNumberString : '0.9.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') diff --git a/NKC_WF/WebUserControls/cmp_batchList.ascx b/NKC_WF/WebUserControls/cmp_batchList.ascx index e9cf818..b864eb4 100644 --- a/NKC_WF/WebUserControls/cmp_batchList.ascx +++ b/NKC_WF/WebUserControls/cmp_batchList.ascx @@ -5,102 +5,105 @@
-
- -
-
-
-
-
-

Call List

-
-
- Filter status - - - - - - - - - - - - - - -   - -
+
+
- - - - - - - No Record - - - - -
- -
-
- -
- - -
-
-
- - - - - <%# BStatus(Eval("Status")) %> - - - - - <%# $"{Eval("Errors")} (tot: {Eval("NumErrPre")} err)" %> - <%# $"{Eval("Errors")} (tot: {Eval("NumErr")} err)" %> - - - - - - +
+
+
+

Call List

+
+
+ Filter status + + + + + + + + + + + + + + +   + +
+
+
+ + + + + + + No Record + + + + +
+ +
+
+ +
+ + +
+
+
+ + + + + <%# BStatus(Eval("Status")) %> + + + + + <%# $"{Eval("Errors")} (tot: {Eval("NumErrPre")} err)" %> + <%# $"{Eval("Errors")} (tot: {Eval("NumErr")} err)" %> + + + + + + - - - - -
- -
-
-
-
-
- - - - - - - - - - - - - - - + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + +
-
diff --git a/NKC_WF/WebUserControls/cmp_batchList.ascx.cs b/NKC_WF/WebUserControls/cmp_batchList.ascx.cs index ff8054f..611fe5a 100644 --- a/NKC_WF/WebUserControls/cmp_batchList.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_batchList.ascx.cs @@ -7,229 +7,255 @@ using System.Web.UI.WebControls; namespace NKC_WF.WebUserControls { - public partial class cmp_batchList : BaseUserControl - { - /// - /// modalità funzionamento controllo - /// - public BatchListMode listMode { get; set; } = BatchListMode.Standard; - /// - /// Caricamento pagina - /// - /// - /// - protected void Page_Load(object sender, EventArgs e) + public partial class cmp_batchList : BaseUserControl { - if (!Page.IsPostBack) - { - cmp_numRow.numRow = 25; - grView.PageSize = cmp_numRow.numRow; - divDetail.Visible = false; - // in base al ListMode decido cosa mostrare... - checkFixOds(); - checkFixMode(); - } - cmp_batchDetail.eh_doRefresh += Cmp_batchDetail_eh_doRefresh; - cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh; - } - private void checkFixOds() - { - string isPartVal = ""; - switch (listMode) - { - case BatchListMode.PartsEval: - isPartVal = "1"; - break; - case BatchListMode.Standard: - default: - isPartVal = "0"; - break; - } - hfPartValid.Value = isPartVal; - } - /// - /// In base al modo richiesto imposta filtraggi... - /// - private void checkFixMode() - { - ListItem currItem = null; - int valore = -100; - if (listMode == BatchListMode.Standard) - { - foreach (var item in ddlStatus.Items) + /// + /// modalità funzionamento controllo + /// + public BatchListMode listMode { get; set; } = BatchListMode.Standard; + /// + /// Caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) { - try - { - currItem = (ListItem)item; - int.TryParse(currItem.Value, out valore); - if (valore > 7) + if (!Page.IsPostBack) { - currItem.Enabled = false; + deleteEnabled = false; + cmp_numRow.numRow = 25; + grView.PageSize = cmp_numRow.numRow; + divDetail.Visible = false; + // in base al ListMode decido cosa mostrare... + checkFixOds(); + checkFixMode(); } - } - catch - { } + cmp_batchDetail.eh_doRefresh += Cmp_batchDetail_eh_doRefresh; + cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh; } - } - else - { - foreach (var item in ddlStatus.Items) + private void checkFixOds() { - try - { - currItem = (ListItem)item; - int.TryParse(currItem.Value, out valore); - if (valore < 8 && valore >= 0) + string isPartVal = ""; + switch (listMode) { - currItem.Enabled = false; + case BatchListMode.PartsEval: + isPartVal = "1"; + break; + case BatchListMode.Standard: + default: + isPartVal = "0"; + break; + } + hfPartValid.Value = isPartVal; + } + /// + /// In base al modo richiesto imposta filtraggi... + /// + private void checkFixMode() + { + ListItem currItem = null; + int valore = -100; + if (listMode == BatchListMode.Standard) + { + foreach (var item in ddlStatus.Items) + { + try + { + currItem = (ListItem)item; + int.TryParse(currItem.Value, out valore); + if (valore > 7) + { + currItem.Enabled = false; + } + } + catch + { } + } + } + else + { + foreach (var item in ddlStatus.Items) + { + try + { + currItem = (ListItem)item; + int.TryParse(currItem.Value, out valore); + if (valore < 8 && valore >= 0) + { + currItem.Enabled = false; + } + } + catch + { } + } } - } - catch - { } } - } - } - private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e) - { - // recupero num righe ed aggiorno... - grView.PageSize = cmp_numRow.numRow; - checkFixOds(); - grView.DataBind(); - } + private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e) + { + // recupero num righe ed aggiorno... + grView.PageSize = cmp_numRow.numRow; + checkFixOds(); + grView.DataBind(); + } - private void Cmp_batchDetail_eh_doRefresh(object sender, EventArgs e) - { - resetSelezione(); - } + private void Cmp_batchDetail_eh_doRefresh(object sender, EventArgs e) + { + resetSelezione(); + } - /// - /// Codice CSS in base a status... - /// - /// - /// - public string cssByStatus(object _status) - { - string answ = "text-muted"; - int status = -1; - int.TryParse(_status.ToString(), out status); - switch (status) - { - case 1: - answ = "font-weight-bold text-info"; - break; - case 2: - answ = "font-weight-bold text-primary"; - break; - case 3: - answ = "font-weight-bold text-warning"; - break; - case 4: - answ = "font-weight-bold text-danger"; - break; - case 5: - answ = "font-weight-bold text-success"; - break; - case 6: - answ = "font-weight-bold text-secondary"; - break; - default: - break; - } - return answ; - } - /// - /// Verifica se sia visualizzabile preview dato stato - /// - /// - /// - public bool isPreviewVisible(object _status) - { - bool answ = false; - int status = -1; - int.TryParse(_status.ToString(), out status); - if (status > 3 && status < 8) - { - answ = true; - } - return answ; - } + /// + /// Codice CSS in base a status... + /// + /// + /// + public string cssByStatus(object _status) + { + string answ = "text-muted"; + int status = -1; + int.TryParse(_status.ToString(), out status); + switch (status) + { + case 1: + answ = "font-weight-bold text-info"; + break; + case 2: + answ = "font-weight-bold text-primary"; + break; + case 3: + answ = "font-weight-bold text-warning"; + break; + case 4: + answ = "font-weight-bold text-danger"; + break; + case 5: + answ = "font-weight-bold text-success"; + break; + case 6: + answ = "font-weight-bold text-secondary"; + break; + default: + break; + } + return answ; + } + /// + /// Verifica se sia visualizzabile preview dato stato + /// + /// + /// + public bool isPreviewVisible(object _status) + { + bool answ = false; + int status = -1; + int.TryParse(_status.ToString(), out status); + if (status > 3 && status < 8) + { + answ = true; + } + return answ; + } - /// - /// Converte il codice stato in effettivo campo - /// - /// - /// - public string BStatus(object _status) - { - string answ = ComLib.BatchStatusDescr(_status); - return answ; - } - /// - /// comando reset - /// - /// - /// - protected void lbtReset_Click(object sender, EventArgs e) - { - resetSelezione(); - } + /// + /// Converte il codice stato in effettivo campo + /// + /// + /// + public string BStatus(object _status) + { + string answ = ComLib.BatchStatusDescr(_status); + return answ; + } + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } - private void resetSelezione() - { - checkFixOds(); - grView.SelectedIndex = -1; - grView.DataBind(); - divDetail.Visible = false; - raiseReset(); - } + private void resetSelezione() + { + checkFixOds(); + grView.SelectedIndex = -1; + grView.DataBind(); + divDetail.Visible = false; + raiseReset(); + } - /// - /// BatchId selezionato - /// - protected int BatchIdSel - { - get - { - int answ = 0; - int.TryParse(grView.SelectedValue.ToString(), out answ); - return answ; - } - } - protected void grView_SelectedIndexChanged(object sender, EventArgs e) - { - divDetail.Visible = true; - // recupero BatchId selezionato - cmp_batchDetail.BatchId = BatchIdSel; - } + /// + /// BatchId selezionato + /// + protected int BatchIdSel + { + get + { + int answ = 0; + int.TryParse(grView.SelectedValue.ToString(), out answ); + return answ; + } + } + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + divDetail.Visible = true; + // recupero BatchId selezionato + cmp_batchDetail.BatchId = BatchIdSel; + } - public void doUpdate() - { - resetSelezione(); - } + public void doUpdate() + { + resetSelezione(); + } - protected void grView_PageIndexChanged(object sender, EventArgs e) - { - checkFixOds(); - } + protected void grView_PageIndexChanged(object sender, EventArgs e) + { + checkFixOds(); + } - protected void lbRedoEval_Click(object sender, EventArgs e) - { - LinkButton lbt = (LinkButton)sender; - if (!string.IsNullOrEmpty(lbt.CommandArgument)) - { - // eseguo richiesta reset - DataLayer.man.taBL.redoPartValid(lbt.CommandArgument); - // eventualmente mando primo batch da validare... - bool newValidSent = ComLib.sendFirstValidationBatch(); - // refresh! - resetSelezione(); - } - } + protected void lbRedoEval_Click(object sender, EventArgs e) + { + LinkButton lbt = (LinkButton)sender; + if (!string.IsNullOrEmpty(lbt.CommandArgument)) + { + // eseguo richiesta reset + DataLayer.man.taBL.redoPartValid(lbt.CommandArgument); + // eventualmente mando primo batch da validare... + bool newValidSent = ComLib.sendFirstValidationBatch(); + // refresh! + resetSelezione(); + } + } - protected void ddlStatus_SelectedIndexChanged(object sender, EventArgs e) - { - checkFixOds(); + protected void ddlStatus_SelectedIndexChanged(object sender, EventArgs e) + { + checkFixOds(); + } + + protected void lbtEnableDel_Click(object sender, EventArgs e) + { + deleteEnabled = true; + resetSelezione(); + } + protected void lbtDisableDel_Click(object sender, EventArgs e) + { + deleteEnabled = false; + resetSelezione(); + } + + public bool deleteEnabled + { + get + { + bool answ = false; + bool.TryParse(hfDeleteEnabled.Value, out answ); + return answ; + } + set + { + hfDeleteEnabled.Value = value.ToString(); + } + } } - } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_batchList.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_batchList.ascx.designer.cs index bf341d1..20eca46 100644 --- a/NKC_WF/WebUserControls/cmp_batchList.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_batchList.ascx.designer.cs @@ -11,70 +11,79 @@ namespace NKC_WF.WebUserControls { - public partial class cmp_batchList - { + public partial class cmp_batchList + { - /// - /// 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 divDetail; + /// + /// 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 divDetail; - /// - /// Controllo cmp_batchDetail. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::NKC_WF.WebUserControls.cmp_batchDetail cmp_batchDetail; + /// + /// Controllo cmp_batchDetail. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_batchDetail cmp_batchDetail; - /// - /// Controllo ddlStatus. - /// - /// - /// 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 ddlStatus; + /// + /// Controllo ddlStatus. + /// + /// + /// 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 ddlStatus; - /// - /// Controllo cmp_numRow. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::NKC_WF.WebUserControls.cmp_numRow cmp_numRow; + /// + /// Controllo cmp_numRow. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::NKC_WF.WebUserControls.cmp_numRow cmp_numRow; - /// - /// Controllo grView. - /// - /// - /// 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.GridView grView; + /// + /// Controllo grView. + /// + /// + /// 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.GridView grView; - /// - /// 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 hfDeleteEnabled. + /// + /// + /// 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.HiddenField hfDeleteEnabled; - /// - /// Controllo hfPartValid. - /// - /// - /// 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.HiddenField hfPartValid; - } + /// + /// 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 hfPartValid. + /// + /// + /// 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.HiddenField hfPartValid; + } }