diff --git a/MP-MAG/Content/Site.css b/MP-MAG/Content/Site.css
index f648b114..5e07acae 100644
--- a/MP-MAG/Content/Site.css
+++ b/MP-MAG/Content/Site.css
@@ -37,6 +37,23 @@ body {
width: 100%;
}
}
+.GridPager a,
+.GridPager span {
+ display: block;
+ height: 1.5em;
+ min-width: 1.5em;
+ text-align: center;
+ text-decoration: none;
+}
+.GridPager a {
+ background-color: #f5f5f5;
+ color: #969696;
+}
+.GridPager span {
+ background-color: #A1DCF2;
+ color: #000;
+ font-weight: bold;
+}
.border-thick {
border-width: 3px !important;
}
@@ -138,7 +155,7 @@ body {
min-width: 12rem;
min-height: 6rem;
display: inline-block;
- padding: 1rem 0;
+ padding: 3rem/3 0;
margin: 0 2px 1em;
vertical-align: top;
text-decoration: none;
@@ -151,13 +168,13 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0);
border: 1px solid #ddd;
box-sizing: border-box;
- border-radius: 0.75rem;
+ border-radius: 1.5rem/2;
}
.shortcuts .shortcut-sm {
min-width: 6.75rem;
min-height: 4.5rem;
display: inline-block;
- padding: 0.375rem 0;
+ padding: 1.5rem/4 0;
margin: 0 2px 1em;
vertical-align: top;
text-decoration: none;
@@ -170,7 +187,7 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0);
border: 1px solid #ddd;
box-sizing: border-box;
- border-radius: 0.75rem;
+ border-radius: 1.5rem/2;
}
.shortcuts .shortcut .shortcut-icon {
width: 100%;
diff --git a/MP-MAG/Content/Site.less b/MP-MAG/Content/Site.less
index 9ce6bc73..01a7752c 100644
--- a/MP-MAG/Content/Site.less
+++ b/MP-MAG/Content/Site.less
@@ -45,6 +45,26 @@ body {
}
}
+.GridPager a,
+.GridPager span {
+ display: block;
+ height: 1.5em;
+ min-width: 1.5em;
+ text-align: center;
+ text-decoration: none;
+}
+
+.GridPager a {
+ background-color: #f5f5f5;
+ color: #969696;
+}
+
+.GridPager span {
+ background-color: #A1DCF2;
+ color: #000;
+ font-weight: bold;
+}
+
@borderThick: 3px;
.border-thick {
@@ -266,4 +286,4 @@ body {
margin-top: .75em;
font-weight: 400;
color: #666;
-}
\ No newline at end of file
+}
diff --git a/MP-MAG/Content/Site.min.css b/MP-MAG/Content/Site.min.css
index c855504d..0319ae63 100644
--- a/MP-MAG/Content/Site.min.css
+++ b/MP-MAG/Content/Site.min.css
@@ -1 +1 @@
-body{font-family:'Roboto Condensed',sans-serif;padding-top:50px;padding-bottom:20px;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}body{font-family:'Roboto',sans-serif;}}@media(max-width:992px){.container{width:100%;}}.border-thick{border-width:3px !important;}.flashColor{border:3px solid #00f;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{border-color:#c4dbff;}25%{border-color:#9dc4ff;}50%{border-color:#5ca5ff;}75%{border-color:#1b82ff;}100%{border-color:#005ccc;}}.bigText{font-size:1.3em;}.smallText{font-size:.8em;}.dl-horizontal dt{white-space:normal;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;}.pagination{margin:5px 0;}.pageSelDD{width:6em;}.zeroWidth{width:0;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:12rem;min-height:6rem;display:inline-block;padding:1rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:.75rem;}.shortcuts .shortcut-sm{min-width:6.75rem;min-height:4.5rem;display:inline-block;padding:.375rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:.75rem;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}
\ No newline at end of file
+body{font-family:'Roboto Condensed',sans-serif;padding-top:50px;padding-bottom:20px;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}body{font-family:'Roboto',sans-serif;}}@media(max-width:992px){.container{width:100%;}}.GridPager a,.GridPager span{display:block;height:1.5em;min-width:1.5em;text-align:center;text-decoration:none;}.GridPager a{background-color:#f5f5f5;color:#969696;}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold;}.border-thick{border-width:3px !important;}.flashColor{border:3px solid #00f;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{border-color:#c4dbff;}25%{border-color:#9dc4ff;}50%{border-color:#5ca5ff;}75%{border-color:#1b82ff;}100%{border-color:#005ccc;}}.bigText{font-size:1.3em;}.smallText{font-size:.8em;}.dl-horizontal dt{white-space:normal;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;}.pagination{margin:5px 0;}.pageSelDD{width:6em;}.zeroWidth{width:0;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:12rem;min-height:6rem;display:inline-block;padding:3rem/3 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:1.5rem/2;}.shortcuts .shortcut-sm{min-width:6.75rem;min-height:4.5rem;display:inline-block;padding:1.5rem/4 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:1.5rem/2;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}
\ No newline at end of file
diff --git a/MP-MAG/MP-MAG.csproj b/MP-MAG/MP-MAG.csproj
index 6e063d20..bc8005c3 100644
--- a/MP-MAG/MP-MAG.csproj
+++ b/MP-MAG/MP-MAG.csproj
@@ -329,6 +329,13 @@
Site.Master
+
+ AnagCliFor.aspx
+ ASPXCodeBehind
+
+
+ AnagCliFor.aspx
+
Default.aspx
ASPXCodeBehind
@@ -336,6 +343,13 @@
Default.aspx
+
+ DiBa.aspx
+ ASPXCodeBehind
+
+
+ DiBa.aspx
+
EnrollDevice.aspx
ASPXCodeBehind
@@ -413,6 +427,13 @@
cmp_activeParams.ascx
+
+ cmp_AnagCliFor.ascx
+ ASPXCodeBehind
+
+
+ cmp_AnagCliFor.ascx
+
cmp_barcode.ascx
ASPXCodeBehind
@@ -469,6 +490,13 @@
cmp_currODL.ascx
+
+ cmp_destClienti.ascx
+ ASPXCodeBehind
+
+
+ cmp_destClienti.ascx
+
cmp_dettLotti.ascx
ASPXCodeBehind
@@ -890,7 +918,9 @@
PreserveNewest
+
+
@@ -905,6 +935,7 @@
+
@@ -912,6 +943,7 @@
+
diff --git a/MP-MAG/SMART/AnagCliFor.aspx b/MP-MAG/SMART/AnagCliFor.aspx
new file mode 100644
index 00000000..f2cbae14
--- /dev/null
+++ b/MP-MAG/SMART/AnagCliFor.aspx
@@ -0,0 +1,11 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AnagCliFor.aspx.cs" Inherits="MP_MAG.SMART.AnagCliFor" %>
+
+<%@ Register Src="~/WebUserControls/cmp_AnagCliFor.ascx" TagPrefix="uc1" TagName="cmp_AnagCliFor" %>
+
+
+
+
diff --git a/MP-MAG/SMART/AnagCliFor.aspx.cs b/MP-MAG/SMART/AnagCliFor.aspx.cs
new file mode 100644
index 00000000..609987a4
--- /dev/null
+++ b/MP-MAG/SMART/AnagCliFor.aspx.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MP_MAG.SMART
+{
+ public partial class AnagCliFor : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-MAG/SMART/AnagCliFor.aspx.designer.cs b/MP-MAG/SMART/AnagCliFor.aspx.designer.cs
new file mode 100644
index 00000000..b4ed4acf
--- /dev/null
+++ b/MP-MAG/SMART/AnagCliFor.aspx.designer.cs
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace MP_MAG.SMART
+{
+
+
+ public partial class AnagCliFor
+ {
+
+ ///
+ /// cmp_AnagCliFor control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::MP_MAG.WebUserControls.cmp_AnagCliFor cmp_AnagCliFor;
+ }
+}
diff --git a/MP-MAG/SMART/DiBa.aspx b/MP-MAG/SMART/DiBa.aspx
new file mode 100644
index 00000000..8bac918b
--- /dev/null
+++ b/MP-MAG/SMART/DiBa.aspx
@@ -0,0 +1,3 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DiBa.aspx.cs" Inherits="MP_MAG.SMART.DiBa" %>
+
+
diff --git a/MP-MAG/SMART/DiBa.aspx.cs b/MP-MAG/SMART/DiBa.aspx.cs
new file mode 100644
index 00000000..c6da6c9b
--- /dev/null
+++ b/MP-MAG/SMART/DiBa.aspx.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MP_MAG.SMART
+{
+ public partial class DiBa : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-MAG/SMART/DiBa.aspx.designer.cs b/MP-MAG/SMART/DiBa.aspx.designer.cs
new file mode 100644
index 00000000..8aea5d55
--- /dev/null
+++ b/MP-MAG/SMART/DiBa.aspx.designer.cs
@@ -0,0 +1,17 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace MP_MAG.SMART
+{
+
+
+ public partial class DiBa
+ {
+ }
+}
diff --git a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx
new file mode 100644
index 00000000..9c108dbe
--- /dev/null
+++ b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx
@@ -0,0 +1,165 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_AnagCliFor.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_AnagCliFor" %>
+<%@ Register Src="~/WebUserControls/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %>
+<%@ Register Src="~/WebUserControls/cmp_destClienti.ascx" TagPrefix="uc1" TagName="cmp_destClienti" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
new file mode 100644
index 00000000..dfb83ba8
--- /dev/null
+++ b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
@@ -0,0 +1,119 @@
+using System;
+using System.Web.UI;
+
+namespace MP_MAG.WebUserControls
+{
+ public partial class cmp_AnagCliFor : BaseUserControl
+ {
+ #region Protected Properties
+
+ protected bool showDet
+ {
+ get
+ {
+ bool answ = false;
+ bool.TryParse(hfShowDet.Value, out answ);
+ return answ;
+ }
+ set
+ {
+ hfShowDet.Value = $"{value}";
+ fixDetailView(value);
+ }
+ }
+
+ #endregion Protected Properties
+
+ #region Private Methods
+
+ private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e)
+ {
+ grView.PageSize = cmp_numRow.numRow;
+ grView.PageIndex = 0;
+ doReset();
+ }
+
+ #endregion Private Methods
+
+ #region Protected Methods
+
+ protected void fixDetailView(bool showDetail)
+ {
+ divMain.Visible = true;
+ divDetail.Visible = showDetail;
+ string mainCss = showDetail ? "col-7 pr-0" : "col-12";
+ divMain.Attributes.Remove("class");
+ divMain.Attributes.Add("class", mainCss);
+ for (int i = 7; i < 11; i++)
+ {
+ grView.Columns[i].Visible = !showDet;
+ }
+ }
+
+ protected void grView_RowDeleted(object sender, System.Web.UI.WebControls.GridViewDeletedEventArgs e)
+ {
+ doReset();
+ }
+
+ protected void grView_RowEditing(object sender, System.Web.UI.WebControls.GridViewEditEventArgs e)
+ {
+ grView.SelectedIndex = e.NewEditIndex;
+ }
+
+ ///
+ /// Aggiunta nuovo record
+ ///
+ ///
+ ///
+ protected void lbtAddNew_Click(object sender, EventArgs e)
+ {
+ MagDataLayerObj.taACF.insertQuery("__CodiceCliente", "Nuova Ragione Sociale", "Nuovo Indirizzo", "Nuova Località", "00000", "BA", "IT", false, true);
+ doReset();
+ }
+
+ ///
+ /// comando reset
+ ///
+ ///
+ ///
+ protected void lbtReset_Click(object sender, EventArgs e)
+ {
+ doReset();
+ raiseReset();
+ }
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
+ {
+ grView.PageSize = cmp_numRow.numRow;
+ showDet = false;
+ }
+ cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh;
+ }
+
+ #endregion Protected Methods
+
+ #region Public Methods
+
+ public void doReset()
+ {
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ showDet = false;
+ }
+
+ #endregion Public Methods
+
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showDet = true;
+ cmp_destClienti.codCli = $"{grView.SelectedValue}";
+ }
+
+ protected void grView_PageIndexChanged(object sender, EventArgs e)
+ {
+ doReset();
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.designer.cs
new file mode 100644
index 00000000..aae52bfd
--- /dev/null
+++ b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.designer.cs
@@ -0,0 +1,98 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace MP_MAG.WebUserControls
+{
+
+
+ public partial class cmp_AnagCliFor
+ {
+
+ ///
+ /// chkShowCli control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkShowCli;
+
+ ///
+ /// chkShoFor control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkShoFor;
+
+ ///
+ /// divMain control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain;
+
+ ///
+ /// hfShowDet control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfShowDet;
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+
+ ///
+ /// divDetail control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
+
+ ///
+ /// cmp_destClienti control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::MP_MAG.WebUserControls.cmp_destClienti cmp_destClienti;
+
+ ///
+ /// cmp_numRow control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::MP_MAG.WebUserControls.cmp_numRow cmp_numRow;
+ }
+}
diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx b/MP-MAG/WebUserControls/cmp_destClienti.ascx
new file mode 100644
index 00000000..26d25d45
--- /dev/null
+++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx
@@ -0,0 +1,28 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_destClienti.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_destClienti" %>
+
+
+
+
+
0 Record Found
+
+
+
+ <%----%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
new file mode 100644
index 00000000..462a8e49
--- /dev/null
+++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MP_MAG.WebUserControls
+{
+ public partial class cmp_destClienti : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ public string codCli
+ {
+ get
+ {
+ return hfCodCli.Value;
+ }
+ set
+ {
+ hfCodCli.Value = value;
+ grView.DataBind();
+ grView.SelectedIndex = -1;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_destClienti.ascx.designer.cs
new file mode 100644
index 00000000..e30cc2aa
--- /dev/null
+++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx.designer.cs
@@ -0,0 +1,44 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace MP_MAG.WebUserControls
+{
+
+
+ public partial class cmp_destClienti
+ {
+
+ ///
+ /// hfCodCli control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfCodCli;
+
+ ///
+ /// grView control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grView;
+
+ ///
+ /// ods control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource ods;
+ }
+}
diff --git a/MP-MAG/WebUserControls/cmp_jumper.ascx.cs b/MP-MAG/WebUserControls/cmp_jumper.ascx.cs
index 8c17df14..d4883ae4 100644
--- a/MP-MAG/WebUserControls/cmp_jumper.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_jumper.ascx.cs
@@ -67,7 +67,7 @@ namespace MP_MAG.WebUserControls
// se l'operatore in sessione è DIVERSO da quello appena inviato --> effettuo NUOVO login
if (MatrOpr == memLayer.ML.IntSessionObj("MatrOpr"))
{
- // rimando a pagina di stampax ODL
+ // rimando a pagina di stampa x ODL
tgtPage = "printCartOdl";
}
else
diff --git a/MagData/DS_Mag.Designer.cs b/MagData/DS_Mag.Designer.cs
index 606b6e32..91c83847 100644
--- a/MagData/DS_Mag.Designer.cs
+++ b/MagData/DS_Mag.Designer.cs
@@ -44,6 +44,8 @@ namespace MagData {
private MacchineDataTable tableMacchine;
+ private AnagDestinClientiDataTable tableAnagDestinClienti;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -102,6 +104,9 @@ namespace MagData {
if ((ds.Tables["Macchine"] != null)) {
base.Tables.Add(new MacchineDataTable(ds.Tables["Macchine"]));
}
+ if ((ds.Tables["AnagDestinClienti"] != null)) {
+ base.Tables.Add(new AnagDestinClientiDataTable(ds.Tables["AnagDestinClienti"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -220,6 +225,16 @@ namespace MagData {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagDestinClientiDataTable AnagDestinClienti {
+ get {
+ return this.tableAnagDestinClienti;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -317,6 +332,9 @@ namespace MagData {
if ((ds.Tables["Macchine"] != null)) {
base.Tables.Add(new MacchineDataTable(ds.Tables["Macchine"]));
}
+ if ((ds.Tables["AnagDestinClienti"] != null)) {
+ base.Tables.Add(new AnagDestinClientiDataTable(ds.Tables["AnagDestinClienti"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -410,6 +428,12 @@ namespace MagData {
this.tableMacchine.InitVars();
}
}
+ this.tableAnagDestinClienti = ((AnagDestinClientiDataTable)(base.Tables["AnagDestinClienti"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagDestinClienti != null)) {
+ this.tableAnagDestinClienti.InitVars();
+ }
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -440,6 +464,8 @@ namespace MagData {
base.Tables.Add(this.tableAnagArticoli2Clienti);
this.tableMacchine = new MacchineDataTable();
base.Tables.Add(this.tableMacchine);
+ this.tableAnagDestinClienti = new AnagDestinClientiDataTable();
+ base.Tables.Add(this.tableAnagDestinClienti);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -502,6 +528,12 @@ namespace MagData {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ private bool ShouldSerializeAnagDestinClienti() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -587,6 +619,9 @@ namespace MagData {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public delegate void MacchineRowChangeEventHandler(object sender, MacchineRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public delegate void AnagDestinClientiRowChangeEventHandler(object sender, AnagDestinClientiRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -3419,6 +3454,10 @@ namespace MagData {
private global::System.Data.DataColumn columnNazione;
+ private global::System.Data.DataColumn columnIsCli;
+
+ private global::System.Data.DataColumn columnIsFor;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public AnagClientiDataTable() {
@@ -3508,6 +3547,22 @@ namespace MagData {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn IsCliColumn {
+ get {
+ return this.columnIsCli;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn IsForColumn {
+ get {
+ return this.columnIsFor;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -3545,7 +3600,7 @@ namespace MagData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
- public AnagClientiRow AddAnagClientiRow(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione) {
+ public AnagClientiRow AddAnagClientiRow(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione, bool IsCli, bool IsFor) {
AnagClientiRow rowAnagClientiRow = ((AnagClientiRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
CodCliente,
@@ -3554,7 +3609,9 @@ namespace MagData {
Localita,
Cap,
Provincia,
- Nazione};
+ Nazione,
+ IsCli,
+ IsFor};
rowAnagClientiRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAnagClientiRow);
return rowAnagClientiRow;
@@ -3591,6 +3648,8 @@ namespace MagData {
this.columnCap = base.Columns["Cap"];
this.columnProvincia = base.Columns["Provincia"];
this.columnNazione = base.Columns["Nazione"];
+ this.columnIsCli = base.Columns["IsCli"];
+ this.columnIsFor = base.Columns["IsFor"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3610,6 +3669,10 @@ namespace MagData {
base.Columns.Add(this.columnProvincia);
this.columnNazione = new global::System.Data.DataColumn("Nazione", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNazione);
+ this.columnIsCli = new global::System.Data.DataColumn("IsCli", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIsCli);
+ this.columnIsFor = new global::System.Data.DataColumn("IsFor", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIsFor);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnCodCliente}, true));
this.columnCodCliente.AllowDBNull = false;
@@ -3627,6 +3690,8 @@ namespace MagData {
this.columnProvincia.MaxLength = 50;
this.columnNazione.AllowDBNull = false;
this.columnNazione.MaxLength = 50;
+ this.columnIsCli.AllowDBNull = false;
+ this.columnIsFor.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4745,6 +4810,373 @@ namespace MagData {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagDestinClientiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodCliente;
+
+ private global::System.Data.DataColumn columnCodDestinazione;
+
+ private global::System.Data.DataColumn columnDescDestinazione;
+
+ private global::System.Data.DataColumn columnIndirizzo;
+
+ private global::System.Data.DataColumn columnCap;
+
+ private global::System.Data.DataColumn columnLocalita;
+
+ private global::System.Data.DataColumn columnProvincia;
+
+ private global::System.Data.DataColumn columnNazione;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public AnagDestinClientiDataTable() {
+ this.TableName = "AnagDestinClienti";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ internal AnagDestinClientiDataTable(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", "17.0.0.0")]
+ protected AnagDestinClientiDataTable(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", "17.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", "17.0.0.0")]
+ public global::System.Data.DataColumn CodDestinazioneColumn {
+ get {
+ return this.columnCodDestinazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn DescDestinazioneColumn {
+ get {
+ return this.columnDescDestinazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn IndirizzoColumn {
+ get {
+ return this.columnIndirizzo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.0.0.0")]
+ public global::System.Data.DataColumn ProvinciaColumn {
+ get {
+ return this.columnProvincia;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn NazioneColumn {
+ get {
+ return this.columnNazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
+ public AnagDestinClientiRow this[int index] {
+ get {
+ return ((AnagDestinClientiRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event AnagDestinClientiRowChangeEventHandler AnagDestinClientiRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event AnagDestinClientiRowChangeEventHandler AnagDestinClientiRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event AnagDestinClientiRowChangeEventHandler AnagDestinClientiRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public event AnagDestinClientiRowChangeEventHandler AnagDestinClientiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void AddAnagDestinClientiRow(AnagDestinClientiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public AnagDestinClientiRow AddAnagDestinClientiRow(string CodCliente, string CodDestinazione, string DescDestinazione, string Indirizzo, string Cap, string Localita, string Provincia, string Nazione) {
+ AnagDestinClientiRow rowAnagDestinClientiRow = ((AnagDestinClientiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodCliente,
+ CodDestinazione,
+ DescDestinazione,
+ Indirizzo,
+ Cap,
+ Localita,
+ Provincia,
+ Nazione};
+ rowAnagDestinClientiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagDestinClientiRow);
+ return rowAnagDestinClientiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public AnagDestinClientiRow FindByCodClienteCodDestinazione(string CodCliente, string CodDestinazione) {
+ return ((AnagDestinClientiRow)(this.Rows.Find(new object[] {
+ CodCliente,
+ CodDestinazione})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AnagDestinClientiDataTable cln = ((AnagDestinClientiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagDestinClientiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ internal void InitVars() {
+ this.columnCodCliente = base.Columns["CodCliente"];
+ this.columnCodDestinazione = base.Columns["CodDestinazione"];
+ this.columnDescDestinazione = base.Columns["DescDestinazione"];
+ this.columnIndirizzo = base.Columns["Indirizzo"];
+ this.columnCap = base.Columns["Cap"];
+ this.columnLocalita = base.Columns["Localita"];
+ this.columnProvincia = base.Columns["Provincia"];
+ this.columnNazione = base.Columns["Nazione"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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.columnCodDestinazione = new global::System.Data.DataColumn("CodDestinazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodDestinazione);
+ this.columnDescDestinazione = new global::System.Data.DataColumn("DescDestinazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescDestinazione);
+ this.columnIndirizzo = new global::System.Data.DataColumn("Indirizzo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIndirizzo);
+ 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.columnProvincia = new global::System.Data.DataColumn("Provincia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnProvincia);
+ this.columnNazione = new global::System.Data.DataColumn("Nazione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNazione);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodCliente,
+ this.columnCodDestinazione}, true));
+ this.columnCodCliente.AllowDBNull = false;
+ this.columnCodCliente.MaxLength = 50;
+ this.columnCodDestinazione.AllowDBNull = false;
+ this.columnCodDestinazione.MaxLength = 50;
+ this.columnDescDestinazione.AllowDBNull = false;
+ this.columnDescDestinazione.MaxLength = 250;
+ this.columnIndirizzo.MaxLength = 250;
+ this.columnCap.MaxLength = 10;
+ this.columnLocalita.MaxLength = 250;
+ this.columnProvincia.MaxLength = 50;
+ this.columnNazione.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public AnagDestinClientiRow NewAnagDestinClientiRow() {
+ return ((AnagDestinClientiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagDestinClientiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagDestinClientiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagDestinClientiRowChanged != null)) {
+ this.AnagDestinClientiRowChanged(this, new AnagDestinClientiRowChangeEvent(((AnagDestinClientiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagDestinClientiRowChanging != null)) {
+ this.AnagDestinClientiRowChanging(this, new AnagDestinClientiRowChangeEvent(((AnagDestinClientiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagDestinClientiRowDeleted != null)) {
+ this.AnagDestinClientiRowDeleted(this, new AnagDestinClientiRowChangeEvent(((AnagDestinClientiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagDestinClientiRowDeleting != null)) {
+ this.AnagDestinClientiRowDeleting(this, new AnagDestinClientiRowChangeEvent(((AnagDestinClientiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void RemoveAnagDestinClientiRow(AnagDestinClientiRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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_Mag ds = new DS_Mag();
+ 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 = "AnagDestinClientiDataTable";
+ 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.
///
@@ -6325,6 +6757,28 @@ namespace MagData {
this[this.tableAnagClienti.NazioneColumn] = value;
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsCli {
+ get {
+ return ((bool)(this[this.tableAnagClienti.IsCliColumn]));
+ }
+ set {
+ this[this.tableAnagClienti.IsCliColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsFor {
+ get {
+ return ((bool)(this[this.tableAnagClienti.IsForColumn]));
+ }
+ set {
+ this[this.tableAnagClienti.IsForColumn] = value;
+ }
+ }
}
///
@@ -6679,6 +7133,194 @@ namespace MagData {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class AnagDestinClientiRow : global::System.Data.DataRow {
+
+ private AnagDestinClientiDataTable tableAnagDestinClienti;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ internal AnagDestinClientiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagDestinClienti = ((AnagDestinClientiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string CodCliente {
+ get {
+ return ((string)(this[this.tableAnagDestinClienti.CodClienteColumn]));
+ }
+ set {
+ this[this.tableAnagDestinClienti.CodClienteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string CodDestinazione {
+ get {
+ return ((string)(this[this.tableAnagDestinClienti.CodDestinazioneColumn]));
+ }
+ set {
+ this[this.tableAnagDestinClienti.CodDestinazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string DescDestinazione {
+ get {
+ return ((string)(this[this.tableAnagDestinClienti.DescDestinazioneColumn]));
+ }
+ set {
+ this[this.tableAnagDestinClienti.DescDestinazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string Indirizzo {
+ get {
+ try {
+ return ((string)(this[this.tableAnagDestinClienti.IndirizzoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Indirizzo\' in table \'AnagDestinClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagDestinClienti.IndirizzoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string Cap {
+ get {
+ try {
+ return ((string)(this[this.tableAnagDestinClienti.CapColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Cap\' in table \'AnagDestinClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagDestinClienti.CapColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string Localita {
+ get {
+ try {
+ return ((string)(this[this.tableAnagDestinClienti.LocalitaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Localita\' in table \'AnagDestinClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagDestinClienti.LocalitaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string Provincia {
+ get {
+ try {
+ return ((string)(this[this.tableAnagDestinClienti.ProvinciaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Provincia\' in table \'AnagDestinClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagDestinClienti.ProvinciaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string Nazione {
+ get {
+ try {
+ return ((string)(this[this.tableAnagDestinClienti.NazioneColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Nazione\' in table \'AnagDestinClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagDestinClienti.NazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsIndirizzoNull() {
+ return this.IsNull(this.tableAnagDestinClienti.IndirizzoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetIndirizzoNull() {
+ this[this.tableAnagDestinClienti.IndirizzoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsCapNull() {
+ return this.IsNull(this.tableAnagDestinClienti.CapColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetCapNull() {
+ this[this.tableAnagDestinClienti.CapColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsLocalitaNull() {
+ return this.IsNull(this.tableAnagDestinClienti.LocalitaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetLocalitaNull() {
+ this[this.tableAnagDestinClienti.LocalitaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsProvinciaNull() {
+ return this.IsNull(this.tableAnagDestinClienti.ProvinciaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetProvinciaNull() {
+ this[this.tableAnagDestinClienti.ProvinciaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public bool IsNazioneNull() {
+ return this.IsNull(this.tableAnagDestinClienti.NazioneColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public void SetNazioneNull() {
+ this[this.tableAnagDestinClienti.NazioneColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -7018,6 +7660,40 @@ namespace MagData {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public class AnagDestinClientiRowChangeEvent : global::System.EventArgs {
+
+ private AnagDestinClientiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public AnagDestinClientiRowChangeEvent(AnagDestinClientiRow 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", "17.0.0.0")]
+ public AnagDestinClientiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace MagData.DS_MagTableAdapters {
@@ -9179,10 +9855,12 @@ namespace MagData.DS_MagTableAdapters {
tableMapping.ColumnMappings.Add("Cap", "Cap");
tableMapping.ColumnMappings.Add("Provincia", "Provincia");
tableMapping.ColumnMappings.Add("Nazione", "Nazione");
+ tableMapping.ColumnMappings.Add("IsCli", "IsCli");
+ tableMapping.ColumnMappings.Add("IsFor", "IsFor");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione) AND ([IsCli] = @Original_IsCli) AND ([IsFor] = @Original_IsFor))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -9191,10 +9869,12 @@ namespace MagData.DS_MagTableAdapters {
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsCli", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsCli", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsFor", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsFor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagSociale], [Indirizzo], [Localita], [Cap], [Provincia], [Nazione]) VALUES (@CodCliente, @RagSociale, @Indirizzo, @Localita, @Cap, @Provincia, @Nazione);
-SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM AnagClienti WHERE (CodCliente = @CodCliente)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagSociale], [Indirizzo], [Localita], [Cap], [Provincia], [Nazione], [IsCli], [IsFor]) VALUES (@CodCliente, @RagSociale, @Indirizzo, @Localita, @Cap, @Provincia, @Nazione, @IsCli, @IsFor);
+SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor FROM AnagClienti WHERE (CodCliente = @CodCliente)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -9203,10 +9883,12 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsCli", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsCli", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsFor", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsFor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagSociale] = @RagSociale, [Indirizzo] = @Indirizzo, [Localita] = @Localita, [Cap] = @Cap, [Provincia] = @Provincia, [Nazione] = @Nazione WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione));
-SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM AnagClienti WHERE (CodCliente = @CodCliente)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagSociale] = @RagSociale, [Indirizzo] = @Indirizzo, [Localita] = @Localita, [Cap] = @Cap, [Provincia] = @Provincia, [Nazione] = @Nazione, [IsCli] = @IsCli, [IsFor] = @IsFor WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione) AND ([IsCli] = @Original_IsCli) AND ([IsFor] = @Original_IsFor));
+SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor FROM AnagClienti WHERE (CodCliente = @CodCliente)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -9215,6 +9897,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsCli", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsCli", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsFor", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsFor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -9222,6 +9906,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsCli", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsCli", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsFor", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsFor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9234,12 +9920,54 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM " +
- "dbo.AnagClienti";
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.AnagClienti";
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_ACF_deleteQuery";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", 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_ACF_getBySearch";
+ 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("@searchVal", 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("@showCli", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showFor", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_ACF_insertQuery";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Localita", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cap", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Provincia", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsCli", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsFor", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dbo.stp_ACF_updateQuery";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Localita", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cap", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Provincia", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsCli", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsFor", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", 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()]
@@ -9266,6 +9994,35 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
return dataTable;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.AnagClientiDataTable getBySearch(string searchVal, global::System.Nullable showCli, global::System.Nullable showFor) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((searchVal == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(searchVal));
+ }
+ if ((showCli.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((bool)(showCli.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((showFor.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((bool)(showFor.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ DS_Mag.AnagClientiDataTable dataTable = new DS_Mag.AnagClientiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -9299,7 +10056,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodCliente, string Original_RagSociale, string Original_Indirizzo, string Original_Localita, string Original_Cap, string Original_Provincia, string Original_Nazione) {
+ public virtual int Delete(string Original_CodCliente, string Original_RagSociale, string Original_Indirizzo, string Original_Localita, string Original_Cap, string Original_Provincia, string Original_Nazione, bool Original_IsCli, bool Original_IsFor) {
if ((Original_CodCliente == null)) {
throw new global::System.ArgumentNullException("Original_CodCliente");
}
@@ -9342,6 +10099,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
else {
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Nazione));
}
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((bool)(Original_IsCli));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_IsFor));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -9362,7 +10121,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione) {
+ public virtual int Insert(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione, bool IsCli, bool IsFor) {
if ((CodCliente == null)) {
throw new global::System.ArgumentNullException("CodCliente");
}
@@ -9405,6 +10164,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Nazione));
}
+ this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(IsCli));
+ this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(IsFor));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -9425,7 +10186,25 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione, string Original_CodCliente, string Original_RagSociale, string Original_Indirizzo, string Original_Localita, string Original_Cap, string Original_Provincia, string Original_Nazione) {
+ public virtual int Update(
+ string CodCliente,
+ string RagSociale,
+ string Indirizzo,
+ string Localita,
+ string Cap,
+ string Provincia,
+ string Nazione,
+ bool IsCli,
+ bool IsFor,
+ string Original_CodCliente,
+ string Original_RagSociale,
+ string Original_Indirizzo,
+ string Original_Localita,
+ string Original_Cap,
+ string Original_Provincia,
+ string Original_Nazione,
+ bool Original_IsCli,
+ bool Original_IsFor) {
if ((CodCliente == null)) {
throw new global::System.ArgumentNullException("CodCliente");
}
@@ -9468,48 +10247,52 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
else {
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Nazione));
}
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((bool)(IsCli));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(IsFor));
if ((Original_CodCliente == null)) {
throw new global::System.ArgumentNullException("Original_CodCliente");
}
else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodCliente));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodCliente));
}
if ((Original_RagSociale == null)) {
throw new global::System.ArgumentNullException("Original_RagSociale");
}
else {
- this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_RagSociale));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_RagSociale));
}
if ((Original_Indirizzo == null)) {
throw new global::System.ArgumentNullException("Original_Indirizzo");
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Indirizzo));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Indirizzo));
}
if ((Original_Localita == null)) {
throw new global::System.ArgumentNullException("Original_Localita");
}
else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Localita));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Localita));
}
if ((Original_Cap == null)) {
throw new global::System.ArgumentNullException("Original_Cap");
}
else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Cap));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Cap));
}
if ((Original_Provincia == null)) {
throw new global::System.ArgumentNullException("Original_Provincia");
}
else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Provincia));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Provincia));
}
if ((Original_Nazione == null)) {
throw new global::System.ArgumentNullException("Original_Nazione");
}
else {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Nazione));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Nazione));
}
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((bool)(Original_IsCli));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_IsFor));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -9530,8 +10313,211 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione, string Original_CodCliente, string Original_RagSociale, string Original_Indirizzo, string Original_Localita, string Original_Cap, string Original_Provincia, string Original_Nazione) {
- return this.Update(Original_CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, Original_CodCliente, Original_RagSociale, Original_Indirizzo, Original_Localita, Original_Cap, Original_Provincia, Original_Nazione);
+ public virtual int Update(
+ string RagSociale,
+ string Indirizzo,
+ string Localita,
+ string Cap,
+ string Provincia,
+ string Nazione,
+ bool IsCli,
+ bool IsFor,
+ string Original_CodCliente,
+ string Original_RagSociale,
+ string Original_Indirizzo,
+ string Original_Localita,
+ string Original_Cap,
+ string Original_Provincia,
+ string Original_Nazione,
+ bool Original_IsCli,
+ bool Original_IsFor) {
+ return this.Update(Original_CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor, Original_CodCliente, Original_RagSociale, Original_Indirizzo, Original_Localita, Original_Cap, Original_Provincia, Original_Nazione, Original_IsCli, Original_IsFor);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteQuery(string Original_CodCliente) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Original_CodCliente == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_CodCliente));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione, global::System.Nullable IsCli, global::System.Nullable IsFor) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((CodCliente == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodCliente));
+ }
+ if ((RagSociale == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(RagSociale));
+ }
+ if ((Indirizzo == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Indirizzo));
+ }
+ if ((Localita == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(Localita));
+ }
+ if ((Cap == null)) {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[5].Value = ((string)(Cap));
+ }
+ if ((Provincia == null)) {
+ command.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[6].Value = ((string)(Provincia));
+ }
+ if ((Nazione == null)) {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[7].Value = ((string)(Nazione));
+ }
+ if ((IsCli.HasValue == true)) {
+ command.Parameters[8].Value = ((bool)(IsCli.Value));
+ }
+ else {
+ command.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((IsFor.HasValue == true)) {
+ command.Parameters[9].Value = ((bool)(IsFor.Value));
+ }
+ else {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione, global::System.Nullable IsCli, global::System.Nullable IsFor, string Original_CodCliente) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ if ((CodCliente == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodCliente));
+ }
+ if ((RagSociale == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(RagSociale));
+ }
+ if ((Indirizzo == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Indirizzo));
+ }
+ if ((Localita == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(Localita));
+ }
+ if ((Cap == null)) {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[5].Value = ((string)(Cap));
+ }
+ if ((Provincia == null)) {
+ command.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[6].Value = ((string)(Provincia));
+ }
+ if ((Nazione == null)) {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[7].Value = ((string)(Nazione));
+ }
+ if ((IsCli.HasValue == true)) {
+ command.Parameters[8].Value = ((bool)(IsCli.Value));
+ }
+ else {
+ command.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ if ((IsFor.HasValue == true)) {
+ command.Parameters[9].Value = ((bool)(IsFor.Value));
+ }
+ else {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((Original_CodCliente == null)) {
+ command.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[10].Value = ((string)(Original_CodCliente));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
}
}
@@ -10324,6 +11310,584 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
}
}
+ ///
+ ///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 AnagDestinClientiTableAdapter : 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", "17.0.0.0")]
+ public AnagDestinClientiTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "AnagDestinClienti";
+ tableMapping.ColumnMappings.Add("CodCliente", "CodCliente");
+ tableMapping.ColumnMappings.Add("CodDestinazione", "CodDestinazione");
+ tableMapping.ColumnMappings.Add("DescDestinazione", "DescDestinazione");
+ tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo");
+ tableMapping.ColumnMappings.Add("Cap", "Cap");
+ tableMapping.ColumnMappings.Add("Localita", "Localita");
+ tableMapping.ColumnMappings.Add("Provincia", "Provincia");
+ tableMapping.ColumnMappings.Add("Nazione", "Nazione");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [AnagDestinClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ([CodDestinazione] = @Original_CodDestinazione) AND ([DescDestinazione] = @Original_DescDestinazione) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_Cap = 1 AND [Cap] IS NULL) OR ([Cap] = @Original_Cap)) AND ((@IsNull_Localita = 1 AND [Localita] IS NULL) OR ([Localita] = @Original_Localita)) AND ((@IsNull_Provincia = 1 AND [Provincia] IS NULL) OR ([Provincia] = @Original_Provincia)) AND ((@IsNull_Nazione = 1 AND [Nazione] IS NULL) OR ([Nazione] = @Original_Nazione)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDestinazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDestinazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescDestinazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescDestinazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cap", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Localita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Localita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Localita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Provincia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagSociale], [Indirizzo], [Localita], [Cap], [Provincia], [Nazione], [IsCli], [IsFor]) VALUES (@CodCliente, @RagSociale, @Indirizzo, @Localita, @Cap, @Provincia, @Nazione, @IsCli, @IsFor);
+SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor FROM AnagClienti WHERE (CodCliente = @CodCliente)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Localita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsCli", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsCli", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsFor", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsFor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [AnagDestinClienti] SET [CodCliente] = @CodCliente, [CodDestinazione] = @CodDestinazione, [DescDestinazione] = @DescDestinazione, [Indirizzo] = @Indirizzo, [Cap] = @Cap, [Localita] = @Localita, [Provincia] = @Provincia, [Nazione] = @Nazione WHERE (([CodCliente] = @Original_CodCliente) AND ([CodDestinazione] = @Original_CodDestinazione) AND ([DescDestinazione] = @Original_DescDestinazione) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_Cap = 1 AND [Cap] IS NULL) OR ([Cap] = @Original_Cap)) AND ((@IsNull_Localita = 1 AND [Localita] IS NULL) OR ([Localita] = @Original_Localita)) AND ((@IsNull_Provincia = 1 AND [Provincia] IS NULL) OR ([Provincia] = @Original_Provincia)) AND ((@IsNull_Nazione = 1 AND [Nazione] IS NULL) OR ([Nazione] = @Original_Nazione)));
+SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, Provincia, Nazione FROM AnagDestinClienti WHERE (CodCliente = @CodCliente) AND (CodDestinazione = @CodDestinazione)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDestinazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDestinazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescDestinazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescDestinazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Localita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDestinazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDestinazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescDestinazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescDestinazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cap", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cap", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Localita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Localita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Localita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Provincia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Provincia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::MagData.Properties.Settings.Default.MoonPro_MAGConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 * FROM AnagDestinClienti";
+ 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_ADC_getByCodCli";
+ 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("@CodCliente", 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", "17.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_Mag.AnagDestinClientiDataTable 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", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Mag.AnagDestinClientiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Mag.AnagDestinClientiDataTable dataTable = new DS_Mag.AnagDestinClientiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Mag.AnagDestinClientiDataTable getByCodCli(string CodCliente) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodCliente == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCliente));
+ }
+ DS_Mag.AnagDestinClientiDataTable dataTable = new DS_Mag.AnagDestinClientiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag.AnagDestinClientiDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Mag dataSet) {
+ return this.Adapter.Update(dataSet, "AnagDestinClienti");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodCliente, string Original_CodDestinazione, string Original_DescDestinazione, string Original_Indirizzo, string Original_Cap, string Original_Localita, string Original_Provincia, string Original_Nazione) {
+ if ((Original_CodCliente == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCliente");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodCliente));
+ }
+ if ((Original_CodDestinazione == null)) {
+ throw new global::System.ArgumentNullException("Original_CodDestinazione");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodDestinazione));
+ }
+ if ((Original_DescDestinazione == null)) {
+ throw new global::System.ArgumentNullException("Original_DescDestinazione");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescDestinazione));
+ }
+ if ((Original_Indirizzo == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Indirizzo));
+ }
+ if ((Original_Cap == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Cap));
+ }
+ if ((Original_Localita == null)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Localita));
+ }
+ if ((Original_Provincia == null)) {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Provincia));
+ }
+ if ((Original_Nazione == null)) {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Nazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodCliente, string RagSociale, string Indirizzo, string Localita, string Cap, string Provincia, string Nazione, bool IsCli, bool IsFor) {
+ if ((CodCliente == null)) {
+ throw new global::System.ArgumentNullException("CodCliente");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodCliente));
+ }
+ if ((RagSociale == null)) {
+ throw new global::System.ArgumentNullException("RagSociale");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(RagSociale));
+ }
+ if ((Indirizzo == null)) {
+ throw new global::System.ArgumentNullException("Indirizzo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Indirizzo));
+ }
+ if ((Localita == null)) {
+ throw new global::System.ArgumentNullException("Localita");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Localita));
+ }
+ if ((Cap == null)) {
+ throw new global::System.ArgumentNullException("Cap");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Cap));
+ }
+ if ((Provincia == null)) {
+ throw new global::System.ArgumentNullException("Provincia");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Provincia));
+ }
+ if ((Nazione == null)) {
+ throw new global::System.ArgumentNullException("Nazione");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Nazione));
+ }
+ this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(IsCli));
+ this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(IsFor));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ string CodCliente,
+ string CodDestinazione,
+ string DescDestinazione,
+ string Indirizzo,
+ string Cap,
+ string Localita,
+ string Provincia,
+ string Nazione,
+ string Original_CodCliente,
+ string Original_CodDestinazione,
+ string Original_DescDestinazione,
+ string Original_Indirizzo,
+ string Original_Cap,
+ string Original_Localita,
+ string Original_Provincia,
+ string Original_Nazione) {
+ if ((CodCliente == null)) {
+ throw new global::System.ArgumentNullException("CodCliente");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodCliente));
+ }
+ if ((CodDestinazione == null)) {
+ throw new global::System.ArgumentNullException("CodDestinazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodDestinazione));
+ }
+ if ((DescDestinazione == null)) {
+ throw new global::System.ArgumentNullException("DescDestinazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescDestinazione));
+ }
+ if ((Indirizzo == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Indirizzo));
+ }
+ if ((Cap == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Cap));
+ }
+ if ((Localita == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Localita));
+ }
+ if ((Provincia == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Provincia));
+ }
+ if ((Nazione == null)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Nazione));
+ }
+ if ((Original_CodCliente == null)) {
+ throw new global::System.ArgumentNullException("Original_CodCliente");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCliente));
+ }
+ if ((Original_CodDestinazione == null)) {
+ throw new global::System.ArgumentNullException("Original_CodDestinazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodDestinazione));
+ }
+ if ((Original_DescDestinazione == null)) {
+ throw new global::System.ArgumentNullException("Original_DescDestinazione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_DescDestinazione));
+ }
+ if ((Original_Indirizzo == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Indirizzo));
+ }
+ if ((Original_Cap == null)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Cap));
+ }
+ if ((Original_Localita == null)) {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Localita));
+ }
+ if ((Original_Provincia == null)) {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Provincia));
+ }
+ if ((Original_Nazione == null)) {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Nazione));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string DescDestinazione, string Indirizzo, string Cap, string Localita, string Provincia, string Nazione, string Original_CodCliente, string Original_CodDestinazione, string Original_DescDestinazione, string Original_Indirizzo, string Original_Cap, string Original_Localita, string Original_Provincia, string Original_Nazione) {
+ return this.Update(Original_CodCliente, Original_CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, Provincia, Nazione, Original_CodCliente, Original_CodDestinazione, Original_DescDestinazione, Original_Indirizzo, Original_Cap, Original_Localita, Original_Provincia, Original_Nazione);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -10340,6 +11904,8 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
private ElencoAL2UDCTableAdapter _elencoAL2UDCTableAdapter;
+ private AnagDestinClientiTableAdapter _anagDestinClientiTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -10383,6 +11949,20 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public AnagDestinClientiTableAdapter AnagDestinClientiTableAdapter {
+ get {
+ return this._anagDestinClientiTableAdapter;
+ }
+ set {
+ this._anagDestinClientiTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -10410,6 +11990,10 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
&& (this._elencoAL2UDCTableAdapter.Connection != null))) {
return this._elencoAL2UDCTableAdapter.Connection;
}
+ if (((this._anagDestinClientiTableAdapter != null)
+ && (this._anagDestinClientiTableAdapter.Connection != null))) {
+ return this._anagDestinClientiTableAdapter.Connection;
+ }
return null;
}
set {
@@ -10429,6 +12013,9 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
if ((this._elencoAL2UDCTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._anagDestinClientiTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -10458,6 +12045,15 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._anagDestinClientiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagDestinClienti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagDestinClientiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -10484,6 +12080,14 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._anagDestinClientiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagDestinClienti.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagDestinClientiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -10494,6 +12098,14 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
private int UpdateDeletedRows(DS_Mag dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._anagDestinClientiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagDestinClienti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagDestinClientiTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._elencoAL2UDCTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.ElencoAL2UDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -10559,6 +12171,11 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._anagDestinClientiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagDestinClientiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -10609,6 +12226,15 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
adaptersWithAcceptChangesDuringUpdate.Add(this._elencoAL2UDCTableAdapter.Adapter);
}
}
+ if ((this._anagDestinClientiTableAdapter != null)) {
+ revertConnections.Add(this._anagDestinClientiTableAdapter, this._anagDestinClientiTableAdapter.Connection);
+ this._anagDestinClientiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagDestinClientiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagDestinClientiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagDestinClientiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagDestinClientiTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -10675,6 +12301,10 @@ SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"
this._elencoAL2UDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoAL2UDCTableAdapter]));
this._elencoAL2UDCTableAdapter.Transaction = null;
}
+ if ((this._anagDestinClientiTableAdapter != null)) {
+ this._anagDestinClientiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagDestinClientiTableAdapter]));
+ this._anagDestinClientiTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/MagData/DS_Mag.xsd b/MagData/DS_Mag.xsd
index 0b474ffd..5bbc02e2 100644
--- a/MagData/DS_Mag.xsd
+++ b/MagData/DS_Mag.xsd
@@ -541,7 +541,7 @@ FROM dbo.ElencoPost2Queue
- DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione))
+ DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione) AND ([IsCli] = @Original_IsCli) AND ([IsFor] = @Original_IsFor))
@@ -550,13 +550,15 @@ FROM dbo.ElencoPost2Queue
+
+
- INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagSociale], [Indirizzo], [Localita], [Cap], [Provincia], [Nazione]) VALUES (@CodCliente, @RagSociale, @Indirizzo, @Localita, @Cap, @Provincia, @Nazione);
-SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM AnagClienti WHERE (CodCliente = @CodCliente)
+ INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagSociale], [Indirizzo], [Localita], [Cap], [Provincia], [Nazione], [IsCli], [IsFor]) VALUES (@CodCliente, @RagSociale, @Indirizzo, @Localita, @Cap, @Provincia, @Nazione, @IsCli, @IsFor);
+SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor FROM AnagClienti WHERE (CodCliente = @CodCliente)
@@ -565,19 +567,22 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
+
+
-
- SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM dbo.AnagClienti
+
+ SELECT *
+FROM dbo.AnagClienti
- UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagSociale] = @RagSociale, [Indirizzo] = @Indirizzo, [Localita] = @Localita, [Cap] = @Cap, [Provincia] = @Provincia, [Nazione] = @Nazione WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione));
-SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM AnagClienti WHERE (CodCliente = @CodCliente)
+ UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagSociale] = @RagSociale, [Indirizzo] = @Indirizzo, [Localita] = @Localita, [Cap] = @Cap, [Provincia] = @Provincia, [Nazione] = @Nazione, [IsCli] = @IsCli, [IsFor] = @IsFor WHERE (([CodCliente] = @Original_CodCliente) AND ([RagSociale] = @Original_RagSociale) AND ([Indirizzo] = @Original_Indirizzo) AND ([Localita] = @Original_Localita) AND ([Cap] = @Original_Cap) AND ([Provincia] = @Original_Provincia) AND ([Nazione] = @Original_Nazione) AND ([IsCli] = @Original_IsCli) AND ([IsFor] = @Original_IsFor));
+SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor FROM AnagClienti WHERE (CodCliente = @CodCliente)
@@ -586,6 +591,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
+
+
@@ -593,6 +600,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
+
+
@@ -606,8 +615,74 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
+
+
-
+
+
+
+
+ dbo.stp_ACF_deleteQuery
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ACF_getBySearch
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ACF_insertQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ACF_updateQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -745,88 +820,189 @@ FROM dbo.v_Macchine
+
+
+
+
+
+ DELETE FROM [AnagDestinClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ([CodDestinazione] = @Original_CodDestinazione) AND ([DescDestinazione] = @Original_DescDestinazione) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_Cap = 1 AND [Cap] IS NULL) OR ([Cap] = @Original_Cap)) AND ((@IsNull_Localita = 1 AND [Localita] IS NULL) OR ([Localita] = @Original_Localita)) AND ((@IsNull_Provincia = 1 AND [Provincia] IS NULL) OR ([Provincia] = @Original_Provincia)) AND ((@IsNull_Nazione = 1 AND [Nazione] IS NULL) OR ([Nazione] = @Original_Nazione)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagSociale], [Indirizzo], [Localita], [Cap], [Provincia], [Nazione], [IsCli], [IsFor]) VALUES (@CodCliente, @RagSociale, @Indirizzo, @Localita, @Cap, @Provincia, @Nazione, @IsCli, @IsFor);
+SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor FROM AnagClienti WHERE (CodCliente = @CodCliente)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM AnagDestinClienti
+
+
+
+
+
+ UPDATE [AnagDestinClienti] SET [CodCliente] = @CodCliente, [CodDestinazione] = @CodDestinazione, [DescDestinazione] = @DescDestinazione, [Indirizzo] = @Indirizzo, [Cap] = @Cap, [Localita] = @Localita, [Provincia] = @Provincia, [Nazione] = @Nazione WHERE (([CodCliente] = @Original_CodCliente) AND ([CodDestinazione] = @Original_CodDestinazione) AND ([DescDestinazione] = @Original_DescDestinazione) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_Cap = 1 AND [Cap] IS NULL) OR ([Cap] = @Original_Cap)) AND ((@IsNull_Localita = 1 AND [Localita] IS NULL) OR ([Localita] = @Original_Localita)) AND ((@IsNull_Provincia = 1 AND [Provincia] IS NULL) OR ([Provincia] = @Original_Provincia)) AND ((@IsNull_Nazione = 1 AND [Nazione] IS NULL) OR ([Nazione] = @Original_Nazione)));
+SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, Provincia, Nazione FROM AnagDestinClienti WHERE (CodCliente = @CodCliente) AND (CodDestinazione = @CodDestinazione)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ADC_getByCodCli
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
+
@@ -836,152 +1012,152 @@ FROM dbo.v_Macchine
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -991,31 +1167,31 @@ FROM dbo.v_Macchine
-
+
-
+
-
+
-
+
-
+
@@ -1025,64 +1201,64 @@ FROM dbo.v_Macchine
-
+
-
-
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
@@ -1092,17 +1268,17 @@ FROM dbo.v_Macchine
-
+
-
+
-
+
@@ -1112,40 +1288,40 @@ FROM dbo.v_Macchine
-
+
-
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
@@ -1155,107 +1331,109 @@ FROM dbo.v_Macchine
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -1265,67 +1443,129 @@ FROM dbo.v_Macchine
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
@@ -1372,5 +1612,10 @@ FROM dbo.v_Macchine
+
+
+
+
+
\ No newline at end of file
diff --git a/MagData/DS_Mag.xss b/MagData/DS_Mag.xss
index bd4e331c..084e2514 100644
--- a/MagData/DS_Mag.xss
+++ b/MagData/DS_Mag.xss
@@ -4,18 +4,18 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
\ No newline at end of file
diff --git a/MagData/MagDataLayer.cs b/MagData/MagDataLayer.cs
index 351ec6eb..b4e28b1f 100644
--- a/MagData/MagDataLayer.cs
+++ b/MagData/MagDataLayer.cs
@@ -38,6 +38,7 @@ namespace MagData
public static string redReportConf = "MP-CTRACK:MAG:reportConf";
public DS_MagTableAdapters.AnagArtTableAdapter taAA;
+ public DS_MagTableAdapters.AnagClientiTableAdapter taACF;
public DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter taAA2C;
public DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter taCFOdette;
public DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter taCPed;
@@ -325,6 +326,7 @@ namespace MagData
taRepPLFull = new DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter();
taAA = new DS_MagTableAdapters.AnagArtTableAdapter();
+ taACF = new DS_MagTableAdapters.AnagClientiTableAdapter();
taAA2C = new DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter();
taEA2U = new DS_MagTableAdapters.ElencoAL2UDCTableAdapter();
taEAL = new DS_MagTableAdapters.ElencoALTableAdapter();
@@ -350,6 +352,7 @@ namespace MagData
taRepPLFull.Connection.ConnectionString = connString;
taAA.Connection.ConnectionString = connString;
+ taACF.Connection.ConnectionString = connString;
taAA2C.Connection.ConnectionString = connString;
taEA2U.Connection.ConnectionString = connString;
taEAL.Connection.ConnectionString = connString;