completata gestioen "isRed": mostra doc red SOLO se abilitato!

This commit is contained in:
samuele
2012-10-24 08:02:05 +02:00
parent 3e84208266
commit e2e53fccdd
11 changed files with 111 additions and 102 deletions
+13 -2
View File
@@ -457,7 +457,7 @@ namespace ETS_WS
answ.InOut = riga.InOut;
answ.reqProto = riga.isProto;
answ.isRed = riga.isRed;
answ.tags = listFromString(riga.tags,"#");
answ.tags = listFromString(riga.tags, "#");
}
catch
{ }
@@ -479,7 +479,18 @@ namespace ETS_WS
{
get
{
return (userIsUserRed || userIsPowerUserRed);
bool answ = false;
// controllo se in sessione
if (utils.obj.isInSessionObject("userCanSeeRed"))
{
answ = utils.obj.BoolSessionObj("userCanSeeRed");
}
else
{
answ = (userIsUserRed || userIsPowerUserRed);
utils.obj.setSessionVal("userCanSeeRed", answ);
}
return answ;
}
}
/// <summary>
@@ -142,6 +142,7 @@
<SelectParameters>
<asp:SessionParameter DefaultValue="*" Name="inizio" SessionField="_inizio" Type="DateTime" />
<asp:SessionParameter DefaultValue="*" Name="fine" SessionField="_fine" Type="DateTime" />
<asp:SessionParameter DefaultValue="False" Name="showRed" SessionField="showRed" Type="Boolean" />
<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" />
@@ -29,6 +29,8 @@ namespace ETS_WS.WebUserControls
if (!Page.IsPostBack)
{
showHideEditRecord(false);
bool showRed = WebShipUtils.mng.userCanSeeRed;
utils.obj.setSessionVal("showRed", showRed);
}
mod_singleFileUpload1.tempArea = WebShipUtils.mng.UserTempPath;
mod_singleFileUpload1.eh_fileUploaded += new EventHandler(mod_singleFileUpload1_eh_fileUploaded);
@@ -66,9 +66,6 @@
<br />
<uc1:mod_textAutocomplete ID="tacRedattore" runat="server" ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoRedattoriByDoc" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" Visible="false" />
</div>
<div class="divSx" style="margin-top: -2px; width: 140px;">
<asp:CheckBox runat="server" ID="chkRed" Text="Public" ToolTip="Mostra comunicazioni Public / Red" CssClass="labelInput" AutoPostBack="true" OnCheckedChanged="chkRed_CheckedChanged" />
</div>
<div class="divSx" style="margin-top: 2px; width: 175px;">
<div style="margin-top: 1px;">
<asp:Label runat="server" ID="lblCerca" Text="Ricerca Libera" CssClass="labelInput" />
@@ -154,7 +154,7 @@ namespace ETS_WS.WebUserControls
string redattore = utils.emptyToStar(utils.obj.StringSessionObj("srcRedattore"));
string ricercaLibera = utils.emptyToStar(txtSearchAll.Text.Trim());
// ricerca!
lblTotRec.Text = utils.obj.taDoc.getBySearch_Count_only(inizio, fine, commessa, fase, fonte, InOut, redattore, ricercaLibera).ToString();
lblTotRec.Text = utils.obj.taDoc.getBySearch_Count_only(inizio, fine, WebShipUtils.mng.userCanSeeRed, commessa, fase, fonte, InOut, redattore, ricercaLibera).ToString();
}
/// <summary>
@@ -265,23 +265,6 @@ namespace ETS_WS.WebUserControls
updateVisual();
}
/// <summary>
/// imposto visibilità x dati red/non red
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void chkRed_CheckedChanged(object sender, EventArgs e)
{
if (chkRed.Checked)
{
chkRed.Text = "Public+Red";
}
else
{
chkRed.Text = "Public";
}
updateVisual();
}
/// <summary>
/// selezionata nuova dim pagina
/// </summary>
/// <param name="sender"></param>
@@ -147,15 +147,6 @@ namespace ETS_WS.WebUserControls {
/// </remarks>
protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacRedattore;
/// <summary>
/// chkRed control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkRed;
/// <summary>
/// lblCerca control.
/// </summary>
Binary file not shown.
Binary file not shown.
+81 -60
View File
@@ -5899,6 +5899,7 @@ FROM tbDocumenti";
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("@showRed", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, 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, 250, 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, "", "", ""));
@@ -5915,6 +5916,7 @@ FROM tbDocumenti";
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("@showRed", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, 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, 250, 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, "", "", ""));
@@ -5928,6 +5930,7 @@ FROM tbDocumenti";
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("@inizio", 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("@fine", 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("@showRed", 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("@Commessa", global::System.Data.SqlDbType.NVarChar, 10, 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("@Fase", 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("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -6083,7 +6086,7 @@ FROM tbDocumenti";
[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(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, string Commessa, string Fase, string Fonte, string InOut, string Redattore, 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, global::System.Nullable<bool> showRed, string Commessa, string Fase, string Fonte, string InOut, string Redattore, string searchAll, global::System.Nullable<int> startRowIndex, global::System.Nullable<int> maximumRows, string SortExpression) {
this.Adapter.SelectCommand = this.CommandCollection[5];
if ((inizio.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(inizio.Value));
@@ -6097,59 +6100,65 @@ FROM tbDocumenti";
else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
if ((Commessa == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
if ((showRed.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[3].Value = ((bool)(showRed.Value));
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Commessa));
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
if ((Fase == null)) {
if ((Commessa == null)) {
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Fase));
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Commessa));
}
if ((Fonte == null)) {
if ((Fase == null)) {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(Fonte));
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(Fase));
}
if ((InOut == null)) {
if ((Fonte == null)) {
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(InOut));
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(Fonte));
}
if ((Redattore == null)) {
if ((InOut == null)) {
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(Redattore));
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(InOut));
}
if ((searchAll == null)) {
if ((Redattore == null)) {
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(searchAll));
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(Redattore));
}
if ((startRowIndex.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[9].Value = ((int)(startRowIndex.Value));
}
else {
if ((searchAll == null)) {
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
}
if ((maximumRows.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[10].Value = ((int)(maximumRows.Value));
else {
this.Adapter.SelectCommand.Parameters[9].Value = ((string)(searchAll));
}
if ((startRowIndex.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[10].Value = ((int)(startRowIndex.Value));
}
else {
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
if ((maximumRows.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[11].Value = ((int)(maximumRows.Value));
}
else {
this.Adapter.SelectCommand.Parameters[11].Value = ((string)(SortExpression));
this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[12].Value = ((string)(SortExpression));
}
DS_WebScip.tbDocumentiDataTable dataTable = new DS_WebScip.tbDocumentiDataTable();
this.Adapter.Fill(dataTable);
@@ -7165,7 +7174,7 @@ FROM tbDocumenti";
[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(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, string Commessa, string Fase, string Fonte, string InOut, string Redattore, 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, global::System.Nullable<bool> showRed, string Commessa, string Fase, string Fonte, string InOut, string Redattore, string searchAll, global::System.Nullable<int> startRowIndex, global::System.Nullable<int> maximumRows, string SortExpression) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((inizio.HasValue == true)) {
command.Parameters[1].Value = ((System.DateTime)(inizio.Value));
@@ -7179,59 +7188,65 @@ FROM tbDocumenti";
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
if ((Commessa == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
if ((showRed.HasValue == true)) {
command.Parameters[3].Value = ((bool)(showRed.Value));
}
else {
command.Parameters[3].Value = ((string)(Commessa));
command.Parameters[3].Value = global::System.DBNull.Value;
}
if ((Fase == null)) {
if ((Commessa == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(Fase));
command.Parameters[4].Value = ((string)(Commessa));
}
if ((Fonte == null)) {
if ((Fase == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(Fonte));
command.Parameters[5].Value = ((string)(Fase));
}
if ((InOut == null)) {
if ((Fonte == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
else {
command.Parameters[6].Value = ((string)(InOut));
command.Parameters[6].Value = ((string)(Fonte));
}
if ((Redattore == null)) {
if ((InOut == null)) {
command.Parameters[7].Value = global::System.DBNull.Value;
}
else {
command.Parameters[7].Value = ((string)(Redattore));
command.Parameters[7].Value = ((string)(InOut));
}
if ((searchAll == null)) {
if ((Redattore == null)) {
command.Parameters[8].Value = global::System.DBNull.Value;
}
else {
command.Parameters[8].Value = ((string)(searchAll));
command.Parameters[8].Value = ((string)(Redattore));
}
if ((startRowIndex.HasValue == true)) {
command.Parameters[9].Value = ((int)(startRowIndex.Value));
}
else {
if ((searchAll == null)) {
command.Parameters[9].Value = global::System.DBNull.Value;
}
if ((maximumRows.HasValue == true)) {
command.Parameters[10].Value = ((int)(maximumRows.Value));
else {
command.Parameters[9].Value = ((string)(searchAll));
}
if ((startRowIndex.HasValue == true)) {
command.Parameters[10].Value = ((int)(startRowIndex.Value));
}
else {
command.Parameters[10].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
command.Parameters[11].Value = global::System.DBNull.Value;
if ((maximumRows.HasValue == true)) {
command.Parameters[11].Value = ((int)(maximumRows.Value));
}
else {
command.Parameters[11].Value = ((string)(SortExpression));
command.Parameters[11].Value = global::System.DBNull.Value;
}
if ((SortExpression == null)) {
command.Parameters[12].Value = global::System.DBNull.Value;
}
else {
command.Parameters[12].Value = ((string)(SortExpression));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
@@ -7259,7 +7274,7 @@ FROM tbDocumenti";
[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(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, string Commessa, string Fase, string Fonte, string InOut, string Redattore, string searchAll) {
public virtual object getBySearch_Count_only(global::System.Nullable<global::System.DateTime> inizio, global::System.Nullable<global::System.DateTime> fine, global::System.Nullable<bool> showRed, string Commessa, string Fase, string Fonte, string InOut, string Redattore, string searchAll) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((inizio.HasValue == true)) {
command.Parameters[1].Value = ((System.DateTime)(inizio.Value));
@@ -7273,41 +7288,47 @@ FROM tbDocumenti";
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
if ((Commessa == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
if ((showRed.HasValue == true)) {
command.Parameters[3].Value = ((bool)(showRed.Value));
}
else {
command.Parameters[3].Value = ((string)(Commessa));
command.Parameters[3].Value = global::System.DBNull.Value;
}
if ((Fase == null)) {
if ((Commessa == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(Fase));
command.Parameters[4].Value = ((string)(Commessa));
}
if ((Fonte == null)) {
if ((Fase == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(Fonte));
command.Parameters[5].Value = ((string)(Fase));
}
if ((InOut == null)) {
if ((Fonte == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
else {
command.Parameters[6].Value = ((string)(InOut));
command.Parameters[6].Value = ((string)(Fonte));
}
if ((Redattore == null)) {
if ((InOut == null)) {
command.Parameters[7].Value = global::System.DBNull.Value;
}
else {
command.Parameters[7].Value = ((string)(Redattore));
command.Parameters[7].Value = ((string)(InOut));
}
if ((searchAll == null)) {
if ((Redattore == null)) {
command.Parameters[8].Value = global::System.DBNull.Value;
}
else {
command.Parameters[8].Value = ((string)(searchAll));
command.Parameters[8].Value = ((string)(Redattore));
}
if ((searchAll == null)) {
command.Parameters[9].Value = global::System.DBNull.Value;
}
else {
command.Parameters[9].Value = ((string)(searchAll));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+11 -8
View File
@@ -384,6 +384,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A
<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="bit" DbType="Boolean" Direction="Input" ParameterName="@showRed" Precision="1" ProviderType="Bit" Scale="0" Size="1" 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="250" 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" />
@@ -405,6 +406,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A
<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="bit" DbType="Boolean" Direction="Input" ParameterName="@showRed" Precision="1" ProviderType="Bit" Scale="0" Size="1" 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="250" 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" />
@@ -423,6 +425,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A
<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="bit" DbType="Boolean" Direction="Input" ParameterName="@showRed" Precision="1" ProviderType="Bit" Scale="0" Size="1" 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="250" 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" />
@@ -899,7 +902,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
<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" />
@@ -971,7 +974,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</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" />
@@ -1139,7 +1142,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</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" />
@@ -1167,7 +1170,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</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" />
@@ -1181,7 +1184,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Tags2Doc" msprop:Generator_TableClassName="Tags2DocDataTable" msprop:Generator_TableVarName="tableTags2Doc" msprop:Generator_TablePropName="Tags2Doc" msprop:Generator_RowDeletingName="Tags2DocRowDeleting" msprop:Generator_RowChangingName="Tags2DocRowChanging" msprop:Generator_RowEvHandlerName="Tags2DocRowChangeEventHandler" msprop:Generator_RowDeletedName="Tags2DocRowDeleted" msprop:Generator_UserTableName="Tags2Doc" msprop:Generator_RowChangedName="Tags2DocRowChanged" msprop:Generator_RowEvArgName="Tags2DocRowChangeEvent" msprop:Generator_RowClassName="Tags2DocRow">
<xs:element name="Tags2Doc" msprop:Generator_TableClassName="Tags2DocDataTable" msprop:Generator_TableVarName="tableTags2Doc" msprop:Generator_RowChangedName="Tags2DocRowChanged" msprop:Generator_TablePropName="Tags2Doc" msprop:Generator_RowDeletingName="Tags2DocRowDeleting" msprop:Generator_RowChangingName="Tags2DocRowChanging" msprop:Generator_RowEvHandlerName="Tags2DocRowChangeEventHandler" msprop:Generator_RowDeletedName="Tags2DocRowDeleted" msprop:Generator_RowClassName="Tags2DocRow" msprop:Generator_UserTableName="Tags2Doc" msprop:Generator_RowEvArgName="Tags2DocRowChangeEvent">
<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" />
@@ -1189,7 +1192,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tbMetaDataSet" msprop:Generator_TableClassName="tbMetaDataSetDataTable" msprop:Generator_TableVarName="tabletbMetaDataSet" msprop:Generator_RowChangedName="tbMetaDataSetRowChanged" msprop:Generator_TablePropName="tbMetaDataSet" msprop:Generator_RowDeletingName="tbMetaDataSetRowDeleting" msprop:Generator_RowChangingName="tbMetaDataSetRowChanging" msprop:Generator_RowEvHandlerName="tbMetaDataSetRowChangeEventHandler" msprop:Generator_RowDeletedName="tbMetaDataSetRowDeleted" msprop:Generator_RowClassName="tbMetaDataSetRow" msprop:Generator_UserTableName="tbMetaDataSet" msprop:Generator_RowEvArgName="tbMetaDataSetRowChangeEvent">
<xs:element name="tbMetaDataSet" msprop:Generator_TableClassName="tbMetaDataSetDataTable" msprop:Generator_TableVarName="tabletbMetaDataSet" msprop:Generator_TablePropName="tbMetaDataSet" msprop:Generator_RowDeletingName="tbMetaDataSetRowDeleting" msprop:Generator_RowChangingName="tbMetaDataSetRowChanging" msprop:Generator_RowEvHandlerName="tbMetaDataSetRowChangeEventHandler" msprop:Generator_RowDeletedName="tbMetaDataSetRowDeleted" msprop:Generator_UserTableName="tbMetaDataSet" msprop:Generator_RowChangedName="tbMetaDataSetRowChanged" msprop:Generator_RowEvArgName="tbMetaDataSetRowChangeEvent" msprop:Generator_RowClassName="tbMetaDataSetRow">
<xs:complexType>
<xs:sequence>
<xs:element name="userId" msprop:Generator_ColumnVarNameInTable="columnuserId" msprop:Generator_ColumnPropNameInRow="userId" msprop:Generator_ColumnPropNameInTable="userIdColumn" msprop:Generator_UserColumnName="userId">
@@ -1293,8 +1296,8 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_Tags2Doc_AnagTags" msdata:parent="AnagTags" msdata:child="Tags2Doc" msdata:parentkey="idxTag" msdata:childkey="idxTag" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_AnagTags" msprop:Generator_ParentPropName="AnagTagsRow" msprop:Generator_RelationVarName="relationFK_Tags2Doc_AnagTags" msprop:Generator_UserParentTable="AnagTags" />
<msdata:Relationship name="FK_Tags2Doc_tbDocumenti" msdata:parent="tbDocumenti" msdata:child="Tags2Doc" msdata:parentkey="idxFile" msdata:childkey="idxFile" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_tbDocumenti" msprop:Generator_ParentPropName="tbDocumentiRow" msprop:Generator_RelationVarName="relationFK_Tags2Doc_tbDocumenti" msprop:Generator_UserParentTable="tbDocumenti" />
<msdata:Relationship name="FK_Tags2Doc_AnagTags" msdata:parent="AnagTags" msdata:child="Tags2Doc" msdata:parentkey="idxTag" msdata:childkey="idxTag" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_AnagTags" msprop:Generator_RelationVarName="relationFK_Tags2Doc_AnagTags" msprop:Generator_UserParentTable="AnagTags" msprop:Generator_ParentPropName="AnagTagsRow" />
<msdata:Relationship name="FK_Tags2Doc_tbDocumenti" msdata:parent="tbDocumenti" msdata:child="Tags2Doc" msdata:parentkey="idxFile" msdata:childkey="idxFile" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_tbDocumenti" msprop:Generator_RelationVarName="relationFK_Tags2Doc_tbDocumenti" msprop:Generator_UserParentTable="tbDocumenti" msprop:Generator_ParentPropName="tbDocumentiRow" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+2 -2
View File
@@ -7,11 +7,11 @@
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-28" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:tmpFileUt" ZOrder="8" X="70" Y="70" Height="305" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:tbDocumenti" ZOrder="2" X="342" Y="70" Height="761" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="558" />
<Shape ID="DesignTable:tbDocumenti" ZOrder="1" X="342" Y="70" Height="761" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="558" />
<Shape ID="DesignTable:AnagFasi" ZOrder="7" X="1040" Y="130" Height="191" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagTags" ZOrder="6" X="736" Y="103" Height="154" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Tags2Doc" ZOrder="5" X="736" Y="345" Height="167" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="78" />
<Shape ID="DesignTable:tbMetaDataSet" ZOrder="1" X="974" Y="514" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:tbMetaDataSet" ZOrder="2" X="974" Y="514" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_Tags2Doc_AnagTags" ZOrder="4" LineWidth="11">