131 lines
6.8 KiB
Plaintext
131 lines
6.8 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_grid.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_grid" %>
|
|
|
|
<asp:GridView runat="server" ID="grViewElRich" AutoGenerateColumns="False" DataKeyNames="idxRichiesta" DataSourceID="odsElRich" AllowPaging="True" Width="100%" AllowSorting="True" PageSize="5" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table table-responsive table-striped" OnRowCancelingEdit="grViewElRich_RowCancelingEdit" OnRowEditing="grViewElRich_RowEditing" OnSelectedIndexChanging="grViewElRich_SelectedIndexChanging">
|
|
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
|
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
|
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
|
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
|
<EditRowStyle BackColor="#BBDDFF" />
|
|
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
|
<EmptyDataTemplate>
|
|
No record found
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
<asp:LinkButton ID="lbtReset" runat="server" CausesValidation="False" OnClick="lbtReset_Click"><i class="fa fa-sync-alt"></i></asp:LinkButton>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select"><i class="fa fa-search"></i></asp:LinkButton>
|
|
<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit"><i class="fa fa-edit"></i></asp:LinkButton>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:LinkButton ID="lbtUpdate" runat="server" CausesValidation="False" CommandName="Update"><i class="fa fa-check text-success"></i></asp:LinkButton>
|
|
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False" CommandName="Cancel"><i class="fa fa-ban text-danger"></i></asp:LinkButton>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Data" SortExpression="dataRich">
|
|
<ItemTemplate>
|
|
<asp:Label ID="Label3" runat="server" Text='<%# Eval("dataRich","{0:dd.MM.yyyy}") %>' />
|
|
<br />
|
|
<asp:Label ID="Label4" runat="server" Text='<%# Eval("dataRich","{0:ddd HH:mm}") %>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Richiesta">
|
|
<ItemTemplate>
|
|
<%--<div class="d-flex bd-highlight">
|
|
<div class="p-2 flex-grow-1 bd-highlight">Flex item</div>
|
|
<div class="p-2 bd-highlight">Flex item</div>
|
|
<div class="p-2 bd-highlight">Third flex item</div>
|
|
</div>--%>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-6 text-info">
|
|
<i class="far fa-building"></i>
|
|
<asp:Label ID="Label5" runat="server" Text='<%# Eval("nom_cond") %>' />
|
|
</div>
|
|
<div class="col-6 text-right text-warning">
|
|
<asp:Label ID="Label6" runat="server" Text='<%# Eval("cod_fornitore") %>' />
|
|
<i class="fas fa-industry"></i>
|
|
</div>
|
|
<div class="col-6 text-secondary small">
|
|
<i class="fas fa-phone"></i>
|
|
<asp:Label ID="Label9" runat="server" Text='<%# Eval("telContatto") %>' />
|
|
(<asp:Label ID="Label7" runat="server" Text='<%# Eval("genContatto") %>' />)
|
|
</div>
|
|
<div class="col-6 text-secondary text-right small">
|
|
<asp:Label ID="Label8" runat="server" Text='<%# Eval("collaboratore") %>' />
|
|
<i class="far fa-user"></i>
|
|
</div>
|
|
<div class="col-12">
|
|
<i class="far fa-bell"></i>
|
|
<asp:Label ID="lblFullText" runat="server" CssClass="small" Text='<%# Eval("messaggio") %>' />
|
|
</div>
|
|
<div class="col-12 text-warning">
|
|
<i class="far fa-comment"></i>
|
|
<asp:Label ID="lblNote" runat="server" CssClass="small" Text='<%# Eval("note") %>' />
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<div class="row">
|
|
<div class="col-6 text-info">
|
|
<i class="far fa-building"></i>
|
|
<asp:Label ID="Label5" runat="server" Text='<%# Eval("nom_cond") %>' />
|
|
</div>
|
|
<div class="col-6 text-right text-warning">
|
|
<asp:Label ID="Label6" runat="server" Text='<%# Eval("cod_fornitore") %>' />
|
|
<i class="fas fa-industry"></i>
|
|
</div>
|
|
<div class="col-6 text-secondary small">
|
|
<i class="fas fa-phone"></i>
|
|
<asp:Label ID="Label9" runat="server" Text='<%# Eval("telContatto") %>' />
|
|
(<asp:Label ID="Label7" runat="server" Text='<%# Eval("genContatto") %>' />)
|
|
</div>
|
|
<div class="col-6 text-secondary text-right small">
|
|
<asp:Label ID="Label8" runat="server" Text='<%# Eval("collaboratore") %>' />
|
|
<i class="far fa-user"></i>
|
|
</div>
|
|
<div class="col-12 small">
|
|
<i class="far fa-bell"></i>Messaggio
|
|
<asp:TextBox ID="txtMessaggio" runat="server" CssClass="form-control" Width="100%" Text='<%# Bind("messaggio") %>' Height="10em" TextMode="MultiLine" />
|
|
</div>
|
|
<div class="col-12 text-warning small">
|
|
<i class="far fa-comment"></i>Note
|
|
<asp:TextBox ID="lblNote" runat="server" CssClass="form-control" Text='<%# Bind("note") %>' Height="5em" TextMode="MultiLine" />
|
|
</div>
|
|
</div>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Stato" SortExpression="idxStato">
|
|
<ItemTemplate>
|
|
<div class="text-center">
|
|
<i class='<%# Eval("cssStato") %>'></i>
|
|
<br />
|
|
<asp:Label ID="Label1" runat="server" Text='<%# Eval("stato") %>'></asp:Label>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource runat="server" ID="odsElRich" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByCondStato" TypeName="Data.DS_appTableAdapters.ElencolRichTableAdapter" UpdateMethod="UpdateText">
|
|
<SelectParameters>
|
|
<asp:SessionParameter DefaultValue="1" Name="idxAmm" SessionField="idxAmm" Type="Int32" />
|
|
<asp:ControlParameter ControlID="hfCondominio" DefaultValue="0" Name="idxCond" PropertyName="Value" Type="Int32" />
|
|
<asp:ControlParameter ControlID="hfStatoMin" DefaultValue="0" Name="minStato" PropertyName="Value" Type="Int32" />
|
|
<asp:ControlParameter ControlID="hfStatoMax" DefaultValue="200" Name="maxStato" PropertyName="Value" Type="Int32" />
|
|
</SelectParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="Original_idxRichiesta" Type="Int32" />
|
|
<asp:Parameter Name="messaggio" Type="String" />
|
|
<asp:Parameter Name="note" Type="String" />
|
|
</UpdateParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:HiddenField runat="server" ID="hfCondominio" />
|
|
<asp:HiddenField runat="server" ID="hfStatoMin" />
|
|
<asp:HiddenField runat="server" ID="hfStatoMax" />
|
|
|
|
|
|
|