From 28cd57c4a5539ced517b231f0d7173d948eaaafa Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sat, 25 Jan 2020 17:09:33 +0100 Subject: [PATCH] Abbozzati tutti i sistemi... vediamo... --- .../WebUserControls/cmp_BP_bunkList.ascx.cs | 4 ++- NKC_WF/WebUserControls/cmp_BP_sheetList.ascx | 24 ++------------ .../WebUserControls/cmp_BP_sheetList.ascx.cs | 31 +++++++++++++++++++ .../WebUserControls/cmp_MU_svgViewer.ascx.cs | 2 +- NKC_WF/site/BatchPreview.aspx | 10 ++---- NKC_WF/site/BatchPreview.aspx.cs | 8 +++++ 6 files changed, 49 insertions(+), 30 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_BP_bunkList.ascx.cs b/NKC_WF/WebUserControls/cmp_BP_bunkList.ascx.cs index 80dc525..d3077de 100644 --- a/NKC_WF/WebUserControls/cmp_BP_bunkList.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_BP_bunkList.ascx.cs @@ -77,7 +77,9 @@ namespace NKC_WF.WebUserControls checkVisibility(); raiseEvent(); } - + /// + /// Indice selezionato + /// public int selIndex { get diff --git a/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx b/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx index 6b4d44a..908301d 100644 --- a/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx +++ b/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx @@ -18,32 +18,14 @@ - - + +
- <%-- - - - --%> - <%-- - --%> - - <%-- - - - - - - - - - - --%> - <%----%> + diff --git a/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx.cs b/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx.cs index 6fc135e..eee7644 100644 --- a/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_BP_sheetList.ascx.cs @@ -30,6 +30,37 @@ namespace NKC_WF.WebUserControls return answ; } } + // + /// Indice selezionato + /// + public int selIndex + { + get + { + return grView.SelectedIndex; + } + set + { + grView.SelectedIndex = value; + } + } + /// + /// SheetId selezionato + /// + public int SheetIdSel + { + get + { + int answ = 0; + try + { + int.TryParse(grView.SelectedValue.ToString(), out answ); + } + catch + { } + return answ; + } + } /// /// comando reset /// diff --git a/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs b/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs index 2b34712..8b31830 100644 --- a/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_MU_svgViewer.ascx.cs @@ -20,7 +20,6 @@ namespace NKC_WF.WebUserControls set { hfBatchID.Value = value.ToString(); - doUpdate(); } get { @@ -37,6 +36,7 @@ namespace NKC_WF.WebUserControls set { hfSheetId.Value = value.ToString(); + doUpdate(); } get { diff --git a/NKC_WF/site/BatchPreview.aspx b/NKC_WF/site/BatchPreview.aspx index 8d1ca50..3c06a36 100644 --- a/NKC_WF/site/BatchPreview.aspx +++ b/NKC_WF/site/BatchPreview.aspx @@ -4,21 +4,17 @@ <%@ Register Src="~/WebUserControls/cmp_MU_svgViewer.ascx" TagPrefix="uc1" TagName="cmp_MU_svgViewer" %> <%@ Register Src="~/WebUserControls/cmp_BP_sheetList.ascx" TagPrefix="uc1" TagName="cmp_BP_sheetList" %> - - - -
-
+
-
+

Batch preview - start | pause | stop

-
+
diff --git a/NKC_WF/site/BatchPreview.aspx.cs b/NKC_WF/site/BatchPreview.aspx.cs index 072c28c..58e63df 100644 --- a/NKC_WF/site/BatchPreview.aspx.cs +++ b/NKC_WF/site/BatchPreview.aspx.cs @@ -17,6 +17,13 @@ namespace NKC_WF.site doUpdate(); } cmp_BP_bunkList.eh_doRefresh += Cmp_BP_bunkList_eh_doRefresh; + cmp_BP_sheetList.eh_doRefresh += Cmp_BP_sheetList_eh_doRefresh; + } + + private void Cmp_BP_sheetList_eh_doRefresh(object sender, EventArgs e) + { + // imposto sheet sul foglio... + cmp_MU_svgViewer.SheetId = cmp_BP_sheetList.SheetIdSel; } private void Cmp_BP_bunkList_eh_doRefresh(object sender, EventArgs e) @@ -47,6 +54,7 @@ namespace NKC_WF.site private void doUpdate() { cmp_BP_bunkList.BatchId = BatchId; + cmp_MU_svgViewer.BatchId = BatchId; } ///