Files
WebSCR/WebSCR/WebUserControls/mod_DocIntCli.ascx
T
2015-05-22 17:29:09 +02:00

139 lines
10 KiB
Plaintext

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_DocIntCli.ascx.cs" Inherits="WebSCR.WebUserControls.mod_DocIntCli" %>
<asp:Button runat="server" ID="btnChiudi" Text="Chiudi" OnClick="btnChiudi_Click" />
<div class="ui-grid-a" style="padding: 2px;">
<div class="ui-block-a ui-shadow ui-corner-all" style="border: 1px solid #696969; background-color: #ABABEF;">
<div class="ui-mini">
<asp:GridView ID="grViewDoc" runat="server" DataSourceID="odsDoc" AutoGenerateColumns="False" DataKeyNames="NUMERO" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" AllowPaging="True" OnRowCommand="grView_RowCommand" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<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" HorizontalAlign="Left" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="DOC" SortExpression="NUMERO">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# string.Format("<b>{0}{1}</b><br/><sub>{2}</sub>",Eval("TIPOPROTOC"), Eval("NUMEPROTOC"), Eval("DATAPROTOC")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Doc rif." SortExpression="DATARIFERI">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# string.Format("<b>{0}{1}</b><br/><sub>{2}</sub>",Eval("TIPORIFERI"), Eval("NUMERIFERI"), Eval("DATARIFERI")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Destinatario" SortExpression="RGSOC_DEST">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# string.Format("<b>{0}</b><br/><sub>{1} {2} {3}</sub>",Eval("RGSOC_DEST"), Eval("INDIR_DEST"), Eval("CAP_DEST"), Eval("LOCAL_DEST")) %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="odsDoc" runat="server" SelectMethod="getByCodCliente" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.DB2_DOCSTableAdapter" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:SessionParameter SessionField="CodCliente" Name="CodCliente" Type="String" DefaultValue="" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
<div class="ui-block-b ui-shadow ui-corner-all" style="border: 1px solid #696969; background-color: #ABEFAB;">
<div class="ui-mini">
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="IdxImpegno" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" AllowPaging="True" OnRowCommand="grView_RowCommand" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<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" HorizontalAlign="Left" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<EmptyDataTemplate>
Nessun risultato
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="Appuntamento" SortExpression="DataOra">
<ItemTemplate>
<div style="clear: both; width: 240px;">
<div class="flLeft">
<asp:Label ID="lblDataOra" runat="server" Text='<%# Eval("DataOra","{0:dd/MM/yy HH:mm}") %>' ForeColor="#ACACAC" Visible='<%# !notNull(Eval("InizioInt")) %>' />
<asp:Label ID="lblInizioInt" runat="server" Text='<%# Eval("InizioInt","<b>{0:dd/MM/yy HH:mm}</b>") %>' ForeColor="#333333" Visible='<%# notNull(Eval("InizioInt")) %>' />
</div>
<div class="flRight" style="color: #ACACAC;">
<asp:Label ID="lblFinePrev" runat="server" Text='<%# Eval("FinePrev","{0:dd/MM/yy HH:mm}") %>' ForeColor="#ACACAC" Visible='<%# !notNull(Eval("FineInt")) %>' />
<asp:Label ID="lblFineInt" runat="server" Text='<%# Eval("FineInt","<b>{0:dd/MM/yy HH:mm}</b>") %>' ForeColor="#333333" Visible='<%# notNull(Eval("FineInt")) %>' />
</div>
<div class="text-center" style="padding: 0px 2px;">
<div style="font-size: 0.8em; color: #ACACAC; font-style: italic;">
<asp:Label ID="lblTipoOra" runat="server" Text='<%# Eval("TipoOrario") %>' />
</div>
</div>
</div>
<div style="clear: both; width: 240px; font-size: 0.8em; color: #ACACAC;">
<div>
<div class="flRight">
<i class="fa fa-truck"></i>
<asp:Label ID="lblMinViaggio" runat="server" Text='<%# Eval("MinViaggio","{0} min") %>' />
&nbsp; + &nbsp;
<asp:Label ID="lblMinTotCons" runat="server" Text='<%# Eval("MinTotCons","{0} min") %>' />
<i class="fa fa-wrench"></i>
</div>
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Squadra" SortExpression="DescrSquadra">
<ItemTemplate>
<div>
<asp:Label ID="lblDescrSquadra" runat="server" Text='<%# Bind("DescrSquadra") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cliente" SortExpression="RagSoc">
<ItemTemplate>
<div class="flLeft" style="font-size: 0.75em;">
<asp:Label CssClass="tStrong flRight" ID="CognomeLabel" runat="server" Text='<%# Eval("RagSoc") %>' />
</div>
<div class="flRight" style="font-size: 0.8em;">
<asp:Label CssClass="flRight" ID="IndirLabel" runat="server" Text='<%# Eval("Indir") %>' />
<br />
<asp:Label CssClass="flRight" ID="CapLabel" runat="server" Text='<%# string.Format("{0} - {1} ({2})", Eval("Cap"), Eval("Localita"), Eval("Prov")) %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DOC / note" SortExpression="RifOC">
<ItemTemplate>
<asp:Label ID="lblRifOC" runat="server" Text='<%# Eval("RifOC") %>' />
<div class="flRight" style="font-size: 0.8em; color: #ACACAC;">
<asp:Label ID="lblNoteGen" runat="server" Text='<%# Eval("NoteGen") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<div class="ui-nodisc-icon ui-alt-icon" style="white-space: nowrap;">
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" CommandArgument="select" Text="list" ToolTip="Mostra Intervento" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-search ui-btn-icon-notext ui-btn-inline" />
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getByCli" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:SessionParameter SessionField="CodCliente" Name="CodCliente" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
</div>