diff --git a/Jenkinsfile b/Jenkinsfile index 37185e28..730083e3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=871']) { + withEnv(['NEXT_BUILD_NUMBER=888']) { // env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' diff --git a/MP-Admin/MP-Admin.csproj b/MP-Admin/MP-Admin.csproj index f4d3a54f..81529220 100644 --- a/MP-Admin/MP-Admin.csproj +++ b/MP-Admin/MP-Admin.csproj @@ -194,7 +194,6 @@ - @@ -423,13 +422,6 @@ calendChiusura.aspx - - caricaUpdateOperatori.aspx - ASPXCodeBehind - - - caricaUpdateOperatori.aspx - ASPXCodeBehind Default.aspx @@ -581,13 +573,6 @@ mod_calChiusura.ascx - - mod_caricaOperatoriCSV.ascx - ASPXCodeBehind - - - mod_caricaOperatoriCSV.ascx - mod_fixCal.ascx ASPXCodeBehind @@ -860,7 +845,6 @@ - diff --git a/MP-Admin/Web.config b/MP-Admin/Web.config index 1f1d79a6..d47ad18d 100644 --- a/MP-Admin/Web.config +++ b/MP-Admin/Web.config @@ -11,65 +11,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx b/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx deleted file mode 100644 index 449536bc..00000000 --- a/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx +++ /dev/null @@ -1,53 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" - Inherits="MoonPro_site.WebUserControls.mod_caricaOperatoriCSV" Codebehind="mod_caricaOperatoriCSV.ascx.cs" %> -

- Aggiornamento dati Operatori

