175 lines
9.0 KiB
Plaintext
175 lines
9.0 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_attivitaIns.ascx.cs" Inherits="GPW.WebUserControls.mod_attivitaIns" %>
|
|
<%@ Register Src="mod_dateTime.ascx" TagName="mod_dateTime" TagPrefix="uc1" %>
|
|
|
|
<div class="card my-1">
|
|
<div class="card-header">
|
|
<b>Edit / Nuova Attività</b>
|
|
</div>
|
|
<div class="card-body px-1 py-2">
|
|
<asp:FormView ID="frViewRA" runat="server" DataKeyNames="idxRA" DataSourceID="odsRA" OnItemCommand="frViewRA_ItemCommand" CssClass="form-group px-1 w-100 mb-0">
|
|
<EditItemTemplate>
|
|
<div>
|
|
<label for="ddlProgetto">
|
|
Progetto
|
|
</label>
|
|
<asp:DropDownList ID="ddlProgetto" name="ddlProgetto" runat="server" DataSourceID="odsProgetto" DataTextField="label" DataValueField="value"
|
|
AutoPostBack="True" OnSelectedIndexChanged="ddlProgetto_SelectedIndexChanged" CssClass="form-control">
|
|
</asp:DropDownList>
|
|
<label for="ddlFase">
|
|
Fase
|
|
</label>
|
|
<asp:DropDownList ID="ddlFase" name="ddlFase" runat="server" DataSourceID="odsFase" DataTextField="label" DataValueField="value"
|
|
data-mini="true" OnDataBound="ddlFase_DataBound" CssClass="form-control">
|
|
</asp:DropDownList>
|
|
<label for="dtInizio">
|
|
Inizio attività
|
|
</label>
|
|
<uc1:mod_dateTime ID="dtInizio" runat="server" valoreDateTime='<%# Bind("inizio") %>' labelData="Inizio" labelOra="Ora" />
|
|
<label for="dtFine">
|
|
Fine attività
|
|
</label>
|
|
<uc1:mod_dateTime ID="dtFine" runat="server" valoreDateTime='<%# Bind("fine") %>' labelData="Fine" labelOra="Ora" />
|
|
<hr />
|
|
<label for="descrizioneTextBox">
|
|
descrizione:
|
|
</label>
|
|
<asp:TextBox ID="descrizioneTextBox" runat="server" Text='<%# Bind("descrizione") %>' TextMode="MultiLine" Height="5em" CssClass="form-control" />
|
|
<div class="row mt-2">
|
|
<div class="col pr-0">
|
|
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-block btn-success" />
|
|
</div>
|
|
<div class="col px-1">
|
|
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-block btn-warning" />
|
|
</div>
|
|
<div class="col pl-0">
|
|
<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" CssClass="btn btn-block btn-danger" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</EditItemTemplate>
|
|
<InsertItemTemplate>
|
|
<div>
|
|
<label for="ddlProgetto">
|
|
Progetto
|
|
</label>
|
|
<asp:DropDownList ID="ddlProgetto" name="ddlProgetto" runat="server" DataSourceID="odsProgetto" DataTextField="label" DataValueField="value"
|
|
AutoPostBack="True" OnSelectedIndexChanged="ddlProgetto_SelectedIndexChanged" CssClass="form-control">
|
|
</asp:DropDownList>
|
|
<label for="ddlFase">
|
|
Fase
|
|
</label>
|
|
<asp:DropDownList ID="ddlFase" name="ddlFase" runat="server" DataSourceID="odsFase" DataTextField="label" DataValueField="value"
|
|
data-mini="true" OnDataBound="ddlFase_DataBound" CssClass="form-control">
|
|
</asp:DropDownList>
|
|
<label for="dtInizio">
|
|
Inizio attività
|
|
</label>
|
|
<uc1:mod_dateTime ID="dtInizio" runat="server" valoreDateTime='<%# Bind("inizio") %>' labelData="Inizio" labelOra="Ora" />
|
|
<label for="dtFine">
|
|
Fine attività
|
|
</label>
|
|
<uc1:mod_dateTime ID="dtFine" runat="server" valoreDateTime='<%# Bind("fine") %>' labelData="Fine" labelOra="Ora" />
|
|
<hr />
|
|
<label for="descrizioneTextBox">
|
|
descrizione:
|
|
</label>
|
|
<asp:TextBox ID="descrizioneTextBox" runat="server" Text='<%# Bind("descrizione") %>' TextMode="MultiLine" Height="5em" CssClass="form-control" />
|
|
<div class="row mt-2">
|
|
<div class="col pr-1">
|
|
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" CssClass="btn btn-block btn-success" />
|
|
</div>
|
|
<div class="col pl-1">
|
|
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-block btn-warning" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</InsertItemTemplate>
|
|
<ItemTemplate>
|
|
|
|
<div>
|
|
<label for="ddlProgetto">
|
|
Progetto
|
|
</label>
|
|
<asp:DropDownList ID="ddlProgetto" name="ddlProgetto" runat="server" DataSourceID="odsProgetto" DataTextField="label" DataValueField="value"
|
|
AutoPostBack="True" OnSelectedIndexChanged="ddlProgetto_SelectedIndexChanged" CssClass="form-control">
|
|
</asp:DropDownList>
|
|
<label for="ddlFase">
|
|
Fase
|
|
</label>
|
|
<asp:DropDownList ID="ddlFase" name="ddlFase" runat="server" DataSourceID="odsFase" DataTextField="label" DataValueField="value"
|
|
data-mini="true" OnDataBound="ddlFase_DataBound" CssClass="form-control">
|
|
</asp:DropDownList>
|
|
<label for="dtInizio">
|
|
Inizio attività
|
|
</label>
|
|
<uc1:mod_dateTime ID="dtInizio" runat="server" valoreDateTime='<%# Bind("inizio") %>' labelData="Inizio" labelOra="Ora" />
|
|
<label for="dtFine">
|
|
Fine attività
|
|
</label>
|
|
<uc1:mod_dateTime ID="dtFine" runat="server" valoreDateTime='<%# Bind("fine") %>' labelData="Fine" labelOra="Ora" />
|
|
<hr />
|
|
<label for="descrizioneTextBox">
|
|
descrizione:
|
|
</label>
|
|
<asp:TextBox ID="descrizioneTextBox" runat="server" Text='<%# Bind("descrizione") %>' TextMode="MultiLine" Height="5em" CssClass="form-control" />
|
|
<div class="row mt-2">
|
|
<div class="col pr-1">
|
|
<asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" CssClass="btn btn-block btn-info" />
|
|
</div>
|
|
<div class="col pl-1">
|
|
<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New" Text="New" CssClass="btn btn-block btn-success" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ui-grid-a">
|
|
<div class="ui-block-a">
|
|
</div>
|
|
<div class="ui-block-b">
|
|
</div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:FormView>
|
|
<asp:ObjectDataSource ID="odsRA" runat="server" DeleteMethod="deleteQuery" InsertMethod="Insert" OldValuesParameterFormatString="Original_{0}"
|
|
SelectMethod="getByKey" TypeName="GPW_data.DS_ApplicazioneTableAdapters.RegAttivitaTableAdapter" UpdateMethod="updateQuery"
|
|
OnUpdating="odsRA_Updating" OnInserted="odsRA_Inserted" OnInserting="odsRA_Inserting" OnUpdated="odsRA_Updated" OnDeleted="odsRA_Deleted">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="Original_idxRA" Type="Int32" />
|
|
</DeleteParameters>
|
|
<InsertParameters>
|
|
<asp:SessionParameter DefaultValue="0" Name="idxDipendente" SessionField="idxDipendente" Type="Int32" />
|
|
<asp:Parameter Name="idxFase" Type="Int32" />
|
|
<asp:Parameter Name="inizio" Type="DateTime" />
|
|
<asp:Parameter Name="fine" Type="DateTime" />
|
|
<asp:Parameter Name="descrizione" Type="String" />
|
|
<asp:Parameter Name="importo" Type="Decimal" DefaultValue="0" />
|
|
</InsertParameters>
|
|
<SelectParameters>
|
|
<asp:SessionParameter DefaultValue="0" Name="idxRA" SessionField="idxRASel" Type="Int32" />
|
|
</SelectParameters>
|
|
<UpdateParameters>
|
|
<asp:SessionParameter DefaultValue="0" Name="idxDipendente" SessionField="idxDipendente" Type="Int32" />
|
|
<asp:Parameter Name="idxFase" Type="Int32" />
|
|
<asp:Parameter Name="inizio" Type="DateTime" />
|
|
<asp:Parameter Name="fine" Type="DateTime" />
|
|
<asp:Parameter Name="descrizione" Type="String" />
|
|
<asp:Parameter Name="importo" Type="Decimal" DefaultValue="0" />
|
|
<asp:Parameter Name="Original_idxRA" Type="Int32" />
|
|
</UpdateParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:ObjectDataSource ID="odsProgetto" runat="server" SelectMethod="getGrouped" TypeName="GPW_data.DS_UtilityTableAdapters.v_selProgettiTableAdapter"
|
|
OldValuesParameterFormatString="original_{0}">
|
|
<SelectParameters>
|
|
<asp:Parameter DefaultValue="true" Name="soloAttivi" Type="Boolean" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:ObjectDataSource ID="odsFase" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio"
|
|
TypeName="GPW_data.DS_UtilityTableAdapters.v_selFasiOptTableAdapter">
|
|
<SelectParameters>
|
|
<asp:SessionParameter SessionField="idxProjSel" DefaultValue="0" Name="conditio" Type="Int32" />
|
|
<asp:Parameter DefaultValue="false" Name="soloAttivi" Type="Boolean" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
</div>
|
|
|