Files
MoonPro.net/MP-ADM/WebUserControls/mod_newOdl.ascx
T
2018-10-27 11:58:26 +02:00

132 lines
9.2 KiB
Plaintext

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_newOdl.ascx.cs"
Inherits="MoonPro_site.WebUserControls.mod_newOdl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div style="font-size: 0.8em; background-color: #EFEFEF;">
<div style="float: none; clear: both;">
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
Articolo<br />
<asp:DropDownList ID="ddlArticolo" runat="server" DataTextField="label" DataValueField="value"
AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" AutoPostBack="True"
DataSourceID="odsArticoli" CssClass="WindowsStyle" MaxLength="0" Style="display: inline;" OnSelectedIndexChanged="ddlArticolo_SelectedIndexChanged" Font-Size="0.9em" />
<asp:ObjectDataSource ID="odsArticoli" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.v_selArticoliTableAdapter"></asp:ObjectDataSource>
</div>
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
Macchina<br />
<asp:DropDownList ID="ddlMacchine" runat="server" DataTextField="label" DataValueField="value"
AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" AutoPostBack="True"
DataSourceID="odsMacchine" CssClass="WindowsStyle" MaxLength="0" Style="display: inline;" OnSelectedIndexChanged="ddlMacchine_SelectedIndexChanged" Font-Size="0.9em" />
<asp:ObjectDataSource ID="odsMacchine" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.v_selMacchineTableAdapter"></asp:ObjectDataSource>
</div>
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
Pezzi<br />
<asp:TextBox ID="txtPezzi" runat="server" Width="4em" />
<asp:RequiredFieldValidator ID="rfvPezzi" ControlToValidate="txtPezzi" runat="server"
ErrorMessage="!!!" />
</div>
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
Scarico As400<br />
<asp:CheckBox runat="server" ID="chkToAs400" Checked="true" ToolTip="Abilita scarico su AS400" />
</div>
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
Tempo Ciclo min.cent<br />
<asp:TextBox ID="txtTempoCiclo" runat="server" Width="4em"
OnTextChanged="txtTempoCiclo_TextChanged" AutoPostBack="True" />
( =
<asp:Label runat="server" ID="lblMinSec" />
min:sec)
<asp:RequiredFieldValidator ID="rfvTempoCiclo" ControlToValidate="txtTempoCiclo"
runat="server" ErrorMessage="!!!" />
</div>
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
Pezzi Pallet<br />
<asp:TextBox ID="txtPzPallet" runat="server" Width="4em" />
<asp:RequiredFieldValidator ID="rfvPzPallet" ControlToValidate="txtPzPallet" runat="server"
ErrorMessage="!!!" />
</div>
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
Commessa As400<br />
<asp:TextBox ID="txtCommessa" runat="server" Width="10em" />
</div>
</div>
<div style="float: none; text-align: center; margin: auto; clear: both; margin: 2px; padding: 2px;">
<span style="padding: 0px 50px;">
<asp:Button ID="btnOk" runat="server" Text="Ok" OnClick="btnOk_Click" Width="120px" />
</span>
<span style="padding: 0px 50px;">
<asp:Button ID="btnCancel" runat="server" Text="Annulla" OnClick="btnCancel_Click" CausesValidation="false" Width="120px" />
</span>
</div>
<div runat="server" id="divTempi" style="clear: both;">
<asp:GridView ID="grViewTempi" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="IdxODL" DataSourceID="odsTempi" ForeColor="Black" GridLines="None" OnSelectedIndexChanged="grViewTempi_SelectedIndexChanged" Width="100%">
<AlternatingRowStyle BackColor="PaleGoldenrod" />
<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
<EmptyDataRowStyle BackColor="Tan" Font-Bold="True" />
<EmptyDataTemplate>
Nessun record storico trovato
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click"><i class="fa fa-refresh fa-2x"></i></asp:LinkButton>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton ID="lnkSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Selezione"><i class="fa fa-arrow-circle-right fa-2x"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
<asp:BoundField DataField="CodArticolo" HeaderText="CodArticolo" SortExpression="CodArticolo" />
<asp:BoundField DataField="CodMacchina" HeaderText="CodMacchina" SortExpression="CodMacchina" />
<asp:BoundField DataField="IdxMacchina" HeaderText="IdxMacchina" SortExpression="IdxMacchina" />
<asp:BoundField DataField="DescArticolo" HeaderText="DescArticolo" SortExpression="DescArticolo" />--%>
<asp:BoundField DataField="CommessaAs400" HeaderText="CommessaAs400" SortExpression="CommessaAs400" />
<asp:BoundField DataField="IdxODL" HeaderText="IdxODL" InsertVisible="False" ReadOnly="True" SortExpression="IdxODL" />
<asp:BoundField DataField="NumPezzi" HeaderText="NumPezzi" SortExpression="NumPezzi" />
<asp:TemplateField HeaderText="TCAssegnato" SortExpression="TCAssegnato">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("TCAssegnato", "{0:N2}") %>' />
<div style="color: #696969; font-size: 0.7em;">
<asp:Label ID="Label4" runat="server" Text='<%# Eval("TCRichAttr", "{0:N2} (attr.)") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="PzPallet" HeaderText="PzPallet" SortExpression="PzPallet" />
<asp:TemplateField HeaderText="Note" SortExpression="Note">
<ItemTemplate>
<asp:Label ID="lblNote" runat="server" Text='<%# Eval("Note") %>' />
<div style="color: #696969; font-size: 0.7em;">
<asp:Label ID="lblCodArticolo" runat="server" Text='<%# Eval("CodArticolo","({0})") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />--%>
<asp:TemplateField HeaderText="DataInizio" SortExpression="DataInizio" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("DataInizio","{0:dd/MM/yyyy}</br>{0:HH:mm}") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DataFine" SortExpression="DataFine" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("DataFine","{0:dd/MM/yyyy}</br>{0:HH:mm}") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="odsTempi" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMacchinaArticolo" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="ddlMacchine" DefaultValue="0" Name="IdxMacchina" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="ddlArticolo" DefaultValue="0" Name="CodArticolo" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>