From ce3d27bbda534a78f9e29ce672857f404cfbfa55 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 9 Jun 2021 18:26:01 +0200 Subject: [PATCH] Ancora update visualizzazione detail --- NKC_WF/WebUserControls/cmp_batchDetail.ascx | 7 ++++--- NKC_WF/WebUserControls/cmp_batchDetail.ascx.cs | 6 +++++- .../cmp_batchDetail.ascx.designer.cs | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_batchDetail.ascx b/NKC_WF/WebUserControls/cmp_batchDetail.ascx index d60e3b1..211e412 100644 --- a/NKC_WF/WebUserControls/cmp_batchDetail.ascx +++ b/NKC_WF/WebUserControls/cmp_batchDetail.ascx @@ -98,14 +98,15 @@
- NE01 + NE01 + %
- Split ratio:
- NE02 + NE02 + %
diff --git a/NKC_WF/WebUserControls/cmp_batchDetail.ascx.cs b/NKC_WF/WebUserControls/cmp_batchDetail.ascx.cs index 41a8c77..3278732 100644 --- a/NKC_WF/WebUserControls/cmp_batchDetail.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_batchDetail.ascx.cs @@ -328,7 +328,11 @@ namespace NKC_WF.WebUserControls protected void txtRatio_TextChanged(object sender, EventArgs e) { - lblSplitRatio.Text = txtRatio.Text; + int valRatio = 0; + int.TryParse(txtRatio.Text, out valRatio); + lblRatio01.Text = $"{valRatio}"; + lblRatio02.Text = $"{100 - valRatio}"; + lblSplitRatio.Text = $"{valRatio}/{100 - valRatio}"; } #endregion Protected Methods diff --git a/NKC_WF/WebUserControls/cmp_batchDetail.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_batchDetail.ascx.designer.cs index b225acc..c6828d8 100644 --- a/NKC_WF/WebUserControls/cmp_batchDetail.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_batchDetail.ascx.designer.cs @@ -68,6 +68,15 @@ namespace NKC_WF.WebUserControls /// protected global::System.Web.UI.WebControls.Label lblTestJson; + /// + /// lblRatio01 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblRatio01; + /// /// lblSplitRatio control. /// @@ -77,6 +86,15 @@ namespace NKC_WF.WebUserControls /// protected global::System.Web.UI.WebControls.Label lblSplitRatio; + /// + /// lblRatio02 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblRatio02; + /// /// txtRatio control. ///