Update metodo retrieve dati paginati da SQL x progetti
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
<div class="row table-default small">
|
||||
<div class="col-12 col-md-9 col-lg-10">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" CssClass="table table-sm table-striped" DataKeyNames="idxProgetto" DataSourceID="ods" OnDataBound="grView_DataBound" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnRowUpdating="grView_RowUpdating">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="false" AllowPaging="True" AutoGenerateColumns="False" CssClass="table table-sm table-striped" DataKeyNames="idxProgetto" DataSourceID="ods" OnDataBound="grView_DataBound" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnRowUpdating="grView_RowUpdating">
|
||||
<EditRowStyle CssClass="table-primary" />
|
||||
<SelectedRowStyle CssClass="table-info" />
|
||||
<HeaderStyle CssClass="default" />
|
||||
@@ -173,10 +173,7 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OnInserting="recuperaFooter" DeleteMethod="deleteQuery" InsertMethod="Insert"
|
||||
OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="GPW_data.DS_ApplicazioneTableAdapters.AnagProgettiTableAdapter"
|
||||
UpdateMethod="Update" FilterExpression=" (nomeProj like '%{0}%') OR (descrProj like '%{0}%')"
|
||||
OnUpdating="ods_Updating">
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OnInserting="recuperaFooter" DeleteMethod="deleteQuery" InsertMethod="Insert" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="GPW_data.DS_ApplicazioneTableAdapters.AnagProgettiTableAdapter" UpdateMethod="Update" FilterExpression=" (nomeProj like '%{0}%') OR (descrProj like '%{0}%')" OnUpdating="ods_Updating" SelectCountMethod="getDataCount" MaximumRowsParameterName="NumRecord" StartRowIndexParameterName="FirstRecord" EnablePaging="true">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxProgetto" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
@@ -198,6 +195,8 @@
|
||||
<asp:SessionParameter DefaultValue="False" Name="showPrjArch" SessionField="showPrjArch" Type="Boolean" />
|
||||
<asp:SessionParameter DefaultValue="True" Name="showPrjZeroH" SessionField="showPrjZeroH" Type="Boolean" />
|
||||
<asp:SessionParameter DefaultValue="False" Name="showPrjStar" SessionField="showPrjStar" Type="Boolean" />
|
||||
<%-- <asp:Parameter DefaultValue="0" Name="FirstRecord" Type="Int32" />
|
||||
<asp:Parameter DefaultValue="1000" Name="NumRecord" Type="Int32" />--%>
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="idxCliente" Type="Int32" />
|
||||
|
||||
Generated
+134
-19
@@ -24634,7 +24634,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[9];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[10];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "dbo.stp_AP_Expl_getData";
|
||||
@@ -24648,6 +24648,8 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjArch", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjZeroH", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjStar", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstRecord", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumRecord", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "dbo.stp_AP_delete";
|
||||
@@ -24676,42 +24678,55 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxProgetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_AP_insertQuery";
|
||||
this._commandCollection[5].CommandText = "dbo.stp_AP_Expl_getDataTot";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCliente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeProj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrProj", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjArch", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjZeroH", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjStar", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[6].Connection = this.Connection;
|
||||
this._commandCollection[6].CommandText = "dbo.stp_AP_updateAttivo";
|
||||
this._commandCollection[6].CommandText = "dbo.stp_AP_insertQuery";
|
||||
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxProgetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCliente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeProj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrProj", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[7].Connection = this.Connection;
|
||||
this._commandCollection[7].CommandText = "dbo.stp_AP_update";
|
||||
this._commandCollection[7].CommandText = "dbo.stp_AP_updateAttivo";
|
||||
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCliente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeProj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrProj", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxProgetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[8].Connection = this.Connection;
|
||||
this._commandCollection[8].CommandText = "dbo.stp_AP_updateStarred";
|
||||
this._commandCollection[8].CommandText = "dbo.stp_AP_update";
|
||||
this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@starred", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCliente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomeProj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrProj", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxProgetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[9].Connection = this.Connection;
|
||||
this._commandCollection[9].CommandText = "dbo.stp_AP_updateStarred";
|
||||
this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@starred", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxProgetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
||||
public virtual int Fill(DS_Applicazione.AnagProgettiDataTable dataTable, global::System.Nullable<int> idxDipendente, global::System.Nullable<global::System.DateTime> dataFrom, global::System.Nullable<global::System.DateTime> dataTo, string gruppo, global::System.Nullable<int> idxCliente, global::System.Nullable<bool> showPrjArch, global::System.Nullable<bool> showPrjZeroH, global::System.Nullable<bool> showPrjStar) {
|
||||
public virtual int Fill(DS_Applicazione.AnagProgettiDataTable dataTable, global::System.Nullable<int> idxDipendente, global::System.Nullable<global::System.DateTime> dataFrom, global::System.Nullable<global::System.DateTime> dataTo, string gruppo, global::System.Nullable<int> idxCliente, global::System.Nullable<bool> showPrjArch, global::System.Nullable<bool> showPrjZeroH, global::System.Nullable<bool> showPrjStar, global::System.Nullable<int> FirstRecord, global::System.Nullable<int> NumRecord) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((idxDipendente.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value));
|
||||
@@ -24761,6 +24776,18 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((FirstRecord.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((int)(FirstRecord.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((NumRecord.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = ((int)(NumRecord.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
@@ -24772,7 +24799,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
||||
public virtual DS_Applicazione.AnagProgettiDataTable GetData(global::System.Nullable<int> idxDipendente, global::System.Nullable<global::System.DateTime> dataFrom, global::System.Nullable<global::System.DateTime> dataTo, string gruppo, global::System.Nullable<int> idxCliente, global::System.Nullable<bool> showPrjArch, global::System.Nullable<bool> showPrjZeroH, global::System.Nullable<bool> showPrjStar) {
|
||||
public virtual DS_Applicazione.AnagProgettiDataTable GetData(global::System.Nullable<int> idxDipendente, global::System.Nullable<global::System.DateTime> dataFrom, global::System.Nullable<global::System.DateTime> dataTo, string gruppo, global::System.Nullable<int> idxCliente, global::System.Nullable<bool> showPrjArch, global::System.Nullable<bool> showPrjZeroH, global::System.Nullable<bool> showPrjStar, global::System.Nullable<int> FirstRecord, global::System.Nullable<int> NumRecord) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((idxDipendente.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value));
|
||||
@@ -24822,6 +24849,18 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((FirstRecord.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((int)(FirstRecord.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((NumRecord.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = ((int)(NumRecord.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_Applicazione.AnagProgettiDataTable dataTable = new DS_Applicazione.AnagProgettiDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -25071,12 +25110,88 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual object getDataCount(global::System.Nullable<int> idxDipendente, global::System.Nullable<global::System.DateTime> dataFrom, global::System.Nullable<global::System.DateTime> dataTo, string gruppo, global::System.Nullable<int> idxCliente, global::System.Nullable<bool> showPrjArch, global::System.Nullable<bool> showPrjZeroH, global::System.Nullable<bool> showPrjStar) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
if ((idxDipendente.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxDipendente.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((dataFrom.HasValue == true)) {
|
||||
command.Parameters[2].Value = ((System.DateTime)(dataFrom.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((dataTo.HasValue == true)) {
|
||||
command.Parameters[3].Value = ((System.DateTime)(dataTo.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((gruppo == null)) {
|
||||
command.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[4].Value = ((string)(gruppo));
|
||||
}
|
||||
if ((idxCliente.HasValue == true)) {
|
||||
command.Parameters[5].Value = ((int)(idxCliente.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((showPrjArch.HasValue == true)) {
|
||||
command.Parameters[6].Value = ((bool)(showPrjArch.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((showPrjZeroH.HasValue == true)) {
|
||||
command.Parameters[7].Value = ((bool)(showPrjZeroH.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((showPrjStar.HasValue == true)) {
|
||||
command.Parameters[8].Value = ((bool)(showPrjStar.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[8].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)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
object returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteScalar();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
if (((returnValue == null)
|
||||
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
||||
return null;
|
||||
}
|
||||
else {
|
||||
return ((object)(returnValue));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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> idxCliente, string nomeProj, string descrProj) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
if ((idxCliente.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxCliente.Value));
|
||||
}
|
||||
@@ -25116,7 +25231,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateAttivo(global::System.Nullable<bool> Attivo, global::System.Nullable<int> Original_idxProgetto) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
if ((Attivo.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((bool)(Attivo.Value));
|
||||
}
|
||||
@@ -25151,7 +25266,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
|
||||
public virtual int updateQuery(global::System.Nullable<int> idxCliente, string nomeProj, string descrProj, global::System.Nullable<int> Original_idxProgetto) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
|
||||
if ((idxCliente.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxCliente.Value));
|
||||
}
|
||||
@@ -25197,7 +25312,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateStarred(global::System.Nullable<bool> starred, global::System.Nullable<int> Original_idxProgetto) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
|
||||
if ((starred.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((bool)(starred.Value));
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="GPWConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="GPWConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.GPW_data.Properties.Settings.GlobalReference.Default.GPWConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ETS_GPWConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ETS_GPWConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.GPW_data.Properties.Settings.GlobalReference.Default.GPWConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ETS_GPWConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="ETS_GPWConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.GPW_data.Properties.Settings.GlobalReference.Default.GPWConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TimbratureTableAdapter" GeneratorDataComponentClassName="TimbratureTableAdapter" Name="Timbrature" UserDataComponentName="TimbratureTableAdapter">
|
||||
@@ -1349,6 +1349,8 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjArch" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjZeroH" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjStar" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@FirstRecord" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NumRecord" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -1432,6 +1434,24 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GPWConnectionString (Settings)" DbObjectName="GPW.dbo.stp_AP_Expl_getDataTot" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="getDataCount" Modifier="Public" Name="getDataCount" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="getDataCount">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AP_Expl_getDataTot</CommandText>
|
||||
<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="@idxDipendente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataFrom" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataTo" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@gruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxCliente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjArch" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjZeroH" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjStar" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GPWConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
|
||||
Reference in New Issue
Block a user