+
Step 2 Data Validated.
-
diff --git a/NKC_WF/WebUserControls/cmp_kitList.ascx b/NKC_WF/WebUserControls/cmp_kitList.ascx
index 7215159..9c0c291 100644
--- a/NKC_WF/WebUserControls/cmp_kitList.ascx
+++ b/NKC_WF/WebUserControls/cmp_kitList.ascx
@@ -1,7 +1,32 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_kitList.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_kitList" %>
+
+
+
+
+
+
+
+
+ <%--
+
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
-
-dati kit list (?!?!?)
-
-recuperati da PACK LIST
\ No newline at end of file
+
+
diff --git a/NKC_WF/WebUserControls/cmp_kitList.ascx.cs b/NKC_WF/WebUserControls/cmp_kitList.ascx.cs
index a4c1cd1..8813c3c 100644
--- a/NKC_WF/WebUserControls/cmp_kitList.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_kitList.ascx.cs
@@ -1,4 +1,5 @@
-using System;
+using AppData;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -13,5 +14,64 @@ namespace NKC_WF.WebUserControls
{
}
+ ///
+ /// comando reset
+ ///
+ ///
+ ///
+ protected void lbtReset_Click(object sender, EventArgs e)
+ {
+ resetSelezione();
+ }
+
+ protected string task
+ {
+ get
+ {
+ return hfTask.Value;
+ }
+ set
+ {
+ hfTask.Value = value;
+ }
+ }
+
+ private void resetSelezione()
+ {
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ }
+
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // se selezionato --> passo da status 1 a 2...
+
+ int packListId = 0;
+ int.TryParse(grView.SelectedValue.ToString(), out packListId);
+ if (packListId > 0)
+ {
+ // verifico richiesta...
+ switch (task)
+ {
+ case "Appr":
+ DataLayer.man.taPLD.updateStatus(packListId, 2);
+ break;
+ default:
+ break;
+ }
+ // refresh!
+ resetSelezione();
+ }
+ }
+
+ protected void lbtCheck_Click(object sender, EventArgs e)
+ {
+ LinkButton lbt = (LinkButton)sender;
+ if (!string.IsNullOrEmpty(lbt.CommandArgument))
+ {
+ // salvo richiesta...
+ task = lbt.CommandArgument;
+ }
+ }
}
}
\ No newline at end of file
diff --git a/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs
index 33cabfa..873e9c3 100644
--- a/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs
+++ b/NKC_WF/WebUserControls/cmp_kitList.ascx.designer.cs
@@ -13,5 +13,32 @@ namespace NKC_WF.WebUserControls
public partial class cmp_kitList
{
+
+ ///
+ /// Controllo hfTask.
+ ///
+ ///
+ /// 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 hfTask;
+
+ ///
+ /// 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;
}
}
diff --git a/NKC_WF/site/KitRequestImporter.aspx.cs b/NKC_WF/site/KitRequestImporter.aspx.cs
index 348f5ff..493dfda 100644
--- a/NKC_WF/site/KitRequestImporter.aspx.cs
+++ b/NKC_WF/site/KitRequestImporter.aspx.cs
@@ -22,6 +22,7 @@ namespace NKC_WF
{
((SiteContent)this.Master).showSearch = false;
doUpdate();
+ cmp_kitImpCheck.Visible = false;
}
cmp_kitImpCheck.eh_doRefresh += Cmp_kitImpCheck_eh_doRefresh;
cmp_fileUpload.eh_doRefresh += Cmp_fileUpload_eh_doRefresh;
@@ -40,6 +41,7 @@ namespace NKC_WF
///
private void Cmp_fileUpload_eh_FileUploaded(object sender, WebUserContols.FileUploadEventArgs e)
{
+ cmp_kitImpCheck.Visible = true;
DateTime adesso = DateTime.Now;
string dirFrom = e.LocalPath;
string dirTo = $"{_SqlCopyDir}{adesso.ToString("yyyy-MM")}\\";