diff --git a/NKC_WF/Web.config b/NKC_WF/Web.config
index 83f95de..2ebc516 100644
--- a/NKC_WF/Web.config
+++ b/NKC_WF/Web.config
@@ -1,4 +1,4 @@
-
+
@@ -45,27 +47,26 @@
-
+
-
-
+ value="Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=conn_NKC;Password=pwd_NKC;"/>
+
-
+
@@ -77,7 +78,7 @@
-
+
@@ -120,16 +121,20 @@
-
-
-
+
+
+
+
+
+
+
-
+
+
@@ -142,11 +147,12 @@
- -->
+ -->
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/NKC_WF/WebUserControls/cmp_taktList.ascx b/NKC_WF/WebUserControls/cmp_taktList.ascx
index 520f7d2..4335019 100644
--- a/NKC_WF/WebUserControls/cmp_taktList.ascx
+++ b/NKC_WF/WebUserControls/cmp_taktList.ascx
@@ -3,10 +3,18 @@
-
+
@@ -20,7 +28,7 @@
-
+
<%----%>
@@ -37,17 +45,17 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/NKC_WF/WebUserControls/cmp_taktList.ascx.cs b/NKC_WF/WebUserControls/cmp_taktList.ascx.cs
index 3d1d5ce..caf8462 100644
--- a/NKC_WF/WebUserControls/cmp_taktList.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_taktList.ascx.cs
@@ -12,8 +12,26 @@ namespace NKC_WF.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
-
+ if(!Page.IsPostBack)
+ {
+ checkVisibility();
+ }
}
+
+ private void checkVisibility()
+ {
+ divSelected.Visible = BatchIdSel > 0;
+ grView.Visible = !divSelected.Visible;
+ // imposto css titolo...
+ string titleClass = "row font-weight-bold";
+ if(divSelected.Visible)
+ {
+ titleClass += " table-primary";
+ }
+ divTitle.Attributes.Remove("class");
+ divTitle.Attributes.Add("class", titleClass);
+ }
+
///
/// Codice CSS in base a status...
///
@@ -81,8 +99,10 @@ namespace NKC_WF.WebUserControls
private void resetSelezione()
{
+ lblTakt.Text = "";
grView.SelectedIndex = -1;
grView.DataBind();
+ checkVisibility();
raiseEvent();
}
///
@@ -104,7 +124,20 @@ namespace NKC_WF.WebUserControls
}
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
+ checkVisibility();
raiseEvent();
}
+
+ protected void grView_RowCommand(object sender, GridViewCommandEventArgs e)
+ {
+ // recupero argomento = Takt...
+ try
+ {
+ string takt = e.CommandArgument.ToString();
+ lblTakt.Text = takt;
+ }
+ catch
+ { }
+ }
}
}
\ No newline at end of file
diff --git a/NKC_WF/WebUserControls/cmp_taktList.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_taktList.ascx.designer.cs
index 4c0a249..0e364b3 100644
--- a/NKC_WF/WebUserControls/cmp_taktList.ascx.designer.cs
+++ b/NKC_WF/WebUserControls/cmp_taktList.ascx.designer.cs
@@ -12,6 +12,42 @@ namespace NKC_WF.WebUserControls {
public partial class cmp_taktList {
+ ///
+ /// Controllo divTitle.
+ ///
+ ///
+ /// 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 divTitle;
+
+ ///
+ /// Controllo divSelected.
+ ///
+ ///
+ /// 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 divSelected;
+
+ ///
+ /// Controllo lblTakt.
+ ///
+ ///
+ /// 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 lblTakt;
+
+ ///
+ /// Controllo lbtResetGlob.
+ ///
+ ///
+ /// 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 lbtResetGlob;
+
///
/// Controllo grView.
///