- - - - - -
- - - - - - - - - - - - - - - - - - - - -
- Selezionare il file da caricare: -
- -
- -
- - -
- - -
- - -
-
-
- - Password di autorizzazione:  - -
diff --git a/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx.cs b/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx.cs deleted file mode 100644 index 464550a7..00000000 --- a/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx.cs +++ /dev/null @@ -1,84 +0,0 @@ -using MapoDb; -using SteamWare; -using System; -using System.Configuration; -using System.Data; - -namespace MoonPro_site.WebUserControls -{ - public partial class mod_caricaOperatoriCSV : System.Web.UI.UserControl - { - protected void Page_Load(object sender, EventArgs e) - { - checkAuth(); - } - - private void checkAuth() - { - // se in session è auth alora mostro pannello caricamento.. - if (Convert.ToBoolean(Session["isAuthUpdForced"])) - { - pnlUpload.Visible = true; - pnlPasswd.Visible = false; - } - else - { - pnlUpload.Visible = false; - pnlPasswd.Visible = true; - } - } - protected void Button1_Click(object sender, EventArgs e) - { - // controllo se c'è il file - if (FileUpload1.HasFile) - { - // salvo file in locale... - string _dirPath = System.Web.HttpContext.Current.Server.MapPath("./upload/"); - string _logPath = System.Web.HttpContext.Current.Server.MapPath("./logs/"); - FileUpload1.PostedFile.SaveAs(string.Format("{0}importOpr.csv", _dirPath)); - // leggo il file locale in una tabella - fileMover fm = new fileMover(_dirPath, _dirPath); - DataTable tabIn = CsvParser.Parse(fm.scaricaFileString("importOpr.csv"), CheckBox1.Checked); - // svuoto vecchia tab inserting... - DataLayer.obj.taOp2ins.DeleteAll(); - int _errori = 0; - logger lg = new logger(_logPath); - foreach (DataRow riga in tabIn.Rows) - { - try - { - DataLayer.obj.taOp2ins.Insert(Convert.ToInt32(riga[0]), riga[1].ToString(), riga[2].ToString()); - } - catch - { - _errori++; - lg.scriviLog(string.Format("Importazione dati operatore: errore nell'inserimento dell'operatore con matricola {0}", riga[0])); - } - } - DataLayer.obj.taOp2ins.UpdateOperatori(); - lblWarning.Text = "Dati operatore caricati!"; - if (_errori > 0) lblWarning.Text = lblWarning.Text + string.Format(" - riscontrati {0} errori, vedere log!", _errori); - } - else - { - lblWarning.Text = "Indicare il file da caricare!"; - } - } - protected void txtPwd_TextChanged(object sender, EventArgs e) - { - string _pwdOk = ConfigurationManager.AppSettings.Get("_pdwUpdateForzato"); - // verifico la password ed eventualmente mostro pannello caricamento.. - if (txtPwd.Text != "" && txtPwd.Text == _pwdOk) - { - Session["isAuthUpdForced"] = true; - checkAuth(); - } - else - { - Session["isAuthUpdForced"] = false; - checkAuth(); - } - } - - } -} \ No newline at end of file diff --git a/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx.designer.cs b/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx.designer.cs deleted file mode 100644 index cd4cb5e5..00000000 --- a/MP-Admin/WebUserControls/mod_caricaOperatoriCSV.ascx.designer.cs +++ /dev/null @@ -1,98 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4927 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace MoonPro_site.WebUserControls -{ - - - public partial class mod_caricaOperatoriCSV { - - /// - /// pnlUpload control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Panel pnlUpload; - - /// - /// FileUpload1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.FileUpload FileUpload1; - - /// - /// CheckBox1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CheckBox CheckBox1; - - /// - /// Button1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button Button1; - - /// - /// lblWarning control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblWarning; - - /// - /// GridView1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.GridView GridView1; - - /// - /// GridView2 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.GridView GridView2; - - /// - /// pnlPasswd control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Panel pnlPasswd; - - /// - /// txtPwd control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox txtPwd; - } -} diff --git a/MP-Admin/caricaUpdateOperatori.aspx b/MP-Admin/caricaUpdateOperatori.aspx deleted file mode 100644 index 3abd80bd..00000000 --- a/MP-Admin/caricaUpdateOperatori.aspx +++ /dev/null @@ -1,7 +0,0 @@ -<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro_noAjax.master" AutoEventWireup="true" Inherits="caricaUpdateOperatori" Codebehind="caricaUpdateOperatori.aspx.cs" %> - -<%@ Register Src="~/WebUserControls/mod_caricaOperatoriCSV.ascx" TagName="mod_caricaOperatoriCSV" TagPrefix="uc1" %> - - - - diff --git a/MP-Admin/caricaUpdateOperatori.aspx.cs b/MP-Admin/caricaUpdateOperatori.aspx.cs deleted file mode 100644 index 6ba50588..00000000 --- a/MP-Admin/caricaUpdateOperatori.aspx.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -public partial class caricaUpdateOperatori : System.Web.UI.Page -{ - protected void Page_Load(object sender, EventArgs e) - { - - } -} diff --git a/MP-Admin/caricaUpdateOperatori.aspx.designer.cs b/MP-Admin/caricaUpdateOperatori.aspx.designer.cs deleted file mode 100644 index d5dbd1a7..00000000 --- a/MP-Admin/caricaUpdateOperatori.aspx.designer.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. -// -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// -//------------------------------------------------------------------------------ - - - -public partial class caricaUpdateOperatori { - - /// - /// Controllo Mod_caricaOperatoriCSV1. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::MoonPro_site.WebUserControls.mod_caricaOperatoriCSV Mod_caricaOperatoriCSV1; -} diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index 6770cdb7..9b31186b 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -8,7 +8,7 @@ namespace MP_IO.Controllers { public class IOBController : Controller { - // GET: IOB (è un check alive) + // GET: IOB (è un check alive del server) public string Index() { if (memLayer.ML.CRB("IOB_RedEnab")) diff --git a/MP-IO/Web.config b/MP-IO/Web.config index 77903734..04b212fe 100644 --- a/MP-IO/Web.config +++ b/MP-IO/Web.config @@ -5,28 +5,8 @@ --> - - - - - - - - - - - - - - - - - - - - @@ -34,8 +14,6 @@ - - diff --git a/MP-LAND/Web.config b/MP-LAND/Web.config index fb7c8554..3f2ba573 100644 --- a/MP-LAND/Web.config +++ b/MP-LAND/Web.config @@ -13,19 +13,6 @@ - - - - - - - - - - - - - @@ -34,56 +21,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/MP-MON/Controllers/HomeController.cs b/MP-MON/Controllers/HomeController.cs index fe807ee0..0d1b3471 100644 --- a/MP-MON/Controllers/HomeController.cs +++ b/MP-MON/Controllers/HomeController.cs @@ -1,4 +1,5 @@ using MP_MON.Models; +using SteamWare; using System; using System.Collections.Generic; using System.Linq; @@ -20,7 +21,7 @@ namespace MP_MON.Controllers ViewBag.cssSemBase = "sem"; try { - pageRefreshSec = WebConfigurationManager.AppSettings["pageRefreshSec"]; + pageRefreshSec = memLayer.ML.CRS("pageRefreshSec"); } catch { } @@ -42,7 +43,7 @@ namespace MP_MON.Controllers ViewBag.cssSemBase = "semBlink"; try { - pageRefreshSec = WebConfigurationManager.AppSettings["pageRefreshSec"]; + pageRefreshSec = memLayer.ML.CRS("pageRefreshSec"); } catch { } @@ -64,7 +65,7 @@ namespace MP_MON.Controllers ViewBag.cssSemBase = "semFix"; try { - pageRefreshSec = WebConfigurationManager.AppSettings["pageRefreshSec"]; + pageRefreshSec = memLayer.ML.CRS("pageRefreshSec"); } catch { } @@ -90,7 +91,7 @@ namespace MP_MON.Controllers int keepAliveMin = 1; try { - keepAliveMin = Convert.ToInt32(WebConfigurationManager.AppSettings["keepAliveMin"]); + keepAliveMin = memLayer.ML.CRI("keepAliveMin"); } catch { } @@ -103,8 +104,8 @@ namespace MP_MON.Controllers // scrivo esito esito = string.Format("Trovate {0} schede offline", numKO); // invio email... - string from = WebConfigurationManager.AppSettings["_fromEmail"]; - string to = WebConfigurationManager.AppSettings["_checkIobEmail"]; + string from = memLayer.ML.CRS("_fromEmail"); + string to = memLayer.ML.CRS("_checkIobEmail"); string subject = "MapoIOB - ciclo di controllo schede MapoIOB"; string body = string.Format("

Attenzione!

durante l'ultimo ciclo di controllo sono state {1}{0}", Environment.NewLine, esito); foreach (MappaStatoExpl item in risultato) @@ -112,7 +113,7 @@ namespace MP_MON.Controllers body += string.Format("{2}{0} \t\t | Art: {1}", item.Nome, item.CodArticolo, Environment.NewLine); } // se ho una pwd/user utilizzo smtp auth, altrimenti base... - if ((WebConfigurationManager.AppSettings["_emailUser"] != "") && (WebConfigurationManager.AppSettings["_emailPwd"] != "")) + if ((memLayer.ML.CRS("_emailUser") != "") && (memLayer.ML.CRS("_emailPwd") != "")) { SteamWare.gestEmail.geAuth.mandaEmail(from, to, subject, body); } diff --git a/MP-MON/Controllers/MachineController.cs b/MP-MON/Controllers/MachineController.cs index f424c4d4..9a3817b6 100644 --- a/MP-MON/Controllers/MachineController.cs +++ b/MP-MON/Controllers/MachineController.cs @@ -1,4 +1,5 @@ using MP_MON.Models; +using SteamWare; using System.Web.Configuration; using System.Web.Mvc; @@ -21,7 +22,7 @@ namespace MP_MON.Controllers ViewBag.cssSemBase = "sem"; try { - pageRefreshSec = WebConfigurationManager.AppSettings["pageRefreshSec"]; + pageRefreshSec = memLayer.ML.CRS("pageRefreshSec"); } catch { } @@ -49,7 +50,7 @@ namespace MP_MON.Controllers ViewBag.IdxMacchina = id; try { - pageRefreshSec = WebConfigurationManager.AppSettings["pageRefreshSec"]; + pageRefreshSec = memLayer.ML.CRS("pageRefreshSec"); } catch { } @@ -62,52 +63,6 @@ namespace MP_MON.Controllers Response.AddHeader("Refresh", pageRefreshSec); return View(); } -#if false - public ActionResult Blink() - { - // ricarico ogni minuto COMUNQUE tutto... - string pageRefreshSec = "60"; - // se ho animazione refresh è ogni 2 sec... - int pageRefreshMs = 2000; - ViewBag.cssSemBase = "semBlink"; - try - { - pageRefreshSec = WebConfigurationManager.AppSettings["pageRefreshSec"]; - } - catch - { } - if (pageRefreshSec == "") - { - pageRefreshSec = "60"; - } - - ViewBag.pageRefreshMs = pageRefreshMs; - Response.AddHeader("Refresh", pageRefreshSec); - return View("Index"); - } - public ActionResult Fix() - { - // ricarico ogni minuto COMUNQUE tutto... - string pageRefreshSec = "60"; - // refresh std ogni sec - int pageRefreshMs = 1000; - ViewBag.cssSemBase = "semFix"; - try - { - pageRefreshSec = WebConfigurationManager.AppSettings["pageRefreshSec"]; - } - catch - { } - if (pageRefreshSec == "") - { - pageRefreshSec = "60"; - } - - ViewBag.pageRefreshMs = pageRefreshMs; - Response.AddHeader("Refresh", pageRefreshSec); - return View("Index"); - } -#endif public ActionResult GetClock() { return PartialView("_mmClock"); diff --git a/MP-MON/Views/MSE/_StatusMap.cshtml b/MP-MON/Views/MSE/_StatusMap.cshtml index ca607226..552cce34 100644 --- a/MP-MON/Views/MSE/_StatusMap.cshtml +++ b/MP-MON/Views/MSE/_StatusMap.cshtml @@ -31,7 +31,7 @@ cssStatus += "_b"; } } - // verifico se mostrare sarticolo o disegno... + // verifico se mostrare articolo o disegno... string sArticolo = ""; if (System.Web.Configuration.WebConfigurationManager.AppSettings["sART"] == "CodArticolo") { diff --git a/MP-MON/Web.config b/MP-MON/Web.config index fdc27697..8bc4db14 100644 --- a/MP-MON/Web.config +++ b/MP-MON/Web.config @@ -11,35 +11,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -123,6 +99,5 @@ -
\ No newline at end of file diff --git a/MP-Site/Web.config b/MP-Site/Web.config index 95d6f086..40e66d8b 100644 --- a/MP-Site/Web.config +++ b/MP-Site/Web.config @@ -9,75 +9,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/MP-TAB/Web.config b/MP-TAB/Web.config index 49591f6b..76ff5df9 100644 --- a/MP-TAB/Web.config +++ b/MP-TAB/Web.config @@ -59,81 +59,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/MP-TAB/WebUserControls/mod_selPeriodo.ascx b/MP-TAB/WebUserControls/mod_selPeriodo.ascx index df638a14..d7ac5c21 100644 --- a/MP-TAB/WebUserControls/mod_selPeriodo.ascx +++ b/MP-TAB/WebUserControls/mod_selPeriodo.ascx @@ -40,7 +40,7 @@
- + diff --git a/MapoDb/DS_Utility.Designer.cs b/MapoDb/DS_Utility.Designer.cs index cbf9d818..5e165599 100644 --- a/MapoDb/DS_Utility.Designer.cs +++ b/MapoDb/DS_Utility.Designer.cs @@ -48,6 +48,8 @@ namespace MapoDb { private v_selGruppiDataTable tablev_selGruppi; + private v_selListValDataTable tablev_selListVal; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -112,6 +114,9 @@ namespace MapoDb { if ((ds.Tables["v_selGruppi"] != null)) { base.Tables.Add(new v_selGruppiDataTable(ds.Tables["v_selGruppi"])); } + if ((ds.Tables["v_selListVal"] != null)) { + base.Tables.Add(new v_selListValDataTable(ds.Tables["v_selListVal"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -250,6 +255,16 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selListValDataTable v_selListVal { + get { + return this.tablev_selListVal; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -353,6 +368,9 @@ namespace MapoDb { if ((ds.Tables["v_selGruppi"] != null)) { base.Tables.Add(new v_selGruppiDataTable(ds.Tables["v_selGruppi"])); } + if ((ds.Tables["v_selListVal"] != null)) { + base.Tables.Add(new v_selListValDataTable(ds.Tables["v_selListVal"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -458,6 +476,12 @@ namespace MapoDb { this.tablev_selGruppi.InitVars(); } } + this.tablev_selListVal = ((v_selListValDataTable)(base.Tables["v_selListVal"])); + if ((initTable == true)) { + if ((this.tablev_selListVal != null)) { + this.tablev_selListVal.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -492,6 +516,8 @@ namespace MapoDb { base.Tables.Add(this.tablev_selCauScarto); this.tablev_selGruppi = new v_selGruppiDataTable(); base.Tables.Add(this.tablev_selGruppi); + this.tablev_selListVal = new v_selListValDataTable(); + base.Tables.Add(this.tablev_selListVal); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -566,6 +592,12 @@ namespace MapoDb { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private bool ShouldSerializev_selListVal() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -657,6 +689,9 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public delegate void v_selGruppiRowChangeEventHandler(object sender, v_selGruppiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public delegate void v_selListValRowChangeEventHandler(object sender, v_selListValRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4441,6 +4476,270 @@ namespace MapoDb { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selListValDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public v_selListValDataTable() { + this.TableName = "v_selListVal"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal v_selListValDataTable(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", "15.0.0.0")] + protected v_selListValDataTable(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", "15.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", "15.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", "15.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", "15.0.0.0")] + public v_selListValRow this[int index] { + get { + return ((v_selListValRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event v_selListValRowChangeEventHandler v_selListValRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event v_selListValRowChangeEventHandler v_selListValRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event v_selListValRowChangeEventHandler v_selListValRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event v_selListValRowChangeEventHandler v_selListValRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void Addv_selListValRow(v_selListValRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public v_selListValRow Addv_selListValRow(string value, string label) { + v_selListValRow rowv_selListValRow = ((v_selListValRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_selListValRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selListValRow); + return rowv_selListValRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selListValDataTable cln = ((v_selListValDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selListValDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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.columnvalue.ReadOnly = true; + this.columnvalue.MaxLength = 112; + this.columnlabel.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public v_selListValRow Newv_selListValRow() { + return ((v_selListValRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selListValRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selListValRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selListValRowChanged != null)) { + this.v_selListValRowChanged(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selListValRowChanging != null)) { + this.v_selListValRowChanging(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selListValRowDeleted != null)) { + this.v_selListValRowDeleted(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selListValRowDeleting != null)) { + this.v_selListValRowDeleting(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void Removev_selListValRow(v_selListValRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_Utility ds = new DS_Utility(); + 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_selListValDataTable"; + 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. /// @@ -5888,6 +6187,77 @@ namespace MapoDb { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selListValRow : global::System.Data.DataRow { + + private v_selListValDataTable tablev_selListVal; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal v_selListValRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selListVal = ((v_selListValDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string value { + get { + try { + return ((string)(this[this.tablev_selListVal.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'value\' nella tabella \'v_selListVal\' è DBNull.", e); + } + } + set { + this[this.tablev_selListVal.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selListVal.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'label\' nella tabella \'v_selListVal\' è DBNull.", e); + } + } + set { + this[this.tablev_selListVal.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsvalueNull() { + return this.IsNull(this.tablev_selListVal.valueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetvalueNull() { + this[this.tablev_selListVal.valueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selListVal.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selListVal.labelColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -6295,6 +6665,40 @@ namespace MapoDb { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public class v_selListValRowChangeEvent : global::System.EventArgs { + + private v_selListValRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public v_selListValRowChangeEvent(v_selListValRow 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", "15.0.0.0")] + public v_selListValRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MapoDb.DS_UtilityTableAdapters { @@ -9172,6 +9576,241 @@ SELECT IdxMacchina, IdxStato, InizioStato, Value, CodArticolo, TempoCicloBase, P } } + /// + ///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_selListValTableAdapter : 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", "15.0.0.0")] + public v_selListValTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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", "15.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", "15.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", "15.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_selListVal"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selListVal"; + 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_listValues_getValidValues"; + 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("@TableName", 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("@FieldName", 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_listValues_getValidValuesTrad"; + 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("@TableName", 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("@FieldName", 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("@Lingua", global::System.Data.SqlDbType.NVarChar, 3, 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", "15.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_Utility.v_selListValDataTable 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", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selListValDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selListValDataTable dataTable = new DS_Utility.v_selListValDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selListValDataTable getByTableField(string TableName, string FieldName) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((TableName == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName)); + } + if ((FieldName == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(FieldName)); + } + DS_Utility.v_selListValDataTable dataTable = new DS_Utility.v_selListValDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selListValDataTable getByTableFieldLang(string TableName, string FieldName, string Lingua) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((TableName == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName)); + } + if ((FieldName == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(FieldName)); + } + if ((Lingua == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Lingua)); + } + DS_Utility.v_selListValDataTable dataTable = new DS_Utility.v_selListValDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/MapoDb/DS_Utility.xsd b/MapoDb/DS_Utility.xsd index 05d37185..836c8cf0 100644 --- a/MapoDb/DS_Utility.xsd +++ b/MapoDb/DS_Utility.xsd @@ -472,6 +472,49 @@ FROM dbo.v_selCauScarto + + + + + + SELECT value, label FROM dbo.v_selListVal + + + + + + + + + + + + + + dbo.stp_listValues_getValidValues + + + + + + + + + + + + dbo.stp_listValues_getValidValuesTrad + + + + + + + + + + + @@ -539,7 +582,7 @@ FROM dbo.v_selCauScarto - + @@ -553,7 +596,7 @@ FROM dbo.v_selCauScarto - + @@ -568,7 +611,7 @@ FROM dbo.v_selCauScarto - + @@ -582,7 +625,7 @@ FROM dbo.v_selCauScarto - + @@ -602,7 +645,7 @@ FROM dbo.v_selCauScarto - + @@ -671,7 +714,7 @@ FROM dbo.v_selCauScarto - + @@ -707,7 +750,7 @@ FROM dbo.v_selCauScarto - + @@ -758,7 +801,7 @@ FROM dbo.v_selCauScarto - + @@ -766,7 +809,7 @@ FROM dbo.v_selCauScarto - + @@ -800,7 +843,7 @@ FROM dbo.v_selCauScarto - + @@ -827,6 +870,26 @@ FROM dbo.v_selCauScarto + + + + + + + + + + + + + + + + + + + + diff --git a/MapoDb/DS_Utility.xss b/MapoDb/DS_Utility.xss index 9e829c60..6b49559a 100644 --- a/MapoDb/DS_Utility.xss +++ b/MapoDb/DS_Utility.xss @@ -6,18 +6,19 @@ --> - - - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file