129 lines
9.9 KiB
Plaintext
129 lines
9.9 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_adminOrario.ascx.cs" Inherits="GPW.WebUserControls.mod_adminOrario" %>
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
|
<% if (false)
|
|
{ %>
|
|
<link href="~/css/Style.css" rel="stylesheet" type="text/css" />
|
|
<% } %>
|
|
<div class="fontPiccolo">
|
|
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="codOrario" DataSourceID="ods" ForeColor="#333333" GridLines="None" Width="100%" OnDataBound="grView_DataBound">
|
|
<SortedAscendingCellStyle CssClass="sortAscCell" />
|
|
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
|
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
|
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
|
<AlternatingRowStyle CssClass="alternatingRowStyle" />
|
|
<Columns>
|
|
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
|
|
<ItemTemplate>
|
|
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_s.png" />
|
|
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>' ImageUrl="~/images/edit_s.png" />
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ToolTip='<%# traduci("Update")%>' ImageUrl="~/images/apply_s.png" />
|
|
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip='<%# traduci("Cancel") %>' ImageUrl="~/images/cancel_s.png" />
|
|
</EditItemTemplate>
|
|
<HeaderTemplate>
|
|
<asp:ImageButton ID="imgBtnReset" runat="server" ToolTip='<%# traduci("Reset") %>' CausesValidation="False" OnClick="btnReset_Click" ImageUrl="~/images/reload_m.png" Visible="true" />
|
|
</HeaderTemplate>
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="codOrario" HeaderText="cod" SortExpression="codOrario" ControlStyle-Width="7em" />
|
|
<asp:BoundField DataField="descOrario" HeaderText="descrizione" SortExpression="descOrario" ControlStyle-Width="21em" />
|
|
<asp:BoundField DataField="oreLun" HeaderText="Lun" SortExpression="oreLun" DataFormatString="{0:0.##}" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oreMar" HeaderText="Mar" SortExpression="oreMar" DataFormatString="{0:0.##}" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oreMer" HeaderText="Mer" SortExpression="oreMer" DataFormatString="{0:0.##}" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oreGio" HeaderText="Gio" SortExpression="oreGio" DataFormatString="{0:0.##}" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oreVen" HeaderText="Ven" SortExpression="oreVen" DataFormatString="{0:0.##}" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oreSab" HeaderText="Sab" SortExpression="oreSab" DataFormatString="{0:0.##}" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oreDom" HeaderText="Dom" SortExpression="oreDom" DataFormatString="{0:0.##}" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oreOrdSett" HeaderText="Ordinarie" SortExpression="oreOrdSett" DataFormatString="{0:0.##}" ControlStyle-Width="2em" />
|
|
<asp:BoundField DataField="oreStraordAss" HeaderText="Straordinarie" SortExpression="oreStraordAss" DataFormatString="{0:0.##}" ControlStyle-Width="2em" />
|
|
<asp:CheckBoxField DataField="autoCompOreOrd" HeaderText="autoCompOreOrd" SortExpression="autoCompOreOrd" ControlStyle-Width="1em" />
|
|
<asp:BoundField DataField="oraInizio_1" HeaderText="Inizio_1" SortExpression="oraInizio_1" ControlStyle-Width="4em" />
|
|
<asp:BoundField DataField="oraFine_1" HeaderText="Fine_1" SortExpression="oraFine_1" ControlStyle-Width="4em" />
|
|
<asp:BoundField DataField="oraInizio_2" HeaderText="Inizio_2" SortExpression="oraInizio_2" ControlStyle-Width="4em" />
|
|
<asp:BoundField DataField="oraFine_2" HeaderText="Fine_2" SortExpression="oraFine_2" ControlStyle-Width="4em" />
|
|
<asp:BoundField DataField="oraInizio_3" HeaderText="Inizio_3" SortExpression="oraInizio_3" ControlStyle-Width="4em" />
|
|
<asp:BoundField DataField="oraFine_3" HeaderText="Fine_3" SortExpression="oraFine_3" ControlStyle-Width="4em" />
|
|
<asp:TemplateField ShowHeader="False">
|
|
<ItemTemplate>
|
|
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandArgument='<%# Eval("codOrario") %>' CommandName="Delete" ImageUrl="~/images/elimina_s.png" ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("codOrario")) %>' />
|
|
<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="imgDelete">
|
|
</asp:ConfirmButtonExtender>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update" ImageUrl="~/images/apply_s.png" ToolTip='<%# traduci("Update")%>' />
|
|
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="~/images/cancel_s.png" ToolTip='<%# traduci("Cancel") %>' />
|
|
</EditItemTemplate>
|
|
<HeaderTemplate>
|
|
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' Visible='<%# chkLicOk %>' CssClass="btnNew" />
|
|
</HeaderTemplate>
|
|
<ItemStyle HorizontalAlign="Center" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<EditRowStyle CssClass="editRowStyle" />
|
|
<FooterStyle CssClass="footerStyle" ForeColor="White" />
|
|
<HeaderStyle CssClass="headerStyle" ForeColor="White" />
|
|
<PagerStyle CssClass="pagerStyle" ForeColor="White" />
|
|
<RowStyle CssClass="rowStyle" />
|
|
<SelectedRowStyle CssClass="selectedRowStyle" ForeColor="#333333" />
|
|
<SortedAscendingCellStyle CssClass="sortAscCell"></SortedAscendingCellStyle>
|
|
<SortedAscendingHeaderStyle CssClass="sortAscHead"></SortedAscendingHeaderStyle>
|
|
<SortedDescendingCellStyle CssClass="sortDescCell"></SortedDescendingCellStyle>
|
|
<SortedDescendingHeaderStyle CssClass="sortDescHead"></SortedDescendingHeaderStyle>
|
|
</asp:GridView>
|
|
<asp:ObjectDataSource ID="ods" runat="server" OnInserting="recuperaFooter" DeleteMethod="deleteQuery"
|
|
InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
|
|
TypeName="GPW_data.DS_ApplicazioneTableAdapters.AnagOrariTableAdapter" UpdateMethod="updateQuery"
|
|
FilterExpression=" (RagSociale like '%{0}%') OR (indirizzo like '%{0}%') OR (citta like '%{0}%') OR (url like '%{0}%') OR (email like '%{0}%') OR (nota like '%{0}%') "
|
|
onupdating="ods_Updating">
|
|
<FilterParameters>
|
|
<asp:SessionParameter SessionField="valoreCercato" Type="String" />
|
|
</FilterParameters>
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="Original_codOrario" Type="String" />
|
|
</DeleteParameters>
|
|
<InsertParameters>
|
|
<asp:Parameter Name="codOrario" Type="String" />
|
|
<asp:Parameter Name="descOrario" Type="String" />
|
|
<asp:Parameter Name="oreOrdSett" Type="Double" />
|
|
<asp:Parameter Name="oreStraordAss" Type="Double" />
|
|
<asp:Parameter Name="autoCompOreOrd" Type="Boolean" />
|
|
<asp:Parameter Name="oreLun" Type="Double" />
|
|
<asp:Parameter Name="oreMar" Type="Double" />
|
|
<asp:Parameter Name="oreMer" Type="Double" />
|
|
<asp:Parameter Name="oreGio" Type="Double" />
|
|
<asp:Parameter Name="oreVen" Type="Double" />
|
|
<asp:Parameter Name="oreSab" Type="Double" />
|
|
<asp:Parameter Name="oreDom" Type="Double" />
|
|
<asp:Parameter DbType="Time" Name="oraInizio_1" />
|
|
<asp:Parameter DbType="Time" Name="oraFine_1" />
|
|
<asp:Parameter DbType="Time" Name="oraInizio_2" />
|
|
<asp:Parameter DbType="Time" Name="oraFine_2" />
|
|
<asp:Parameter DbType="Time" Name="oraInizio_3" />
|
|
<asp:Parameter DbType="Time" Name="oraFine_3" />
|
|
</InsertParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="codOrario" Type="String" />
|
|
<asp:Parameter Name="descOrario" Type="String" />
|
|
<asp:Parameter Name="oreOrdSett" Type="Double" />
|
|
<asp:Parameter Name="oreStraordAss" Type="Double" />
|
|
<asp:Parameter Name="autoCompOreOrd" Type="Boolean" />
|
|
<asp:Parameter Name="oreLun" Type="Double" />
|
|
<asp:Parameter Name="oreMar" Type="Double" />
|
|
<asp:Parameter Name="oreMer" Type="Double" />
|
|
<asp:Parameter Name="oreGio" Type="Double" />
|
|
<asp:Parameter Name="oreVen" Type="Double" />
|
|
<asp:Parameter Name="oreSab" Type="Double" />
|
|
<asp:Parameter Name="oreDom" Type="Double" />
|
|
<asp:Parameter Name="oraInizio_1" DbType="Time" />
|
|
<asp:Parameter DbType="Time" Name="oraFine_1" />
|
|
<asp:Parameter DbType="Time" Name="oraInizio_2" />
|
|
<asp:Parameter DbType="Time" Name="oraFine_2" />
|
|
<asp:Parameter DbType="Time" Name="oraInizio_3" />
|
|
<asp:Parameter DbType="Time" Name="oraFine_3" />
|
|
<asp:Parameter Name="Original_codOrario" Type="String" />
|
|
</UpdateParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
|
</div>
|