98 lines
6.3 KiB
Plaintext
98 lines
6.3 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettInt.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettInt" %>
|
|
<div class="ui-mini noShadows">
|
|
<div class="flLeft div_2_3 ui-corner-all">
|
|
<div class="ui-field-contain" style="visibility: <%: isVisible %>; height: <%: visHeight %>;">
|
|
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="font-size: 0.9em; width: 90%;">
|
|
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna"></asp:DropDownList>
|
|
<asp:LinkButton ID="lbAdd" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" Text="Aggiungi" OnClick="lbAdd_Click" Visible='<%# hasMatricola %>' />
|
|
</div>
|
|
</div>
|
|
<asp:ObjectDataSource runat="server" ID="odsTipoCons" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter" />
|
|
|
|
</div>
|
|
<div class="flLeft div_1_3 ui-corner-all">
|
|
<asp:Label runat="server" ID="lblWarning" Text="..." ForeColor="Red" />
|
|
</div>
|
|
</div>
|
|
|
|
<asp:GridView ID="grViewDettInt" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxImpegno,NumCons" DataSourceID="odsDettInt" Width="100%">
|
|
<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>
|
|
Nessuna Attivià
|
|
</EmptyDataTemplate>
|
|
<Columns>
|
|
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
|
<HeaderTemplate>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<div class="ui-nodisc-icon ui-alt-icon">
|
|
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Edit" Visible='<%# !disableEdit %>' />
|
|
</div>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:LinkButton ID="lbUpdate" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="update" CommandName="Update" Text="Update" />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Attività" SortExpression="DescrConsegna">
|
|
<EditItemTemplate>
|
|
<div style="font-size: 0.9em;">
|
|
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna" SelectedValue='<%# Bind("CodConsegna") %>'></asp:DropDownList>
|
|
<div style="color: #DEDEDE;">
|
|
note:
|
|
<asp:TextBox ID="txtNote" runat="server" Text='<%# Bind("Note") %>' TextMode="MultiLine" />
|
|
</div>
|
|
</div>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<div style="font-size: 0.9em;">
|
|
<div class="flLeft">
|
|
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DescrConsegna","<b>{0}</b>") %>' />
|
|
</div>
|
|
<div class="flRight">
|
|
<asp:Label ID="Label2" runat="server" Text='<%# Eval("NumOp","<b>{0}</b> op") %>' />,
|
|
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Minuti","<b>{0}</b> min") %>' />
|
|
</div>
|
|
<div style="clear: both; font-size: 0.9em; color: #696969;">
|
|
note:
|
|
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Note") %>' />
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="lbDelete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="delete" CommandName="Delete" Text="Delete" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il record?')" Visible='<%# !disableEdit %>' />
|
|
</ItemTemplate>
|
|
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
<asp:ObjectDataSource ID="odsDettInt" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByImpegno" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter" DeleteMethod="deleteQuery" OnDeleted="odsDettInt_Deleted" OnUpdated="odsDettInt_Updated" UpdateMethod="updateQuery" OnUpdating="odsDettInt_Updating">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
|
<asp:Parameter Name="Original_NumCons" Type="Int32" />
|
|
</DeleteParameters>
|
|
<SelectParameters>
|
|
<asp:QueryStringParameter DefaultValue="0" Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
|
|
</SelectParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
|
<asp:Parameter Name="Original_NumCons" Type="Int32" />
|
|
<asp:Parameter Name="CodConsegna" Type="String" />
|
|
<asp:Parameter Name="Note" Type="String" />
|
|
<asp:SessionParameter SessionField="matrOp" Name="MatrOp" Type="String" />
|
|
</UpdateParameters>
|
|
</asp:ObjectDataSource>
|