@@ -64,6 +65,6 @@
-
+
diff --git a/NKC_WF/WebUserControls/cmp_validationSummary.ascx.cs b/NKC_WF/WebUserControls/cmp_validationSummary.ascx.cs
index e3f9ba9..62ee924 100644
--- a/NKC_WF/WebUserControls/cmp_validationSummary.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_validationSummary.ascx.cs
@@ -7,23 +7,46 @@ namespace NKC_WF.WebUserControls
{
public partial class cmp_validationSummary : BaseUserControl
{
- #region Private Methods
+ #region Public Properties
///
- /// fix visibilità buttons
+ /// Indica se abilitare creazioen automatica dei PNG x le parts nel batch
///
- private void fixVisibility()
+ public bool forceCreatePng
{
- // controllo SE HO nuove PARTS da validare...
- var tabItems2Valid = DLMan.taIL.getNeedValid();
- var tabItemsUnValid = DLMan.taIL.getUnValid();
- var tabItems2ReValid = DLMan.taIL.getNeedRevalid();
- lbtValidateMissing.Visible = tabItems2Valid.Count > 0;
- lbtRevalidate.Visible = tabItemsUnValid.Count > 0;
- lbtReValidAll.Visible = tabItems2ReValid.Count > 0;
+ get
+ {
+ bool answ = false;
+ if (!string.IsNullOrEmpty(hfCreatePng.Value))
+ {
+ bool.TryParse(hfCreatePng.Value, out answ);
+ }
+ return answ;
+ }
+ set
+ {
+ hfCreatePng.Value = $"{value}";
+ }
}
- #endregion Private Methods
+ #endregion Public Properties
+
+ #region Public Methods
+
+ ///
+ /// Update forzato
+ ///
+ public void doUpdate(bool reportEvent = true)
+ {
+ fixVisibility();
+ frmView.DataBind();
+ if (reportEvent)
+ {
+ raiseEvent();
+ }
+ }
+
+ #endregion Public Methods
#region Protected Methods
@@ -34,7 +57,7 @@ namespace NKC_WF.WebUserControls
{
DLMan.taBL.redoPartValid("*");
// eventualmente mando primo batch da validare...
- bool newValidSent = ComLib.sendFirstValidationBatch();
+ bool newValidSent = ComLib.sendFirstValidationBatch(forceCreatePng);
}
catch
{ }
@@ -48,7 +71,7 @@ namespace NKC_WF.WebUserControls
try
{
// eventualmente mando primo batch da validare...
- bool newValidSent = ComLib.sendFirstValidationBatch();
+ bool newValidSent = ComLib.sendFirstValidationBatch(forceCreatePng);
}
catch
{ }
@@ -63,7 +86,7 @@ namespace NKC_WF.WebUserControls
{
DLMan.taBL.resetPartUnValid();
// eventualmente mando primo batch da validare...
- bool newValidSent = ComLib.sendFirstValidationBatch();
+ bool newValidSent = ComLib.sendFirstValidationBatch(forceCreatePng);
}
catch
{ }
@@ -79,7 +102,7 @@ namespace NKC_WF.WebUserControls
string cadBasePath = $"{memLayer.ML.CRS("nestBasePath")}{memLayer.ML.CRS("drawingFolder")}/";
DLMan.taBL.createPartValBatch(cadBasePath);
// eventualmente mando primo batch da validare...
- bool newValidSent = ComLib.sendFirstValidationBatch();
+ bool newValidSent = ComLib.sendFirstValidationBatch(forceCreatePng);
}
catch
{ }
@@ -102,21 +125,22 @@ namespace NKC_WF.WebUserControls
#endregion Protected Methods
- #region Public Methods
+ #region Private Methods
///
- /// Update forzato
+ /// fix visibilità buttons
///
- public void doUpdate(bool reportEvent = true)
+ private void fixVisibility()
{
- fixVisibility();
- frmView.DataBind();
- if (reportEvent)
- {
- raiseEvent();
- }
+ // controllo SE HO nuove PARTS da validare...
+ var tabItems2Valid = DLMan.taIL.getNeedValid();
+ var tabItemsUnValid = DLMan.taIL.getUnValid();
+ var tabItems2ReValid = DLMan.taIL.getNeedRevalid();
+ lbtValidateMissing.Visible = tabItems2Valid.Count > 0;
+ lbtRevalidate.Visible = tabItemsUnValid.Count > 0;
+ lbtReValidAll.Visible = tabItems2ReValid.Count > 0;
}
- #endregion Public Methods
+ #endregion Private Methods
}
}
\ No newline at end of file
diff --git a/NKC_WF/WebUserControls/cmp_validationSummary.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_validationSummary.ascx.designer.cs
index bc89dbb..7f92f74 100644
--- a/NKC_WF/WebUserControls/cmp_validationSummary.ascx.designer.cs
+++ b/NKC_WF/WebUserControls/cmp_validationSummary.ascx.designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
-//
-// Codice generato da uno strumento.
+//
+// This code was generated by a tool.
//
-// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
-// il codice viene rigenerato.
-//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
//------------------------------------------------------------------------------
namespace NKC_WF.WebUserControls
@@ -15,74 +15,83 @@ namespace NKC_WF.WebUserControls
{
///
- /// Controllo updPanelDetail.
+ /// hfCreatePng control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfCreatePng;
+
+ ///
+ /// updPanelDetail control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.UpdatePanel updPanelDetail;
///
- /// Controllo lbtForceRevali.
+ /// lbtForceRevali control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton lbtForceRevali;
///
- /// Controllo lbtRevalidate.
+ /// lbtRevalidate control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton lbtRevalidate;
///
- /// Controllo lbtReValidAll.
+ /// lbtReValidAll control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton lbtReValidAll;
///
- /// Controllo lbtValidateMissing.
+ /// lbtValidateMissing control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton lbtValidateMissing;
///
- /// Controllo frmView.
+ /// frmView control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.FormView frmView;
///
- /// Controllo ods.
+ /// ods control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
///
- /// Controllo Timer1.
+ /// Timer1 control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.Timer Timer1;
}