73 lines
4.4 KiB
Plaintext
73 lines
4.4 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_DailyStatsList.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_DailyStatsList" %>
|
|
|
|
<%@ Register Src="~/WebUserControls/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %>
|
|
<%@ Register Src="~/WebUserControls/cmp_DailyStatsPlot.ascx" TagPrefix="uc1" TagName="cmp_DailyStatsPlot" %>
|
|
|
|
<div class="row" runat="server" id="divGraph">
|
|
<div class="col-12">
|
|
<uc1:cmp_DailyStatsPlot runat="server" id="cmp_DailyStatsPlot" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<b class="text-uppercase"><%: traduci("DayProdStats") %></b>
|
|
</div>
|
|
<div class="col-8 text-right small">
|
|
<%: traduci("PlotGraph") %>
|
|
<asp:CheckBox runat="server" ID="chkPlotGraph" AutoPostBack="true" OnCheckedChanged="chkPlotGraph_CheckedChanged" />
|
|
<asp:DropDownList runat="server" ID="ddlType" AutoPostBack="true" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
|
|
<asp:ListItem Text="OEE" Value="OEE"></asp:ListItem>
|
|
<asp:ListItem Text="Run Time" Value="RunTime"></asp:ListItem>
|
|
<asp:ListItem Text="Available Time" Value="AvailTime"></asp:ListItem>
|
|
<asp:ListItem Text="# Parts Produced" Value="NumPartsProd"></asp:ListItem>
|
|
<asp:ListItem Text="# Part Scrapped" Value="NumPartsScrap"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
|
|
|
<%: traduci("Machine") %>
|
|
<asp:DropDownList runat="server" ID="ddlMachine" AutoPostBack="true" OnSelectedIndexChanged="ddlMachine_SelectedIndexChanged">
|
|
<asp:ListItem Text="--- ALL ---" Value="*" />
|
|
<asp:ListItem Text="NE01" Value="NE01" />
|
|
<asp:ListItem Text="NE02" Value="NE02" />
|
|
</asp:DropDownList>
|
|
|
|
|
<%: traduci("DateStart") %>:
|
|
<asp:TextBox runat="server" ID="txtDateStart" AutoPostBack="true" TextMode="Date" OnTextChanged="txtDateStart_TextChanged" />
|
|
<%: traduci("DateEnd") %>:
|
|
<asp:TextBox runat="server" ID="txtDateEnd" AutoPostBack="true" TextMode="Date" OnTextChanged="txtDateEnd_TextChanged" />
|
|
|
|
|
<uc1:cmp_numRow runat="server" ID="cmp_numRow" numRow="10" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12 textCondens px-0">
|
|
<asp:GridView ID="grView" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="PlaceCod,DataRif" DataSourceID="ods" CssClass="table table-sm table-striped text-right" OnPageIndexChanged="grView_PageIndexChanged">
|
|
<HeaderStyle CssClass="default" />
|
|
<PagerStyle CssClass="active GridPager" />
|
|
<PagerSettings Mode="NumericFirstLast" />
|
|
<SelectedRowStyle CssClass="table-info" />
|
|
<EmptyDataTemplate>
|
|
<%: traduci("NoRecord") %>
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:BoundField DataField="DataRif" HeaderText="Date-Time" SortExpression="DataRif" />
|
|
<asp:BoundField DataField="PlaceCod" HeaderText="Machine" SortExpression="PlaceCod" />
|
|
<asp:BoundField DataField="ItmProd" HeaderText="# Parts Produced" SortExpression="ItmProd" />
|
|
<asp:BoundField DataField="ItmScrap" HeaderText="# Parts Scrapped" SortExpression="ItmScrap" />
|
|
<asp:BoundField DataField="MinDisp" HeaderText="Available Time" SortExpression="MinDisp" />
|
|
<asp:BoundField DataField="MinRun" HeaderText="Run Time" SortExpression="MinRun" />
|
|
<asp:TemplateField HeaderText="OEE %" SortExpression="MinRun">
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label1" runat="server" Text='<%# ratioFix(Eval("MinRun"), Eval("MinDisp")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getFilt" TypeName="AppData.DS_AppTableAdapters.ProductionStatsDayTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="txtDateStart" Name="dtStart" PropertyName="Text" Type="DateTime" />
|
|
<asp:ControlParameter ControlID="txtDateEnd" Name="dtEnd" PropertyName="Text" Type="DateTime" />
|
|
<asp:ControlParameter ControlID="ddlMachine" Name="PlaceCod" PropertyName="SelectedValue" DefaultValue="*" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
</div> |