diff --git a/ETS-WS/ETS-WS/ETS-WS.csproj b/ETS-WS/ETS-WS/ETS-WS.csproj index 3f09cca..a34be64 100644 --- a/ETS-WS/ETS-WS/ETS-WS.csproj +++ b/ETS-WS/ETS-WS/ETS-WS.csproj @@ -261,6 +261,12 @@ + + + + + + @@ -274,6 +280,9 @@ + + + @@ -281,7 +290,13 @@ + + + + + + diff --git a/ETS-WS/ETS-WS/Web.config b/ETS-WS/ETS-WS/Web.config index a6920af..f50e92d 100644 --- a/ETS-WS/ETS-WS/Web.config +++ b/ETS-WS/ETS-WS/Web.config @@ -28,7 +28,7 @@ - + diff --git a/ETS-WS/ETS-WS/WebShipUtils.cs b/ETS-WS/ETS-WS/WebShipUtils.cs index 6c5f7c3..d778207 100644 --- a/ETS-WS/ETS-WS/WebShipUtils.cs +++ b/ETS-WS/ETS-WS/WebShipUtils.cs @@ -250,7 +250,42 @@ namespace ETS_WS { } return answ; } - + /// + /// converte una lista tags in una stringa unica con separatore + /// + /// + /// + /// + public static string stringFromList(List tags, string separatore) + { + string answ = ""; + if (tags.Capacity > 0) + { + foreach (string item in tags) + { + answ += string.Format("{0}{1}", item, separatore); + } + // tolgo ultimo separatore + answ = answ.Substring(0, answ.Length - separatore.Length); + } + return answ; + } + /// + /// converte una stringa unica con separatore in una lista tags + /// + /// + /// + /// + public static List listFromString(string elenco, string separatore) + { + List answ = new List(); + if (elenco.Length > 0) + { + char sep = Convert.ToChar(separatore); + answ = elenco.Split(sep).ToList(); + } + return answ; + } /// /// Creates an eml file to be delivered with the default mail client /// @@ -363,6 +398,64 @@ namespace ETS_WS lg.Info("Spostato file {0} per sostituzione", nomeFile); } } + /// + /// salva su db il tempalte dei metadati correnti + /// + /// user id (AD) univoco + /// nome del dataset + /// metadati + public void salvaTemplateMedatati(string userId, string setName, docMetaDataSet docsData) + { + string tagString = ""; + try + { + if (docsData.tags.Capacity > 0) + { + tagString = stringFromList(docsData.tags.ToList(), "#"); + } + } + catch + { } + utils.obj.taTMD.Insert(userId, setName, docsData.commessa, docsData.fase, docsData.fonte, docsData.oggetto, docsData.dataRic, docsData.dataDoc, docsData.path, docsData.InOut, docsData.reqProto, docsData.isRed, tagString); + } + /// + /// restituisce il tempalte metadati + /// + /// + /// + /// + public docMetaDataSet recuperaTemplateMedatati(string userId, string setName) + { + docMetaDataSet answ = new docMetaDataSet(); + DS_WebScip.tbMetaDataSetRow riga; + try + { + riga = utils.obj.taTMD.getByKey(userId, setName)[0]; + answ.commessa = riga.Commessa; + answ.fase = riga.Fase; + answ.fonte = riga.Fonte; + answ.oggetto = riga.Oggetto; + answ.dataRic = riga.DataRic; + answ.dataDoc = riga.DataDoc; + answ.path = riga.path; + answ.InOut = riga.InOut; + answ.reqProto = riga.isProto; + answ.isRed = riga.isRed; + answ.tags = listFromString(riga.tags,"#"); + } + catch + { } + return answ; + } + /// + /// elimina il tempalte dei metadati indicato + /// + /// + /// + public void eliminaTemplateMedatati(string userId, string setName) + { + utils.obj.taTMD.deleteQuery(userId, setName); + } } /// diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx index de60f3c..24673b6 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx @@ -12,6 +12,38 @@ <% } %>
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + + + + + + + + +
+
+
+
@@ -26,6 +58,7 @@
<%----%> +
@@ -38,23 +71,20 @@

- +

- +

- +

