update pagina list
This commit is contained in:
BIN
Binary file not shown.
@@ -125,6 +125,12 @@
|
||||
<Content Include="Account\Register.aspx" />
|
||||
<Content Include="App_Readme\Elmah.txt" />
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="Content\Style.css">
|
||||
<DependentUpon>Style.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\Style.min.css">
|
||||
<DependentUpon>Style.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\themes\base\images\animated-overlay.gif" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png" />
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.warnRed {
|
||||
color: red;
|
||||
}
|
||||
.warnOrange {
|
||||
color: orange;
|
||||
}
|
||||
.allOk {
|
||||
color: green;
|
||||
}
|
||||
@@ -1,2 +1,12 @@
|
||||
body {
|
||||
}
|
||||
|
||||
.warnRed {
|
||||
color: red;
|
||||
}
|
||||
.warnOrange {
|
||||
color: orange;
|
||||
}
|
||||
.allOk {
|
||||
color: green;
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
.warnRed{color:red}.warnOrange{color:#ffa500}.allOk{color:green}
|
||||
@@ -3,27 +3,133 @@
|
||||
{ %>
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
<%} %>
|
||||
<div class="float-left">
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataSourceID="odsQuotes" DataKeyNames="QuoteType,CodQuote,QuoteRev" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<div class="float-left" style="font-size: 10pt;">
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataSourceID="odsQuotes" DataKeyNames="QuoteType,CodQuote,QuoteRev" OnSelectedIndexChanged="grView_SelectedIndexChanged" CellPadding="4" ForeColor="#333333" GridLines="None">
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
|
||||
<%--<asp:BoundField DataField="CodInco" HeaderText="IncoTerm" SortExpression="CodInco" />
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />--%>
|
||||
<%--<asp:BoundField DataField="P_FullCost" HeaderText="P_FullCost" ReadOnly="True" SortExpression="P_FullCost" />
|
||||
<asp:BoundField DataField="P_MinPrice" HeaderText="P_MinPrice" ReadOnly="True" SortExpression="P_MinPrice" />
|
||||
<asp:BoundField DataField="P_PriceOff" HeaderText="P_PriceOff" ReadOnly="True" SortExpression="P_PriceOff" />--%>
|
||||
<%--<asp:BoundField DataField="Vers" HeaderText="Vers" SortExpression="Vers" />
|
||||
<asp:BoundField DataField="QuoteType" HeaderText="QuoteType" ReadOnly="True" SortExpression="QuoteType" />
|
||||
<asp:BoundField DataField="CodItemGroup" HeaderText="CodItemGroup" SortExpression="CodItemGroup" />
|
||||
<asp:BoundField DataField="CodClient" HeaderText="CodClient" SortExpression="CodClient" />
|
||||
<asp:BoundField DataField="UnitWeight" HeaderText="UnitWeight" SortExpression="UnitWeight" />
|
||||
<asp:BoundField DataField="CodClientAssoc" HeaderText="CodClientAssoc" SortExpression="CodClientAssoc" />
|
||||
<asp:BoundField DataField="ClientNameAssoc" HeaderText="ClientNameAssoc" SortExpression="ClientNameAssoc" />
|
||||
<asp:BoundField DataField="ItemDescr" HeaderText="ItemDescr" SortExpression="ItemDescr" />
|
||||
<asp:BoundField DataField="CodifProfilo" HeaderText="CodifProfilo" SortExpression="CodifProfilo" />
|
||||
<asp:BoundField DataField="ClasseMerc" HeaderText="ClasseMerc" SortExpression="ClasseMerc" />
|
||||
<asp:BoundField DataField="TipoDies" HeaderText="TipoDies" SortExpression="TipoDies" />
|
||||
<asp:BoundField DataField="CodDiesGroup" HeaderText="CodDiesGroup" SortExpression="CodDiesGroup" />
|
||||
<asp:BoundField DataField="DiamDies" HeaderText="DiamDies" SortExpression="DiamDies" />
|
||||
<asp:BoundField DataField="HoleNumDies" HeaderText="HoleNumDies" SortExpression="HoleNumDies" />
|
||||
<asp:BoundField DataField="DiesPrice" HeaderText="DiesPrice" SortExpression="DiesPrice" />
|
||||
<asp:BoundField DataField="DiesExpLife" HeaderText="DiesExpLife" SortExpression="DiesExpLife" />
|
||||
<asp:BoundField DataField="DiesEOLife" HeaderText="DiesEOLife" SortExpression="DiesEOLife" />
|
||||
<asp:BoundField DataField="NumDiesInList" HeaderText="NumDiesInList" SortExpression="NumDiesInList" />
|
||||
<asp:BoundField DataField="NumDiesExaust" HeaderText="NumDiesExaust" SortExpression="NumDiesExaust" />
|
||||
<asp:BoundField DataField="CodPlant" HeaderText="CodPlant" SortExpression="CodPlant" />
|
||||
<asp:BoundField DataField="KeyAMIL" HeaderText="KeyAMIL" SortExpression="KeyAMIL" />
|
||||
<asp:BoundField DataField="KgTeo" HeaderText="KgTeo" SortExpression="KgTeo" />
|
||||
<asp:BoundField DataField="NumSMED" HeaderText="NumSMED" SortExpression="NumSMED" />
|
||||
<asp:BoundField DataField="QuotaMan" HeaderText="QuotaMan" SortExpression="QuotaMan" />
|
||||
<asp:BoundField DataField="PRMWeight" HeaderText="PRMWeight" SortExpression="PRMWeight" />
|
||||
<asp:BoundField DataField="PWeight" HeaderText="PWeight" SortExpression="PWeight" />
|
||||
<asp:BoundField DataField="PTare" HeaderText="PTare" SortExpression="PTare" />
|
||||
<asp:BoundField DataField="LivPackage" HeaderText="LivPackage" SortExpression="LivPackage" />
|
||||
<asp:BoundField DataField="LivPackageDett" HeaderText="LivPackageDett" SortExpression="LivPackageDett" />
|
||||
<asp:BoundField DataField="RawMatCost" HeaderText="RawMatCost" SortExpression="RawMatCost" />
|
||||
<asp:BoundField DataField="RawMatExtraCost" HeaderText="RawMatExtraCost" SortExpression="RawMatExtraCost" />
|
||||
<asp:BoundField DataField="KeyAM" HeaderText="KeyAM" SortExpression="KeyAM" />
|
||||
<asp:BoundField DataField="CodPackag" HeaderText="CodPackag" SortExpression="CodPackag" />
|
||||
<asp:BoundField DataField="PkgDesc" HeaderText="PkgDesc" SortExpression="PkgDesc" />
|
||||
<asp:BoundField DataField="FSR" HeaderText="FSR" SortExpression="FSR" />
|
||||
<asp:BoundField DataField="ProvvCost" HeaderText="ProvvCost" SortExpression="ProvvCost" />
|
||||
<asp:BoundField DataField="EECost" HeaderText="EECost" SortExpression="EECost" />
|
||||
<asp:BoundField DataField="GasCost" HeaderText="GasCost" SortExpression="GasCost" />
|
||||
<asp:BoundField DataField="DiesCost" HeaderText="DiesCost" SortExpression="DiesCost" />
|
||||
<asp:BoundField DataField="PackCost" HeaderText="PackCost" SortExpression="PackCost" />
|
||||
<asp:BoundField DataField="TranspCost" HeaderText="TranspCost" SortExpression="TranspCost" />
|
||||
<asp:BoundField DataField="SellCost01" HeaderText="SellCost01" SortExpression="SellCost01" />
|
||||
<asp:BoundField DataField="RefCost01" HeaderText="RefCost01" SortExpression="RefCost01" />
|
||||
<asp:BoundField DataField="SellCost04" HeaderText="SellCost04" SortExpression="SellCost04" />
|
||||
<asp:BoundField DataField="RefCost04" HeaderText="RefCost04" SortExpression="RefCost04" />
|
||||
<asp:BoundField DataField="WSR01" HeaderText="WSR01" SortExpression="WSR01" />
|
||||
<asp:BoundField DataField="MSR01" HeaderText="MSR01" SortExpression="MSR01" />
|
||||
<asp:BoundField DataField="NetProd01" HeaderText="NetProd01" SortExpression="NetProd01" />
|
||||
<asp:BoundField DataField="FC4UG01" HeaderText="FC4UG01" SortExpression="FC4UG01" />
|
||||
<asp:BoundField DataField="VC4UG01" HeaderText="VC4UG01" SortExpression="VC4UG01" />
|
||||
<asp:BoundField DataField="OH4UG01" HeaderText="OH4UG01" SortExpression="OH4UG01" />
|
||||
<asp:BoundField DataField="SC4UG01" HeaderText="SC4UG01" SortExpression="SC4UG01" />
|
||||
<asp:BoundField DataField="DSR" HeaderText="DSR" SortExpression="DSR" />
|
||||
<asp:BoundField DataField="NetProd04" HeaderText="NetProd04" SortExpression="NetProd04" />
|
||||
<asp:BoundField DataField="FC4UG04" HeaderText="FC4UG04" SortExpression="FC4UG04" />
|
||||
<asp:BoundField DataField="VC4UG04" HeaderText="VC4UG04" SortExpression="VC4UG04" />
|
||||
<asp:BoundField DataField="FVC" HeaderText="FVC" SortExpression="FVC" />
|
||||
<asp:BoundField DataField="Charge" HeaderText="Charge" SortExpression="Charge" />
|
||||
<asp:BoundField DataField="P_FVC" HeaderText="P_FVC" ReadOnly="True" SortExpression="P_FVC" />
|
||||
<asp:BoundField DataField="CPS" HeaderText="CPS" ReadOnly="True" SortExpression="CPS" />
|
||||
<asp:BoundField DataField="P_CPS" HeaderText="P_CPS" ReadOnly="True" SortExpression="P_CPS" />
|
||||
<asp:BoundField DataField="P_FC4UG04" HeaderText="P_FC4UG04" ReadOnly="True" SortExpression="P_FC4UG04" />
|
||||
<asp:BoundField DataField="NetMar" HeaderText="NetMar" ReadOnly="True" SortExpression="NetMar" />
|
||||
<asp:BoundField DataField="FCShield" HeaderText="FCShield" ReadOnly="True" SortExpression="FCShield" />
|
||||
<asp:BoundField DataField="PckSur" HeaderText="PckSur" ReadOnly="True" SortExpression="PckSur" />--%>
|
||||
<asp:TemplateField HeaderText="Quote" SortExpression="CodQuote">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select" Text="Select"></asp:LinkButton>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Bind("CodQuote") %>' />/<asp:Label ID="Label6" runat="server" Text='<%# Bind("QuoteRev") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="ClientName" HeaderText="Client" SortExpression="ClientName" />
|
||||
<asp:BoundField DataField="CodItem" HeaderText="Item" SortExpression="CodItem" />
|
||||
<asp:BoundField DataField="RawMat" HeaderText="Mat" SortExpression="RawMat" />
|
||||
<asp:BoundField DataField="BatchQty" HeaderText="Qta" SortExpression="BatchQty" />
|
||||
<asp:TemplateField SortExpression="RawMatFullCost">
|
||||
<HeaderTemplate>
|
||||
<asp:Label runat="server" ID="lblHeadRMFC" Text="RMFC" ToolTip="Raw Material Full Cost" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("RawMatFullCost", "{0:C3}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField SortExpression="FullCost">
|
||||
<HeaderTemplate>
|
||||
<asp:Label runat="server" ID="lblHeadFC" Text="FC" ToolTip="Full Cost" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Bind("FullCost", "{0:C3}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField SortExpression="MinPrice">
|
||||
<HeaderTemplate>
|
||||
<asp:Label runat="server" ID="lblHeadMP" Text="MP" ToolTip="Minimum Price" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Bind("MinPrice", "{0:C3}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField SortExpression="PriceOff">
|
||||
<HeaderTemplate>
|
||||
<asp:Label runat="server" ID="lblHeadPO" Text="PO" ToolTip="Price Offeres" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Bind("PriceOff", "{0:C3}") %>' CssClass='<%# priceVsCost(Eval("FullCost"),Eval("MinPrice"),Eval("PriceOff")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="QuoteType" HeaderText="QuoteType" ReadOnly="True" SortExpression="QuoteType" />
|
||||
<asp:BoundField DataField="CodQuote" HeaderText="CodQuote" ReadOnly="True" SortExpression="CodQuote" />
|
||||
<asp:BoundField DataField="QuoteRev" HeaderText="QuoteRev" ReadOnly="True" SortExpression="QuoteRev" />
|
||||
<asp:BoundField DataField="CodClient" HeaderText="CodClient" SortExpression="CodClient" />
|
||||
<asp:BoundField DataField="CodItem" HeaderText="CodItem" SortExpression="CodItem" />
|
||||
<asp:BoundField DataField="CodItemGroup" HeaderText="CodItemGroup" SortExpression="CodItemGroup" />
|
||||
<asp:BoundField DataField="RawMat" HeaderText="RawMat" SortExpression="RawMat" />
|
||||
<asp:BoundField DataField="UnitWeight" HeaderText="UnitWeight" SortExpression="UnitWeight" />
|
||||
<asp:BoundField DataField="BatchQty" HeaderText="BatchQty" SortExpression="BatchQty" />
|
||||
<asp:BoundField DataField="CodInco" HeaderText="CodInco" SortExpression="CodInco" />
|
||||
<asp:BoundField DataField="KeyAM" HeaderText="KeyAM" ReadOnly="True" SortExpression="KeyAM" />
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
|
||||
</Columns>
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
|
||||
<RowStyle BackColor="#EFF3FB" />
|
||||
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
</asp:GridView>
|
||||
<%--<asp:DetailsView ID="DetView" runat="server" Height="50px" Width="125px" DataSourceID="eds" AllowPaging="True" AutoGenerateRows="False" DataKeyNames="QuoteType,CodQuote,QuoteRev,NumP">
|
||||
<Fields>
|
||||
@@ -36,61 +142,11 @@
|
||||
<asp:BoundField DataField="Parameter" HeaderText="Parameter" SortExpression="Parameter" />
|
||||
</Fields>
|
||||
</asp:DetailsView>--%>
|
||||
<%--ConnectionString="name=Proxima_C2PEntities" DefaultContainerName="Proxima_C2PEntities" ContextTypeName="C2P_Data.C2P_mod"--%><asp:ObjectDataSource ID="odsQuotes" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_QuotesTableAdapters.QuoteListTableAdapter" UpdateMethod="Update">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_QuoteType" Type="String" />
|
||||
<asp:Parameter Name="Original_CodQuote" Type="Int64" />
|
||||
<asp:Parameter Name="Original_QuoteRev" Type="Int32" />
|
||||
<asp:Parameter Name="Original_CodClient" Type="String" />
|
||||
<asp:Parameter Name="Original_CodItem" Type="String" />
|
||||
<asp:Parameter Name="Original_CodItemGroup" Type="String" />
|
||||
<asp:Parameter Name="Original_RawMat" Type="String" />
|
||||
<asp:Parameter Name="Original_UnitWeight" Type="Decimal" />
|
||||
<asp:Parameter Name="Original_BatchQty" Type="Int32" />
|
||||
<asp:Parameter Name="Original_CodInco" Type="String" />
|
||||
<asp:Parameter Name="Original_KeyAM" Type="String" />
|
||||
<asp:Parameter Name="Original_Note" Type="String" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="QuoteType" Type="String" />
|
||||
<asp:Parameter Name="CodQuote" Type="Int64" />
|
||||
<asp:Parameter Name="QuoteRev" Type="Int32" />
|
||||
<asp:Parameter Name="CodClient" Type="String" />
|
||||
<asp:Parameter Name="CodItem" Type="String" />
|
||||
<asp:Parameter Name="CodItemGroup" Type="String" />
|
||||
<asp:Parameter Name="RawMat" Type="String" />
|
||||
<asp:Parameter Name="UnitWeight" Type="Decimal" />
|
||||
<asp:Parameter Name="BatchQty" Type="Int32" />
|
||||
<asp:Parameter Name="CodInco" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="CodClient" Type="String" />
|
||||
<asp:Parameter Name="CodItem" Type="String" />
|
||||
<asp:Parameter Name="CodItemGroup" Type="String" />
|
||||
<asp:Parameter Name="RawMat" Type="String" />
|
||||
<asp:Parameter Name="UnitWeight" Type="Decimal" />
|
||||
<asp:Parameter Name="BatchQty" Type="Int32" />
|
||||
<asp:Parameter Name="CodInco" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String" />
|
||||
<asp:Parameter Name="Original_QuoteType" Type="String" />
|
||||
<asp:Parameter Name="Original_CodQuote" Type="Int64" />
|
||||
<asp:Parameter Name="Original_QuoteRev" Type="Int32" />
|
||||
<asp:Parameter Name="Original_CodClient" Type="String" />
|
||||
<asp:Parameter Name="Original_CodItem" Type="String" />
|
||||
<asp:Parameter Name="Original_CodItemGroup" Type="String" />
|
||||
<asp:Parameter Name="Original_RawMat" Type="String" />
|
||||
<asp:Parameter Name="Original_UnitWeight" Type="Decimal" />
|
||||
<asp:Parameter Name="Original_BatchQty" Type="Int32" />
|
||||
<asp:Parameter Name="Original_CodInco" Type="String" />
|
||||
<asp:Parameter Name="Original_KeyAM" Type="String" />
|
||||
<asp:Parameter Name="Original_Note" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<%--ConnectionString="name=Proxima_C2PEntities" DefaultContainerName="Proxima_C2PEntities" ContextTypeName="C2P_Data.C2P_mod"--%><asp:ObjectDataSource ID="odsQuotes" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_QuotesTableAdapters.QuoteFull_QTableAdapter"></asp:ObjectDataSource>
|
||||
<br />
|
||||
|
||||
<asp:Label runat="server" ID="lblOut" Text="..." />
|
||||
</div>
|
||||
<div class="float-right">
|
||||
NEW
|
||||
<asp:Button runat="server" ID="btnNew" Text="NEW" />
|
||||
</div>
|
||||
|
||||
@@ -30,5 +30,40 @@ namespace C2P.WebUserControls
|
||||
int QuoteRev = Convert.ToInt16(grView.SelectedDataKey["QuoteRev"]);
|
||||
ricalcolaQuote(QuoteType, CodQuote, QuoteRev);
|
||||
}
|
||||
/// <summary>
|
||||
/// Calcola css dato valore prezzo offerto vs importi full cost e min price
|
||||
/// </summary>
|
||||
/// <param name="FullCost"></param>
|
||||
/// <param name="MinPrice"></param>
|
||||
/// <param name="PriceOff"></param>
|
||||
/// <returns></returns>
|
||||
public string priceVsCost(object _FullCost, object _MinPrice, object _PriceOff)
|
||||
{
|
||||
string answ = "";
|
||||
double FullCost = 0;
|
||||
double MinPrice = 0;
|
||||
double PriceOff = 0;
|
||||
try
|
||||
{
|
||||
FullCost = Convert.ToDouble(_FullCost);
|
||||
MinPrice = Convert.ToDouble(_MinPrice);
|
||||
PriceOff = Convert.ToDouble(_PriceOff);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (PriceOff > MinPrice)
|
||||
{
|
||||
answ = "allOk";
|
||||
}
|
||||
else if (PriceOff > FullCost)
|
||||
{
|
||||
answ = "warnOrange";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "warnRed";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,5 +47,14 @@ namespace C2P.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOut;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 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.Button btnNew;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user