fca80a1cee
modifiche ulteriori x punti Emanuele
218 lines
16 KiB
Plaintext
218 lines
16 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_OffersArchive.ascx.cs" Inherits="C2P.WebUserControls.mod_OffersArchive" %>
|
|
<%@ Register Src="mod_autocomplete.ascx" TagPrefix="uc1" TagName="mod_autocomplete" %>
|
|
<%@ Register Src="mod_selPeriodo.ascx" TagName="mod_selPeriodo" TagPrefix="uc2" %>
|
|
<%@ Register Src="mod_slider.ascx" TagName="mod_slider" TagPrefix="uc3" %>
|
|
<%@ Register Src="mod_range.ascx" TagName="mod_range" TagPrefix="uc4" %>
|
|
|
|
<%if (false)
|
|
{ %>
|
|
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
|
<%} %>
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title"><%: traduci("SearchFilters") %></h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<asp:RadioButtonList ID="rblQState" runat="server" AutoPostBack="True" class="btn-group btn-group-justified" RepeatDirection="Horizontal" RepeatLayout="Flow">
|
|
<asp:ListItem Value="-1" Text="All" Selected="True" class="btn btn-default btn-xs"></asp:ListItem>
|
|
<asp:ListItem Value="0" Text="Draft" class="btn btn-default btn-xs"></asp:ListItem>
|
|
<asp:ListItem Value="1" Text="Compl" class="btn btn-default btn-xs"></asp:ListItem>
|
|
<asp:ListItem Value="2" Text="Appr" class="btn btn-default btn-xs"></asp:ListItem>
|
|
<asp:ListItem Value="3" Text="Rel" class="btn btn-default btn-xs"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<asp:RadioButtonList ID="rblTipo" runat="server" AutoPostBack="True" class="btn-group btn-group-justified" RepeatDirection="Horizontal" RepeatLayout="Flow">
|
|
<asp:ListItem Value="*" Text="All" Selected="True" class="btn btn-default btn-xs"></asp:ListItem>
|
|
<asp:ListItem Value="Q" Text="Quotes" class="btn btn-default btn-xs"></asp:ListItem>
|
|
<asp:ListItem Value="S" Text="Simulation" class="btn btn-default btn-xs"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<uc2:mod_selPeriodo ID="mod_selPeriodo1" runat="server" autoUpdate="true" />
|
|
</div>
|
|
</div>
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<uc1:mod_autocomplete runat="server" ID="acClient" contextKey="c" minCharAutocomplete="2" showKey="false" ServicePath="../Services/WS_data.asmx/Clients" placeholder="Type to Search - Clients" labelRicercaTrad="acCliente" labelWidth="85px" />
|
|
</div>
|
|
</div>
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<uc1:mod_autocomplete runat="server" ID="acMaterial" contextKey="l" minCharAutocomplete="2" showKey="false" ServicePath="../Services/WS_data.asmx/RawMat" placeholder="Type to Search - Alloy" labelRicercaTrad="acLega" labelWidth="85px" />
|
|
</div>
|
|
</div>
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<uc1:mod_autocomplete runat="server" ID="acItem" contextKey="a" minCharAutocomplete="2" showKey="false" ServicePath="../Services/WS_data.asmx/Items" placeholder="Type to Search - Items" labelRicercaTrad="acArticolo" labelWidth="85px" />
|
|
</div>
|
|
</div>
|
|
<%--<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<div class="input-group input-group-sm">
|
|
<span class="input-group-addon">
|
|
<asp:Label runat="server" ID="lblField"><%: traduci("NumOfferta") %></asp:Label>
|
|
</span>
|
|
<asp:TextBox runat="server" ID="txtNumOff" CssClass="searchinput form-control" AutoPostBack="True" TextMode="SingleLine" AutoCompleteType="Search" />
|
|
<span class="input-group-addon">
|
|
<asp:LinkButton runat="server" ID="lnkResetNumOff" Text="X" type="button" Font-Size="0.8em" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>--%>
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<div class="col-sm-12">
|
|
<uc4:mod_range ID="mod_range1" runat="server" minVal="0" maxVal="5000" />
|
|
</div>
|
|
</div>
|
|
<div class="row" style="min-height: 3.3em;">
|
|
<br />
|
|
<div class="col-sm-6">
|
|
<asp:LinkButton runat="server" ID="lbtSearch" CssClass="btn btn-primary" Width="100%" OnClick="lbtSearch_Click"><%: traduci("Search") %></asp:LinkButton>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<asp:LinkButton runat="server" ID="lbtReset" CssClass="btn btn-warning" Width="100%" OnClick="lbtReset_Click"><%: traduci("Reset") %></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-8">
|
|
<div class="row" style="min-height: 3.1em;">
|
|
<div class="col-sm-2 col-sm-offset-1" style="padding: 0px 4px;">
|
|
<asp:LinkButton runat="server" Width="100%" ID="lbOpen" CssClass="btn btn-success" OnClick="lbOpen_Click"><i class="fa fa-search"></i> <%:traduci("Open") %></asp:LinkButton>
|
|
</div>
|
|
<div class="col-sm-2" style="padding: 0px 4px;">
|
|
<asp:LinkButton runat="server" Width="100%" ID="lbDelete" CssClass="btn btn-danger" OnClick="lbDelete_Click"><i class="fa fa-trash-o"></i> <%:traduci("Delete") %></asp:LinkButton>
|
|
</div>
|
|
<div class="col-sm-2" style="padding: 0px 4px;">
|
|
<asp:LinkButton runat="server" Width="100%" ID="lbDuplicate" CssClass="btn btn-primary" OnClick="lbDuplicate_Click"><i class="fa fa-code-fork"></i> <%:traduci("Duplicate") %></asp:LinkButton>
|
|
</div>
|
|
<div class="col-sm-2" style="padding: 0px 4px;">
|
|
<asp:LinkButton runat="server" Width="100%" ID="lbSimulate" CssClass="btn btn-warning" OnClick="lbSimulate_Click"><i class="fa fa-flask"></i> <%:traduci("Simulate") %></asp:LinkButton>
|
|
</div>
|
|
<div class="col-sm-2" style="padding: 0px 4px;">
|
|
<asp:LinkButton runat="server" Width="100%" ID="lbPrint" CssClass="btn btn-info" OnClick="lbPrint_Click"><i class="fa fa-print"></i> <%:traduci("Print") %></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="table-responsive">
|
|
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataSourceID="odsQuotes" DataKeyNames="QuoteType,CodQuote,QuoteRev" OnSelectedIndexChanged="grView_SelectedIndexChanged" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table table-striped table-bordered table-hover table-condensed" AllowPaging="True" AllowSorting="True" OnSorted="grView_Sorted">
|
|
<EmptyDataTemplate>
|
|
<%# traduci("NoRecords") %>
|
|
</EmptyDataTemplate>
|
|
<PagerSettings Mode="NumericFirstLast" />
|
|
<PagerStyle CssClass="paginatore" HorizontalAlign="Center" Font-Bold="true" Wrap="true" Font-Size="1.2em" Width="100%" />
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Offer #" SortExpression="CodQuote">
|
|
<ItemTemplate>
|
|
<b>
|
|
<asp:Label ID="Label8" runat="server" Text='<%# Bind("QuoteType") %>' />|</b><asp:Label ID="Label6" runat="server" Text='<%# Bind("CodQuote") %>' />.<span style="font-size: 0.8em;"><asp:Label ID="Label7" runat="server" Text='<%# Bind("QuoteRev") %>' /></span>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="QS" SortExpression="idxQState">
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label5" runat="server" Text='<%# traduci("ST" + Eval("idxQState")) %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="ClientName" HeaderText="Customer" SortExpression="ClientName" ReadOnly="true" />
|
|
<asp:BoundField DataField="RawMat" HeaderText="Alloy" SortExpression="RawMat" ReadOnly="true" />
|
|
<asp:BoundField DataField="CodItem" HeaderText="Item" SortExpression="CodItem" ReadOnly="true" />
|
|
<asp:BoundField DataField="BatchQty" HeaderText="Qty" SortExpression="BatchQty" ReadOnly="true" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" HtmlEncode="false">
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:BoundField>
|
|
<asp:TemplateField HeaderText="RMFC" SortExpression="RawMatFullCost" ItemStyle-HorizontalAlign="Right">
|
|
<%--<HeaderTemplate>
|
|
<asp:Label runat="server" ID="lblHeadRMFC" Text="RMFC" ToolTip="Raw Material Full Cost" />
|
|
</HeaderTemplate>--%>
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label1" runat="server" Text='<%# Eval("RawMatFullCost", "{0:C3}") %>' />
|
|
</ItemTemplate>
|
|
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="FC" SortExpression="FullCost" ItemStyle-HorizontalAlign="Right">
|
|
<%--<HeaderTemplate>
|
|
<asp:Label runat="server" ID="lblHeadFC" Text="FC" ToolTip="Full Cost" />
|
|
</HeaderTemplate>--%>
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label2" runat="server" Text='<%# Eval("FullCost", "{0:C3}") %>' />
|
|
</ItemTemplate>
|
|
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="MP" SortExpression="MinPrice" ItemStyle-HorizontalAlign="Right">
|
|
<%--<HeaderTemplate>
|
|
<asp:Label runat="server" ID="lblHeadMP" Text="MP" ToolTip="Minimum Price" />
|
|
</HeaderTemplate>--%>
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label3" runat="server" Text='<%# Eval("MinPrice", "{0:C3}") %>' />
|
|
</ItemTemplate>
|
|
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="PO" SortExpression="PriceOff" ItemStyle-HorizontalAlign="Right">
|
|
<%--<HeaderTemplate>
|
|
<asp:Label runat="server" ID="lblHeadPO" Text="PO" ToolTip="Price Offeres" />
|
|
</HeaderTemplate>--%>
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label4" runat="server" Text='<%# Eval("PriceOff", "{0:C3}") %>' CssClass='<%# priceVsCost(Eval("FullCost"),Eval("MinPrice"),Eval("PriceOff")) %>' />
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="txtPriceOff" runat="server" Text='<%# Bind("PriceOff") %>' Width="5em" />
|
|
</EditItemTemplate>
|
|
|
|
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="chkSelect" runat="server" CssClass="btn" OnCheckedChanged="btnSel_Click" AutoPostBack="true" />
|
|
</ItemTemplate>
|
|
<HeaderTemplate>
|
|
<asp:CheckBox ID="btnSelAll" runat="server" Checked="false" ToolTip='<%# traduci("btnSelAll") %>'
|
|
OnCheckedChanged="btnSelAll_Click" CssClass="btn" AutoPostBack="true"></asp:CheckBox>
|
|
</HeaderTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<asp:ObjectDataSource ID="odsQuotes" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getBySearch" TypeName="C2P_Data.DS_QuotesTableAdapters.QuoteFull_QTableAdapter" FilterExpression="ClientName LIKE '%{0}%' OR RawMat LIKE '%{0}%' OR CodItem LIKE '%{0}%' OR CONVERT(CodQuote, 'System.String') LIKE '%{0}%'" OnSelecting="odsQuotes_Selecting">
|
|
<FilterParameters>
|
|
<asp:SessionParameter SessionField="searchVal" Type="String" DefaultValue="*" />
|
|
</FilterParameters>
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="acClient" PropertyName="valore" Name="CodClient" DefaultValue="" Type="String" />
|
|
<asp:ControlParameter ControlID="acItem" PropertyName="valore" Name="CodItem" DefaultValue="" Type="String" />
|
|
<asp:ControlParameter ControlID="acMaterial" PropertyName="valore" Name="RawMat" DefaultValue="" Type="String" />
|
|
<asp:ControlParameter ControlID="mod_selPeriodo1" PropertyName="inizio" Name="DataMin" Type="DateTime" DefaultValue="" />
|
|
<asp:ControlParameter ControlID="mod_selPeriodo1" PropertyName="fine" Name="DataMax" Type="DateTime" DefaultValue="" />
|
|
<asp:ControlParameter ControlID="mod_range1" PropertyName="minValSel" Name="qtaMin" Type="Int32" />
|
|
<asp:ControlParameter ControlID="mod_range1" PropertyName="maxValSel" Name="qtaMax" Type="Int32" />
|
|
<asp:ControlParameter ControlID="rblTipo" DefaultValue="*" Name="QuoteType" PropertyName="SelectedValue" Type="String" />
|
|
<asp:ControlParameter ControlID="rblQState" DefaultValue="-1" Name="IdxQState" PropertyName="SelectedValue" Type="Int32" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
</div>
|
|
<div runat="server" id="numRes" class="row">
|
|
<div class="col-sm-6">
|
|
<asp:Label runat="server" ID="lblResults" CssClass="didascaliaMed"><%: numRecords %></asp:Label>
|
|
</div>
|
|
<div class="col-sm-6 text-right">
|
|
<%: traduci("PageSize") %>
|
|
<asp:TextBox runat="server" ID="txtPageSize" Text="10" AutoPostBack="true" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|