Continuo costruzione split ratio
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_batchDetail.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_batchDetail" %>
|
||||
|
||||
|
||||
<asp:FormView ID="frmView" runat="server" DataKeyNames="BatchID" DataSourceID="ods" Width="100%">
|
||||
<ItemTemplate>
|
||||
<div class="row small">
|
||||
@@ -9,25 +8,25 @@
|
||||
<asp:Label runat="server" ID="lblRequestPresent" CssClass="text-danger" Visible='<%# !canStartNew %>' Text='<%# traduci("NewNestReqDisabled") %>' />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:LinkButton runat="server" ID="lbtSendEstim" CssClass="btn btn-sm btn-block btn-info"
|
||||
<asp:LinkButton runat="server" ID="lbtSendEstim" CssClass="btn btn-sm btn-block btn-info"
|
||||
OnClick="lbtSendEstim_Click"
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmStartEstim") %>'
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmStartEstim") %>'
|
||||
Visible='<%# (checkStatus(Eval("Status"), NKC_SDK.BatchStatus.Errors) || checkStatus(Eval("Status"), NKC_SDK.BatchStatus.Imported)) && canStartNew %>'><%# traduci("SendToEstim") %></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtStopEstim" CssClass="btn btn-sm btn-block btn-dark"
|
||||
<asp:LinkButton runat="server" ID="lbtStopEstim" CssClass="btn btn-sm btn-block btn-dark"
|
||||
OnClick="lbtStopEstim_Click"
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmStopEstim") %>'
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmStopEstim") %>'
|
||||
Visible='<%# checkStatus(Eval("Status"), NKC_SDK.BatchStatus.EstimationRequested) %>'><%# traduci("StopEstim") %></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtSendNesting" CssClass="btn btn-sm btn-block btn-warning"
|
||||
<asp:LinkButton runat="server" ID="lbtSendNesting" CssClass="btn btn-sm btn-block btn-warning"
|
||||
OnClick="lbtSendNesting_Click"
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmStartNest") %>'
|
||||
Visible='<%# checkStatus(Eval("Status"), NKC_SDK.BatchStatus.EstimationDone) && canStartNew %>'><%# traduci("SendToNest") %></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtStopNesting" CssClass="btn btn-sm btn-block btn-dark"
|
||||
<asp:LinkButton runat="server" ID="lbtStopNesting" CssClass="btn btn-sm btn-block btn-dark"
|
||||
OnClick="lbtStopNesting_Click"
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmStopNest") %>'
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmStopNest") %>'
|
||||
Visible='<%# checkStatus(Eval("Status"), NKC_SDK.BatchStatus.NestRequested) %>'><%# traduci("StopNest") %></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtAccept" CssClass="btn btn-sm btn-block btn-success"
|
||||
OnClick="lbtAccept_Click"
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmAcceptNest") %>'
|
||||
<asp:LinkButton runat="server" ID="lbtAccept" CssClass="btn btn-sm btn-block btn-success"
|
||||
OnClick="lbtAccept_Click"
|
||||
OnClientClick='<%# SteamWare.jsUtils.getCBE("ConfirmAcceptNest") %>'
|
||||
Visible='<%# checkStatus(Eval("Status"), NKC_SDK.BatchStatus.NestDone) %>'><%# traduci("AcceptNest") %></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
@@ -75,7 +74,6 @@
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
|
||||
<div class="row small text-dark">
|
||||
<div class="col-6">
|
||||
<div class="form-group row py-0 mt-0 mb-1">
|
||||
@@ -97,3 +95,29 @@
|
||||
<asp:Label runat="server" ID="lblTestJson" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row small text-center">
|
||||
<div class="col-4">
|
||||
NE01
|
||||
</div>
|
||||
<div class="col-4">
|
||||
Split ratio:
|
||||
<asp:Label runat="server" ID="lblSplitRatio" />
|
||||
</div>
|
||||
<div class="col-4">
|
||||
NE02
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<asp:TextBox runat="server" ID="txtRatio" TextMode="Range" CssClass="form-control-range" AutoPostBack="true" OnTextChanged="txtRatio_TextChanged" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
ORD LIST NE01 - summary
|
||||
<br />
|
||||
table detail
|
||||
</div>
|
||||
<div class="col-6">
|
||||
ORD LIST NE02- summary
|
||||
<br />
|
||||
table detail
|
||||
</div>
|
||||
</div>
|
||||
@@ -279,6 +279,11 @@ namespace NKC_WF.WebUserControls
|
||||
return num / den;
|
||||
}
|
||||
|
||||
protected void txtRatio_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
lblSplitRatio.Text = txtRatio.Text;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
+41
-23
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace NKC_WF.WebUserControls
|
||||
@@ -15,57 +15,75 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo frmView.
|
||||
/// frmView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.FormView frmView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfBatchId.
|
||||
/// hfBatchId control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfBatchId;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblMatDet.
|
||||
/// lblMatDet control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblMatDet;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblProdDet.
|
||||
/// lblProdDet control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblProdDet;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTestJson.
|
||||
/// lblTestJson control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTestJson;
|
||||
|
||||
/// <summary>
|
||||
/// lblSplitRatio 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 lblSplitRatio;
|
||||
|
||||
/// <summary>
|
||||
/// txtRatio 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.TextBox txtRatio;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user