77 lines
4.0 KiB
Plaintext
77 lines
4.0 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_batchDetail.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_batchDetail" %>
|
|
|
|
<h3>Batch Detail</h3>
|
|
|
|
<asp:FormView ID="frmView" runat="server" DataKeyNames="BatchID" DataSourceID="ods" Width="100%">
|
|
<ItemTemplate>
|
|
|
|
<div class="row">
|
|
<div class="col-9">
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="BatchIDLabel" class="col-sm-3 col-form-label py-0">Batch ID</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="BatchIDLabel" runat="server" Text='<%# Eval("BatchID") %>' />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="DueDateLabel" class="col-sm-3 col-form-label py-0">Due Date</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="DueDateLabel" runat="server" Text='<%# Eval("DueDate","{0:yyyy-MM-dd}") %>' />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="NestingReqLabel" class="col-sm-3 col-form-label py-0">Nesting Req</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="NestingReqLabel" runat="server" Text='<%# Eval("NestingReq") %>' />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="NestingRespLabel" class="col-sm-3 col-form-label py-0">Nesting Compl</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="NestingRespLabel" runat="server" Text='<%# Eval("NestingResp") %>' />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="StatusLabel" class="col-sm-3 col-form-label py-0">Status</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="StatusLabel" runat="server" Text='<%# BStatus(Eval("Status")) %>' />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="TotalTimeLabel" class="col-sm-3 col-form-label py-0">Total Time</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="TotalTimeLabel" runat="server" Text='<%# Eval("TotalTime") %>' />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="lblNumOrders" class="col-sm-3 col-form-label py-0">Num Orders</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="lblNumOrders" runat="server" Text='<%# Eval("NumOrders") %>' />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row py-0 mt-0 mb-1">
|
|
<label for="lblNumItems" class="col-sm-3 col-form-label py-0">Num Items</label>
|
|
<div class="col-sm-9 font-weight-bold">
|
|
<asp:Label ID="lblNumItems" runat="server" Text='<%# Eval("NumItems") %>' />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-3" runat="server" id="divNesting" visible='<%# !isNested(Eval("Status")) %>'>
|
|
<asp:LinkButton runat="server" ID="lbtSendNesting" CssClass="btn btn-sm btn-block btn-warning">Send to Nesting</asp:LinkButton>
|
|
<asp:LinkButton runat="server" ID="lbtStopNesting" CssClass="btn btn-sm btn-block btn-dark">Stop Nesting</asp:LinkButton>
|
|
</div>
|
|
<div class="col-3" runat="server" id="divNested" visible='<%# isNested(Eval("Status")) %>'>
|
|
<asp:LinkButton runat="server" ID="lbtAccept" CssClass="btn btn-sm btn-block btn-success">Accept Nesting</asp:LinkButton>
|
|
<asp:LinkButton runat="server" ID="lbtRefuse" CssClass="btn btn-sm btn-block btn-danger">Refuse Nesting</asp:LinkButton>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:FormView>
|
|
<asp:HiddenField ID="hfBatchId" runat="server" />
|
|
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByKey" TypeName="AppData.DS_AppTableAdapters.BatchListTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="hfBatchId" DefaultValue="0" Name="BatchID" PropertyName="Value" Type="Int32" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
|