Files
MoonPro.net/MP-SITE/excelExportEventi.aspx
2020-09-11 14:57:14 +02:00

45 lines
2.6 KiB
Plaintext

<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" EnableEventValidation="false" Inherits="MP_SITE.excelExportEventi" Title="Untitled Page" CodeBehind="excelExportEventi.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:GridView ID="gvEventi" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="IdxMacchina,InizioStato" DataSourceID="ods_EventList">
<Columns>
<asp:TemplateField HeaderText="Macchina">
<ItemTemplate>
<asp:Label ID="lblMacchina" runat="server" Text='<%# macchinaDaIdx(Eval("IdxMacchina")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Invio messaggio">
<ItemTemplate>
<asp:Label ID="lblInizioStato" runat="server" Text='<%# Eval("InizioStato") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Evento">
<ItemTemplate>
<asp:Label ID="lblEvento" runat="server" Text='<%# tipoDaIdx(Eval("IdxTipo")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Articolo">
<ItemTemplate>
<asp:Label ID="lblCodArticolo" runat="server" Text='<%# Eval("CodArticolo") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="pallet" HeaderText="Pallet" />
<asp:TemplateField HeaderText="Operatore">
<ItemTemplate>
<asp:Label ID="lblOperatore" runat="server" Text='<%# operatoreDaMatr(Eval("MatrOpr")) %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods_EventList" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetDataFiltered" TypeName="MapoDb.DS_applicazioneTableAdapters.EventListTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="1" Name="IdxMacchina" SessionField="IdxMacchina"
Type="String" />
<asp:SessionParameter DefaultValue="DateTime.Now.AddWeeks(-1)" Name="inizio" SessionField="_inizio"
Type="DateTime" />
<asp:SessionParameter DefaultValue="DateTime.Now" Name="fine" SessionField="_fine"
Type="DateTime" />
</SelectParameters>
</asp:ObjectDataSource>
</asp:Content>