Ancora update visualizzazione detail
This commit is contained in:
@@ -98,14 +98,15 @@
|
||||
|
||||
<div class="row small text-center">
|
||||
<div class="col-4">
|
||||
NE01
|
||||
<span class="btn btn-primary disabled"><b>NE01</b>
|
||||
<asp:Label runat="server" ID="lblRatio01" />%</span>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
Split ratio:
|
||||
<asp:Label runat="server" ID="lblSplitRatio" />
|
||||
</div>
|
||||
<div class="col-4">
|
||||
NE02
|
||||
<span class="btn btn-secondary disabled"><b>NE02</b>
|
||||
<asp:Label runat="server" ID="lblRatio02" />%</span>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<asp:TextBox runat="server" ID="txtRatio" TextMode="Range" CssClass="form-control-range" AutoPostBack="true" OnTextChanged="txtRatio_TextChanged" />
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -68,6 +68,15 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTestJson;
|
||||
|
||||
/// <summary>
|
||||
/// lblRatio01 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRatio01;
|
||||
|
||||
/// <summary>
|
||||
/// lblSplitRatio control.
|
||||
/// </summary>
|
||||
@@ -77,6 +86,15 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblSplitRatio;
|
||||
|
||||
/// <summary>
|
||||
/// lblRatio02 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRatio02;
|
||||
|
||||
/// <summary>
|
||||
/// txtRatio control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user