116 lines
7.3 KiB
Plaintext
116 lines
7.3 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_odette.ascx.cs"
|
|
Inherits="GMW.WebUserControls.mod_odette" %>
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
|
<%@ Register Src="mod_viewOdette.ascx" TagName="mod_viewOdette" TagPrefix="uc1" %>
|
|
<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %>
|
|
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc3" %>
|
|
<%@ Register Src="mod_bolle4odette.ascx" TagName="mod_bolle4odette" TagPrefix="uc4" %>
|
|
<table cellpadding="0" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td colspan="2">
|
|
<div class="filtro_1" style="white-space: nowrap; height: 28px; padding: 2px;">
|
|
<div style="float: left;">
|
|
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="filtro_2" style="white-space: nowrap;">
|
|
<uc4:mod_bolle4odette ID="mod_bolle4odette1" runat="server" Visible="false" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" align="left">
|
|
<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="ctrRowStyleRed" />
|
|
<AlternatingRowStyle CssClass="ctrAltRowStyleRed" />
|
|
<EditRowStyle CssClass="ctrEditRowStyleRed" />
|
|
<SelectedRowStyle CssClass="ctrSelRowStyleRed" />
|
|
<FooterStyle CssClass="ctrFooterRed" />
|
|
<PagerStyle CssClass="ctrHeaderPagerRed" ForeColor="White" HorizontalAlign="Center" />
|
|
<HeaderStyle CssClass="ctrHeaderPagerRed" ForeColor="White" Font-Bold="True" />
|
|
<EmptyDataRowStyle CssClass="ctrRowStyleRed" />
|
|
<EmptyDataTemplate>
|
|
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
|
<HeaderTemplate>
|
|
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
|
Visible="true" />
|
|
</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="txtMini" />
|
|
<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 = '04-OdetSP' 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" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</td>
|
|
<td valign="top" align="left">
|
|
<uc1:mod_viewOdette ID="mod_viewOdette1" runat="server" />
|
|
</td>
|
|
</tr>
|
|
</table>
|