260ccfd4ed
- rilettura sel squadre in setup - fix visualizzazione MatrOp Bug vari
216 lines
14 KiB
Plaintext
216 lines
14 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_Interventi.ascx.cs" Inherits="WebSCR.WebUserControls.mod_Interventi" %>
|
|
<%@ Register Src="~/WebUserControls/mod_selSquadre.ascx" TagPrefix="uc1" TagName="mod_selSquadre" %>
|
|
|
|
|
|
<div class="ui-grid-b ui-mini">
|
|
<div class="ui-block-a">
|
|
<div class="flLeft" style="font-size: 0.80em;">
|
|
<div data-role="controlgroup" data-type="horizontal" class="flLeft">
|
|
<asp:DropDownList runat="server" ID="ddlStato" AutoPostBack="True">
|
|
<asp:ListItem Text="PREVISTI" Value="PREVISTO"></asp:ListItem>
|
|
<asp:ListItem Text="IN CORSO" Value="INCORSO"></asp:ListItem>
|
|
<asp:ListItem Text="CONCLUSI" Value="CONCLUSO"></asp:ListItem>
|
|
<asp:ListItem Text="APERTI" Value="APERTO"></asp:ListItem>
|
|
<asp:ListItem Text="TUTTI" Value="*" Selected="True"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="flLeft" style="font-size: 0.70em;">
|
|
<asp:TextBox runat="server" ID="txtDataFrom" type="date" AutoPostBack="True" Width="10em" />
|
|
</div>
|
|
<div class="flLeft" style="font-size: 0.70em;">
|
|
<div class="ui-grid-d" style="text-align: center; margin: auto;">
|
|
<div class="ui-block-a">
|
|
<asp:LinkButton runat="server" ID="lbMinus5" CssClass="ui-btn ui-shadow ui-corner-all ui-btn-inline" OnClick="lbNumGg_Click" Text="-5" CommandArgument="-5" />
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<asp:LinkButton runat="server" ID="lbMinus" CssClass="ui-btn ui-shadow ui-corner-all ui-btn-inline" OnClick="lbNumGg_Click" Text="-1" CommandArgument="-1" />
|
|
</div>
|
|
<div class="ui-block-c">
|
|
<asp:TextBox runat="server" ID="txtNumGG" Text="20" OnTextChanged="txtNumGG_TextChanged" Width="3em" />
|
|
</div>
|
|
<div class="ui-block-d">
|
|
<asp:LinkButton runat="server" ID="lbPlus" CssClass="ui-btn ui-shadow ui-corner-all ui-btn-inline" OnClick="lbNumGg_Click" Text="+1" CommandArgument="1" />
|
|
</div>
|
|
<div class="ui-block-e">
|
|
<asp:LinkButton runat="server" ID="lbPlus5" CssClass="ui-btn ui-shadow ui-corner-all ui-btn-inline" OnClick="lbNumGg_Click" Text="+5" CommandArgument="5" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ui-block-b text-center">
|
|
<div class="flLeft" style="font-size: 0.80em; width: 80%;">
|
|
<asp:TextBox runat="server" type="search" name="password" ID="txtSearch" value="" placeholder="Ricerca Intervento (CLIENTE, DOCUMENTO)" AutoPostBack="true" />
|
|
</div>
|
|
<div class="flLeft" style="font-size: 0.80em; width: 20%;">
|
|
<div data-role="controlgroup" data-type="horizontal" class="flLeft">
|
|
<asp:DropDownList runat="server" ID="ddlRecAgeDd" AutoPostBack="True">
|
|
<asp:ListItem Text="OGGI" Value="0"></asp:ListItem>
|
|
<asp:ListItem Text="IERI" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="SETTIMANA" Value="7"></asp:ListItem>
|
|
<asp:ListItem Text="15 GG" Value="14"></asp:ListItem>
|
|
<asp:ListItem Text="30 GG" Value="30"></asp:ListItem>
|
|
<asp:ListItem Text="60 GG" Value="60"></asp:ListItem>
|
|
<asp:ListItem Text="TUTTI" Value="999" Selected="True"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ui-block-c" style="text-align: right; margin: auto;">
|
|
<uc1:mod_selSquadre runat="server" ID="mod_selSquadre" />
|
|
</div>
|
|
</div>
|
|
<div class="ui-mini noShadows">
|
|
<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: 20em; 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") %>' />
|
|
+
|
|
<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">
|
|
<HeaderTemplate>
|
|
<asp:Label ID="lblHeadSquadra" runat="server" Text="Squadra" Visible='<%# showSelSquadre %>'></asp:Label>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<div>
|
|
<asp:Label ID="lblDescrSquadra" runat="server" Text='<%# Bind("DescrSquadra") %>' Visible='<%# showSelSquadre %>'></asp:Label>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="op" SortExpression="NumOp" ItemStyle-HorizontalAlign="Center">
|
|
<HeaderTemplate>
|
|
<i class="fa fa-users fa-2x"></i>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label2" runat="server" Text='<%# Eval("NumOp") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</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>
|
|
<%--</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Indirizzo" SortExpression="Localita">
|
|
<ItemTemplate>--%>
|
|
<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="piano" SortExpression="PianoCons" ItemStyle-HorizontalAlign="Center">
|
|
<HeaderTemplate>
|
|
<i class="fa fa-building-o fa-2x"></i>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblPianoCons" runat="server" Text='<%# Eval("PianoCons") %>' />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="DOC / note" SortExpression="RifOC">
|
|
<ItemTemplate>
|
|
<div class="flLeft" style="font-size: 0.75em;">
|
|
<asp:Label ID="lblRifOC" runat="server" Text='<%# Eval("RifOC") %>' />
|
|
<br />
|
|
<asp:Label CssClass="flRight" Font-Size="0.9em" ForeColor="#5E5E5E" ID="lblDettImpegno" runat="server" Text='<%# Eval("DettImpegno") %>' />
|
|
</div>
|
|
<div class="flRight" style="font-size: 0.8em; color: #4f89ad;">
|
|
<asp:Label ID="lblNoteGen" runat="server" Text='<%# Eval("NoteGen") %>' />
|
|
</div>
|
|
<div class="flRight" style="font-size: 0.7em; color: #3f6d89;">
|
|
<asp:Label ID="lblNoteTec" runat="server" Text='<%# Eval("NoteInt") %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Aperto" SortExpression="IntAperto" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Eval("IntAperto") %>' CssClass="ui-state-disabled" />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Usato" SortExpression="RitUsato" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:DropDownList runat="server" ID="ddlRitUs" DataSourceID="odsRitUs" DataTextField="label" DataValueField="value" SelectedValue='<%# Eval("RitUsato") %>' CssClass="ui-state-disabled"></asp:DropDownList>
|
|
<asp:ObjectDataSource ID="odsRitUs" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
|
<SelectParameters>
|
|
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
|
<asp:Parameter DefaultValue="RitUsato" Name="FieldName" Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Asc." SortExpression="Ascensore" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Eval("Ascensore") %>' CssClass="ui-state-disabled" />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</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="getBySearch" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" FilterExpression="CodSquadra LIKE '%{0}%' OR DescrSquadra LIKE '%{0}%' OR CodCliente LIKE '%{0}%' OR RagSoc LIKE '%{0}%' OR RifOC LIKE '%{0}%' " OldValuesParameterFormatString="Original_{0}">
|
|
<FilterParameters>
|
|
<asp:ControlParameter ControlID="txtSearch" DefaultValue="*" Type="string" />
|
|
</FilterParameters>
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="ddlStato" Name="Stato" PropertyName="SelectedValue" Type="String" />
|
|
<asp:ControlParameter ControlID="txtDataFrom" Name="DataRif" PropertyName="Text" Type="String" />
|
|
<asp:ControlParameter ControlID="txtNumGg" Name="NumGg" PropertyName="Text" Type="String" />
|
|
<asp:SessionParameter Name="CodSquadra" Type="String" SessionField="elencoSquadre" DefaultValue="*" />
|
|
<asp:ControlParameter ControlID="ddlRecAgeDd" Name="RecAgeDd" PropertyName="SelectedValue" Type="Int32" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|