diff --git a/WebSCR.v11.suo b/WebSCR.v11.suo index 38a9740..e5ae1d6 100644 Binary files a/WebSCR.v11.suo and b/WebSCR.v11.suo differ diff --git a/WebSCR/WebUserControls/mod_dispPeriodo.ascx b/WebSCR/WebUserControls/mod_dispPeriodo.ascx index 3cae3c1..554a185 100644 --- a/WebSCR/WebUserControls/mod_dispPeriodo.ascx +++ b/WebSCR/WebUserControls/mod_dispPeriodo.ascx @@ -10,9 +10,9 @@ <%#Eval("Data","{0:ddd dd/MM/yy}") %>
- disp: <%# Eval("ScoreDisp","{0:P0}") %> + disp: <%# Eval("ScoreDisp","{0:P1}") %>
- zona: <%# Eval("ScoreZona","{0:P0}") %> + zona: <%# Eval("ScoreZona","{0:P1}") %>
diff --git a/WebSCR/WebUserControls/mod_elencoDisp.ascx b/WebSCR/WebUserControls/mod_elencoDisp.ascx index edfec6b..9132783 100644 --- a/WebSCR/WebUserControls/mod_elencoDisp.ascx +++ b/WebSCR/WebUserControls/mod_elencoDisp.ascx @@ -1,2 +1,4 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoDisp.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoDisp" %> -elenco disponibilità \ No newline at end of file +<%@ Register Src="~/WebUserControls/mod_filtroPeriodo.ascx" TagPrefix="uc1" TagName="mod_filtroPeriodo" %> + + diff --git a/WebSCR/WebUserControls/mod_elencoDisp.ascx.designer.cs b/WebSCR/WebUserControls/mod_elencoDisp.ascx.designer.cs index ce23d81..9343fc9 100644 --- a/WebSCR/WebUserControls/mod_elencoDisp.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_elencoDisp.ascx.designer.cs @@ -3,15 +3,22 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace WebSCR.WebUserControls -{ - - - public partial class mod_elencoDisp - { +namespace WebSCR.WebUserControls { + + + public partial class mod_elencoDisp { + + /// + /// mod_filtroPeriodo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebSCR.WebUserControls.mod_filtroPeriodo mod_filtroPeriodo; } } diff --git a/WebSCR/WebUserControls/mod_filtroPeriodo.ascx b/WebSCR/WebUserControls/mod_filtroPeriodo.ascx index 90fc766..76d6706 100644 --- a/WebSCR/WebUserControls/mod_filtroPeriodo.ascx +++ b/WebSCR/WebUserControls/mod_filtroPeriodo.ascx @@ -1,7 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_filtroPeriodo.ascx.cs" Inherits="WebSCR.WebUserControls.mod_filtroPeriodo" %>
-
+
@@ -30,7 +30,7 @@
-
+ <%--
zona consegna @@ -41,6 +41,6 @@
-
+
--%>
-
\ No newline at end of file +
diff --git a/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.cs b/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.cs index b140d99..5582dd7 100644 --- a/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.cs +++ b/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.cs @@ -146,6 +146,7 @@ namespace WebSCR.WebUserControls return answ; } +#if false /// /// campo (nascosto) data from /// @@ -161,6 +162,7 @@ namespace WebSCR.WebUserControls if (value != newVal) newVal = value; lblZona.Text = newVal; } - } + } +#endif } } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.designer.cs b/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.designer.cs index e9c44f2..f5fefbd 100644 --- a/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_filtroPeriodo.ascx.designer.cs @@ -74,14 +74,5 @@ namespace WebSCR.WebUserControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.LinkButton lbPlus5; - - /// - /// lblZona control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblZona; } } diff --git a/WebSCR/WebUserControls/mod_filtroZona.ascx b/WebSCR/WebUserControls/mod_filtroZona.ascx index a6dbb1e..2f3a4db 100644 --- a/WebSCR/WebUserControls/mod_filtroZona.ascx +++ b/WebSCR/WebUserControls/mod_filtroZona.ascx @@ -1,39 +1,14 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_filtroZona.ascx.cs" Inherits="WebSCR.WebUserControls.mod_filtroZona" %> -
+
+
- dati cliente(post ricerca...) +
- + +
+
-
- indirizzo (post ricerca...) - -
-
-
-
-<%--
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
--%> \ No newline at end of file +
\ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_filtroZona.ascx.cs b/WebSCR/WebUserControls/mod_filtroZona.ascx.cs index c9284b2..ddb3fdf 100644 --- a/WebSCR/WebUserControls/mod_filtroZona.ascx.cs +++ b/WebSCR/WebUserControls/mod_filtroZona.ascx.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using WebSCR_data; namespace WebSCR.WebUserControls { @@ -13,6 +14,11 @@ namespace WebSCR.WebUserControls protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + lblCliente.Text = ""; + lblZona.Text = ""; + } } /// @@ -38,132 +44,52 @@ namespace WebSCR.WebUserControls lblZona.Text = newVal; } } -#if false - protected void Page_Load(object sender, EventArgs e) + public string ricerca { - if (memLayer.ML.StringSessionObj("CodCliente") != "") + get { - lblInd_01.Text = string.Format("{0}
{1}", "indirizzo Consegna", "24000 - BG"); - lblInd_02.Text = string.Format("{0}
{1}", "indirizzo 01", "24002 - BG"); - lblInd_03.Text = string.Format("{0}
{1}", "indirizzo 02", "24003 - BG"); - lblInd_04.Text = string.Format("Inserisci
NUOVO INDIRIZZO"); - } - fixBtnMode(Request.QueryString["Indir"], false); - } - /// - /// oggetto indirizzo - /// - public address selAddr { get; set; } - - /// - /// sistema i buttons - /// - /// - /// - protected void fixBtnMode(string btnSel, bool reportEvent) - { - // metto di base i buttons uguali - btn1.CssClass = "ui-btn ui-shadow ui-corner-all ui-icon-edit"; - btn2.CssClass = "ui-btn ui-shadow ui-corner-all ui-icon-edit"; - btn3.CssClass = "ui-btn ui-shadow ui-corner-all ui-icon-edit"; - btn4.CssClass = "ui-btn ui-shadow ui-corner-all ui-icon-edit"; - // in base a quale sia selezionato aggiorno... - switch (btnSel) - { - case "btn01": - btn1.CssClass += " ui-btn-active"; - break; - case "btn02": - btn2.CssClass += " ui-btn-active"; - break; - case "btn03": - btn3.CssClass += " ui-btn-active"; - break; - case "btn04": - btn4.CssClass += " ui-btn-active"; - break; - default: - break; - } - if (reportEvent) - { - // evento! - if (eh_selIndir != null) + string answ = ""; + try { - eh_selIndir(this, new EventArgs()); + answ = txtCerca.Text.Trim(); } + catch + { } + return answ; + } + set + { + txtCerca.Text = value; } } - - protected void btn1_Click(object sender, EventArgs e) + /// + /// effettua ricerca + /// + /// + /// + protected void txtCerca_TextChanged(object sender, EventArgs e) { - address newAdd = new address { }; - newAdd.via = "indirizzo 01"; - newAdd.cap = 12345; - newAdd.localita = "localita 12345"; - newAdd.prov = "BG"; - newAdd.tempo = 10; - newAdd.zona = "Z01"; - newAdd.selBtn = "btn01"; - selAddr = newAdd; - fixBtnMode("btn01", true); + // cerco per DOCUMENTO... + DS_Applicazione.v_clientiZoneRow riga = null; + if (ricerca != "") + { + try + { + riga = DtProxy.man.taVcz.getBySearch(ricerca)[0]; + lblCliente.Text = string.Format("{0}
{1} ", riga.RagSoc, riga.Indir); + lblIndirizzo.Text = string.Format("{0} | {1}", riga.Localita, riga.Prov); + lblZona.Text = riga.Zona; + Zona = riga.Zona; + } + catch + { } + } + else + { + lblCliente.Text = ""; + lblZona.Text = ""; + } } - - protected void btn2_Click(object sender, EventArgs e) - { - address newAdd = new address { }; - newAdd.via = "indirizzo 2"; - newAdd.cap = 12345; - newAdd.localita = "localita 12345"; - newAdd.prov = "BG"; - newAdd.tempo = 10; - newAdd.zona = "Z01"; - newAdd.selBtn = "btn02"; - selAddr = newAdd; - fixBtnMode("btn02", true); - } - - protected void btn3_Click(object sender, EventArgs e) - { - address newAdd = new address { }; - newAdd.via = "indirizzo 03"; - newAdd.cap = 12345; - newAdd.localita = "localita 12345"; - newAdd.prov = "BG"; - newAdd.tempo = 20; - newAdd.zona = "Z02"; - newAdd.selBtn = "btn03"; - selAddr = newAdd; - fixBtnMode("btn03", true); - } - - protected void btn4_Click(object sender, EventArgs e) - { - address newAdd = new address { }; - newAdd.via = "indirizzo 04"; - newAdd.cap = 12345; - newAdd.localita = "localita 12345"; - newAdd.prov = "BG"; - newAdd.tempo = 30; - newAdd.zona = "Z03"; - newAdd.selBtn = "btn04"; - selAddr = newAdd; - fixBtnMode("btn04", true); - } -#endif - } -#if false - public struct address - { - public string via { get; set; } - public int cap { get; set; } - public string localita { get; set; } - public string prov { get; set; } - public int tempo { get; set; } - public string zona { get; set; } - public string selBtn { get; set; } - } -#endif } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_filtroZona.ascx.designer.cs b/WebSCR/WebUserControls/mod_filtroZona.ascx.designer.cs index 1368703..c385303 100644 --- a/WebSCR/WebUserControls/mod_filtroZona.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_filtroZona.ascx.designer.cs @@ -12,6 +12,15 @@ namespace WebSCR.WebUserControls { public partial class mod_filtroZona { + /// + /// lblCliente control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblCliente; + /// /// txtCerca control. /// @@ -29,5 +38,14 @@ namespace WebSCR.WebUserControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblZona; + + /// + /// lblIndirizzo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblIndirizzo; } } diff --git a/WebSCR/WebUserControls/mod_pianificazione.ascx b/WebSCR/WebUserControls/mod_pianificazione.ascx index 4f367c7..d940e51 100644 --- a/WebSCR/WebUserControls/mod_pianificazione.ascx +++ b/WebSCR/WebUserControls/mod_pianificazione.ascx @@ -7,19 +7,22 @@ <%@ Register Src="~/WebUserControls/mod_impegno.ascx" TagPrefix="uc1" TagName="mod_impegno" %> <%@ Register Src="~/WebUserControls/mod_dettInt.ascx" TagPrefix="uc1" TagName="mod_dettInt" %> -
- -
-
- -
+
+
+
Ricerca per Documento
+ +
+
+
Ricerca per Periodo
+ +
-
+
diff --git a/WebSCR/WebUserControls/mod_pianificazione.ascx.cs b/WebSCR/WebUserControls/mod_pianificazione.ascx.cs index 8aaab14..1c0d87c 100644 --- a/WebSCR/WebUserControls/mod_pianificazione.ascx.cs +++ b/WebSCR/WebUserControls/mod_pianificazione.ascx.cs @@ -24,10 +24,11 @@ namespace WebSCR.WebUserControls mod_filtroPeriodo.numGG = memLayer.ML.confReadInt("numGgDef"); refreshDetail(); } - mod_filtroZona.eh_selIndir += mod_selettoreIndirizzo1_eh_selIndir; + mod_filtroZona.eh_selIndir += mod_filtroZona_eh_selIndir; mod_filtroPeriodo.eh_selData += mod_filtroPeriodo_eh_selData; mod_dettInt.eh_update += mod_dettInt_eh_update; } + /// /// richiesta refresh da inserimento dettaglio /// @@ -97,7 +98,7 @@ namespace WebSCR.WebUserControls ///
/// /// - void mod_selettoreIndirizzo1_eh_selIndir(object sender, EventArgs e) + void mod_filtroZona_eh_selIndir(object sender, EventArgs e) { refreshDetail(); } diff --git a/WebSCR/bin/WebSCR.dll b/WebSCR/bin/WebSCR.dll index 1c54fc0..46cdcaa 100644 Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ diff --git a/WebSCR/bin/WebSCR_data.dll b/WebSCR/bin/WebSCR_data.dll index 8ce75eb..8c27bb6 100644 Binary files a/WebSCR/bin/WebSCR_data.dll and b/WebSCR/bin/WebSCR_data.dll differ diff --git a/WebSCR_data/DS_Applicazione.Designer.cs b/WebSCR_data/DS_Applicazione.Designer.cs index 0fa5266..dafc89c 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -44,6 +44,8 @@ namespace WebSCR_data { private DettImpegnoDataTable tableDettImpegno; + private v_clientiZoneDataTable tablev_clientiZone; + private global::System.Data.DataRelation relationFK_Disponibilita_AnagSquadre; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -104,6 +106,9 @@ namespace WebSCR_data { if ((ds.Tables["DettImpegno"] != null)) { base.Tables.Add(new DettImpegnoDataTable(ds.Tables["DettImpegno"])); } + if ((ds.Tables["v_clientiZone"] != null)) { + base.Tables.Add(new v_clientiZoneDataTable(ds.Tables["v_clientiZone"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -222,6 +227,16 @@ namespace WebSCR_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_clientiZoneDataTable v_clientiZone { + get { + return this.tablev_clientiZone; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -319,6 +334,9 @@ namespace WebSCR_data { if ((ds.Tables["DettImpegno"] != null)) { base.Tables.Add(new DettImpegnoDataTable(ds.Tables["DettImpegno"])); } + if ((ds.Tables["v_clientiZone"] != null)) { + base.Tables.Add(new v_clientiZoneDataTable(ds.Tables["v_clientiZone"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -412,6 +430,12 @@ namespace WebSCR_data { this.tableDettImpegno.InitVars(); } } + this.tablev_clientiZone = ((v_clientiZoneDataTable)(base.Tables["v_clientiZone"])); + if ((initTable == true)) { + if ((this.tablev_clientiZone != null)) { + this.tablev_clientiZone.InitVars(); + } + } this.relationFK_Disponibilita_AnagSquadre = this.Relations["FK_Disponibilita_AnagSquadre"]; } @@ -443,6 +467,8 @@ namespace WebSCR_data { base.Tables.Add(this.tableDisponibilita); this.tableDettImpegno = new DettImpegnoDataTable(); base.Tables.Add(this.tableDettImpegno); + this.tablev_clientiZone = new v_clientiZoneDataTable(); + base.Tables.Add(this.tablev_clientiZone); this.relationFK_Disponibilita_AnagSquadre = new global::System.Data.DataRelation("FK_Disponibilita_AnagSquadre", new global::System.Data.DataColumn[] { this.tableAnagSquadre.CodSquadraColumn}, new global::System.Data.DataColumn[] { this.tableDisponibilita.CodSquadraColumn}, false); @@ -509,6 +535,12 @@ namespace WebSCR_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_clientiZone() { + 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) { @@ -594,6 +626,9 @@ namespace WebSCR_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void DettImpegnoRowChangeEventHandler(object sender, DettImpegnoRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_clientiZoneRowChangeEventHandler(object sender, v_clientiZoneRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4576,6 +4611,357 @@ namespace WebSCR_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_clientiZoneDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodCliente; + + private global::System.Data.DataColumn columnRagSoc; + + private global::System.Data.DataColumn columnIndir; + + private global::System.Data.DataColumn columnCap; + + private global::System.Data.DataColumn columnLocalita; + + private global::System.Data.DataColumn columnProv; + + private global::System.Data.DataColumn columnZona; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_clientiZoneDataTable() { + this.TableName = "v_clientiZone"; + 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_clientiZoneDataTable(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_clientiZoneDataTable(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 CodClienteColumn { + get { + return this.columnCodCliente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RagSocColumn { + get { + return this.columnRagSoc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IndirColumn { + get { + return this.columnIndir; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CapColumn { + get { + return this.columnCap; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn LocalitaColumn { + get { + return this.columnLocalita; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ProvColumn { + get { + return this.columnProv; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ZonaColumn { + get { + return this.columnZona; + } + } + + [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_clientiZoneRow this[int index] { + get { + return ((v_clientiZoneRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_clientiZoneRowChangeEventHandler v_clientiZoneRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_clientiZoneRowChangeEventHandler v_clientiZoneRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_clientiZoneRowChangeEventHandler v_clientiZoneRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_clientiZoneRowChangeEventHandler v_clientiZoneRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_clientiZoneRow(v_clientiZoneRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_clientiZoneRow Addv_clientiZoneRow(string CodCliente, string RagSoc, string Indir, string Cap, string Localita, string Prov, string Zona) { + v_clientiZoneRow rowv_clientiZoneRow = ((v_clientiZoneRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodCliente, + RagSoc, + Indir, + Cap, + Localita, + Prov, + Zona}; + rowv_clientiZoneRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_clientiZoneRow); + return rowv_clientiZoneRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_clientiZoneRow FindByCodCliente(string CodCliente) { + return ((v_clientiZoneRow)(this.Rows.Find(new object[] { + CodCliente}))); + } + + [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_clientiZoneDataTable cln = ((v_clientiZoneDataTable)(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_clientiZoneDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnCodCliente = base.Columns["CodCliente"]; + this.columnRagSoc = base.Columns["RagSoc"]; + this.columnIndir = base.Columns["Indir"]; + this.columnCap = base.Columns["Cap"]; + this.columnLocalita = base.Columns["Localita"]; + this.columnProv = base.Columns["Prov"]; + this.columnZona = base.Columns["Zona"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCliente); + this.columnRagSoc = new global::System.Data.DataColumn("RagSoc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRagSoc); + this.columnIndir = new global::System.Data.DataColumn("Indir", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIndir); + this.columnCap = new global::System.Data.DataColumn("Cap", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCap); + this.columnLocalita = new global::System.Data.DataColumn("Localita", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLocalita); + this.columnProv = new global::System.Data.DataColumn("Prov", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnProv); + this.columnZona = new global::System.Data.DataColumn("Zona", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnZona); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodCliente}, true)); + this.columnCodCliente.AllowDBNull = false; + this.columnCodCliente.Unique = true; + this.columnCodCliente.MaxLength = 50; + this.columnRagSoc.AllowDBNull = false; + this.columnRagSoc.MaxLength = 100; + this.columnIndir.MaxLength = 50; + this.columnCap.MaxLength = 10; + this.columnLocalita.MaxLength = 50; + this.columnProv.MaxLength = 10; + this.columnZona.ReadOnly = true; + this.columnZona.MaxLength = 3; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_clientiZoneRow Newv_clientiZoneRow() { + return ((v_clientiZoneRow)(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_clientiZoneRow(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_clientiZoneRow); + } + + [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_clientiZoneRowChanged != null)) { + this.v_clientiZoneRowChanged(this, new v_clientiZoneRowChangeEvent(((v_clientiZoneRow)(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_clientiZoneRowChanging != null)) { + this.v_clientiZoneRowChanging(this, new v_clientiZoneRowChangeEvent(((v_clientiZoneRow)(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_clientiZoneRowDeleted != null)) { + this.v_clientiZoneRowDeleted(this, new v_clientiZoneRowChangeEvent(((v_clientiZoneRow)(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_clientiZoneRowDeleting != null)) { + this.v_clientiZoneRowDeleting(this, new v_clientiZoneRowChangeEvent(((v_clientiZoneRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_clientiZoneRow(v_clientiZoneRow 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_Applicazione ds = new DS_Applicazione(); + 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_clientiZoneDataTable"; + 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. /// @@ -6330,6 +6716,183 @@ namespace WebSCR_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_clientiZoneRow : global::System.Data.DataRow { + + private v_clientiZoneDataTable tablev_clientiZone; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_clientiZoneRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_clientiZone = ((v_clientiZoneDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodCliente { + get { + return ((string)(this[this.tablev_clientiZone.CodClienteColumn])); + } + set { + this[this.tablev_clientiZone.CodClienteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string RagSoc { + get { + return ((string)(this[this.tablev_clientiZone.RagSocColumn])); + } + set { + this[this.tablev_clientiZone.RagSocColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Indir { + get { + try { + return ((string)(this[this.tablev_clientiZone.IndirColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Indir\' in table \'v_clientiZone\' is DBNull.", e); + } + } + set { + this[this.tablev_clientiZone.IndirColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Cap { + get { + try { + return ((string)(this[this.tablev_clientiZone.CapColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Cap\' in table \'v_clientiZone\' is DBNull.", e); + } + } + set { + this[this.tablev_clientiZone.CapColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Localita { + get { + try { + return ((string)(this[this.tablev_clientiZone.LocalitaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Localita\' in table \'v_clientiZone\' is DBNull.", e); + } + } + set { + this[this.tablev_clientiZone.LocalitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Prov { + get { + try { + return ((string)(this[this.tablev_clientiZone.ProvColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Prov\' in table \'v_clientiZone\' is DBNull.", e); + } + } + set { + this[this.tablev_clientiZone.ProvColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Zona { + get { + try { + return ((string)(this[this.tablev_clientiZone.ZonaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Zona\' in table \'v_clientiZone\' is DBNull.", e); + } + } + set { + this[this.tablev_clientiZone.ZonaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIndirNull() { + return this.IsNull(this.tablev_clientiZone.IndirColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIndirNull() { + this[this.tablev_clientiZone.IndirColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCapNull() { + return this.IsNull(this.tablev_clientiZone.CapColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCapNull() { + this[this.tablev_clientiZone.CapColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsLocalitaNull() { + return this.IsNull(this.tablev_clientiZone.LocalitaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetLocalitaNull() { + this[this.tablev_clientiZone.LocalitaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsProvNull() { + return this.IsNull(this.tablev_clientiZone.ProvColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetProvNull() { + this[this.tablev_clientiZone.ProvColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsZonaNull() { + return this.IsNull(this.tablev_clientiZone.ZonaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetZonaNull() { + this[this.tablev_clientiZone.ZonaColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -6669,6 +7232,40 @@ namespace WebSCR_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_clientiZoneRowChangeEvent : global::System.EventArgs { + + private v_clientiZoneRow 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_clientiZoneRowChangeEvent(v_clientiZoneRow 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_clientiZoneRow 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 WebSCR_data.DS_ApplicazioneTableAdapters { @@ -11175,6 +11772,203 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq } } + /// + ///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_clientiZoneTableAdapter : 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_clientiZoneTableAdapter() { + 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_clientiZone"; + tableMapping.ColumnMappings.Add("CodCliente", "CodCliente"); + tableMapping.ColumnMappings.Add("RagSoc", "RagSoc"); + tableMapping.ColumnMappings.Add("Indir", "Indir"); + tableMapping.ColumnMappings.Add("Cap", "Cap"); + tableMapping.ColumnMappings.Add("Localita", "Localita"); + tableMapping.ColumnMappings.Add("Prov", "Prov"); + tableMapping.ColumnMappings.Add("Zona", "Zona"); + 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::WebSCR_data.Properties.Settings.Default.WebSCRConnectionString; + } + + [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 CodCliente, RagSoc, Indir, Cap, Localita, Prov, Zona FROM dbo.v_clientiZon" + + "e"; + 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_vcz_search"; + 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("@search", 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_Applicazione.v_clientiZoneDataTable 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_Applicazione.v_clientiZoneDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.v_clientiZoneDataTable dataTable = new DS_Applicazione.v_clientiZoneDataTable(); + 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_Applicazione.v_clientiZoneDataTable getBySearch(string search) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((search == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(search)); + } + DS_Applicazione.v_clientiZoneDataTable dataTable = new DS_Applicazione.v_clientiZoneDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd index 1374f04..177d67d 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -602,7 +602,7 @@ FROM v_elencoImpegni - + dbo.stp_Imp_recFineInt @@ -616,7 +616,7 @@ FROM v_elencoImpegni - + dbo.stp_Imp_recStartInt @@ -630,7 +630,7 @@ FROM v_elencoImpegni - + dbo.stp_Imp_updateQuery @@ -651,7 +651,7 @@ FROM v_elencoImpegni - + dbo.stp_Imp_updNoteInt @@ -663,7 +663,7 @@ FROM v_elencoImpegni - + dbo.stp_Imp_updStart @@ -926,6 +926,40 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + + SELECT CodCliente, RagSoc, Indir, Cap, Localita, Prov, Zona FROM dbo.v_clientiZone + + + + + + + + + + + + + + + + + + + dbo.stp_vcz_search + + + + + + + + + @@ -934,7 +968,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -966,7 +1000,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1002,7 +1036,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1027,7 +1061,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1111,7 +1145,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1249,7 +1283,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1259,7 +1293,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1275,7 +1309,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1305,7 +1339,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1322,7 +1356,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1357,6 +1391,61 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1398,10 +1487,14 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + - + \ No newline at end of file diff --git a/WebSCR_data/DS_Applicazione.xss b/WebSCR_data/DS_Applicazione.xss index 499f226..06580be 100644 --- a/WebSCR_data/DS_Applicazione.xss +++ b/WebSCR_data/DS_Applicazione.xss @@ -4,21 +4,22 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - + + + + + + + + + + + - + 742 diff --git a/WebSCR_data/DtProxy.cs b/WebSCR_data/DtProxy.cs index 3cd6328..675d26a 100644 --- a/WebSCR_data/DtProxy.cs +++ b/WebSCR_data/DtProxy.cs @@ -22,19 +22,13 @@ namespace WebSCR_data /// protected virtual void avvioTableAdapters() { -#if false - taVAC = new DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter(); - taVCP = new DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter(); - taVLab = new DS_ApplicazioneTableAdapters.VisLabTableAdapter(); - taVRF = new DS_ApplicazioneTableAdapters.VisRelazFinTableAdapter(); - taRepVis = new DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter(); -#endif taATC = new DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter(); taAC = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter(); taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter(); taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter(); taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter(); taDetImp = new DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter(); + taVcz = new DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter(); taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter(); } /// @@ -45,19 +39,13 @@ namespace WebSCR_data string connStr = memLayer.ML.confReadString("WebSCRConnectionString"); string connStrFiles = memLayer.ML.confReadString("WebSCRFilesConnectionString"); // connections del db vocabolario -#if false - taVAC.Connection.ConnectionString = connStr; - taVCP.Connection.ConnectionString = connStr; - taVLab.Connection.ConnectionString = connStr; - taVRF.Connection.ConnectionString = connStr; - taRepVis.Connection.ConnectionString = connStr; -#endif taATC.Connection.ConnectionString = connStr; taAC.Connection.ConnectionString = connStr; taAS.Connection.ConnectionString = connStr; taAZ.Connection.ConnectionString = connStr; taImp.Connection.ConnectionString = connStr; taDetImp.Connection.ConnectionString = connStr; + taVcz.Connection.ConnectionString = connStr; taFile.Connection.ConnectionString = connStrFiles; } @@ -65,20 +53,13 @@ namespace WebSCR_data #region area public -#if false - public DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter taVAC; - public DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter taVCP; - public DS_ApplicazioneTableAdapters.VisLabTableAdapter taVLab; - public DS_ApplicazioneTableAdapters.VisRelazFinTableAdapter taVRF; - public DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter taRepVis; - -#endif public DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter taATC; public DS_ApplicazioneTableAdapters.AnagClientiTableAdapter taAC; public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS; public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ; public DS_ApplicazioneTableAdapters.ImpegniTableAdapter taImp; public DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter taDetImp; + public DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter taVcz; public DS_UtilityTableAdapters.tblFilesTableAdapter taFile; public static DtProxy man = new DtProxy(); diff --git a/WebSCR_data/bin/Release/WebSCR_data.dll b/WebSCR_data/bin/Release/WebSCR_data.dll index 8ce75eb..8c27bb6 100644 Binary files a/WebSCR_data/bin/Release/WebSCR_data.dll and b/WebSCR_data/bin/Release/WebSCR_data.dll differ diff --git a/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll b/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll index c5d053a..d4a5790 100644 Binary files a/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll and b/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/WebSCR_data/obj/Release/WebSCR_data.dll b/WebSCR_data/obj/Release/WebSCR_data.dll index 8ce75eb..8c27bb6 100644 Binary files a/WebSCR_data/obj/Release/WebSCR_data.dll and b/WebSCR_data/obj/Release/WebSCR_data.dll differ