-   +  
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs index 1172216..a71dd9d 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs @@ -10,6 +10,20 @@ namespace ETS_WS.WebUserControls { public partial class mod_inputDati : System.Web.UI.UserControl { + /// + /// variabile x decidere se mostrare pannello metadati + /// + public bool showTMD + { + get + { + return utils.obj.BoolSessionObj("showTMD"); + } + set + { + utils.obj.setSessionVal("showTMD", value); + } + } /// /// evento richiesta salvataggio files /// @@ -23,6 +37,7 @@ namespace ETS_WS.WebUserControls { if (!Page.IsPostBack) { + showTMD = false; rblProto.SelectedIndex = 0; setDate(); updateVisual(); @@ -70,8 +85,19 @@ namespace ETS_WS.WebUserControls ///
public void updateVisual() { + pnlTemplateMetaDati.Visible = showTMD; showProto(); saveMetaData(); + if (WebShipUtils.mng.metaPresent) + { + imgNewTMD.ImageUrl = "~/images/addTMD_m.png"; + } + else + { + imgNewTMD.ImageUrl = "~/images/addDisTMD_m.png"; + } + imgNewTMD.Enabled = WebShipUtils.mng.metaPresent; + txtNomeTMD.Visible = WebShipUtils.mng.metaPresent; } /// /// cambio selezione protocollo/senza protocollo @@ -185,14 +211,7 @@ namespace ETS_WS.WebUserControls { // decodificare valori e inserire in selettori... docMetaDataSet currData = value; - if (currData.reqProto) - { - rblProto.SelectedValue = "1"; - } - else - { - rblProto.SelectedValue = "0"; - } + rblProto.SelectedValue = currData.reqProto.ToString(); ; rblInOut.SelectedValue = currData.InOut; tacCommesse.valore = currData.commessa; tacCommesse.label = currData.commessa; @@ -254,5 +273,57 @@ namespace ETS_WS.WebUserControls { updateVisual(); } + /// + /// mostra/nasconde menù template metadati + /// + /// + /// + protected void img_Click(object sender, ImageClickEventArgs e) + { + showTMD = !showTMD; + updateVisual(); + } + /// + /// aggiunge un nuovo tempalte metadati x l'utente... + /// + /// + /// + protected void imgNewTMD_Click(object sender, ImageClickEventArgs e) + { + // salvo il template metadati... + string setName = txtNomeTMD.Text.Trim(); + if (setName != "") + { + // elimino eventuale velore vecchio! + WebShipUtils.mng.eliminaTemplateMedatati(utils.obj.currUserId, dlElencoTemplate.SelectedValue); + // salvo! + WebShipUtils.mng.salvaTemplateMedatati(utils.obj.currUserId, setName, metaDatiDoc); + } + dlElencoTemplate.DataBind(); + } + /// + /// carica metadati da template! + /// + /// + /// + protected void imgLoad_Click(object sender, ImageClickEventArgs e) + { + txtNomeTMD.Text = dlElencoTemplate.SelectedValue; + metaDatiDoc = WebShipUtils.mng.recuperaTemplateMedatati(utils.obj.currUserId, dlElencoTemplate.SelectedValue); + updateVisual(); + } + /// + /// elimina il tempalte metadati... + /// + /// + /// + protected void imgDeleteTemplate_Click(object sender, ImageClickEventArgs e) + { + txtNomeTMD.Text = ""; + WebShipUtils.mng.eliminaTemplateMedatati(utils.obj.currUserId, dlElencoTemplate.SelectedValue); + dlElencoTemplate.DataBind(); + updateVisual(); + } + } } \ No newline at end of file diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.designer.cs b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.designer.cs index 33d35b0..fccb67f 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.designer.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.designer.cs @@ -12,6 +12,96 @@ namespace ETS_WS.WebUserControls { public partial class mod_inputDati { + /// + /// pnlTemplateMetaDati control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlTemplateMetaDati; + + /// + /// Label4 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// Label2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// txtNomeTMD control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtNomeTMD; + + /// + /// imgNewTMD control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ImageButton imgNewTMD; + + /// + /// Label3 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// imgDeleteTemplate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ImageButton imgDeleteTemplate; + + /// + /// dlElencoTemplate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList dlElencoTemplate; + + /// + /// odsTMD control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsTMD; + + /// + /// imgLoad control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ImageButton imgLoad; + /// /// lblProtocollo control. /// @@ -39,6 +129,15 @@ namespace ETS_WS.WebUserControls { /// protected global::System.Web.UI.WebControls.Label lblNumProto; + /// + /// img control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ImageButton img; + /// /// lblInOut control. /// diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_testata.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_testata.ascx.cs index e1c7cb1..1d4da6e 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_testata.ascx.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_testata.ascx.cs @@ -12,7 +12,7 @@ namespace ETS_WS.WebUserControls { protected void Page_Load(object sender, EventArgs e) { - lblUser.Text = utils.obj.currUserCognomeNome; + lblUser.Text = string.Format("{0} ({1})",utils.obj.currUserCognomeNome, utils.obj.currUserId); lblDataOra.Text = DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss"); } } diff --git a/ETS-WS/ETS-WS/bin/ETS-WS.dll b/ETS-WS/ETS-WS/bin/ETS-WS.dll index 45121a3..14623df 100644 Binary files a/ETS-WS/ETS-WS/bin/ETS-WS.dll and b/ETS-WS/ETS-WS/bin/ETS-WS.dll differ diff --git a/ETS-WS/ETS-WS/bin/ETS_Data.dll b/ETS-WS/ETS-WS/bin/ETS_Data.dll index a0ce5be..65acb69 100644 Binary files a/ETS-WS/ETS-WS/bin/ETS_Data.dll and b/ETS-WS/ETS-WS/bin/ETS_Data.dll differ diff --git a/ETS-WS/ETS-WS/images/Pin_l.png b/ETS-WS/ETS-WS/images/Pin_l.png new file mode 100644 index 0000000..7c33fa5 Binary files /dev/null and b/ETS-WS/ETS-WS/images/Pin_l.png differ diff --git a/ETS-WS/ETS-WS/images/Pin_m.png b/ETS-WS/ETS-WS/images/Pin_m.png new file mode 100644 index 0000000..dfaf05b Binary files /dev/null and b/ETS-WS/ETS-WS/images/Pin_m.png differ diff --git a/ETS-WS/ETS-WS/images/Pin_s.png b/ETS-WS/ETS-WS/images/Pin_s.png new file mode 100644 index 0000000..f742f61 Binary files /dev/null and b/ETS-WS/ETS-WS/images/Pin_s.png differ diff --git a/ETS-WS/ETS-WS/images/addDisTMD_l.png b/ETS-WS/ETS-WS/images/addDisTMD_l.png new file mode 100644 index 0000000..22a839a Binary files /dev/null and b/ETS-WS/ETS-WS/images/addDisTMD_l.png differ diff --git a/ETS-WS/ETS-WS/images/addDisTMD_m.png b/ETS-WS/ETS-WS/images/addDisTMD_m.png new file mode 100644 index 0000000..5dcf24f Binary files /dev/null and b/ETS-WS/ETS-WS/images/addDisTMD_m.png differ diff --git a/ETS-WS/ETS-WS/images/addDisTMD_s.png b/ETS-WS/ETS-WS/images/addDisTMD_s.png new file mode 100644 index 0000000..958e746 Binary files /dev/null and b/ETS-WS/ETS-WS/images/addDisTMD_s.png differ diff --git a/ETS-WS/ETS-WS/images/addTMD_l.png b/ETS-WS/ETS-WS/images/addTMD_l.png new file mode 100644 index 0000000..636249f Binary files /dev/null and b/ETS-WS/ETS-WS/images/addTMD_l.png differ diff --git a/ETS-WS/ETS-WS/images/addTMD_m.png b/ETS-WS/ETS-WS/images/addTMD_m.png new file mode 100644 index 0000000..c4d3b4a Binary files /dev/null and b/ETS-WS/ETS-WS/images/addTMD_m.png differ diff --git a/ETS-WS/ETS-WS/images/addTMD_s.png b/ETS-WS/ETS-WS/images/addTMD_s.png new file mode 100644 index 0000000..3eea164 Binary files /dev/null and b/ETS-WS/ETS-WS/images/addTMD_s.png differ diff --git a/ETS-WS/ETS-WS/images/delete_l.png b/ETS-WS/ETS-WS/images/delete_l.png new file mode 100644 index 0000000..ac4153d Binary files /dev/null and b/ETS-WS/ETS-WS/images/delete_l.png differ diff --git a/ETS-WS/ETS-WS/images/delete_m.png b/ETS-WS/ETS-WS/images/delete_m.png new file mode 100644 index 0000000..527be26 Binary files /dev/null and b/ETS-WS/ETS-WS/images/delete_m.png differ diff --git a/ETS-WS/ETS-WS/images/delete_s.png b/ETS-WS/ETS-WS/images/delete_s.png new file mode 100644 index 0000000..f9b7996 Binary files /dev/null and b/ETS-WS/ETS-WS/images/delete_s.png differ diff --git a/ETS-WS/ETS-WS/images/load_l.png b/ETS-WS/ETS-WS/images/load_l.png new file mode 100644 index 0000000..0f4bc16 Binary files /dev/null and b/ETS-WS/ETS-WS/images/load_l.png differ diff --git a/ETS-WS/ETS-WS/images/load_m.png b/ETS-WS/ETS-WS/images/load_m.png new file mode 100644 index 0000000..0c435ca Binary files /dev/null and b/ETS-WS/ETS-WS/images/load_m.png differ diff --git a/ETS-WS/ETS-WS/images/load_s.png b/ETS-WS/ETS-WS/images/load_s.png new file mode 100644 index 0000000..262600c Binary files /dev/null and b/ETS-WS/ETS-WS/images/load_s.png differ diff --git a/ETS_Data/DS_WebScip.Designer.cs b/ETS_Data/DS_WebScip.Designer.cs index cdf9a32..3d585b7 100644 --- a/ETS_Data/DS_WebScip.Designer.cs +++ b/ETS_Data/DS_WebScip.Designer.cs @@ -34,6 +34,8 @@ namespace ETS_Data { private Tags2DocDataTable tableTags2Doc; + private tbMetaDataSetDataTable tabletbMetaDataSet; + private global::System.Data.DataRelation relationFK_Tags2Doc_AnagTags; private global::System.Data.DataRelation relationFK_Tags2Doc_tbDocumenti; @@ -81,6 +83,9 @@ namespace ETS_Data { if ((ds.Tables["Tags2Doc"] != null)) { base.Tables.Add(new Tags2DocDataTable(ds.Tables["Tags2Doc"])); } + if ((ds.Tables["tbMetaDataSet"] != null)) { + base.Tables.Add(new tbMetaDataSetDataTable(ds.Tables["tbMetaDataSet"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -149,6 +154,16 @@ namespace ETS_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public tbMetaDataSetDataTable tbMetaDataSet { + get { + return this.tabletbMetaDataSet; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -231,6 +246,9 @@ namespace ETS_Data { if ((ds.Tables["Tags2Doc"] != null)) { base.Tables.Add(new Tags2DocDataTable(ds.Tables["Tags2Doc"])); } + if ((ds.Tables["tbMetaDataSet"] != null)) { + base.Tables.Add(new tbMetaDataSetDataTable(ds.Tables["tbMetaDataSet"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -294,6 +312,12 @@ namespace ETS_Data { this.tableTags2Doc.InitVars(); } } + this.tabletbMetaDataSet = ((tbMetaDataSetDataTable)(base.Tables["tbMetaDataSet"])); + if ((initTable == true)) { + if ((this.tabletbMetaDataSet != null)) { + this.tabletbMetaDataSet.InitVars(); + } + } this.relationFK_Tags2Doc_AnagTags = this.Relations["FK_Tags2Doc_AnagTags"]; this.relationFK_Tags2Doc_tbDocumenti = this.Relations["FK_Tags2Doc_tbDocumenti"]; } @@ -316,6 +340,8 @@ namespace ETS_Data { base.Tables.Add(this.tableAnagTags); this.tableTags2Doc = new Tags2DocDataTable(); base.Tables.Add(this.tableTags2Doc); + this.tabletbMetaDataSet = new tbMetaDataSetDataTable(); + base.Tables.Add(this.tabletbMetaDataSet); this.relationFK_Tags2Doc_AnagTags = new global::System.Data.DataRelation("FK_Tags2Doc_AnagTags", new global::System.Data.DataColumn[] { this.tableAnagTags.idxTagColumn}, new global::System.Data.DataColumn[] { this.tableTags2Doc.idxTagColumn}, false); @@ -356,6 +382,12 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializetbMetaDataSet() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -426,6 +458,9 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void Tags2DocRowChangeEventHandler(object sender, Tags2DocRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void tbMetaDataSetRowChangeEventHandler(object sender, tbMetaDataSetRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2438,6 +2473,443 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class tbMetaDataSetDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnuserId; + + private global::System.Data.DataColumn columnsetName; + + private global::System.Data.DataColumn columnCommessa; + + private global::System.Data.DataColumn columnFase; + + private global::System.Data.DataColumn columnFonte; + + private global::System.Data.DataColumn columnOggetto; + + private global::System.Data.DataColumn columnDataRic; + + private global::System.Data.DataColumn columnDataDoc; + + private global::System.Data.DataColumn columnpath; + + private global::System.Data.DataColumn columnInOut; + + private global::System.Data.DataColumn columnisProto; + + private global::System.Data.DataColumn columnisRed; + + private global::System.Data.DataColumn columntags; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetDataTable() { + this.TableName = "tbMetaDataSet"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal tbMetaDataSetDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected tbMetaDataSetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn userIdColumn { + get { + return this.columnuserId; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn setNameColumn { + get { + return this.columnsetName; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CommessaColumn { + get { + return this.columnCommessa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FaseColumn { + get { + return this.columnFase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FonteColumn { + get { + return this.columnFonte; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OggettoColumn { + get { + return this.columnOggetto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataRicColumn { + get { + return this.columnDataRic; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataDocColumn { + get { + return this.columnDataDoc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pathColumn { + get { + return this.columnpath; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InOutColumn { + get { + return this.columnInOut; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn isProtoColumn { + get { + return this.columnisProto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn isRedColumn { + get { + return this.columnisRed; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn tagsColumn { + get { + return this.columntags; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetRow this[int index] { + get { + return ((tbMetaDataSetRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event tbMetaDataSetRowChangeEventHandler tbMetaDataSetRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event tbMetaDataSetRowChangeEventHandler tbMetaDataSetRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event tbMetaDataSetRowChangeEventHandler tbMetaDataSetRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event tbMetaDataSetRowChangeEventHandler tbMetaDataSetRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddtbMetaDataSetRow(tbMetaDataSetRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetRow AddtbMetaDataSetRow(string userId, string setName, string Commessa, string Fase, string Fonte, string Oggetto, System.DateTime DataRic, System.DateTime DataDoc, string path, string InOut, bool isProto, bool isRed, string tags) { + tbMetaDataSetRow rowtbMetaDataSetRow = ((tbMetaDataSetRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + userId, + setName, + Commessa, + Fase, + Fonte, + Oggetto, + DataRic, + DataDoc, + path, + InOut, + isProto, + isRed, + tags}; + rowtbMetaDataSetRow.ItemArray = columnValuesArray; + this.Rows.Add(rowtbMetaDataSetRow); + return rowtbMetaDataSetRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetRow FindByuserIdsetName(string userId, string setName) { + return ((tbMetaDataSetRow)(this.Rows.Find(new object[] { + userId, + setName}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + tbMetaDataSetDataTable cln = ((tbMetaDataSetDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new tbMetaDataSetDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnuserId = base.Columns["userId"]; + this.columnsetName = base.Columns["setName"]; + this.columnCommessa = base.Columns["Commessa"]; + this.columnFase = base.Columns["Fase"]; + this.columnFonte = base.Columns["Fonte"]; + this.columnOggetto = base.Columns["Oggetto"]; + this.columnDataRic = base.Columns["DataRic"]; + this.columnDataDoc = base.Columns["DataDoc"]; + this.columnpath = base.Columns["path"]; + this.columnInOut = base.Columns["InOut"]; + this.columnisProto = base.Columns["isProto"]; + this.columnisRed = base.Columns["isRed"]; + this.columntags = base.Columns["tags"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnuserId = new global::System.Data.DataColumn("userId", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnuserId); + this.columnsetName = new global::System.Data.DataColumn("setName", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsetName); + this.columnCommessa = new global::System.Data.DataColumn("Commessa", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCommessa); + this.columnFase = new global::System.Data.DataColumn("Fase", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFase); + this.columnFonte = new global::System.Data.DataColumn("Fonte", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFonte); + this.columnOggetto = new global::System.Data.DataColumn("Oggetto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOggetto); + this.columnDataRic = new global::System.Data.DataColumn("DataRic", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataRic); + this.columnDataDoc = new global::System.Data.DataColumn("DataDoc", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataDoc); + this.columnpath = new global::System.Data.DataColumn("path", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpath); + this.columnInOut = new global::System.Data.DataColumn("InOut", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInOut); + this.columnisProto = new global::System.Data.DataColumn("isProto", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisProto); + this.columnisRed = new global::System.Data.DataColumn("isRed", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisRed); + this.columntags = new global::System.Data.DataColumn("tags", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntags); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnuserId, + this.columnsetName}, true)); + this.columnuserId.AllowDBNull = false; + this.columnuserId.MaxLength = 50; + this.columnsetName.AllowDBNull = false; + this.columnsetName.MaxLength = 50; + this.columnCommessa.MaxLength = 50; + this.columnFase.MaxLength = 250; + this.columnFonte.MaxLength = 100; + this.columnOggetto.MaxLength = 250; + this.columnpath.MaxLength = 250; + this.columnInOut.MaxLength = 3; + this.columntags.MaxLength = 500; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetRow NewtbMetaDataSetRow() { + return ((tbMetaDataSetRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new tbMetaDataSetRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(tbMetaDataSetRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.tbMetaDataSetRowChanged != null)) { + this.tbMetaDataSetRowChanged(this, new tbMetaDataSetRowChangeEvent(((tbMetaDataSetRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.tbMetaDataSetRowChanging != null)) { + this.tbMetaDataSetRowChanging(this, new tbMetaDataSetRowChangeEvent(((tbMetaDataSetRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.tbMetaDataSetRowDeleted != null)) { + this.tbMetaDataSetRowDeleted(this, new tbMetaDataSetRowChangeEvent(((tbMetaDataSetRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.tbMetaDataSetRowDeleting != null)) { + this.tbMetaDataSetRowDeleting(this, new tbMetaDataSetRowChangeEvent(((tbMetaDataSetRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemovetbMetaDataSetRow(tbMetaDataSetRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_WebScip ds = new DS_WebScip(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "tbMetaDataSetDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -3736,6 +4208,351 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class tbMetaDataSetRow : global::System.Data.DataRow { + + private tbMetaDataSetDataTable tabletbMetaDataSet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal tbMetaDataSetRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tabletbMetaDataSet = ((tbMetaDataSetDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string userId { + get { + return ((string)(this[this.tabletbMetaDataSet.userIdColumn])); + } + set { + this[this.tabletbMetaDataSet.userIdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string setName { + get { + return ((string)(this[this.tabletbMetaDataSet.setNameColumn])); + } + set { + this[this.tabletbMetaDataSet.setNameColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Commessa { + get { + try { + return ((string)(this[this.tabletbMetaDataSet.CommessaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Commessa\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.CommessaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Fase { + get { + try { + return ((string)(this[this.tabletbMetaDataSet.FaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Fase\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.FaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Fonte { + get { + try { + return ((string)(this[this.tabletbMetaDataSet.FonteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Fonte\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.FonteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Oggetto { + get { + try { + return ((string)(this[this.tabletbMetaDataSet.OggettoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Oggetto\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.OggettoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataRic { + get { + try { + return ((global::System.DateTime)(this[this.tabletbMetaDataSet.DataRicColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataRic\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.DataRicColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataDoc { + get { + try { + return ((global::System.DateTime)(this[this.tabletbMetaDataSet.DataDocColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataDoc\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.DataDocColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string path { + get { + try { + return ((string)(this[this.tabletbMetaDataSet.pathColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'path\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.pathColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string InOut { + get { + try { + return ((string)(this[this.tabletbMetaDataSet.InOutColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InOut\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.InOutColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool isProto { + get { + try { + return ((bool)(this[this.tabletbMetaDataSet.isProtoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'isProto\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.isProtoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool isRed { + get { + try { + return ((bool)(this[this.tabletbMetaDataSet.isRedColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'isRed\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.isRedColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string tags { + get { + try { + return ((string)(this[this.tabletbMetaDataSet.tagsColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'tags\' in table \'tbMetaDataSet\' is DBNull.", e); + } + } + set { + this[this.tabletbMetaDataSet.tagsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCommessaNull() { + return this.IsNull(this.tabletbMetaDataSet.CommessaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCommessaNull() { + this[this.tabletbMetaDataSet.CommessaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFaseNull() { + return this.IsNull(this.tabletbMetaDataSet.FaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFaseNull() { + this[this.tabletbMetaDataSet.FaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFonteNull() { + return this.IsNull(this.tabletbMetaDataSet.FonteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFonteNull() { + this[this.tabletbMetaDataSet.FonteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsOggettoNull() { + return this.IsNull(this.tabletbMetaDataSet.OggettoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetOggettoNull() { + this[this.tabletbMetaDataSet.OggettoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataRicNull() { + return this.IsNull(this.tabletbMetaDataSet.DataRicColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataRicNull() { + this[this.tabletbMetaDataSet.DataRicColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataDocNull() { + return this.IsNull(this.tabletbMetaDataSet.DataDocColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataDocNull() { + this[this.tabletbMetaDataSet.DataDocColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspathNull() { + return this.IsNull(this.tabletbMetaDataSet.pathColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpathNull() { + this[this.tabletbMetaDataSet.pathColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsInOutNull() { + return this.IsNull(this.tabletbMetaDataSet.InOutColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetInOutNull() { + this[this.tabletbMetaDataSet.InOutColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsisProtoNull() { + return this.IsNull(this.tabletbMetaDataSet.isProtoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetisProtoNull() { + this[this.tabletbMetaDataSet.isProtoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsisRedNull() { + return this.IsNull(this.tabletbMetaDataSet.isRedColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetisRedNull() { + this[this.tabletbMetaDataSet.isRedColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IstagsNull() { + return this.IsNull(this.tabletbMetaDataSet.tagsColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SettagsNull() { + this[this.tabletbMetaDataSet.tagsColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -3905,6 +4722,40 @@ namespace ETS_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class tbMetaDataSetRowChangeEvent : global::System.EventArgs { + + private tbMetaDataSetRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetRowChangeEvent(tbMetaDataSetRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace ETS_Data.DS_WebScipTableAdapters { @@ -7990,6 +8841,875 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class tbMetaDataSetTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public tbMetaDataSetTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "tbMetaDataSet"; + tableMapping.ColumnMappings.Add("userId", "userId"); + tableMapping.ColumnMappings.Add("setName", "setName"); + tableMapping.ColumnMappings.Add("Commessa", "Commessa"); + tableMapping.ColumnMappings.Add("Fase", "Fase"); + tableMapping.ColumnMappings.Add("Fonte", "Fonte"); + tableMapping.ColumnMappings.Add("Oggetto", "Oggetto"); + tableMapping.ColumnMappings.Add("DataRic", "DataRic"); + tableMapping.ColumnMappings.Add("DataDoc", "DataDoc"); + tableMapping.ColumnMappings.Add("path", "path"); + tableMapping.ColumnMappings.Add("InOut", "InOut"); + tableMapping.ColumnMappings.Add("isProto", "isProto"); + tableMapping.ColumnMappings.Add("isRed", "isRed"); + tableMapping.ColumnMappings.Add("tags", "tags"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[tbMetaDataSet] WHERE (([userId] = @Original_userId) AND ([setName] = @Original_setName) AND ((@IsNull_Commessa = 1 AND [Commessa] IS NULL) OR ([Commessa] = @Original_Commessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) OR ([DataRic] = @Original_DataRic)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS NULL) OR ([DataDoc] = @Original_DataDoc)) AND ((@IsNull_path = 1 AND [path] IS NULL) OR ([path] = @Original_path)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsNull_isProto = 1 AND [isProto] IS NULL) OR ([isProto] = @Original_isProto)) AND ((@IsNull_isRed = 1 AND [isRed] IS NULL) OR ([isRed] = @Original_isRed)) AND ((@IsNull_tags = 1 AND [tags] IS NULL) OR ([tags] = @Original_tags)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_setName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "setName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Commessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Commessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fonte", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Oggetto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataRic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataDoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_path", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_path", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InOut", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isProto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isProto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isProto", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isProto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isRed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isRed", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isRed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isRed", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tags", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tags", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tags", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tags", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[tbMetaDataSet] ([userId], [setName], [Commessa], [Fase], [Fonte], [Oggetto], [DataRic], [DataDoc], [path], [InOut], [isProto], [isRed], [tags]) VALUES (@userId, @setName, @Commessa, @Fase, @Fonte, @Oggetto, @DataRic, @DataDoc, @path, @InOut, @isProto, @isRed, @tags); +SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, InOut, isProto, isRed, tags FROM tbMetaDataSet WHERE (setName = @setName) AND (userId = @userId)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@setName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "setName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Commessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@path", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isProto", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isProto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isRed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isRed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tags", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tags", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tbMetaDataSet] SET [userId] = @userId, [setName] = @setName, [Commessa] = @Commessa, [Fase] = @Fase, [Fonte] = @Fonte, [Oggetto] = @Oggetto, [DataRic] = @DataRic, [DataDoc] = @DataDoc, [path] = @path, [InOut] = @InOut, [isProto] = @isProto, [isRed] = @isRed, [tags] = @tags WHERE (([userId] = @Original_userId) AND ([setName] = @Original_setName) AND ((@IsNull_Commessa = 1 AND [Commessa] IS NULL) OR ([Commessa] = @Original_Commessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) OR ([DataRic] = @Original_DataRic)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS NULL) OR ([DataDoc] = @Original_DataDoc)) AND ((@IsNull_path = 1 AND [path] IS NULL) OR ([path] = @Original_path)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsNull_isProto = 1 AND [isProto] IS NULL) OR ([isProto] = @Original_isProto)) AND ((@IsNull_isRed = 1 AND [isRed] IS NULL) OR ([isRed] = @Original_isRed)) AND ((@IsNull_tags = 1 AND [tags] IS NULL) OR ([tags] = @Original_tags))); +SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, InOut, isProto, isRed, tags FROM tbMetaDataSet WHERE (setName = @setName) AND (userId = @userId)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@setName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "setName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Commessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@path", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isProto", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isProto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isRed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isRed", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tags", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tags", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_setName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "setName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Commessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Commessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fonte", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Oggetto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataRic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataDoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_path", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_path", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InOut", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isProto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isProto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isProto", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isProto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isRed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isRed", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isRed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isRed", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tags", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tags", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tags", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tags", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_WSConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, I" + + "nOut, isProto, isRed, tags FROM dbo.tbMetaDataSet"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_MDS_deleteQuery"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userId", 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("@Original_setName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_MDS_GetByUserId_setName"; + 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("@userId", 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("@setName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_MDS_getByUserId"; + 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("@userId", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.Fill, true)] + public virtual int Fill(DS_WebScip.tbMetaDataSetDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_WebScip.tbMetaDataSetDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_WebScip.tbMetaDataSetDataTable dataTable = new DS_WebScip.tbMetaDataSetDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_WebScip.tbMetaDataSetDataTable getByKey(string userId, string setName) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((userId == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(userId)); + } + if ((setName == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(setName)); + } + DS_WebScip.tbMetaDataSetDataTable dataTable = new DS_WebScip.tbMetaDataSetDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_WebScip.tbMetaDataSetDataTable getByUserId(string userId) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((userId == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(userId)); + } + DS_WebScip.tbMetaDataSetDataTable dataTable = new DS_WebScip.tbMetaDataSetDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [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 int Update(DS_WebScip.tbMetaDataSetDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [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 int Update(DS_WebScip dataSet) { + return this.Adapter.Update(dataSet, "tbMetaDataSet"); + } + + [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 int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [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 int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_userId, string Original_setName, string Original_Commessa, string Original_Fase, string Original_Fonte, string Original_Oggetto, global::System.Nullable Original_DataRic, global::System.Nullable Original_DataDoc, string Original_path, string Original_InOut, global::System.Nullable Original_isProto, global::System.Nullable Original_isRed, string Original_tags) { + if ((Original_userId == null)) { + throw new global::System.ArgumentNullException("Original_userId"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_userId)); + } + if ((Original_setName == null)) { + throw new global::System.ArgumentNullException("Original_setName"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_setName)); + } + if ((Original_Commessa == null)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Commessa)); + } + if ((Original_Fase == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Fase)); + } + if ((Original_Fonte == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Fonte)); + } + if ((Original_Oggetto == null)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Oggetto)); + } + if ((Original_DataRic.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((System.DateTime)(Original_DataRic.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_DataDoc.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((System.DateTime)(Original_DataDoc.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_path == null)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_path)); + } + if ((Original_InOut == null)) { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_InOut)); + } + if ((Original_isProto.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[19].Value = ((bool)(Original_isProto.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((Original_isRed.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[21].Value = ((bool)(Original_isRed.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_tags == null)) { + this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_tags)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string userId, string setName, string Commessa, string Fase, string Fonte, string Oggetto, global::System.Nullable DataRic, global::System.Nullable DataDoc, string path, string InOut, global::System.Nullable isProto, global::System.Nullable isRed, string tags) { + if ((userId == null)) { + throw new global::System.ArgumentNullException("userId"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(userId)); + } + if ((setName == null)) { + throw new global::System.ArgumentNullException("setName"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(setName)); + } + if ((Commessa == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Commessa)); + } + if ((Fase == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Fase)); + } + if ((Fonte == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Fonte)); + } + if ((Oggetto == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Oggetto)); + } + if ((DataRic.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(DataRic.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((DataDoc.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(DataDoc.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((path == null)) { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(path)); + } + if ((InOut == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(InOut)); + } + if ((isProto.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[10].Value = ((bool)(isProto.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((isRed.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[11].Value = ((bool)(isRed.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((tags == null)) { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(tags)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string userId, + string setName, + string Commessa, + string Fase, + string Fonte, + string Oggetto, + global::System.Nullable DataRic, + global::System.Nullable DataDoc, + string path, + string InOut, + global::System.Nullable isProto, + global::System.Nullable isRed, + string tags, + string Original_userId, + string Original_setName, + string Original_Commessa, + string Original_Fase, + string Original_Fonte, + string Original_Oggetto, + global::System.Nullable Original_DataRic, + global::System.Nullable Original_DataDoc, + string Original_path, + string Original_InOut, + global::System.Nullable Original_isProto, + global::System.Nullable Original_isRed, + string Original_tags) { + if ((userId == null)) { + throw new global::System.ArgumentNullException("userId"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(userId)); + } + if ((setName == null)) { + throw new global::System.ArgumentNullException("setName"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(setName)); + } + if ((Commessa == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Commessa)); + } + if ((Fase == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Fase)); + } + if ((Fonte == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Fonte)); + } + if ((Oggetto == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Oggetto)); + } + if ((DataRic.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(DataRic.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((DataDoc.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(DataDoc.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((path == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(path)); + } + if ((InOut == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(InOut)); + } + if ((isProto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((bool)(isProto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((isRed.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(isRed.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((tags == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(tags)); + } + if ((Original_userId == null)) { + throw new global::System.ArgumentNullException("Original_userId"); + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_userId)); + } + if ((Original_setName == null)) { + throw new global::System.ArgumentNullException("Original_setName"); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_setName)); + } + if ((Original_Commessa == null)) { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Commessa)); + } + if ((Original_Fase == null)) { + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Fase)); + } + if ((Original_Fonte == null)) { + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Fonte)); + } + if ((Original_Oggetto == null)) { + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Oggetto)); + } + if ((Original_DataRic.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((System.DateTime)(Original_DataRic.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + } + if ((Original_DataDoc.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((System.DateTime)(Original_DataDoc.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; + } + if ((Original_path == null)) { + this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_path)); + } + if ((Original_InOut == null)) { + this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_InOut)); + } + if ((Original_isProto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[32].Value = ((bool)(Original_isProto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; + } + if ((Original_isRed.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[34].Value = ((bool)(Original_isRed.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; + } + if ((Original_tags == null)) { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_tags)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string Commessa, + string Fase, + string Fonte, + string Oggetto, + global::System.Nullable DataRic, + global::System.Nullable DataDoc, + string path, + string InOut, + global::System.Nullable isProto, + global::System.Nullable isRed, + string tags, + string Original_userId, + string Original_setName, + string Original_Commessa, + string Original_Fase, + string Original_Fonte, + string Original_Oggetto, + global::System.Nullable Original_DataRic, + global::System.Nullable Original_DataDoc, + string Original_path, + string Original_InOut, + global::System.Nullable Original_isProto, + global::System.Nullable Original_isRed, + string Original_tags) { + return this.Update(Original_userId, Original_setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, InOut, isProto, isRed, tags, Original_userId, Original_setName, Original_Commessa, Original_Fase, Original_Fonte, Original_Oggetto, Original_DataRic, Original_DataDoc, Original_path, Original_InOut, Original_isProto, Original_isRed, Original_tags); + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int deleteQuery(string Original_userId, string Original_setName) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_userId == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_userId)); + } + if ((Original_setName == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Original_setName)); + } + 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(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -8012,6 +9732,8 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = private Tags2DocTableAdapter _tags2DocTableAdapter; + private tbMetaDataSetTableAdapter _tbMetaDataSetTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -8097,6 +9819,20 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public tbMetaDataSetTableAdapter tbMetaDataSetTableAdapter { + get { + return this._tbMetaDataSetTableAdapter; + } + set { + this._tbMetaDataSetTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -8136,6 +9872,10 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = && (this._tags2DocTableAdapter.Connection != null))) { return this._tags2DocTableAdapter.Connection; } + if (((this._tbMetaDataSetTableAdapter != null) + && (this._tbMetaDataSetTableAdapter.Connection != null))) { + return this._tbMetaDataSetTableAdapter.Connection; + } return null; } set { @@ -8164,6 +9904,9 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = if ((this._tags2DocTableAdapter != null)) { count = (count + 1); } + if ((this._tbMetaDataSetTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -8220,6 +9963,15 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = allChangedRows.AddRange(updatedRows); } } + if ((this._tbMetaDataSetTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._tbMetaDataSetTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -8270,6 +10022,14 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = allAddedRows.AddRange(addedRows); } } + if ((this._tbMetaDataSetTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._tbMetaDataSetTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -8280,6 +10040,14 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(DS_WebScip dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._tbMetaDataSetTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._tbMetaDataSetTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._tags2DocTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Tags2Doc.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -8384,6 +10152,11 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._tbMetaDataSetTableAdapter != null) + && (this.MatchTableAdapterConnection(this._tbMetaDataSetTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -8461,6 +10234,15 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = adaptersWithAcceptChangesDuringUpdate.Add(this._tags2DocTableAdapter.Adapter); } } + if ((this._tbMetaDataSetTableAdapter != null)) { + revertConnections.Add(this._tbMetaDataSetTableAdapter, this._tbMetaDataSetTableAdapter.Connection); + this._tbMetaDataSetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._tbMetaDataSetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._tbMetaDataSetTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._tbMetaDataSetTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._tbMetaDataSetTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -8539,6 +10321,10 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase = this._tags2DocTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tags2DocTableAdapter])); this._tags2DocTableAdapter.Transaction = null; } + if ((this._tbMetaDataSetTableAdapter != null)) { + this._tbMetaDataSetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbMetaDataSetTableAdapter])); + this._tbMetaDataSetTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/ETS_Data/DS_WebScip.xsd b/ETS_Data/DS_WebScip.xsd index e7416aa..8639e67 100644 --- a/ETS_Data/DS_WebScip.xsd +++ b/ETS_Data/DS_WebScip.xsd @@ -730,6 +730,167 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i + + + + + + DELETE FROM [dbo].[tbMetaDataSet] WHERE (([userId] = @Original_userId) AND ([setName] = @Original_setName) AND ((@IsNull_Commessa = 1 AND [Commessa] IS NULL) OR ([Commessa] = @Original_Commessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) OR ([DataRic] = @Original_DataRic)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS NULL) OR ([DataDoc] = @Original_DataDoc)) AND ((@IsNull_path = 1 AND [path] IS NULL) OR ([path] = @Original_path)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsNull_isProto = 1 AND [isProto] IS NULL) OR ([isProto] = @Original_isProto)) AND ((@IsNull_isRed = 1 AND [isRed] IS NULL) OR ([isRed] = @Original_isRed)) AND ((@IsNull_tags = 1 AND [tags] IS NULL) OR ([tags] = @Original_tags))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[tbMetaDataSet] ([userId], [setName], [Commessa], [Fase], [Fonte], [Oggetto], [DataRic], [DataDoc], [path], [InOut], [isProto], [isRed], [tags]) VALUES (@userId, @setName, @Commessa, @Fase, @Fonte, @Oggetto, @DataRic, @DataDoc, @path, @InOut, @isProto, @isRed, @tags); +SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, InOut, isProto, isRed, tags FROM tbMetaDataSet WHERE (setName = @setName) AND (userId = @userId) + + + + + + + + + + + + + + + + + + + + SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, InOut, isProto, isRed, tags FROM dbo.tbMetaDataSet + + + + + + UPDATE [dbo].[tbMetaDataSet] SET [userId] = @userId, [setName] = @setName, [Commessa] = @Commessa, [Fase] = @Fase, [Fonte] = @Fonte, [Oggetto] = @Oggetto, [DataRic] = @DataRic, [DataDoc] = @DataDoc, [path] = @path, [InOut] = @InOut, [isProto] = @isProto, [isRed] = @isRed, [tags] = @tags WHERE (([userId] = @Original_userId) AND ([setName] = @Original_setName) AND ((@IsNull_Commessa = 1 AND [Commessa] IS NULL) OR ([Commessa] = @Original_Commessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) OR ([DataRic] = @Original_DataRic)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS NULL) OR ([DataDoc] = @Original_DataDoc)) AND ((@IsNull_path = 1 AND [path] IS NULL) OR ([path] = @Original_path)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsNull_isProto = 1 AND [isProto] IS NULL) OR ([isProto] = @Original_isProto)) AND ((@IsNull_isRed = 1 AND [isRed] IS NULL) OR ([isRed] = @Original_isRed)) AND ((@IsNull_tags = 1 AND [tags] IS NULL) OR ([tags] = @Original_tags))); +SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, InOut, isProto, isRed, tags FROM tbMetaDataSet WHERE (setName = @setName) AND (userId = @userId) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_MDS_deleteQuery + + + + + + + + + + + + dbo.stp_MDS_GetByUserId_setName + + + + + + + + + + + + dbo.stp_MDS_getByUserId + + + + + + + + + @@ -1028,6 +1189,79 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1051,6 +1285,11 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i + + + + + diff --git a/ETS_Data/DS_WebScip.xss b/ETS_Data/DS_WebScip.xss index 58cfb7f..198dfa0 100644 --- a/ETS_Data/DS_WebScip.xss +++ b/ETS_Data/DS_WebScip.xss @@ -4,16 +4,17 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - + + + + + + - + 785 @@ -25,7 +26,7 @@ - + 642 diff --git a/ETS_Data/DS_utils.Designer.cs b/ETS_Data/DS_utils.Designer.cs index 45a84d9..f95dad2 100644 --- a/ETS_Data/DS_utils.Designer.cs +++ b/ETS_Data/DS_utils.Designer.cs @@ -48,6 +48,8 @@ namespace ETS_Data { private v_tbDocs_selRedattoreDataTable tablev_tbDocs_selRedattore; + private v_selTMDDataTable tablev_selTMD; + private filesDataTable tablefiles; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -114,6 +116,9 @@ namespace ETS_Data { if ((ds.Tables["v_tbDocs_selRedattore"] != null)) { base.Tables.Add(new v_tbDocs_selRedattoreDataTable(ds.Tables["v_tbDocs_selRedattore"])); } + if ((ds.Tables["v_selTMD"] != null)) { + base.Tables.Add(new v_selTMDDataTable(ds.Tables["v_selTMD"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -255,6 +260,16 @@ namespace ETS_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selTMDDataTable v_selTMD { + get { + return this.tablev_selTMD; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -368,6 +383,9 @@ namespace ETS_Data { if ((ds.Tables["v_tbDocs_selRedattore"] != null)) { base.Tables.Add(new v_tbDocs_selRedattoreDataTable(ds.Tables["v_tbDocs_selRedattore"])); } + if ((ds.Tables["v_selTMD"] != null)) { + base.Tables.Add(new v_selTMDDataTable(ds.Tables["v_selTMD"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -476,6 +494,12 @@ namespace ETS_Data { this.tablev_tbDocs_selRedattore.InitVars(); } } + this.tablev_selTMD = ((v_selTMDDataTable)(base.Tables["v_selTMD"])); + if ((initTable == true)) { + if ((this.tablev_selTMD != null)) { + this.tablev_selTMD.InitVars(); + } + } this.tablefiles = ((filesDataTable)(base.Tables["files"])); if ((initTable == true)) { if ((this.tablefiles != null)) { @@ -516,6 +540,8 @@ namespace ETS_Data { base.Tables.Add(this.tableAnagSuggestTags); this.tablev_tbDocs_selRedattore = new v_tbDocs_selRedattoreDataTable(); base.Tables.Add(this.tablev_tbDocs_selRedattore); + this.tablev_selTMD = new v_selTMDDataTable(); + base.Tables.Add(this.tablev_selTMD); this.tablefiles = new filesDataTable(); base.Tables.Add(this.tablefiles); } @@ -592,6 +618,12 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selTMD() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializefiles() { @@ -689,6 +721,9 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void v_tbDocs_selRedattoreRowChangeEventHandler(object sender, v_tbDocs_selRedattoreRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selTMDRowChangeEventHandler(object sender, v_selTMDRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void filesRowChangeEventHandler(object sender, filesRowChangeEvent e); @@ -3906,6 +3941,297 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selTMDDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + private global::System.Data.DataColumn columnconditio; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDDataTable() { + this.TableName = "v_selTMD"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selTMDDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selTMDDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn conditioColumn { + get { + return this.columnconditio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDRow this[int index] { + get { + return ((v_selTMDRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTMDRowChangeEventHandler v_selTMDRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTMDRowChangeEventHandler v_selTMDRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTMDRowChangeEventHandler v_selTMDRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTMDRowChangeEventHandler v_selTMDRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selTMDRow(v_selTMDRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDRow Addv_selTMDRow(string value, string label, string conditio) { + v_selTMDRow rowv_selTMDRow = ((v_selTMDRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label, + conditio}; + rowv_selTMDRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selTMDRow); + return rowv_selTMDRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDRow FindByvalue(string value) { + return ((v_selTMDRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selTMDDataTable cln = ((v_selTMDDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selTMDDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + this.columnconditio = base.Columns["conditio"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnconditio = new global::System.Data.DataColumn("conditio", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconditio); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnvalue.MaxLength = 50; + this.columnlabel.AllowDBNull = false; + this.columnlabel.MaxLength = 50; + this.columnconditio.AllowDBNull = false; + this.columnconditio.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDRow Newv_selTMDRow() { + return ((v_selTMDRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selTMDRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selTMDRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selTMDRowChanged != null)) { + this.v_selTMDRowChanged(this, new v_selTMDRowChangeEvent(((v_selTMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selTMDRowChanging != null)) { + this.v_selTMDRowChanging(this, new v_selTMDRowChangeEvent(((v_selTMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selTMDRowDeleted != null)) { + this.v_selTMDRowDeleted(this, new v_selTMDRowChangeEvent(((v_selTMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selTMDRowDeleting != null)) { + this.v_selTMDRowDeleting(this, new v_selTMDRowChangeEvent(((v_selTMDRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selTMDRow(v_selTMDRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_utils ds = new DS_utils(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selTMDDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents the strongly named DataTable class. /// @@ -4912,6 +5238,54 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selTMDRow : global::System.Data.DataRow { + + private v_selTMDDataTable tablev_selTMD; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selTMDRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selTMD = ((v_selTMDDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + return ((string)(this[this.tablev_selTMD.valueColumn])); + } + set { + this[this.tablev_selTMD.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + return ((string)(this[this.tablev_selTMD.labelColumn])); + } + set { + this[this.tablev_selTMD.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string conditio { + get { + return ((string)(this[this.tablev_selTMD.conditioColumn])); + } + set { + this[this.tablev_selTMD.conditioColumn] = value; + } + } + } + /// ///Represents strongly named DataRow class. /// @@ -5447,6 +5821,40 @@ namespace ETS_Data { } } + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selTMDRowChangeEvent : global::System.EventArgs { + + private v_selTMDRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDRowChangeEvent(v_selTMDRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + /// ///Row event argument class /// @@ -7957,6 +8365,198 @@ namespace ETS_Data.DS_utilsTableAdapters { } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selTMDTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTMDTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selTMD"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + tableMapping.ColumnMappings.Add("conditio", "conditio"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_WSConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label, conditio FROM dbo.v_selTMD"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_selTDM_byConditio"; + 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("@conditio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.Fill, true)] + public virtual int Fill(DS_utils.v_selTMDDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_utils.v_selTMDDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utils.v_selTMDDataTable dataTable = new DS_utils.v_selTMDDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_utils.v_selTMDDataTable getByConditio(string conditio) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((conditio == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(conditio)); + } + DS_utils.v_selTMDDataTable dataTable = new DS_utils.v_selTMDDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/ETS_Data/DS_utils.xsd b/ETS_Data/DS_utils.xsd index 57ae40b..43bdccd 100644 --- a/ETS_Data/DS_utils.xsd +++ b/ETS_Data/DS_utils.xsd @@ -384,6 +384,36 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom + + + + + + SELECT value, label, conditio FROM dbo.v_selTMD + + + + + + + + + + + + + + + dbo.stp_selTDM_byConditio + + + + + + + + + @@ -392,7 +422,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -412,7 +442,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -426,7 +456,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -440,7 +470,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -450,7 +480,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -470,7 +500,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -490,7 +520,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -510,7 +540,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -530,7 +560,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -550,7 +580,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -559,7 +589,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -579,7 +609,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -592,7 +622,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -612,6 +642,33 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -631,5 +688,9 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom + + + + \ No newline at end of file diff --git a/ETS_Data/DS_utils.xss b/ETS_Data/DS_utils.xss index 9f49ac7..15079ea 100644 --- a/ETS_Data/DS_utils.xss +++ b/ETS_Data/DS_utils.xss @@ -4,21 +4,22 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ETS_Data/utils.cs b/ETS_Data/utils.cs index efe8dfb..d3e3d56 100644 --- a/ETS_Data/utils.cs +++ b/ETS_Data/utils.cs @@ -28,6 +28,7 @@ namespace ETS_Data public DS_WebScipTableAdapters.tbDocumentiTableAdapter taDoc; public DS_WebScipTableAdapters.Tags2DocTableAdapter taTags2Doc; + public DS_WebScipTableAdapters.tbMetaDataSetTableAdapter taTMD; /// @@ -50,6 +51,7 @@ namespace ETS_Data taAST = new DS_utilsTableAdapters.AnagSuggestTagsTableAdapter(); taDoc = new DS_WebScipTableAdapters.tbDocumentiTableAdapter(); taTags2Doc = new DS_WebScipTableAdapters.Tags2DocTableAdapter(); + taTMD = new DS_WebScipTableAdapters.tbMetaDataSetTableAdapter(); } /// /// effettua setup dei connection strings da web.config delal singola applicazione @@ -75,6 +77,7 @@ namespace ETS_Data taAST.Connection.ConnectionString = connStringETS_WS; taDoc.Connection.ConnectionString = connStringETS_WS; taTags2Doc.Connection.ConnectionString = connStringETS_WS; + taTMD.Connection.ConnectionString = connStringETS_WS; } #endregion @@ -213,6 +216,21 @@ namespace ETS_Data return answ; } } + /// + /// UserId (AD) utente correntemente connesso + /// + public string currUserId + { + get + { + // controllo e salvo in sessione se necessario... + if (!isInSessionObject("currUserId")) + { + setSessionVal("currUserId", currUserAD); + } + return currUserAD; + } + } #endregion