Fix refresh rapido post spostamento barra
This commit is contained in:
@@ -106,17 +106,11 @@
|
||||
<span class="btn btn-secondary disabled"><b>NE02</b>
|
||||
<asp:Label runat="server" ID="lblRatio02" />%</span>
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<asp:LinkButton runat="server" ID="lbtSave" CssClass="btn btn-sm btn-success" OnClick="lbtSave_Click"><i class="fa fa-floppy-o" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-10">
|
||||
<div class="col-12">
|
||||
<asp:HiddenField runat="server" ID="hfNeedSave" />
|
||||
<asp:HiddenField runat="server" ID="hfLastRatio" />
|
||||
<asp:TextBox runat="server" ID="txtRatio" TextMode="Range" CssClass="form-control-range" AutoPostBack="true" OnTextChanged="txtRatio_TextChanged" />
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-sm btn-warning" OnClick="lbtCancel_Click"><i class="fa fa-ban" aria-hidden="true"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
ORD LIST NE01 - summary
|
||||
<uc1:cmp_orderExtList runat="server" ID="cmp_orderExtListNE01" />
|
||||
|
||||
@@ -281,9 +281,9 @@ namespace NKC_WF.WebUserControls
|
||||
}
|
||||
if (BatchId > 0)
|
||||
{
|
||||
fixChildBatch();
|
||||
checkCreateDescendant();
|
||||
showBatchDescendant();
|
||||
fixChildBatch();
|
||||
}
|
||||
}
|
||||
get
|
||||
@@ -329,6 +329,8 @@ namespace NKC_WF.WebUserControls
|
||||
DS_App.BatchListDataTable TabBatch = TabBatchDesc;
|
||||
cmp_orderExtListNE01.BatchId = TabBatch.Rows.Count > 0 ? TabBatchDesc[0].BatchID : 0;
|
||||
cmp_orderExtListNE02.BatchId = TabBatch.Rows.Count > 0 ? TabBatchDesc[1].BatchID : 0;
|
||||
cmp_orderExtListNE01.doUpdate();
|
||||
cmp_orderExtListNE02.doUpdate();
|
||||
}
|
||||
|
||||
private void fixRatio()
|
||||
@@ -433,8 +435,6 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
// suddivido
|
||||
rebalanceOrder();
|
||||
cmp_orderExtListNE01.doUpdate();
|
||||
cmp_orderExtListNE02.doUpdate();
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
@@ -517,14 +517,6 @@ namespace NKC_WF.WebUserControls
|
||||
raiseEvent();
|
||||
}
|
||||
|
||||
protected void lbtCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected void lbtSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected void lbtSendEstim_Click(object sender, EventArgs e)
|
||||
{
|
||||
// invia a redis una richiesta...
|
||||
@@ -595,6 +587,7 @@ namespace NKC_WF.WebUserControls
|
||||
rebalanceOrder();
|
||||
lblRatio01.Text = $"{valRatio}";
|
||||
lblRatio02.Text = $"{100 - valRatio}";
|
||||
fixChildBatch();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
@@ -86,15 +86,6 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRatio02;
|
||||
|
||||
/// <summary>
|
||||
/// lbtSave 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.LinkButton lbtSave;
|
||||
|
||||
/// <summary>
|
||||
/// hfNeedSave control.
|
||||
/// </summary>
|
||||
@@ -122,15 +113,6 @@ namespace NKC_WF.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtRatio;
|
||||
|
||||
/// <summary>
|
||||
/// lbtCancel 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.LinkButton lbtCancel;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_orderExtListNE01 control.
|
||||
/// </summary>
|
||||
|
||||
@@ -34,6 +34,10 @@ namespace NKC_WF.WebUserControls
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
Reference in New Issue
Block a user