vers 185: avanzamento gestione budget risorse fasi
- inserisce nuove da zero - permesso editing (da completare con tipo risorsa limitata: selezione valori disponibili + corrente...) - da fare delete - da completare ACWP
This commit is contained in:
@@ -18,6 +18,7 @@ namespace ETS_Data
|
||||
public Ds_ProjEtsTableAdapters.DatiCommessaTableAdapter taDC;
|
||||
public Ds_ProjEtsTableAdapters.DatiCommFornTableAdapter taDCF;
|
||||
public Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter taDCI;
|
||||
public Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter taBRF;
|
||||
/* DS_utilsProjEts */
|
||||
public DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter taSelCli;
|
||||
public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro;
|
||||
@@ -33,6 +34,7 @@ namespace ETS_Data
|
||||
taDC = new Ds_ProjEtsTableAdapters.DatiCommessaTableAdapter();
|
||||
taDCF = new Ds_ProjEtsTableAdapters.DatiCommFornTableAdapter();
|
||||
taDCI = new Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter();
|
||||
taBRF = new Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter();
|
||||
taSelCli = new DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter();
|
||||
taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter();
|
||||
taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter();
|
||||
@@ -48,6 +50,7 @@ namespace ETS_Data
|
||||
taDC.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
|
||||
taDCF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
|
||||
taDCI.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
|
||||
taBRF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
|
||||
taSelCli.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
|
||||
taSelPro.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
|
||||
taSelCom.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
|
||||
|
||||
Generated
+16
-16
@@ -11412,6 +11412,7 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_BRF_getByFase";
|
||||
@@ -11426,7 +11427,6 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OreBdgt", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_BRF_UpdateQuery";
|
||||
@@ -11434,8 +11434,8 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OreBdgt", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -11695,7 +11695,7 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
|
||||
public virtual int DeleteQuery(global::System.Nullable<int> Original_idxFase) {
|
||||
public virtual int DeleteQuery(global::System.Nullable<int> Original_idxFase, string Original_CodTipoRisorsa) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
||||
if ((Original_idxFase.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(Original_idxFase.Value));
|
||||
@@ -11703,6 +11703,12 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_CodTipoRisorsa == null)) {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = ((string)(Original_CodTipoRisorsa));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
@@ -11724,7 +11730,7 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
|
||||
public virtual int InsertQuery(global::System.Nullable<int> idxFase, string CodTipoRisorsa, global::System.Nullable<decimal> OreBdgt, global::System.Nullable<global::System.DateTime> DataRif) {
|
||||
public virtual int InsertQuery(global::System.Nullable<int> idxFase, string CodTipoRisorsa, global::System.Nullable<decimal> OreBdgt) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
if ((idxFase.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxFase.Value));
|
||||
@@ -11744,12 +11750,6 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
else {
|
||||
command.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((DataRif.HasValue == true)) {
|
||||
command.Parameters[4].Value = ((System.DateTime)(DataRif.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
@@ -11771,7 +11771,7 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
|
||||
public virtual int UpdateQuery(string CodTipoRisorsa, global::System.Nullable<decimal> OreBdgt, global::System.Nullable<global::System.DateTime> DataRif, global::System.Nullable<int> Original_idxFase) {
|
||||
public virtual int UpdateQuery(string CodTipoRisorsa, global::System.Nullable<decimal> OreBdgt, global::System.Nullable<int> Original_idxFase, string Original_CodTipoRisorsa) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
|
||||
if ((CodTipoRisorsa == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -11785,17 +11785,17 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
else {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((DataRif.HasValue == true)) {
|
||||
command.Parameters[3].Value = ((System.DateTime)(DataRif.Value));
|
||||
if ((Original_idxFase.HasValue == true)) {
|
||||
command.Parameters[3].Value = ((int)(Original_idxFase.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_idxFase.HasValue == true)) {
|
||||
command.Parameters[4].Value = ((int)(Original_idxFase.Value));
|
||||
if ((Original_CodTipoRisorsa == null)) {
|
||||
command.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[4].Value = global::System.DBNull.Value;
|
||||
command.Parameters[4].Value = ((string)(Original_CodTipoRisorsa));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
|
||||
@@ -817,6 +817,7 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxFase" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodTipoRisorsa" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
@@ -841,7 +842,6 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxFase" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodTipoRisorsa" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="decimal" DbType="Decimal" Direction="Input" ParameterName="@OreBdgt" Precision="18" ProviderType="Decimal" Scale="2" Size="9" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataRif" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
@@ -854,8 +854,8 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodTipoRisorsa" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="decimal" DbType="Decimal" Direction="Input" ParameterName="@OreBdgt" Precision="18" ProviderType="Decimal" Scale="2" Size="9" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataRif" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxFase" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodTipoRisorsa" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<add key="appName" value="PROJ-ETS"/>
|
||||
<add key="SiteName" value="ETS"/>
|
||||
<add key="mainRev" value="0.6"/>
|
||||
<add key="minRev" value="184"/>
|
||||
<add key="minRev" value="185"/>
|
||||
<add key="stdEmail" value="info@steamware.net"/>
|
||||
<add key="_safePages" value="Default.aspx#unauthorized.aspx#forceUser.aspx#login.aspx#test.aspx#Test.aspx"/>
|
||||
<!--area gestione auth cookie-->
|
||||
@@ -44,6 +44,9 @@
|
||||
<add key="intUpdatePagina_ms" value="120000"/>
|
||||
<!--gestione creazione template commesse: cliente abilitato-->
|
||||
<add key ="idxProgettoTemplate" value="2480"/>
|
||||
<!--valori default x risorse-->
|
||||
<add key ="codTipoRisorsaStd" value="DIS"/>
|
||||
<add key ="oreBdgtStd" value="8"/>
|
||||
<!--area conf dataset classi esterne-->
|
||||
<add key="ETS_WSConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
|
||||
<add key="ETS_AnagraficaConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
|
||||
|
||||
@@ -177,75 +177,81 @@
|
||||
</div>
|
||||
|
||||
<asp:Panel runat="server" ID="pnlBdgtOre" Visible="false" CssClass="divSx">
|
||||
NOME FASE...
|
||||
|
||||
<asp:GridView ID="grViewBdgt" runat="server" AutoGenerateColumns="False" DataKeyNames="idxFase,CodTipoRisorsa" DataSourceID="odsBgdt">
|
||||
|
||||
<AlternatingRowStyle CssClass="alternatingRowStyle" />
|
||||
<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" />
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<EmptyDataTemplate>
|
||||
Nessuna risorsa, aggiungi...
|
||||
<asp:Button ID="btnNewBdgtEmpty" runat="server" OnClick="btnNewBdgtEmpty_Click" Text="Nuova Risorsa" CssClass="btnNew"
|
||||
ToolTip="Aggiungi una nuova risorsa per la fase corrente" Width="200px" />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" ItemStyle-VerticalAlign="Middle">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Modifica" ImageUrl="../images/edit_m.png" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ToolTip="Update" ImageUrl="../images/apply_m.png" />
|
||||
<br />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" ImageUrl="../images/cancel_m.png" />
|
||||
</EditItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<%--<asp:ImageButton ID="imgBtnReset" runat="server" ToolTip="Reset" CausesValidation="False" OnClick="btnReset_Click" ImageUrl="../images/reload_l.png" Visible="true" />--%>
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodTipoRisorsa" SortExpression="CodTipoRisorsa">
|
||||
<EditItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("CodTipoRisorsa") %>'></asp:Label>
|
||||
<asp:TextBox ID="tTR" runat="server" Text='<%# Bind("CodTipoRisorsa") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("CodTipoRisorsa") %>'></asp:Label>
|
||||
<asp:Label ID="lTR" runat="server" Text='<%# Eval("CodTipoRisorsa") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="OreBdgt" SortExpression="OreBdgt">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("OreBdgt") %>'></asp:TextBox>
|
||||
<asp:TextBox ID="tOB" runat="server" Text='<%# Bind("OreBdgt") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Bind("OreBdgt") %>'></asp:Label>
|
||||
<asp:Label ID="lOB" runat="server" Text='<%# Eval("OreBdgt") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CostoBdgt" SortExpression="CostoBdgt">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CostoBdgt") %>'></asp:TextBox>
|
||||
<asp:Label ID="lCB" runat="server" Text='<%# Eval("CostoBdgt") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Bind("CostoBdgt") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="modif." SortExpression="DataRif">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("DataRif") %>'></asp:TextBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Bind("DataRif") %>'></asp:Label>
|
||||
<asp:Label ID="lCB" runat="server" Text='<%# Eval("CostoBdgt") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsBgdt" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="getByFase" TypeName="ETS_Data.Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter" UpdateMethod="Update">
|
||||
<asp:ObjectDataSource ID="odsBgdt" runat="server" DeleteMethod="DeleteQuery" InsertMethod="InsertQuery" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByFase" TypeName="ETS_Data.Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter" UpdateMethod="UpdateQuery" OnDeleted="odsBgdt_Deleted" OnUpdated="odsBgdt_Updated">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxFase" Type="Int32" />
|
||||
<asp:Parameter Name="Original_CodTipoRisorsa" Type="String" />
|
||||
<asp:Parameter Name="Original_OreBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="Original_CostoBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="Original_DataRif" Type="DateTime" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="idxFase" Type="Int32" />
|
||||
<asp:Parameter Name="CodTipoRisorsa" Type="String" />
|
||||
<asp:Parameter Name="OreBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="CostoBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="DataRif" Type="DateTime" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxFase" SessionField="idxFaseDet_sel" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="CodTipoRisorsa" Type="String" />
|
||||
<asp:Parameter Name="OreBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="CostoBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="DataRif" Type="DateTime" />
|
||||
<asp:Parameter Name="Original_idxFase" Type="Int32" />
|
||||
<asp:Parameter Name="Original_CodTipoRisorsa" Type="String" />
|
||||
<asp:Parameter Name="Original_OreBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="Original_CostoBdgt" Type="Decimal" />
|
||||
<asp:Parameter Name="Original_DataRif" Type="DateTime" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace PROJ_ETS.WebUserControls
|
||||
{
|
||||
public partial class mod_fasi : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
@@ -83,5 +88,37 @@ namespace PROJ_ETS.WebUserControls
|
||||
// update
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// gestione evento richiesta nuovo valore QUANDO NON CI SIANO RECORDS x budget risorse
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewBdgtEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
int idxFase = utils.obj.IntSessionObj("idxFaseDet_sel");
|
||||
DataProxy_ProjEts.DP.taBRF.InsertQuery(idxFase, utils.obj.confReadString("codTipoRisorsaStd"), utils.obj.confReadInt("oreBdgtStd") );
|
||||
grViewBdgt.DataBind();
|
||||
grViewFasi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// post evento delete
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void odsBgdt_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// post evento update
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void odsBgdt_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user