6249838a36
completato porting grafico pagina Odette a bootstrap inserito componente gestione numero pagine
132 lines
8.0 KiB
Plaintext
132 lines
8.0 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_odette.ascx.cs"
|
|
Inherits="GMW.WebUserControls.mod_odette" %>
|
|
<%@ Register Src="mod_viewOdette.ascx" TagName="mod_viewOdette" TagPrefix="uc1" %>
|
|
<%@ Register Src="mod_selPeriodo.ascx" TagName="mod_selPeriodo" TagPrefix="uc2" %>
|
|
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc3" %>
|
|
<%@ Register Src="mod_bolle4odette.ascx" TagName="mod_bolle4odette" TagPrefix="uc4" %>
|
|
<%@ Register Src="mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc5" %>
|
|
<% if (false)
|
|
{ %>
|
|
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
|
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
|
<% } %>
|
|
|
|
<div class="container-fluid" style="background-color: #cdcdcd; padding-top: 2px; padding-bottom: 2px;">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-8 col-sm-offset-2 text-center">
|
|
<uc2:mod_selPeriodo ID="mod_selPeriodo1" runat="server" />
|
|
</div>
|
|
<div class="col-sm-2">
|
|
<uc5:mod_righePag ID="mod_righePag1" runat="server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container-fluid bg-success" style="padding-top: 2px; padding-bottom: 2px;">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-12 text-center">
|
|
<uc4:mod_bolle4odette ID="mod_bolle4odette1" runat="server" Visible="false" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container" style="padding-top: 2px; padding-bottom: 2px;">
|
|
<div class="row">
|
|
<div class="col-sm-6" style="font-size: 8pt;">
|
|
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
|
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
|
DataKeyNames="CodLista" DataSourceID="ods" OnRowUpdating="grView_RowUpdating">
|
|
<RowStyle CssClass="ctrRowStyle" />
|
|
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
|
<EditRowStyle CssClass="ctrEditRowStyle" />
|
|
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
|
<FooterStyle CssClass="ctrFooter" />
|
|
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
|
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
|
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
|
<EmptyDataTemplate>
|
|
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
|
<HeaderTemplate>
|
|
<asp:LinkButton ID="lbtReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default btn-xs" Visible="true"><i class="glyphicon glyphicon-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
|
ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_m.png" />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Destinatario" SortExpression="DestinatarioDescrizione">
|
|
<ItemTemplate>
|
|
<div style="padding: 2px;">
|
|
<div style="float: left;">
|
|
<asp:Image runat="server" ID="imgCodTipoLista" ImageUrl='<%# pathImgTipo(Eval("CodTipoLista")) %>'
|
|
ToolTip='<%# tooltipTipo(Eval("CodTipoLista")) %>' />
|
|
</div>
|
|
<div style="float: left;">
|
|
<%--<asp:Label ID="lblDestinatario" runat="server" Text='<%# Eval("Destinatario","[{0}]") %>' />--%>
|
|
<asp:Label ID="lblDestinatarioDescrizione" runat="server" Text='<%# Eval("DestinatarioDescrizione","{0}") %>' />
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="CodLista" SortExpression="CodLista">
|
|
<ItemTemplate>
|
|
<div>
|
|
<asp:Label ID="lblCodLista" runat="server" Text='<%# Eval("CodLista") %>' />
|
|
<div style="font-size: smaller;">
|
|
<asp:Label ID="lblDataCreaz" runat="server" Text='<%# Eval("DataCreaz","{0:dd/MM/yyyy HH:mm}") %>' />
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
|
<ItemTemplate>
|
|
<div>
|
|
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
|
</div>
|
|
<div style="float: right; font-weight: bold;">
|
|
<asp:Label ID="lblPrelevati" runat="server" Text='<%# Eval("Prelevato","{0:0}") %>' />
|
|
<asp:Label ID="lblTotale" runat="server" Text='<%# Eval("QtaTot","/ {0:0}") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Odette">
|
|
<ItemTemplate>
|
|
<div>
|
|
<asp:Label ID="lblOdetteTot" runat="server" Text='<%# StatoOdette(Eval("CodLista")) %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />
|
|
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
|
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
|
SelectMethod="getByFilt" TypeName="GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter"
|
|
OnInserting="recuperaFooter" FilterExpression="(CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%') AND CodTipoLista LIKE '%Odet%' AND CodStatoLista = 4 "
|
|
OnInserted="ods_Updated" OnUpdated="ods_Updated" DeleteMethod="DeleteQuery" OnDeleted="ods_Updated">
|
|
<FilterParameters>
|
|
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
|
</FilterParameters>
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="Original_CodLista" Type="String" />
|
|
</DeleteParameters>
|
|
<SelectParameters>
|
|
<asp:SessionParameter Name="DataFrom" SessionField="_inizio" Type="DateTime" />
|
|
<asp:SessionParameter Name="DataTo" SessionField="_fine" Type="DateTime" />
|
|
<asp:Parameter Name="classifArticolo" DefaultValue="*" Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<uc1:mod_viewOdette ID="mod_viewOdette1" runat="server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|