nova gestione con filtraggio periodo

This commit is contained in:
samuele
2012-09-28 16:02:24 +02:00
parent 638044d706
commit ba66e3bea5
8 changed files with 162 additions and 87 deletions
BIN
View File
Binary file not shown.
@@ -76,7 +76,11 @@
SortParameterName="SortExpression" EnableCaching="true" CacheDuration="5">
<%--EnableCaching="true" CacheDuration="30" SortParameterName="SortExpression" --%>
<SelectParameters>
<asp:SessionParameter DefaultValue="*" Name="Commessa" SessionField="srcCommessa"
<asp:SessionParameter DefaultValue="*" Name="inizio" SessionField="_inizio"
Type="DateTime" />
<asp:SessionParameter DefaultValue="*" Name="fine" SessionField="_fine"
Type="DateTime" />
<asp:SessionParameter DefaultValue="*" Name="Commessa" SessionField="srcCommessa"
Type="String" />
<asp:SessionParameter DefaultValue="*" Name="Fase" SessionField="srcFase" Type="String" />
<asp:SessionParameter DefaultValue="*" Name="Fonte" SessionField="srcFonte" Type="String" />
@@ -120,7 +120,14 @@ namespace ETS_WS.WebUserControls
/// </summary>
private void displayResults()
{
lblTotRec.Text = utils.obj.taDoc.getBySearch_Count_only(utils.obj.StringSessionObj("srcCommessa"), utils.obj.StringSessionObj("srcFase"), utils.obj.StringSessionObj("srcFonte"), utils.obj.StringSessionObj("srcInOut"), txtSearchAll.Text.Trim()).ToString();
DateTime inizio = Convert.ToDateTime(utils.obj.StringSessionObj("_inizio"));
DateTime fine = Convert.ToDateTime(utils.obj.StringSessionObj("_fine"));
string commessa = utils.obj.StringSessionObj("srcCommessa");
string fase = utils.obj.StringSessionObj("srcFase");
string fonte = utils.obj.StringSessionObj("srcFonte");
string InOut=utils.obj.StringSessionObj("srcInOut");
string ricercaLibera = txtSearchAll.Text.Trim();
lblTotRec.Text = utils.obj.taDoc.getBySearch_Count_only(inizio, fine, commessa, fase, fonte, InOut, ricercaLibera).ToString();
}
/// <summary>
Binary file not shown.
Binary file not shown.
+132 -76
View File
@@ -4480,6 +4480,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
this._commandCollection[1].CommandText = "dbo.stp_tbDocs_getBySearch";
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("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Commessa", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4490,6 +4492,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
this._commandCollection[2].CommandText = "dbo.stp_tbDocs_getBySearch_Count";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Commessa", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4503,6 +4507,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
this._commandCollection[3].CommandText = "dbo.stp_tbDocs_getBySearch_Count_only";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Commessa", global::System.Data.SqlDbType.NVarChar, 10, 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("@Fase", 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("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4513,6 +4519,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
this._commandCollection[4].CommandText = "dbo.stp_tbDocs_getBySearch_paged";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
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("@inizio", 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("@fine", 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("@Commessa", global::System.Data.SqlDbType.NVarChar, 10, 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("@Fase", 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("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4568,37 +4576,49 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
[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.Select, false)]
public virtual DS_WebScip.tbDocumentiDataTable getBySearch(string Commessa, string Fase, string Fonte, string InOut, string searchAll) {
public virtual DS_WebScip.tbDocumentiDataTable getBySearch(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, string Commessa, string Fase, string Fonte, string InOut, string searchAll) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((Commessa == null)) {
if ((inizio.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(inizio.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Commessa));
if ((fine.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(fine.Value));
}
if ((Fase == null)) {
else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Fase));
}
if ((Fonte == null)) {
if ((Commessa == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Fonte));
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Commessa));
}
if ((InOut == null)) {
if ((Fase == null)) {
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(InOut));
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Fase));
}
if ((searchAll == null)) {
if ((Fonte == null)) {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(searchAll));
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(Fonte));
}
if ((InOut == null)) {
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(InOut));
}
if ((searchAll == null)) {
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(searchAll));
}
DS_WebScip.tbDocumentiDataTable dataTable = new DS_WebScip.tbDocumentiDataTable();
this.Adapter.Fill(dataTable);
@@ -4609,55 +4629,67 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
[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.Select, false)]
public virtual DS_WebScip.tbDocumentiDataTable getBySearch_paged(string Commessa, string Fase, string Fonte, string InOut, string searchAll, global::System.Nullable<int> startRowIndex, global::System.Nullable<int> maximumRows, string SortExpression) {
public virtual DS_WebScip.tbDocumentiDataTable getBySearch_paged(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, string Commessa, string Fase, string Fonte, string InOut, string searchAll, global::System.Nullable<int> startRowIndex, global::System.Nullable<int> maximumRows, string SortExpression) {
this.Adapter.SelectCommand = this.CommandCollection[4];
if ((Commessa == null)) {
if ((inizio.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(inizio.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Commessa));
if ((fine.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(fine.Value));
}
if ((Fase == null)) {
else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Fase));
}
if ((Fonte == null)) {
if ((Commessa == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Fonte));
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Commessa));
}
if ((InOut == null)) {
if ((Fase == null)) {
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(InOut));
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Fase));
}
if ((searchAll == null)) {
if ((Fonte == null)) {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(searchAll));
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(Fonte));
}
if ((startRowIndex.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[6].Value = ((int)(startRowIndex.Value));
}
else {
if ((InOut == null)) {
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
}
if ((maximumRows.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[7].Value = ((int)(maximumRows.Value));
}
else {
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(InOut));
}
if ((searchAll == null)) {
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
else {
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(searchAll));
}
if ((startRowIndex.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[8].Value = ((int)(startRowIndex.Value));
}
else {
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(SortExpression));
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
}
if ((maximumRows.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[9].Value = ((int)(maximumRows.Value));
}
else {
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[10].Value = ((string)(SortExpression));
}
DS_WebScip.tbDocumentiDataTable dataTable = new DS_WebScip.tbDocumentiDataTable();
this.Adapter.Fill(dataTable);
@@ -5627,55 +5659,67 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual object getBySearch_Count(string Commessa, string Fase, string Fonte, string InOut, string searchAll, global::System.Nullable<int> startRowIndex, global::System.Nullable<int> maximumRows, string SortExpression) {
public virtual object getBySearch_Count(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, string Commessa, string Fase, string Fonte, string InOut, string searchAll, global::System.Nullable<int> startRowIndex, global::System.Nullable<int> maximumRows, string SortExpression) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
if ((Commessa == null)) {
if ((inizio.HasValue == true)) {
command.Parameters[1].Value = ((System.DateTime)(inizio.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(Commessa));
if ((fine.HasValue == true)) {
command.Parameters[2].Value = ((System.DateTime)(fine.Value));
}
if ((Fase == null)) {
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(Fase));
}
if ((Fonte == null)) {
if ((Commessa == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
command.Parameters[3].Value = ((string)(Fonte));
command.Parameters[3].Value = ((string)(Commessa));
}
if ((InOut == null)) {
if ((Fase == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(InOut));
command.Parameters[4].Value = ((string)(Fase));
}
if ((searchAll == null)) {
if ((Fonte == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(searchAll));
command.Parameters[5].Value = ((string)(Fonte));
}
if ((startRowIndex.HasValue == true)) {
command.Parameters[6].Value = ((int)(startRowIndex.Value));
}
else {
if ((InOut == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
if ((maximumRows.HasValue == true)) {
command.Parameters[7].Value = ((int)(maximumRows.Value));
}
else {
command.Parameters[6].Value = ((string)(InOut));
}
if ((searchAll == null)) {
command.Parameters[7].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
command.Parameters[8].Value = global::System.DBNull.Value;
else {
command.Parameters[7].Value = ((string)(searchAll));
}
if ((startRowIndex.HasValue == true)) {
command.Parameters[8].Value = ((int)(startRowIndex.Value));
}
else {
command.Parameters[8].Value = ((string)(SortExpression));
command.Parameters[8].Value = global::System.DBNull.Value;
}
if ((maximumRows.HasValue == true)) {
command.Parameters[9].Value = ((int)(maximumRows.Value));
}
else {
command.Parameters[9].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
command.Parameters[10].Value = global::System.DBNull.Value;
}
else {
command.Parameters[10].Value = ((string)(SortExpression));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
@@ -5703,37 +5747,49 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual object getBySearch_Count_only(string Commessa, string Fase, string Fonte, string InOut, string searchAll) {
public virtual object getBySearch_Count_only(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, string Commessa, string Fase, string Fonte, string InOut, string searchAll) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((Commessa == null)) {
if ((inizio.HasValue == true)) {
command.Parameters[1].Value = ((System.DateTime)(inizio.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(Commessa));
if ((fine.HasValue == true)) {
command.Parameters[2].Value = ((System.DateTime)(fine.Value));
}
if ((Fase == null)) {
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(Fase));
}
if ((Fonte == null)) {
if ((Commessa == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
command.Parameters[3].Value = ((string)(Fonte));
command.Parameters[3].Value = ((string)(Commessa));
}
if ((InOut == null)) {
if ((Fase == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(InOut));
command.Parameters[4].Value = ((string)(Fase));
}
if ((searchAll == null)) {
if ((Fonte == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(searchAll));
command.Parameters[5].Value = ((string)(Fonte));
}
if ((InOut == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
else {
command.Parameters[6].Value = ((string)(InOut));
}
if ((searchAll == null)) {
command.Parameters[7].Value = global::System.DBNull.Value;
}
else {
command.Parameters[7].Value = ((string)(searchAll));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+14 -6
View File
@@ -341,6 +341,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
<CommandText>dbo.stp_tbDocs_getBySearch</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="datetime" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@fine" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Commessa" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fase" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fonte" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -356,6 +358,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
<CommandText>dbo.stp_tbDocs_getBySearch_Count</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="datetime" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@fine" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Commessa" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fase" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fonte" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -374,6 +378,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
<CommandText>dbo.stp_tbDocs_getBySearch_Count_only</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="datetime" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@fine" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Commessa" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fase" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fonte" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -389,6 +395,8 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat
<CommandText>dbo.stp_tbDocs_getBySearch_paged</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="datetime" DbType="DateTime" Direction="Input" ParameterName="@inizio" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@fine" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Commessa" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fase" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Fonte" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -487,7 +495,7 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase =
<Mapping SourceColumn="folderName" DataSetColumn="folderName" />
</Mappings>
<Sources>
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_fasi_Delete" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="DeleteQuery">
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_fasi_Delete" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_fasi_Delete</CommandText>
@@ -498,7 +506,7 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase =
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_fasi_Update" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="UpdateQuery">
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_fasi_Update" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="UpdateQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_fasi_Update</CommandText>
@@ -593,7 +601,7 @@ SELECT idxTag, tag FROM AnagTags WHERE (idxTag = @idxTag)</CommandText>
<xs:element name="DS_WebScip" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_WebScip" msprop:Generator_UserDSName="DS_WebScip">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="tmpFileUt" msprop:Generator_TableClassName="tmpFileUtDataTable" msprop:Generator_TableVarName="tabletmpFileUt" msprop:Generator_TablePropName="tmpFileUt" msprop:Generator_RowDeletingName="tmpFileUtRowDeleting" msprop:Generator_RowChangingName="tmpFileUtRowChanging" msprop:Generator_RowEvHandlerName="tmpFileUtRowChangeEventHandler" msprop:Generator_RowDeletedName="tmpFileUtRowDeleted" msprop:Generator_UserTableName="tmpFileUt" msprop:Generator_RowChangedName="tmpFileUtRowChanged" msprop:Generator_RowEvArgName="tmpFileUtRowChangeEvent" msprop:Generator_RowClassName="tmpFileUtRow">
<xs:element name="tmpFileUt" msprop:Generator_TableClassName="tmpFileUtDataTable" msprop:Generator_TableVarName="tabletmpFileUt" msprop:Generator_RowChangedName="tmpFileUtRowChanged" msprop:Generator_TablePropName="tmpFileUt" msprop:Generator_RowDeletingName="tmpFileUtRowDeleting" msprop:Generator_RowChangingName="tmpFileUtRowChanging" msprop:Generator_RowEvHandlerName="tmpFileUtRowChangeEventHandler" msprop:Generator_RowDeletedName="tmpFileUtRowDeleted" msprop:Generator_RowClassName="tmpFileUtRow" msprop:Generator_UserTableName="tmpFileUt" msprop:Generator_RowEvArgName="tmpFileUtRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFile" msprop:Generator_ColumnVarNameInTable="columnidxFile" msprop:Generator_ColumnPropNameInRow="idxFile" msprop:Generator_ColumnPropNameInTable="idxFileColumn" msprop:Generator_UserColumnName="idxFile" type="xs:int" />
@@ -665,7 +673,7 @@ SELECT idxTag, tag FROM AnagTags WHERE (idxTag = @idxTag)</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tbDocumenti" msprop:Generator_TableClassName="tbDocumentiDataTable" msprop:Generator_TableVarName="tabletbDocumenti" msprop:Generator_RowChangedName="tbDocumentiRowChanged" msprop:Generator_TablePropName="tbDocumenti" msprop:Generator_RowDeletingName="tbDocumentiRowDeleting" msprop:Generator_RowChangingName="tbDocumentiRowChanging" msprop:Generator_RowEvHandlerName="tbDocumentiRowChangeEventHandler" msprop:Generator_RowDeletedName="tbDocumentiRowDeleted" msprop:Generator_RowClassName="tbDocumentiRow" msprop:Generator_UserTableName="tbDocumenti" msprop:Generator_RowEvArgName="tbDocumentiRowChangeEvent">
<xs:element name="tbDocumenti" msprop:Generator_TableClassName="tbDocumentiDataTable" msprop:Generator_TableVarName="tabletbDocumenti" msprop:Generator_TablePropName="tbDocumenti" msprop:Generator_RowDeletingName="tbDocumentiRowDeleting" msprop:Generator_RowChangingName="tbDocumentiRowChanging" msprop:Generator_RowEvHandlerName="tbDocumentiRowChangeEventHandler" msprop:Generator_RowDeletedName="tbDocumentiRowDeleted" msprop:Generator_UserTableName="tbDocumenti" msprop:Generator_RowChangedName="tbDocumentiRowChanged" msprop:Generator_RowEvArgName="tbDocumentiRowChangeEvent" msprop:Generator_RowClassName="tbDocumentiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFile" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxFile" msprop:Generator_ColumnPropNameInRow="idxFile" msprop:Generator_ColumnPropNameInTable="idxFileColumn" msprop:Generator_UserColumnName="idxFile" type="xs:int" />
@@ -825,7 +833,7 @@ SELECT idxTag, tag FROM AnagTags WHERE (idxTag = @idxTag)</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagFasi" msprop:Generator_TableClassName="AnagFasiDataTable" msprop:Generator_TableVarName="tableAnagFasi" msprop:Generator_TablePropName="AnagFasi" msprop:Generator_RowDeletingName="AnagFasiRowDeleting" msprop:Generator_RowChangingName="AnagFasiRowChanging" msprop:Generator_RowEvHandlerName="AnagFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagFasiRowDeleted" msprop:Generator_UserTableName="AnagFasi" msprop:Generator_RowChangedName="AnagFasiRowChanged" msprop:Generator_RowEvArgName="AnagFasiRowChangeEvent" msprop:Generator_RowClassName="AnagFasiRow">
<xs:element name="AnagFasi" msprop:Generator_TableClassName="AnagFasiDataTable" msprop:Generator_TableVarName="tableAnagFasi" msprop:Generator_RowChangedName="AnagFasiRowChanged" msprop:Generator_TablePropName="AnagFasi" msprop:Generator_RowDeletingName="AnagFasiRowDeleting" msprop:Generator_RowChangingName="AnagFasiRowChanging" msprop:Generator_RowEvHandlerName="AnagFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagFasiRowDeleted" msprop:Generator_RowClassName="AnagFasiRow" msprop:Generator_UserTableName="AnagFasi" msprop:Generator_RowEvArgName="AnagFasiRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFase" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxFase" msprop:Generator_ColumnPropNameInRow="idxFase" msprop:Generator_ColumnPropNameInTable="idxFaseColumn" msprop:Generator_UserColumnName="idxFase" type="xs:int" />
@@ -853,7 +861,7 @@ SELECT idxTag, tag FROM AnagTags WHERE (idxTag = @idxTag)</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagTags" msprop:Generator_TableClassName="AnagTagsDataTable" msprop:Generator_TableVarName="tableAnagTags" msprop:Generator_TablePropName="AnagTags" msprop:Generator_RowDeletingName="AnagTagsRowDeleting" msprop:Generator_RowChangingName="AnagTagsRowChanging" msprop:Generator_RowEvHandlerName="AnagTagsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagTagsRowDeleted" msprop:Generator_UserTableName="AnagTags" msprop:Generator_RowChangedName="AnagTagsRowChanged" msprop:Generator_RowEvArgName="AnagTagsRowChangeEvent" msprop:Generator_RowClassName="AnagTagsRow">
<xs:element name="AnagTags" msprop:Generator_TableClassName="AnagTagsDataTable" msprop:Generator_TableVarName="tableAnagTags" msprop:Generator_RowChangedName="AnagTagsRowChanged" msprop:Generator_TablePropName="AnagTags" msprop:Generator_RowDeletingName="AnagTagsRowDeleting" msprop:Generator_RowChangingName="AnagTagsRowChanging" msprop:Generator_RowEvHandlerName="AnagTagsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagTagsRowDeleted" msprop:Generator_RowClassName="AnagTagsRow" msprop:Generator_UserTableName="AnagTags" msprop:Generator_RowEvArgName="AnagTagsRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idxTag" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxTag" msprop:Generator_ColumnPropNameInRow="idxTag" msprop:Generator_ColumnPropNameInTable="idxTagColumn" msprop:Generator_UserColumnName="idxTag" type="xs:int" />
+3 -3
View File
@@ -7,9 +7,9 @@
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:tmpFileUt" ZOrder="4" X="70" Y="70" Height="305" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:tbDocumenti" ZOrder="3" X="342" Y="70" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagFasi" ZOrder="2" X="1040" Y="130" Height="191" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagTags" ZOrder="1" X="795" Y="100" Height="154" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:tbDocumenti" ZOrder="1" X="342" Y="70" Height="704" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="558" />
<Shape ID="DesignTable:AnagFasi" ZOrder="3" X="1040" Y="130" Height="191" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagTags" ZOrder="2" X="795" Y="100" Height="154" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
</Shapes>
<Connectors />
</DiagramLayout>