diff --git a/C2P/C2P.csproj b/C2P/C2P.csproj index c7f3c6b..b79bd8a 100644 --- a/C2P/C2P.csproj +++ b/C2P/C2P.csproj @@ -293,10 +293,12 @@ + + @@ -323,6 +325,7 @@ + @@ -370,11 +373,13 @@ + + @@ -546,6 +551,13 @@ jumper.aspx + + listValues.aspx + ASPXCodeBehind + + + listValues.aspx + login.aspx ASPXCodeBehind @@ -574,6 +586,13 @@ NewProductOffer.aspx + + OfferReport.aspx + ASPXCodeBehind + + + OfferReport.aspx + OffersArchive.aspx ASPXCodeBehind @@ -759,6 +778,13 @@ mod_lemmiVocab.ascx + + mod_listValues.ascx + ASPXCodeBehind + + + mod_listValues.ascx + mod_login.ascx ASPXCodeBehind @@ -801,6 +827,13 @@ mod_newQuote.ascx + + mod_OfferReport.ascx + ASPXCodeBehind + + + mod_OfferReport.ascx + mod_OffersArchive.ascx ASPXCodeBehind diff --git a/C2P/C2P.csproj.user b/C2P/C2P.csproj.user index cd5a0b1..516e0e1 100644 --- a/C2P/C2P.csproj.user +++ b/C2P/C2P.csproj.user @@ -2,7 +2,7 @@ ShowAllFiles - costimateZip + WinLab diff --git a/C2P/OfferReport.aspx b/C2P/OfferReport.aspx new file mode 100644 index 0000000..af7fca9 --- /dev/null +++ b/C2P/OfferReport.aspx @@ -0,0 +1,16 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="OfferReport.aspx.cs" Inherits="C2P.OfferReport" %> + +<%@ Register Src="~/WebUserControls/mod_OfferReport.ascx" TagPrefix="uc1" TagName="mod_OfferReport" %> + + + + + + + +
+
+ +
+
+ diff --git a/C2P/OfferReport.aspx.cs b/C2P/OfferReport.aspx.cs new file mode 100644 index 0000000..efad7ba --- /dev/null +++ b/C2P/OfferReport.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 C2P +{ + public partial class OfferReport : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/C2P/OfferReport.aspx.designer.cs b/C2P/OfferReport.aspx.designer.cs new file mode 100644 index 0000000..bff6221 --- /dev/null +++ b/C2P/OfferReport.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// 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 C2P { + + + public partial class OfferReport { + + /// + /// mod_OfferReport control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::C2P.WebUserControls.mod_OfferReport mod_OfferReport; + } +} diff --git a/C2P/RepOffers.aspx.cs b/C2P/RepOffers.aspx.cs index 4d7438c..b251a1f 100644 --- a/C2P/RepOffers.aspx.cs +++ b/C2P/RepOffers.aspx.cs @@ -18,43 +18,7 @@ namespace C2P if (!Page.IsPostBack) { // imposto iframe! con tutti i possibili valori di URL - repView.Src = string.Format(@"{0}/ReportViewer.aspx?ticket={1}&lingua={2}&QuoteType={3}&CodQuote={4}&QuoteRev={5}", memLayer.ML.confReadString("reportsUrl"), Request.QueryString["ticket"], user_std.UtSn.lingua, Request.QueryString["QuoteType"], Request.QueryString["CodQuote"], Request.QueryString["QuoteRev"]); -#if false - if (memLayer.ML.confReadBool("ReportRemoteRender")) - { - ReportOffers.ProcessingMode = ProcessingMode.Remote; - ReportOffers.ServerReport.ReportServerUrl = new Uri(@"http://10.74.82.217/ReportServer_SQL2008R2"); - ReportOffers.ServerReport.ReportPath = @"/Test/ReportOffers"; - ReportOffers.ServerReport.DisplayName = "Offers"; - } - else - { - ReportOffers.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; - LocalReport localReport = ReportOffers.LocalReport; - - // 0) recupero la richiesta di stampa: numero ticket! - int ticket = 0; - try - { - ticket = Convert.ToInt32(Request.QueryString["ticket"]); - } - catch - { } - - // 1) impostazione file report - localReport.ReportPath = @".\Reports\ReportOffers.rdlc"; - - // 2) caricamento tab dati - DataTable tabVoc = new DataTable(); - DataTable tabQuote = new DataTable(); - tabVoc = (DataTable)SteamWare.selDataVoc.mgr.getVocabolarioByLemma(SteamWare.user_std.UtSn.lingua, "C2P_prt1"); // HARD CODED lemma x report!!! - tabQuote = (DataTable)DtProxy.man.taQFQ.repOffersByTicket(ticket); - - // 3) inserimento dataset nel report - localReport.DataSources.Add(new ReportDataSource("dsVocabolario", tabVoc)); - localReport.DataSources.Add(new ReportDataSource("dsQuoteFull_Q_Data", tabQuote)); - } -#endif + repView.Src = string.Format(@"{0}/ReportViewer.aspx?ticket={1}&lingua={2}&QuoteType={3}&CodQuote={4}&QuoteRev={5}&TypeDoc={6}", memLayer.ML.confReadString("reportsUrl"), Request.QueryString["ticket"], user_std.UtSn.lingua, Request.QueryString["QuoteType"], Request.QueryString["CodQuote"], Request.QueryString["QuoteRev"], Request.QueryString["TypeDoc"]); } } } diff --git a/C2P/Reports/OfferReport.xlsx b/C2P/Reports/OfferReport.xlsx new file mode 100644 index 0000000..04ac810 Binary files /dev/null and b/C2P/Reports/OfferReport.xlsx differ diff --git a/C2P/WebUserControls/mod_OfferReport.ascx b/C2P/WebUserControls/mod_OfferReport.ascx new file mode 100644 index 0000000..36baadb --- /dev/null +++ b/C2P/WebUserControls/mod_OfferReport.ascx @@ -0,0 +1,43 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_OfferReport.ascx.cs" Inherits="C2P.WebUserControls.mod_OfferReport" %> +
+ +
+
+
+
+
+

<%: traduci("HOffRepTitle") %>

+
+ <%: traduci("HOffRepBody") %> +
+
+
+
+
+
+
+
+
+ <%--

<%: traduci("HMaRepStepC") %>

--%> +
+
+

<%--<%: traduci("HMaRepProcData") %>--%> 

+
+
+
+ + + +
+ <%: traduci("OfferReportFile") %> +
+
+
+
+
+
+
+
+
+
+
diff --git a/C2P/WebUserControls/mod_OfferReport.ascx.cs b/C2P/WebUserControls/mod_OfferReport.ascx.cs new file mode 100644 index 0000000..d1504f6 --- /dev/null +++ b/C2P/WebUserControls/mod_OfferReport.ascx.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using C2P_Data; + +namespace C2P.WebUserControls +{ + public partial class mod_OfferReport : SteamWare.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/C2P/WebUserControls/mod_OfferReport.ascx.designer.cs b/C2P/WebUserControls/mod_OfferReport.ascx.designer.cs new file mode 100644 index 0000000..e18a929 --- /dev/null +++ b/C2P/WebUserControls/mod_OfferReport.ascx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// 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 C2P.WebUserControls { + + + public partial class mod_OfferReport { + + /// + /// divHelp control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divHelp; + + /// + /// divAnalisys control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divAnalisys; + + /// + /// HyperLink2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink HyperLink2; + } +} diff --git a/C2P/WebUserControls/mod_OffersArchive.ascx b/C2P/WebUserControls/mod_OffersArchive.ascx index 4a9306b..a266f47 100644 --- a/C2P/WebUserControls/mod_OffersArchive.ascx +++ b/C2P/WebUserControls/mod_OffersArchive.ascx @@ -96,7 +96,7 @@
-
+
<%:traduci("Open") %>
@@ -111,6 +111,10 @@
<%:traduci("Print") %>
+
+ + +
@@ -124,7 +128,7 @@ - + @@ -136,6 +140,8 @@ + / + @@ -198,7 +204,7 @@
- + @@ -212,6 +218,12 @@ + + + + + +
diff --git a/C2P/WebUserControls/mod_OffersArchive.ascx.cs b/C2P/WebUserControls/mod_OffersArchive.ascx.cs index 2fc6a29..271e115 100644 --- a/C2P/WebUserControls/mod_OffersArchive.ascx.cs +++ b/C2P/WebUserControls/mod_OffersArchive.ascx.cs @@ -489,7 +489,7 @@ namespace C2P.WebUserControls } } // rimando a pagina di stampa reports... - Response.Redirect(string.Format("RepOffers?ticket={0}&QuoteType={1}&CodQuote=0&QuoteRev=0", ticket, QuoteType)); + Response.Redirect(string.Format("RepOffers?ticket={0}&QuoteType={1}&CodQuote=0&QuoteRev=0&TypeDoc={2}", ticket, QuoteType, ddlTypeDoc.SelectedValue)); } } /// diff --git a/C2P/WebUserControls/mod_OffersArchive.ascx.designer.cs b/C2P/WebUserControls/mod_OffersArchive.ascx.designer.cs index aa73126..d69cc3d 100644 --- a/C2P/WebUserControls/mod_OffersArchive.ascx.designer.cs +++ b/C2P/WebUserControls/mod_OffersArchive.ascx.designer.cs @@ -156,6 +156,15 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.LinkButton lbPrint; + /// + /// ddlTypeDoc control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlTypeDoc; + /// /// grView control. /// @@ -174,6 +183,15 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.ObjectDataSource odsQuotes; + /// + /// odsTipoDoc control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoDoc; + /// /// numRes control. /// diff --git a/C2P/WebUserControls/mod_Q_Header.ascx b/C2P/WebUserControls/mod_Q_Header.ascx index 17e750e..5030149 100644 --- a/C2P/WebUserControls/mod_Q_Header.ascx +++ b/C2P/WebUserControls/mod_Q_Header.ascx @@ -45,9 +45,18 @@
-
+
+
+ +
+
+ +
+
+ +
@@ -100,10 +109,22 @@
-
+
+
+ + +
+
+ + +
+
+ + +
@@ -143,7 +164,7 @@
- + <%----%>
@@ -191,7 +212,7 @@
- + @@ -221,12 +242,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/C2P/WebUserControls/mod_Q_Header.ascx.cs b/C2P/WebUserControls/mod_Q_Header.ascx.cs index d80e762..60add1d 100644 --- a/C2P/WebUserControls/mod_Q_Header.ascx.cs +++ b/C2P/WebUserControls/mod_Q_Header.ascx.cs @@ -208,5 +208,14 @@ namespace C2P.WebUserControls TextBox txtRMEC = (TextBox)frmView.FindControl("txtRawMatExtraCost"); txtRMEC.Text = DtProxy.man.taRMD.getByKey(((DropDownList)sender).SelectedValue)[0].ExtraMatCost.ToString(); } + + protected void odsQuotes_Updating(object sender, ObjectDataSourceMethodEventArgs e) + { + // intercetto: se esito offerta è OK allora fausa KO è NA... + if (e.InputParameters["OfferResult"].ToString() == "OK") + { + e.InputParameters["KoReason"] = "NA"; + } + } } } \ No newline at end of file diff --git a/C2P/WebUserControls/mod_Q_Header.ascx.designer.cs b/C2P/WebUserControls/mod_Q_Header.ascx.designer.cs index 9718335..22a1268 100644 --- a/C2P/WebUserControls/mod_Q_Header.ascx.designer.cs +++ b/C2P/WebUserControls/mod_Q_Header.ascx.designer.cs @@ -84,6 +84,42 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.ObjectDataSource odsIncoterms; + /// + /// odsOfferResult control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsOfferResult; + + /// + /// odsKoReason control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsKoReason; + + /// + /// odsAgente control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsAgente; + + /// + /// Label1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label1; + /// /// lblError control. /// diff --git a/C2P/WebUserControls/mod_QuoteDet.ascx b/C2P/WebUserControls/mod_QuoteDet.ascx index 80fde92..aa47ba1 100644 --- a/C2P/WebUserControls/mod_QuoteDet.ascx +++ b/C2P/WebUserControls/mod_QuoteDet.ascx @@ -19,6 +19,7 @@ +  |  @@ -26,7 +27,12 @@ . -
+ +
+
+ + +
@@ -34,10 +40,19 @@ <%--
--%>
-  <%: traduci("HEADER") %>
-  <%: traduci("COSTS") %>
-  <%: traduci("EXTRUS-PARAM") %>
-  <%: traduci("PACK-PARAM") %>
<%--
--%>
+  <%: traduci("HEADER") %> +
+
+  <%: traduci("COSTS") %> +
+
+  <%: traduci("EXTRUS-PARAM") %> +
+
+  <%: traduci("PACK-PARAM") %> +
+
+ <%--
--%>
@@ -54,7 +69,10 @@
-  <%: traduci("QUOTATION") %>
+  <%: traduci("QUOTATION") %> +
+
+
@@ -64,12 +82,30 @@
-  <%: traduci("nextIdxQState-01") %>
-  <%: traduci("ConvQ2S") %>
+  <%: traduci("nextIdxQState-01") %> +
+
+  <%: traduci("ConvQ2S") %> +
+
+
-  <%: traduci("nextIdxQState-00") %>
-  <%: traduci("nextIdxQState-02") %>
+  <%: traduci("nextIdxQState-00") %> +
+
+  <%: traduci("nextIdxQState-02") %> +
+
+
-  <%: traduci("nextIdxQState-03") %>
+  <%: traduci("nextIdxQState-03") %> +
+ +
-  <%: traduci("createNewRev") %>
\ No newline at end of file +  <%: traduci("createNewRev") %> + + + + + diff --git a/C2P/WebUserControls/mod_QuoteDet.ascx.cs b/C2P/WebUserControls/mod_QuoteDet.ascx.cs index 5747863..5f04c92 100644 --- a/C2P/WebUserControls/mod_QuoteDet.ascx.cs +++ b/C2P/WebUserControls/mod_QuoteDet.ascx.cs @@ -92,6 +92,20 @@ namespace C2P.WebUserControls } } /// + /// RISULTATO OFFERTA x la scheda corrente (hidden) + /// + protected string OfferResult + { + get + { + return lblOffRes.Text; + } + set + { + lblOffRes.Text = value; + } + } + /// /// precedente valore richiesto... /// protected string prevReq @@ -169,6 +183,7 @@ namespace C2P.WebUserControls { IdxQS = DtProxy.man.taQFQ.getByKey(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev), "N")[0].IdxQState; CodItem = DtProxy.man.taQFQ.getByKey(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev), "N")[0].CodItem; + OfferResult = DtProxy.man.taQFQ.getByKey(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev), "N")[0].OfferResult; } catch { } @@ -347,7 +362,9 @@ namespace C2P.WebUserControls divStato0.Visible = false; divStato1.Visible = false; divStato2.Visible = false; - divStato3.Visible = true; + // 2015.02.26 SOLO SE è in result = TBD + //divStato3.Visible = true; + divStato3.Visible = OfferResult == "TBD"; // hard coded !!! btnGetPdf.Visible = true; break; default: diff --git a/C2P/WebUserControls/mod_QuoteDet.ascx.designer.cs b/C2P/WebUserControls/mod_QuoteDet.ascx.designer.cs index 533bc2c..c959514 100644 --- a/C2P/WebUserControls/mod_QuoteDet.ascx.designer.cs +++ b/C2P/WebUserControls/mod_QuoteDet.ascx.designer.cs @@ -48,6 +48,15 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.Label lblIdxQState; + /// + /// lblOffRes control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblOffRes; + /// /// hlGetPdf control. /// diff --git a/C2P/WebUserControls/mod_S_Header.ascx b/C2P/WebUserControls/mod_S_Header.ascx index 3cfa270..c590826 100644 --- a/C2P/WebUserControls/mod_S_Header.ascx +++ b/C2P/WebUserControls/mod_S_Header.ascx @@ -6,219 +6,261 @@ <%} %> <%@ Register Src="~/WebUserControls/mod_display.ascx" TagName="mod_display" TagPrefix="uc1" %> - - -
-
- -
-
- -
-
- -
-
- -
+ + +
+
+
-
-
- -
-
- -
-
- -
-
- -
+
+
-
-
- -
-
- -
+
+
-
-
- -
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ +
- - -
-
- - -
-
- - -
-
- - -
-
- - +
+ + +
+
+
+
+ + + <%----%> +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + <%----%> +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+  <%: traduci("Update") %> +
+
+  <%: traduci("Cancel") %>
-
-
- - - <%----%> +
+ + +
+
+ + + <%----%> +
+
+ + + <%----%> +
+
+
+
+ + + <%----%> +
+
+ + + +
+
+ + + +
+
+ + + +
+
+
+
+ + + <%----%> +
+
+ + +
+
+
+
+ + +
+
+
+
+
+  <%: traduci("Insert") %>
-
- - -
-
- - -
-
- - +
+  <%: traduci("Cancel") %>
-
-
- - - <%----%> -
-
- - -
-
-
-
- - -
-
-
-
-
-  <%: traduci("Update") %> -
-
-  <%: traduci("Cancel") %> -
-
-
- - -
-
- - - <%----%> -
-
- - - <%----%> -
-
-
-
- - - <%----%> -
-
- - - -
-
- - - -
-
- - - -
-
-
-
- - - <%----%> -
-
- - -
-
-
-
- - -
-
-
-
-
-  <%: traduci("Insert") %> -
-
-  <%: traduci("Cancel") %> -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/C2P/WebUserControls/mod_S_Header.ascx.cs b/C2P/WebUserControls/mod_S_Header.ascx.cs index 3a27667..5202392 100644 --- a/C2P/WebUserControls/mod_S_Header.ascx.cs +++ b/C2P/WebUserControls/mod_S_Header.ascx.cs @@ -209,5 +209,14 @@ namespace C2P.WebUserControls TextBox txtRMEC = (TextBox)frmView.FindControl("txtRawMatExtraCost"); txtRMEC.Text = DtProxy.man.taRMD.getByKey(((DropDownList)sender).SelectedValue)[0].ExtraMatCost.ToString(); } + + protected void odsQuotes_Updating(object sender, ObjectDataSourceMethodEventArgs e) + { + // intercetto: se esito offerta è OK allora fausa KO è NA... + if (e.InputParameters["OfferResult"].ToString() == "OK") + { + e.InputParameters["KoReason"] = "NA"; + } + } } } \ No newline at end of file diff --git a/C2P/WebUserControls/mod_S_Header.ascx.designer.cs b/C2P/WebUserControls/mod_S_Header.ascx.designer.cs index 2acb209..d1d405f 100644 --- a/C2P/WebUserControls/mod_S_Header.ascx.designer.cs +++ b/C2P/WebUserControls/mod_S_Header.ascx.designer.cs @@ -84,6 +84,33 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.ObjectDataSource odsIncoterms; + /// + /// odsOfferResult control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsOfferResult; + + /// + /// odsKoReason control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsKoReason; + + /// + /// odsAgente control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsAgente; + /// /// lblError control. /// diff --git a/C2P/WebUserControls/mod_listValues.ascx b/C2P/WebUserControls/mod_listValues.ascx new file mode 100644 index 0000000..f2169d5 --- /dev/null +++ b/C2P/WebUserControls/mod_listValues.ascx @@ -0,0 +1,136 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listValues.ascx.cs" + Inherits="C2P.WebUserControls.mod_listValues" %> + + +
+
+
+
+ + --- Select --- + +
+
+
+
+ + + + +
+
+
+
+ <%: traduci("TableName") %>: + +
+
+ <%: traduci("FieldName") %>: + +
+
+ <%: traduci("value") %>: + +
+
+ + + <%: traduci("insertNew") %> + +
+
+
+
+ + +

+ +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- <%: traduci("btnNewListVal") %>--%> + + + + + + + + +
+    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
diff --git a/C2P/WebUserControls/mod_listValues.ascx.cs b/C2P/WebUserControls/mod_listValues.ascx.cs new file mode 100644 index 0000000..3f2f70d --- /dev/null +++ b/C2P/WebUserControls/mod_listValues.ascx.cs @@ -0,0 +1,146 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +namespace C2P.WebUserControls +{ + public partial class mod_listValues : System.Web.UI.UserControl + { + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + lbShowNew.Enabled = true; + lblBtnShowNew.Text = traduci("btnNewListVal"); + divInsert.Visible = false; + + } + } + /// + /// dimensione pagina grid view + /// + public int pageSize + { + get + { + return grView.PageSize; + } + set + { + grView.PageSize = value; + } + } + /// + /// effettua traduzione del lemma + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + /// + /// effettuo update + /// + private void doUpdate() + { + } + + /// + /// reset selezione + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + // deseleziono e nascondo pnl statistiche... + grView.SelectedIndex = -1; + } + /// + /// mostra footer + /// + /// + /// + protected void btnShowInsert(object sender, EventArgs e) + { + // SE HO SELEZIONATO UN VALORE!!! + if (ddlTable.SelectedIndex > 0) + { + // inverto visibilità insert nuovi valori + divInsert.Visible = !divInsert.Visible; + if (divInsert.Visible) + { + lblBtnShowNew.Text = traduci("btnHideNewListVal"); + // precompilo valori tabella + txtTableName.Text = ddlTable.SelectedValue; + } + else + { + lblBtnShowNew.Text = traduci("btnNewListVal"); + } + } + } + + /// + /// evento post "aggancio" del grView x traduzione headers + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + + protected void ddlTable_SelectedIndexChanged(object sender, EventArgs e) + { + // se seleziono valore "vuoto" resetto... + if (ddlTable.SelectedIndex == 0) + { + lblBtnShowNew.Text = traduci("btnNewListVal"); + divInsert.Visible = false; + } + else + { + txtTableName.Text = ddlTable.SelectedValue; + } + } + + protected void btnDoInsert_Click(object sender, EventArgs e) + { + // effettua insert! + C2P_Data.DtProxy.man.taListVal.insertQuery(txtTableName.Text.Trim(), txtFieldName.Text.Trim(), txtvalue.Text.Trim(), txtvalue.Text.Trim(), 999); + // refresh dati! + grView.DataBind(); + } + + } +} \ No newline at end of file diff --git a/C2P/WebUserControls/mod_listValues.ascx.designer.cs b/C2P/WebUserControls/mod_listValues.ascx.designer.cs new file mode 100644 index 0000000..93b5617 --- /dev/null +++ b/C2P/WebUserControls/mod_listValues.ascx.designer.cs @@ -0,0 +1,132 @@ +//------------------------------------------------------------------------------ +// +// 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 C2P.WebUserControls { + + + public partial class mod_listValues { + + /// + /// ddlTable control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlTable; + + /// + /// lbShowNew control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbShowNew; + + /// + /// lblBtnShowNew control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblBtnShowNew; + + /// + /// divInsert control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInsert; + + /// + /// txtTableName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtTableName; + + /// + /// txtFieldName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFieldName; + + /// + /// txtvalue control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtvalue; + + /// + /// btnDoInsert control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton btnDoInsert; + + /// + /// 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; + + /// + /// lblNumRec control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + + /// + /// lblWarning control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblWarning; + + /// + /// 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; + + /// + /// odsTableName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsTableName; + } +} diff --git a/C2P/WebUserControls/mod_newProduct.ascx b/C2P/WebUserControls/mod_newProduct.ascx index 952bc8d..279345d 100644 --- a/C2P/WebUserControls/mod_newProduct.ascx +++ b/C2P/WebUserControls/mod_newProduct.ascx @@ -22,6 +22,7 @@ +  |  diff --git a/C2P/WebUserControls/mod_newProduct.ascx.cs b/C2P/WebUserControls/mod_newProduct.ascx.cs index 2c8c6e2..134a922 100644 --- a/C2P/WebUserControls/mod_newProduct.ascx.cs +++ b/C2P/WebUserControls/mod_newProduct.ascx.cs @@ -92,6 +92,20 @@ namespace C2P.WebUserControls } } /// + /// RISULTATO OFFERTA x la scheda corrente (hidden) + /// + protected string OfferResult + { + get + { + return lblOffRes.Text; + } + set + { + lblOffRes.Text = value; + } + } + /// /// precedente valore richiesto... /// protected string prevReq @@ -247,6 +261,7 @@ namespace C2P.WebUserControls { IdxQS = DtProxy.man.taQFQ.getByKey(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev), "N")[0].IdxQState; CodItem = DtProxy.man.taQFQ.getByKey(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev), "N")[0].CodItem; + OfferResult = DtProxy.man.taQFQ.getByKey(QuoteType, Convert.ToInt32(CodQuote), Convert.ToInt32(QuoteRev), "N")[0].OfferResult; } catch { } @@ -428,7 +443,9 @@ namespace C2P.WebUserControls divStato0.Visible = false; divStato1.Visible = false; divStato2.Visible = false; - divStato3.Visible = true; + // 2015.02.26 SOLO SE è in result = TBD + //divStato3.Visible = true; + divStato3.Visible = OfferResult == "TBD"; // hard coded !!! btnGetPdf.Visible = true; break; default: diff --git a/C2P/WebUserControls/mod_newProduct.ascx.designer.cs b/C2P/WebUserControls/mod_newProduct.ascx.designer.cs index 1d40f27..abcba55 100644 --- a/C2P/WebUserControls/mod_newProduct.ascx.designer.cs +++ b/C2P/WebUserControls/mod_newProduct.ascx.designer.cs @@ -48,6 +48,15 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.Label lblIdxQState; + /// + /// lblOffRes control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblOffRes; + /// /// hlGetPdf control. /// diff --git a/C2P/WebUserControls/mod_testata.ascx b/C2P/WebUserControls/mod_testata.ascx index 5d51bac..f824a7e 100644 --- a/C2P/WebUserControls/mod_testata.ascx +++ b/C2P/WebUserControls/mod_testata.ascx @@ -58,8 +58,7 @@ @@ -87,6 +86,7 @@ <%--
  • Settings
  • --%>
  • Gestione Voc
  • +
  • <%: traduci("ListValuesMgmt") %>
  • <%: traduci("ImportData") %>
  • <%: traduci("UserAdmin") %>
  • diff --git a/C2P/WebUserControls/mod_testata.ascx.cs b/C2P/WebUserControls/mod_testata.ascx.cs index 0bcffd5..d65ab0b 100644 --- a/C2P/WebUserControls/mod_testata.ascx.cs +++ b/C2P/WebUserControls/mod_testata.ascx.cs @@ -65,11 +65,11 @@ namespace C2P.WebUserControls { devicesAuthProxy.pagPrecedente = devicesAuthProxy.pagCorrente; } - // salvo apgina corrente + // salvo pagina corrente devicesAuthProxy.pagCorrente = titolo; // fix logo imgLogo.Visible = logoVisible; - PagCorrente(); + //PagCorrente(); // tolto 2015.02.24 memLayer.ML.emptySessionVal("searchVal"); } // SOLO se la pagina NON E' "safe"... @@ -226,6 +226,8 @@ namespace C2P.WebUserControls //} return answ; } + // tolto 2015.02.24 +#if false /// /// salva in variabile pagina il nome della pagina corrente /// @@ -237,8 +239,10 @@ namespace C2P.WebUserControls string[] finalUrl = MyUrl.LocalPath.ToString().Split(delimiter); int n = finalUrl.Length; user_std.pagCorrente = finalUrl[n - 1].ToString(); + //user_std.pagCorrente = titolo; user_std.pagPrecedente = Request.Url.ToString(); - } + } +#endif /// /// wrapper traduzione /// diff --git a/C2P/WebUserControls/mod_testata.ascx.designer.cs b/C2P/WebUserControls/mod_testata.ascx.designer.cs index e4710b9..5cce0f5 100644 --- a/C2P/WebUserControls/mod_testata.ascx.designer.cs +++ b/C2P/WebUserControls/mod_testata.ascx.designer.cs @@ -48,6 +48,15 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.HtmlControls.HtmlImage imgLogo; + /// + /// liListValues control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl liListValues; + /// /// liImport control. /// diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index 7d1fe00..3424eb6 100644 Binary files a/C2P/bin/C2P.dll and b/C2P/bin/C2P.dll differ diff --git a/C2P/bin/C2P_Data.dll b/C2P/bin/C2P_Data.dll index 3f0c49a..ba04d46 100644 Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ diff --git a/C2P/bin/SteamWare.dll b/C2P/bin/SteamWare.dll index c98ff5e..51c4904 100644 Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ diff --git a/C2P/listValues.aspx b/C2P/listValues.aspx new file mode 100644 index 0000000..4dff2c8 --- /dev/null +++ b/C2P/listValues.aspx @@ -0,0 +1,36 @@ +<%@ Page Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="listValues.aspx.cs" Inherits="C2P.listValues" Title="List Values" %> + +<%@ Register Src="WebUserControls/mod_listValues.ascx" TagName="mod_listValues" TagPrefix="uc1" %> + +<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc3" %> +<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagPrefix="uc4" TagName="mod_ricercaGenerica" %> + + + + + + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    + + diff --git a/C2P/listValues.aspx.cs b/C2P/listValues.aspx.cs new file mode 100644 index 0000000..8860359 --- /dev/null +++ b/C2P/listValues.aspx.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.HtmlControls; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Xml.Linq; + +namespace C2P +{ + public partial class listValues : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + mod_righePag1.numRowPag = 20; + mod_listValues1.pageSize = mod_righePag1.numRowPag; + } + mod_righePag1.eh_newNum += mod_righePag1_eh_newNum; + } + /// + /// aggiornato numero righe datagrid... aggiorno visualizzazione + /// + /// + /// + void mod_righePag1_eh_newNum(object sender, EventArgs e) + { + mod_listValues1.pageSize = mod_righePag1.numRowPag; + } + } +} diff --git a/C2P/listValues.aspx.designer.cs b/C2P/listValues.aspx.designer.cs new file mode 100644 index 0000000..e474177 --- /dev/null +++ b/C2P/listValues.aspx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// 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 C2P { + + + public partial class listValues { + + /// + /// mod_ricercaGenerica control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_ricercaGenerica mod_ricercaGenerica; + + /// + /// mod_righePag1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_righePag mod_righePag1; + + /// + /// mod_listValues1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::C2P.WebUserControls.mod_listValues mod_listValues1; + } +} diff --git a/C2P_CronJob/bin/Release/C2P_CronJob.application b/C2P_CronJob/bin/Release/C2P_CronJob.application index a09f706..1b5c27e 100644 --- a/C2P_CronJob/bin/Release/C2P_CronJob.application +++ b/C2P_CronJob/bin/Release/C2P_CronJob.application @@ -11,7 +11,7 @@ - YQ9vr3cTIRCbuYBLM1J1GjhHcz8= + /8CnRa8M36s0uuUCV2DutzgJiTY= diff --git a/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest b/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest index a1a1ce2..50fc765 100644 --- a/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest +++ b/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest @@ -84,19 +84,19 @@ - TY/JBFMXj/h++cvWRSn6pqOrt9s= + NqCv6+D5rIg5eCMgSyYFkL/POB0= - + - cyyhEL70VPntDlHHF11UaZpnr6M= + 8J6d5YEBwnzh4JmQtXvgfJBThV8= @@ -252,7 +252,7 @@ - IbqIllvHdsuK5Fuf3OWZoQ1et3c= + m5jbDwX83dBqXgAdzvq2D346tqk= @@ -262,7 +262,7 @@ - ilsSsFpBS9QjzlNiKOilhZqKO2Y= + o848kqCM1mDhkqls6HqOullW4Kg= \ No newline at end of file diff --git a/C2P_CronJob/bin/Release/C2P_Data.dll b/C2P_CronJob/bin/Release/C2P_Data.dll index 538d5ef..ba04d46 100644 Binary files a/C2P_CronJob/bin/Release/C2P_Data.dll and b/C2P_CronJob/bin/Release/C2P_Data.dll differ diff --git a/C2P_CronJob/bin/Release/SteamWare.dll b/C2P_CronJob/bin/Release/SteamWare.dll index 80634d4..51c4904 100644 Binary files a/C2P_CronJob/bin/Release/SteamWare.dll and b/C2P_CronJob/bin/Release/SteamWare.dll differ diff --git a/C2P_CronJob/bin/Release/_install.bat b/C2P_CronJob/bin/Release/_install.bat index 3b4a49c..bda834f 100644 --- a/C2P_CronJob/bin/Release/_install.bat +++ b/C2P_CronJob/bin/Release/_install.bat @@ -1,8 +1,8 @@ -@ECHO OFF - +@echo OFF +SET BATPATH=%~dp0 echo Installing WindowsService... -echo --------------------------------------------------- -C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil /i C2P_CronJob.exe -echo --------------------------------------------------- +echo ---------------------------------- +C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil /i %BATPATH%C2P_CronJob.exe +echo ---------------------------------- echo Done. -pause \ No newline at end of file +Pause \ No newline at end of file diff --git a/C2P_CronJob/bin/Release/_uninstall.bat b/C2P_CronJob/bin/Release/_uninstall.bat index fd87701..44b3344 100644 --- a/C2P_CronJob/bin/Release/_uninstall.bat +++ b/C2P_CronJob/bin/Release/_uninstall.bat @@ -1,8 +1,8 @@ -@ECHO OFF - +@echo OFF +SET BATPATH=%~dp0 echo Installing WindowsService... echo --------------------------------------------------- -C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil /u C2P_CronJob.exe +C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil /u %BATPATH%C2P_CronJob.exe echo --------------------------------------------------- echo Done. pause \ No newline at end of file diff --git a/C2P_Data/DS_Quotes.Designer.cs b/C2P_Data/DS_Quotes.Designer.cs index 6990445..62d94ac 100644 --- a/C2P_Data/DS_Quotes.Designer.cs +++ b/C2P_Data/DS_Quotes.Designer.cs @@ -655,6 +655,16 @@ namespace C2P_Data { private global::System.Data.DataColumn columnQuoteRev; + private global::System.Data.DataColumn columnOfferResult; + + private global::System.Data.DataColumn columnKoReason; + + private global::System.Data.DataColumn columnAgente; + + private global::System.Data.DataColumn columnProdType; + + private global::System.Data.DataColumn columnIdxQState; + private global::System.Data.DataColumn columnCodClient; private global::System.Data.DataColumn columnCodItem; @@ -683,8 +693,6 @@ namespace C2P_Data { private global::System.Data.DataColumn columnOrdPrice; - private global::System.Data.DataColumn columnIdxQState; - private global::System.Data.DataColumn columnOrdQty; private global::System.Data.DataColumn columnvalid; @@ -756,6 +764,46 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OfferResultColumn { + get { + return this.columnOfferResult; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KoReasonColumn { + get { + return this.columnKoReason; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AgenteColumn { + get { + return this.columnAgente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ProdTypeColumn { + get { + return this.columnProdType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxQStateColumn { + get { + return this.columnIdxQState; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn CodClientColumn { @@ -868,14 +916,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn IdxQStateColumn { - get { - return this.columnIdxQState; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn OrdQtyColumn { @@ -973,6 +1013,11 @@ namespace C2P_Data { string QuoteType, long CodQuote, int QuoteRev, + string OfferResult, + string KoReason, + string Agente, + string ProdType, + int IdxQState, string CodClient, string CodItem, string CodItemGroup, @@ -987,7 +1032,6 @@ namespace C2P_Data { string OrdNum, string OrdRow, decimal OrdPrice, - int IdxQState, int OrdQty, bool valid, int errorScore, @@ -1000,6 +1044,11 @@ namespace C2P_Data { QuoteType, CodQuote, QuoteRev, + OfferResult, + KoReason, + Agente, + ProdType, + IdxQState, CodClient, CodItem, CodItemGroup, @@ -1014,7 +1063,6 @@ namespace C2P_Data { OrdNum, OrdRow, OrdPrice, - IdxQState, OrdQty, valid, errorScore, @@ -1056,6 +1104,11 @@ namespace C2P_Data { this.columnQuoteType = base.Columns["QuoteType"]; this.columnCodQuote = base.Columns["CodQuote"]; this.columnQuoteRev = base.Columns["QuoteRev"]; + this.columnOfferResult = base.Columns["OfferResult"]; + this.columnKoReason = base.Columns["KoReason"]; + this.columnAgente = base.Columns["Agente"]; + this.columnProdType = base.Columns["ProdType"]; + this.columnIdxQState = base.Columns["IdxQState"]; this.columnCodClient = base.Columns["CodClient"]; this.columnCodItem = base.Columns["CodItem"]; this.columnCodItemGroup = base.Columns["CodItemGroup"]; @@ -1070,7 +1123,6 @@ namespace C2P_Data { this.columnOrdNum = base.Columns["OrdNum"]; this.columnOrdRow = base.Columns["OrdRow"]; this.columnOrdPrice = base.Columns["OrdPrice"]; - this.columnIdxQState = base.Columns["IdxQState"]; this.columnOrdQty = base.Columns["OrdQty"]; this.columnvalid = base.Columns["valid"]; this.columnerrorScore = base.Columns["errorScore"]; @@ -1089,6 +1141,16 @@ namespace C2P_Data { base.Columns.Add(this.columnCodQuote); this.columnQuoteRev = new global::System.Data.DataColumn("QuoteRev", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQuoteRev); + this.columnOfferResult = new global::System.Data.DataColumn("OfferResult", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOfferResult); + this.columnKoReason = new global::System.Data.DataColumn("KoReason", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKoReason); + this.columnAgente = new global::System.Data.DataColumn("Agente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAgente); + this.columnProdType = new global::System.Data.DataColumn("ProdType", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnProdType); + this.columnIdxQState = new global::System.Data.DataColumn("IdxQState", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxQState); this.columnCodClient = new global::System.Data.DataColumn("CodClient", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodClient); this.columnCodItem = new global::System.Data.DataColumn("CodItem", typeof(string), null, global::System.Data.MappingType.Element); @@ -1117,8 +1179,6 @@ namespace C2P_Data { base.Columns.Add(this.columnOrdRow); this.columnOrdPrice = new global::System.Data.DataColumn("OrdPrice", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnOrdPrice); - this.columnIdxQState = new global::System.Data.DataColumn("IdxQState", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnIdxQState); this.columnOrdQty = new global::System.Data.DataColumn("OrdQty", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnOrdQty); this.columnvalid = new global::System.Data.DataColumn("valid", typeof(bool), null, global::System.Data.MappingType.Element); @@ -1141,6 +1201,15 @@ namespace C2P_Data { this.columnQuoteType.MaxLength = 1; this.columnCodQuote.AllowDBNull = false; this.columnQuoteRev.AllowDBNull = false; + this.columnOfferResult.AllowDBNull = false; + this.columnOfferResult.MaxLength = 50; + this.columnKoReason.AllowDBNull = false; + this.columnKoReason.MaxLength = 50; + this.columnAgente.AllowDBNull = false; + this.columnAgente.MaxLength = 50; + this.columnProdType.AllowDBNull = false; + this.columnProdType.MaxLength = 5; + this.columnIdxQState.AllowDBNull = false; this.columnCodClient.AllowDBNull = false; this.columnCodClient.MaxLength = 50; this.columnCodItem.AllowDBNull = false; @@ -1163,7 +1232,6 @@ namespace C2P_Data { this.columnOrdRow.AllowDBNull = false; this.columnOrdRow.MaxLength = 50; this.columnOrdPrice.AllowDBNull = false; - this.columnIdxQState.AllowDBNull = false; this.columnOrdQty.AllowDBNull = false; this.columnvalid.AllowDBNull = false; this.columnerrorScore.AllowDBNull = false; @@ -3641,6 +3709,16 @@ namespace C2P_Data { private global::System.Data.DataColumn columnQuoteRev; + private global::System.Data.DataColumn columnOfferResult; + + private global::System.Data.DataColumn columnKoReason; + + private global::System.Data.DataColumn columnAgente; + + private global::System.Data.DataColumn columnProdType; + + private global::System.Data.DataColumn columnIdxQState; + private global::System.Data.DataColumn columnCodClient; private global::System.Data.DataColumn columnClientName; @@ -3657,6 +3735,8 @@ namespace C2P_Data { private global::System.Data.DataColumn columnCodInco; + private global::System.Data.DataColumn columnTranspZone; + private global::System.Data.DataColumn columnKeyAM; private global::System.Data.DataColumn columnNote; @@ -3687,6 +3767,8 @@ namespace C2P_Data { private global::System.Data.DataColumn columnDiesEOLife; + private global::System.Data.DataColumn columnDiesByClass; + private global::System.Data.DataColumn columnNumDiesInList; private global::System.Data.DataColumn columnNumDiesExaust; @@ -3793,16 +3875,10 @@ namespace C2P_Data { private global::System.Data.DataColumn columnPckSur; - private global::System.Data.DataColumn columnIdxQState; - - private global::System.Data.DataColumn columnDiesByClass; - private global::System.Data.DataColumn columnvalid; private global::System.Data.DataColumn columnerrorScore; - private global::System.Data.DataColumn columnTranspZone; - private global::System.Data.DataColumn columnDiesPrice_sim; private global::System.Data.DataColumn columnSamplePrice; @@ -3831,6 +3907,8 @@ namespace C2P_Data { private global::System.Data.DataColumn columnNetProd01_sim; + private global::System.Data.DataColumn columnNetProd04_sim; + private global::System.Data.DataColumn columnDSR_sim; private global::System.Data.DataColumn columnNetMar_sim; @@ -3841,8 +3919,6 @@ namespace C2P_Data { private global::System.Data.DataColumn columnP_MinPrice_sim; - private global::System.Data.DataColumn columnNetProd04_sim; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public QuoteFull_QDataTable() { @@ -3908,6 +3984,46 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OfferResultColumn { + get { + return this.columnOfferResult; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KoReasonColumn { + get { + return this.columnKoReason; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AgenteColumn { + get { + return this.columnAgente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ProdTypeColumn { + get { + return this.columnProdType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxQStateColumn { + get { + return this.columnIdxQState; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn CodClientColumn { @@ -3972,6 +4088,14 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TranspZoneColumn { + get { + return this.columnTranspZone; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn KeyAMColumn { @@ -4092,6 +4216,14 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DiesByClassColumn { + get { + return this.columnDiesByClass; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn NumDiesInListColumn { @@ -4516,22 +4648,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn IdxQStateColumn { - get { - return this.columnIdxQState; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn DiesByClassColumn { - get { - return this.columnDiesByClass; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn validColumn { @@ -4548,14 +4664,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn TranspZoneColumn { - get { - return this.columnTranspZone; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn DiesPrice_simColumn { @@ -4668,6 +4776,14 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NetProd04_simColumn { + get { + return this.columnNetProd04_sim; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn DSR_simColumn { @@ -4708,14 +4824,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn NetProd04_simColumn { - get { - return this.columnNetProd04_sim; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -4758,6 +4866,11 @@ namespace C2P_Data { string QuoteType, long CodQuote, int QuoteRev, + string OfferResult, + string KoReason, + string Agente, + string ProdType, + int IdxQState, string CodClient, string ClientName, string CodItem, @@ -4766,6 +4879,7 @@ namespace C2P_Data { decimal UnitWeight, int BatchQty, string CodInco, + string TranspZone, string KeyAM, string Note, decimal PriceOff, @@ -4781,6 +4895,7 @@ namespace C2P_Data { decimal DiesPrice, decimal DiesExpLife, decimal DiesEOLife, + bool DiesByClass, decimal NumDiesInList, decimal NumDiesExaust, string CodPlant, @@ -4834,11 +4949,8 @@ namespace C2P_Data { decimal NetMar, decimal FCShield, decimal PckSur, - int IdxQState, - bool DiesByClass, bool valid, int errorScore, - string TranspZone, decimal DiesPrice_sim, decimal SamplePrice, decimal DiesFullCost, @@ -4853,18 +4965,23 @@ namespace C2P_Data { decimal WSR01_sim, decimal MSR01_sim, decimal NetProd01_sim, + decimal NetProd04_sim, decimal DSR_sim, decimal NetMar_sim, decimal FCShield_sim, decimal MinPrice_sim, - decimal P_MinPrice_sim, - decimal NetProd04_sim) { + decimal P_MinPrice_sim) { QuoteFull_QRow rowQuoteFull_QRow = ((QuoteFull_QRow)(this.NewRow())); object[] columnValuesArray = new object[] { Vers, QuoteType, CodQuote, QuoteRev, + OfferResult, + KoReason, + Agente, + ProdType, + IdxQState, CodClient, ClientName, CodItem, @@ -4873,6 +4990,7 @@ namespace C2P_Data { UnitWeight, BatchQty, CodInco, + TranspZone, KeyAM, Note, PriceOff, @@ -4888,6 +5006,7 @@ namespace C2P_Data { DiesPrice, DiesExpLife, DiesEOLife, + DiesByClass, NumDiesInList, NumDiesExaust, CodPlant, @@ -4941,11 +5060,8 @@ namespace C2P_Data { NetMar, FCShield, PckSur, - IdxQState, - DiesByClass, valid, errorScore, - TranspZone, DiesPrice_sim, SamplePrice, DiesFullCost, @@ -4960,12 +5076,12 @@ namespace C2P_Data { WSR01_sim, MSR01_sim, NetProd01_sim, + NetProd04_sim, DSR_sim, NetMar_sim, FCShield_sim, MinPrice_sim, - P_MinPrice_sim, - NetProd04_sim}; + P_MinPrice_sim}; rowQuoteFull_QRow.ItemArray = columnValuesArray; this.Rows.Add(rowQuoteFull_QRow); return rowQuoteFull_QRow; @@ -5001,6 +5117,11 @@ namespace C2P_Data { this.columnQuoteType = base.Columns["QuoteType"]; this.columnCodQuote = base.Columns["CodQuote"]; this.columnQuoteRev = base.Columns["QuoteRev"]; + this.columnOfferResult = base.Columns["OfferResult"]; + this.columnKoReason = base.Columns["KoReason"]; + this.columnAgente = base.Columns["Agente"]; + this.columnProdType = base.Columns["ProdType"]; + this.columnIdxQState = base.Columns["IdxQState"]; this.columnCodClient = base.Columns["CodClient"]; this.columnClientName = base.Columns["ClientName"]; this.columnCodItem = base.Columns["CodItem"]; @@ -5009,6 +5130,7 @@ namespace C2P_Data { this.columnUnitWeight = base.Columns["UnitWeight"]; this.columnBatchQty = base.Columns["BatchQty"]; this.columnCodInco = base.Columns["CodInco"]; + this.columnTranspZone = base.Columns["TranspZone"]; this.columnKeyAM = base.Columns["KeyAM"]; this.columnNote = base.Columns["Note"]; this.columnPriceOff = base.Columns["PriceOff"]; @@ -5024,6 +5146,7 @@ namespace C2P_Data { this.columnDiesPrice = base.Columns["DiesPrice"]; this.columnDiesExpLife = base.Columns["DiesExpLife"]; this.columnDiesEOLife = base.Columns["DiesEOLife"]; + this.columnDiesByClass = base.Columns["DiesByClass"]; this.columnNumDiesInList = base.Columns["NumDiesInList"]; this.columnNumDiesExaust = base.Columns["NumDiesExaust"]; this.columnCodPlant = base.Columns["CodPlant"]; @@ -5077,11 +5200,8 @@ namespace C2P_Data { this.columnNetMar = base.Columns["NetMar"]; this.columnFCShield = base.Columns["FCShield"]; this.columnPckSur = base.Columns["PckSur"]; - this.columnIdxQState = base.Columns["IdxQState"]; - this.columnDiesByClass = base.Columns["DiesByClass"]; this.columnvalid = base.Columns["valid"]; this.columnerrorScore = base.Columns["errorScore"]; - this.columnTranspZone = base.Columns["TranspZone"]; this.columnDiesPrice_sim = base.Columns["DiesPrice_sim"]; this.columnSamplePrice = base.Columns["SamplePrice"]; this.columnDiesFullCost = base.Columns["DiesFullCost"]; @@ -5096,12 +5216,12 @@ namespace C2P_Data { this.columnWSR01_sim = base.Columns["WSR01_sim"]; this.columnMSR01_sim = base.Columns["MSR01_sim"]; this.columnNetProd01_sim = base.Columns["NetProd01_sim"]; + this.columnNetProd04_sim = base.Columns["NetProd04_sim"]; this.columnDSR_sim = base.Columns["DSR_sim"]; this.columnNetMar_sim = base.Columns["NetMar_sim"]; this.columnFCShield_sim = base.Columns["FCShield_sim"]; this.columnMinPrice_sim = base.Columns["MinPrice_sim"]; this.columnP_MinPrice_sim = base.Columns["P_MinPrice_sim"]; - this.columnNetProd04_sim = base.Columns["NetProd04_sim"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -5115,6 +5235,16 @@ namespace C2P_Data { base.Columns.Add(this.columnCodQuote); this.columnQuoteRev = new global::System.Data.DataColumn("QuoteRev", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQuoteRev); + this.columnOfferResult = new global::System.Data.DataColumn("OfferResult", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOfferResult); + this.columnKoReason = new global::System.Data.DataColumn("KoReason", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKoReason); + this.columnAgente = new global::System.Data.DataColumn("Agente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAgente); + this.columnProdType = new global::System.Data.DataColumn("ProdType", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnProdType); + this.columnIdxQState = new global::System.Data.DataColumn("IdxQState", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxQState); this.columnCodClient = new global::System.Data.DataColumn("CodClient", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodClient); this.columnClientName = new global::System.Data.DataColumn("ClientName", typeof(string), null, global::System.Data.MappingType.Element); @@ -5131,6 +5261,8 @@ namespace C2P_Data { base.Columns.Add(this.columnBatchQty); this.columnCodInco = new global::System.Data.DataColumn("CodInco", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodInco); + this.columnTranspZone = new global::System.Data.DataColumn("TranspZone", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTranspZone); this.columnKeyAM = new global::System.Data.DataColumn("KeyAM", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnKeyAM); this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); @@ -5161,6 +5293,8 @@ namespace C2P_Data { base.Columns.Add(this.columnDiesExpLife); this.columnDiesEOLife = new global::System.Data.DataColumn("DiesEOLife", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDiesEOLife); + this.columnDiesByClass = new global::System.Data.DataColumn("DiesByClass", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDiesByClass); this.columnNumDiesInList = new global::System.Data.DataColumn("NumDiesInList", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumDiesInList); this.columnNumDiesExaust = new global::System.Data.DataColumn("NumDiesExaust", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -5267,16 +5401,10 @@ namespace C2P_Data { base.Columns.Add(this.columnFCShield); this.columnPckSur = new global::System.Data.DataColumn("PckSur", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnPckSur); - this.columnIdxQState = new global::System.Data.DataColumn("IdxQState", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnIdxQState); - this.columnDiesByClass = new global::System.Data.DataColumn("DiesByClass", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDiesByClass); this.columnvalid = new global::System.Data.DataColumn("valid", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnvalid); this.columnerrorScore = new global::System.Data.DataColumn("errorScore", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnerrorScore); - this.columnTranspZone = new global::System.Data.DataColumn("TranspZone", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTranspZone); this.columnDiesPrice_sim = new global::System.Data.DataColumn("DiesPrice_sim", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDiesPrice_sim); this.columnSamplePrice = new global::System.Data.DataColumn("SamplePrice", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -5305,6 +5433,8 @@ namespace C2P_Data { base.Columns.Add(this.columnMSR01_sim); this.columnNetProd01_sim = new global::System.Data.DataColumn("NetProd01_sim", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNetProd01_sim); + this.columnNetProd04_sim = new global::System.Data.DataColumn("NetProd04_sim", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNetProd04_sim); this.columnDSR_sim = new global::System.Data.DataColumn("DSR_sim", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDSR_sim); this.columnNetMar_sim = new global::System.Data.DataColumn("NetMar_sim", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -5315,8 +5445,6 @@ namespace C2P_Data { base.Columns.Add(this.columnMinPrice_sim); this.columnP_MinPrice_sim = new global::System.Data.DataColumn("P_MinPrice_sim", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnP_MinPrice_sim); - this.columnNetProd04_sim = new global::System.Data.DataColumn("NetProd04_sim", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnNetProd04_sim); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnQuoteType, this.columnCodQuote, @@ -5327,6 +5455,15 @@ namespace C2P_Data { this.columnQuoteType.MaxLength = 1; this.columnCodQuote.AllowDBNull = false; this.columnQuoteRev.AllowDBNull = false; + this.columnOfferResult.AllowDBNull = false; + this.columnOfferResult.MaxLength = 50; + this.columnKoReason.AllowDBNull = false; + this.columnKoReason.MaxLength = 50; + this.columnAgente.AllowDBNull = false; + this.columnAgente.MaxLength = 50; + this.columnProdType.AllowDBNull = false; + this.columnProdType.MaxLength = 5; + this.columnIdxQState.AllowDBNull = false; this.columnCodClient.AllowDBNull = false; this.columnCodClient.MaxLength = 50; this.columnClientName.AllowDBNull = false; @@ -5341,6 +5478,8 @@ namespace C2P_Data { this.columnBatchQty.AllowDBNull = false; this.columnCodInco.AllowDBNull = false; this.columnCodInco.MaxLength = 5; + this.columnTranspZone.AllowDBNull = false; + this.columnTranspZone.MaxLength = 50; this.columnKeyAM.AllowDBNull = false; this.columnKeyAM.MaxLength = 101; this.columnNote.AllowDBNull = false; @@ -5357,6 +5496,7 @@ namespace C2P_Data { this.columnDiesPrice.AllowDBNull = false; this.columnDiesExpLife.AllowDBNull = false; this.columnDiesEOLife.AllowDBNull = false; + this.columnDiesByClass.AllowDBNull = false; this.columnCodPlant.MaxLength = 100; this.columnKeyAMIL.MaxLength = 100; this.columnLivPackage.MaxLength = 100; @@ -5387,24 +5527,8 @@ namespace C2P_Data { this.columnFC4UG04.AllowDBNull = false; this.columnVC4UG04.AllowDBNull = false; this.columnCharge.AllowDBNull = false; - this.columnP_FVC.ReadOnly = true; - this.columnCPS.ReadOnly = true; - this.columnP_CPS.ReadOnly = true; - this.columnP_FC4UG04.ReadOnly = true; - this.columnFullCost.ReadOnly = true; - this.columnP_FullCost.ReadOnly = true; - this.columnMinPrice.ReadOnly = true; - this.columnP_MinPrice.ReadOnly = true; - this.columnP_PriceOff.ReadOnly = true; - this.columnNetMar.ReadOnly = true; - this.columnFCShield.ReadOnly = true; - this.columnPckSur.ReadOnly = true; - this.columnIdxQState.AllowDBNull = false; - this.columnDiesByClass.AllowDBNull = false; this.columnvalid.AllowDBNull = false; this.columnerrorScore.AllowDBNull = false; - this.columnTranspZone.AllowDBNull = false; - this.columnTranspZone.MaxLength = 50; this.columnDiesPrice_sim.AllowDBNull = false; this.columnSamplePrice.AllowDBNull = false; this.columnDiesFullCost.AllowDBNull = false; @@ -5419,8 +5543,8 @@ namespace C2P_Data { this.columnWSR01_sim.AllowDBNull = false; this.columnMSR01_sim.AllowDBNull = false; this.columnNetProd01_sim.AllowDBNull = false; - this.columnDSR_sim.AllowDBNull = false; this.columnNetProd04_sim.AllowDBNull = false; + this.columnDSR_sim.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -5562,6 +5686,14 @@ namespace C2P_Data { private global::System.Data.DataColumn columnQuoteRev; + private global::System.Data.DataColumn columnOfferResult; + + private global::System.Data.DataColumn columnKoReason; + + private global::System.Data.DataColumn columnAgente; + + private global::System.Data.DataColumn columnProdType; + private global::System.Data.DataColumn columnIdxQState; private global::System.Data.DataColumn columnCodClient; @@ -5606,7 +5738,7 @@ namespace C2P_Data { private global::System.Data.DataColumn columnHoleNumDies; - private global::System.Data.DataColumn columnDiesPrice_avg; + private global::System.Data.DataColumn columnDiesPrice_sim; private global::System.Data.DataColumn columnDiesPrice; @@ -5692,15 +5824,17 @@ namespace C2P_Data { private global::System.Data.DataColumn columnRefCost04; - private global::System.Data.DataColumn columnWSR01_avg; + private global::System.Data.DataColumn columnWSR01_sim; private global::System.Data.DataColumn columnWSR01; - private global::System.Data.DataColumn columnMSR01_avg; + private global::System.Data.DataColumn columnMSR01_sim; private global::System.Data.DataColumn columnMSR01; - private global::System.Data.DataColumn columnNetProd01_avg; + private global::System.Data.DataColumn columnNetProd01_sim; + + private global::System.Data.DataColumn columnNetProd04_sim; private global::System.Data.DataColumn columnNetProd01; @@ -5712,7 +5846,7 @@ namespace C2P_Data { private global::System.Data.DataColumn columnSC4UG01; - private global::System.Data.DataColumn columnDSR_avg; + private global::System.Data.DataColumn columnDSR_sim; private global::System.Data.DataColumn columnDSR; @@ -5795,6 +5929,38 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OfferResultColumn { + get { + return this.columnOfferResult; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KoReasonColumn { + get { + return this.columnKoReason; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AgenteColumn { + get { + return this.columnAgente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ProdTypeColumn { + get { + return this.columnProdType; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn IdxQStateColumn { @@ -5973,9 +6139,9 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn DiesPrice_avgColumn { + public global::System.Data.DataColumn DiesPrice_simColumn { get { - return this.columnDiesPrice_avg; + return this.columnDiesPrice_sim; } } @@ -6317,9 +6483,9 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn WSR01_avgColumn { + public global::System.Data.DataColumn WSR01_simColumn { get { - return this.columnWSR01_avg; + return this.columnWSR01_sim; } } @@ -6333,9 +6499,9 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn MSR01_avgColumn { + public global::System.Data.DataColumn MSR01_simColumn { get { - return this.columnMSR01_avg; + return this.columnMSR01_sim; } } @@ -6349,9 +6515,17 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn NetProd01_avgColumn { + public global::System.Data.DataColumn NetProd01_simColumn { get { - return this.columnNetProd01_avg; + return this.columnNetProd01_sim; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NetProd04_simColumn { + get { + return this.columnNetProd04_sim; } } @@ -6397,9 +6571,9 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn DSR_avgColumn { + public global::System.Data.DataColumn DSR_simColumn { get { - return this.columnDSR_avg; + return this.columnDSR_sim; } } @@ -6509,6 +6683,10 @@ namespace C2P_Data { string QuoteType, long CodQuote, int QuoteRev, + string OfferResult, + string KoReason, + string Agente, + string ProdType, int IdxQState, string CodClient, string ClientName, @@ -6531,7 +6709,7 @@ namespace C2P_Data { string CodDiesGroup, decimal DiamDies, int HoleNumDies, - decimal DiesPrice_avg, + decimal DiesPrice_sim, decimal DiesPrice, decimal SamplePrice, decimal DiesFullCost, @@ -6551,7 +6729,7 @@ namespace C2P_Data { string CodPlant, string KeyAMIL, decimal KgTeo, - decimal NumSMED, + int NumSMED, decimal QuotaMan, decimal PRMWeight, decimal PWeight, @@ -6574,17 +6752,18 @@ namespace C2P_Data { decimal RefCost01, decimal SellCost04, decimal RefCost04, - decimal WSR01_avg, + decimal WSR01_sim, decimal WSR01, - decimal MSR01_avg, + decimal MSR01_sim, decimal MSR01, - decimal NetProd01_avg, + decimal NetProd01_sim, + decimal NetProd04_sim, decimal NetProd01, decimal FC4UG01, decimal VC4UG01, decimal OH4UG01, decimal SC4UG01, - decimal DSR_avg, + decimal DSR_sim, decimal DSR, decimal NetProd04, decimal FC4UG04, @@ -6599,6 +6778,10 @@ namespace C2P_Data { QuoteType, CodQuote, QuoteRev, + OfferResult, + KoReason, + Agente, + ProdType, IdxQState, CodClient, ClientName, @@ -6621,7 +6804,7 @@ namespace C2P_Data { CodDiesGroup, DiamDies, HoleNumDies, - DiesPrice_avg, + DiesPrice_sim, DiesPrice, SamplePrice, DiesFullCost, @@ -6664,17 +6847,18 @@ namespace C2P_Data { RefCost01, SellCost04, RefCost04, - WSR01_avg, + WSR01_sim, WSR01, - MSR01_avg, + MSR01_sim, MSR01, - NetProd01_avg, + NetProd01_sim, + NetProd04_sim, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, - DSR_avg, + DSR_sim, DSR, NetProd04, FC4UG04, @@ -6718,6 +6902,10 @@ namespace C2P_Data { this.columnQuoteType = base.Columns["QuoteType"]; this.columnCodQuote = base.Columns["CodQuote"]; this.columnQuoteRev = base.Columns["QuoteRev"]; + this.columnOfferResult = base.Columns["OfferResult"]; + this.columnKoReason = base.Columns["KoReason"]; + this.columnAgente = base.Columns["Agente"]; + this.columnProdType = base.Columns["ProdType"]; this.columnIdxQState = base.Columns["IdxQState"]; this.columnCodClient = base.Columns["CodClient"]; this.columnClientName = base.Columns["ClientName"]; @@ -6740,7 +6928,7 @@ namespace C2P_Data { this.columnCodDiesGroup = base.Columns["CodDiesGroup"]; this.columnDiamDies = base.Columns["DiamDies"]; this.columnHoleNumDies = base.Columns["HoleNumDies"]; - this.columnDiesPrice_avg = base.Columns["DiesPrice_avg"]; + this.columnDiesPrice_sim = base.Columns["DiesPrice_sim"]; this.columnDiesPrice = base.Columns["DiesPrice"]; this.columnSamplePrice = base.Columns["SamplePrice"]; this.columnDiesFullCost = base.Columns["DiesFullCost"]; @@ -6783,17 +6971,18 @@ namespace C2P_Data { this.columnRefCost01 = base.Columns["RefCost01"]; this.columnSellCost04 = base.Columns["SellCost04"]; this.columnRefCost04 = base.Columns["RefCost04"]; - this.columnWSR01_avg = base.Columns["WSR01_avg"]; + this.columnWSR01_sim = base.Columns["WSR01_sim"]; this.columnWSR01 = base.Columns["WSR01"]; - this.columnMSR01_avg = base.Columns["MSR01_avg"]; + this.columnMSR01_sim = base.Columns["MSR01_sim"]; this.columnMSR01 = base.Columns["MSR01"]; - this.columnNetProd01_avg = base.Columns["NetProd01_avg"]; + this.columnNetProd01_sim = base.Columns["NetProd01_sim"]; + this.columnNetProd04_sim = base.Columns["NetProd04_sim"]; this.columnNetProd01 = base.Columns["NetProd01"]; this.columnFC4UG01 = base.Columns["FC4UG01"]; this.columnVC4UG01 = base.Columns["VC4UG01"]; this.columnOH4UG01 = base.Columns["OH4UG01"]; this.columnSC4UG01 = base.Columns["SC4UG01"]; - this.columnDSR_avg = base.Columns["DSR_avg"]; + this.columnDSR_sim = base.Columns["DSR_sim"]; this.columnDSR = base.Columns["DSR"]; this.columnNetProd04 = base.Columns["NetProd04"]; this.columnFC4UG04 = base.Columns["FC4UG04"]; @@ -6815,6 +7004,14 @@ namespace C2P_Data { base.Columns.Add(this.columnCodQuote); this.columnQuoteRev = new global::System.Data.DataColumn("QuoteRev", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQuoteRev); + this.columnOfferResult = new global::System.Data.DataColumn("OfferResult", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOfferResult); + this.columnKoReason = new global::System.Data.DataColumn("KoReason", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKoReason); + this.columnAgente = new global::System.Data.DataColumn("Agente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAgente); + this.columnProdType = new global::System.Data.DataColumn("ProdType", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnProdType); this.columnIdxQState = new global::System.Data.DataColumn("IdxQState", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnIdxQState); this.columnCodClient = new global::System.Data.DataColumn("CodClient", typeof(string), null, global::System.Data.MappingType.Element); @@ -6859,8 +7056,8 @@ namespace C2P_Data { base.Columns.Add(this.columnDiamDies); this.columnHoleNumDies = new global::System.Data.DataColumn("HoleNumDies", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnHoleNumDies); - this.columnDiesPrice_avg = new global::System.Data.DataColumn("DiesPrice_avg", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDiesPrice_avg); + this.columnDiesPrice_sim = new global::System.Data.DataColumn("DiesPrice_sim", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDiesPrice_sim); this.columnDiesPrice = new global::System.Data.DataColumn("DiesPrice", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDiesPrice); this.columnSamplePrice = new global::System.Data.DataColumn("SamplePrice", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -6899,7 +7096,7 @@ namespace C2P_Data { base.Columns.Add(this.columnKeyAMIL); this.columnKgTeo = new global::System.Data.DataColumn("KgTeo", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnKgTeo); - this.columnNumSMED = new global::System.Data.DataColumn("NumSMED", typeof(decimal), null, global::System.Data.MappingType.Element); + this.columnNumSMED = new global::System.Data.DataColumn("NumSMED", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumSMED); this.columnQuotaMan = new global::System.Data.DataColumn("QuotaMan", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQuotaMan); @@ -6945,16 +7142,18 @@ namespace C2P_Data { base.Columns.Add(this.columnSellCost04); this.columnRefCost04 = new global::System.Data.DataColumn("RefCost04", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnRefCost04); - this.columnWSR01_avg = new global::System.Data.DataColumn("WSR01_avg", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnWSR01_avg); + this.columnWSR01_sim = new global::System.Data.DataColumn("WSR01_sim", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnWSR01_sim); this.columnWSR01 = new global::System.Data.DataColumn("WSR01", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnWSR01); - this.columnMSR01_avg = new global::System.Data.DataColumn("MSR01_avg", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMSR01_avg); + this.columnMSR01_sim = new global::System.Data.DataColumn("MSR01_sim", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMSR01_sim); this.columnMSR01 = new global::System.Data.DataColumn("MSR01", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnMSR01); - this.columnNetProd01_avg = new global::System.Data.DataColumn("NetProd01_avg", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnNetProd01_avg); + this.columnNetProd01_sim = new global::System.Data.DataColumn("NetProd01_sim", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNetProd01_sim); + this.columnNetProd04_sim = new global::System.Data.DataColumn("NetProd04_sim", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNetProd04_sim); this.columnNetProd01 = new global::System.Data.DataColumn("NetProd01", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNetProd01); this.columnFC4UG01 = new global::System.Data.DataColumn("FC4UG01", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -6965,8 +7164,8 @@ namespace C2P_Data { base.Columns.Add(this.columnOH4UG01); this.columnSC4UG01 = new global::System.Data.DataColumn("SC4UG01", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnSC4UG01); - this.columnDSR_avg = new global::System.Data.DataColumn("DSR_avg", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDSR_avg); + this.columnDSR_sim = new global::System.Data.DataColumn("DSR_sim", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDSR_sim); this.columnDSR = new global::System.Data.DataColumn("DSR", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDSR); this.columnNetProd04 = new global::System.Data.DataColumn("NetProd04", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -6993,6 +7192,14 @@ namespace C2P_Data { this.columnQuoteType.MaxLength = 1; this.columnCodQuote.AllowDBNull = false; this.columnQuoteRev.AllowDBNull = false; + this.columnOfferResult.AllowDBNull = false; + this.columnOfferResult.MaxLength = 50; + this.columnKoReason.AllowDBNull = false; + this.columnKoReason.MaxLength = 50; + this.columnAgente.AllowDBNull = false; + this.columnAgente.MaxLength = 50; + this.columnProdType.AllowDBNull = false; + this.columnProdType.MaxLength = 5; this.columnIdxQState.AllowDBNull = false; this.columnCodClient.AllowDBNull = false; this.columnCodClient.MaxLength = 50; @@ -7022,26 +7229,42 @@ namespace C2P_Data { this.columnClasseMerc.MaxLength = 100; this.columnTipoDies.MaxLength = 100; this.columnCodDiesGroup.MaxLength = 100; + this.columnDiamDies.AllowDBNull = false; + this.columnHoleNumDies.AllowDBNull = false; + this.columnDiesPrice_sim.AllowDBNull = false; this.columnDiesPrice.AllowDBNull = false; this.columnSamplePrice.AllowDBNull = false; - this.columnDiesFullCost.ReadOnly = true; + this.columnDiesFullCost.AllowDBNull = false; this.columnDiesPriceClientQuote.AllowDBNull = false; + this.columnDiesExpLife.AllowDBNull = false; + this.columnDiesEOLife.AllowDBNull = false; this.columnDiesTecLife.AllowDBNull = false; this.columnDiesCommLife.AllowDBNull = false; this.columnMonthSalesPrev.AllowDBNull = false; - this.columnSalesPrevCost.ReadOnly = true; - this.columnDiesFinCost.ReadOnly = true; - this.columnClientQuoteReven.ReadOnly = true; - this.columnExtraDiscountDies.ReadOnly = true; + this.columnSalesPrevCost.AllowDBNull = false; + this.columnDiesFinCost.AllowDBNull = false; + this.columnClientQuoteReven.AllowDBNull = false; + this.columnExtraDiscountDies.AllowDBNull = false; + this.columnDiesByClass.AllowDBNull = false; + this.columnNumDiesInList.AllowDBNull = false; + this.columnNumDiesExaust.AllowDBNull = false; this.columnCodPlant.MaxLength = 100; this.columnKeyAMIL.MaxLength = 100; + this.columnKgTeo.AllowDBNull = false; + this.columnNumSMED.AllowDBNull = false; + this.columnQuotaMan.AllowDBNull = false; + this.columnPRMWeight.AllowDBNull = false; + this.columnPWeight.AllowDBNull = false; + this.columnPTare.AllowDBNull = false; this.columnLivPackage.MaxLength = 100; this.columnLivPackageDett.MaxLength = 100; this.columnRawMatCost.AllowDBNull = false; this.columnRawMatExtraCost.AllowDBNull = false; + this.columnRawMatFullCost.AllowDBNull = false; this.columnCodPackag.AllowDBNull = false; this.columnCodPackag.MaxLength = 50; this.columnPkgDesc.MaxLength = 100; + this.columnFSR.AllowDBNull = false; this.columnProvvCost.AllowDBNull = false; this.columnEECost.AllowDBNull = false; this.columnGasCost.AllowDBNull = false; @@ -7052,20 +7275,23 @@ namespace C2P_Data { this.columnRefCost01.AllowDBNull = false; this.columnSellCost04.AllowDBNull = false; this.columnRefCost04.AllowDBNull = false; - this.columnWSR01_avg.AllowDBNull = false; + this.columnWSR01_sim.AllowDBNull = false; this.columnWSR01.AllowDBNull = false; - this.columnMSR01_avg.AllowDBNull = false; + this.columnMSR01_sim.AllowDBNull = false; this.columnMSR01.AllowDBNull = false; - this.columnNetProd01_avg.AllowDBNull = false; + this.columnNetProd01_sim.AllowDBNull = false; + this.columnNetProd04_sim.AllowDBNull = false; this.columnNetProd01.AllowDBNull = false; this.columnFC4UG01.AllowDBNull = false; this.columnVC4UG01.AllowDBNull = false; this.columnOH4UG01.AllowDBNull = false; this.columnSC4UG01.AllowDBNull = false; - this.columnDSR_avg.AllowDBNull = false; + this.columnDSR_sim.AllowDBNull = false; + this.columnDSR.AllowDBNull = false; this.columnNetProd04.AllowDBNull = false; this.columnFC4UG04.AllowDBNull = false; this.columnVC4UG04.AllowDBNull = false; + this.columnFVC.AllowDBNull = false; this.columnCharge.AllowDBNull = false; this.columnvalid.AllowDBNull = false; this.columnerrorScore.AllowDBNull = false; @@ -8053,6 +8279,61 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string OfferResult { + get { + return ((string)(this[this.tableQuoteList.OfferResultColumn])); + } + set { + this[this.tableQuoteList.OfferResultColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KoReason { + get { + return ((string)(this[this.tableQuoteList.KoReasonColumn])); + } + set { + this[this.tableQuoteList.KoReasonColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Agente { + get { + return ((string)(this[this.tableQuoteList.AgenteColumn])); + } + set { + this[this.tableQuoteList.AgenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ProdType { + get { + return ((string)(this[this.tableQuoteList.ProdTypeColumn])); + } + set { + this[this.tableQuoteList.ProdTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxQState { + get { + return ((int)(this[this.tableQuoteList.IdxQStateColumn])); + } + set { + this[this.tableQuoteList.IdxQStateColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string CodClient { @@ -8217,17 +8498,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int IdxQState { - get { - return ((int)(this[this.tableQuoteList.IdxQStateColumn])); - } - set { - this[this.tableQuoteList.IdxQStateColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int OrdQty { @@ -9474,6 +9744,61 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string OfferResult { + get { + return ((string)(this[this.tableQuoteFull_Q.OfferResultColumn])); + } + set { + this[this.tableQuoteFull_Q.OfferResultColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KoReason { + get { + return ((string)(this[this.tableQuoteFull_Q.KoReasonColumn])); + } + set { + this[this.tableQuoteFull_Q.KoReasonColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Agente { + get { + return ((string)(this[this.tableQuoteFull_Q.AgenteColumn])); + } + set { + this[this.tableQuoteFull_Q.AgenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ProdType { + get { + return ((string)(this[this.tableQuoteFull_Q.ProdTypeColumn])); + } + set { + this[this.tableQuoteFull_Q.ProdTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxQState { + get { + return ((int)(this[this.tableQuoteFull_Q.IdxQStateColumn])); + } + set { + this[this.tableQuoteFull_Q.IdxQStateColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string CodClient { @@ -9562,6 +9887,17 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string TranspZone { + get { + return ((string)(this[this.tableQuoteFull_Q.TranspZoneColumn])); + } + set { + this[this.tableQuoteFull_Q.TranspZoneColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public string KeyAM { @@ -9767,6 +10103,17 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool DiesByClass { + get { + return ((bool)(this[this.tableQuoteFull_Q.DiesByClassColumn])); + } + set { + this[this.tableQuoteFull_Q.DiesByClassColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal NumDiesInList { @@ -10495,28 +10842,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int IdxQState { - get { - return ((int)(this[this.tableQuoteFull_Q.IdxQStateColumn])); - } - set { - this[this.tableQuoteFull_Q.IdxQStateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool DiesByClass { - get { - return ((bool)(this[this.tableQuoteFull_Q.DiesByClassColumn])); - } - set { - this[this.tableQuoteFull_Q.DiesByClassColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool valid { @@ -10539,17 +10864,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string TranspZone { - get { - return ((string)(this[this.tableQuoteFull_Q.TranspZoneColumn])); - } - set { - this[this.tableQuoteFull_Q.TranspZoneColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DiesPrice_sim { @@ -10704,6 +11018,17 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal NetProd04_sim { + get { + return ((decimal)(this[this.tableQuoteFull_Q.NetProd04_simColumn])); + } + set { + this[this.tableQuoteFull_Q.NetProd04_simColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DSR_sim { @@ -10779,17 +11104,6 @@ namespace C2P_Data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public decimal NetProd04_sim { - get { - return ((decimal)(this[this.tableQuoteFull_Q.NetProd04_simColumn])); - } - set { - this[this.tableQuoteFull_Q.NetProd04_simColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsCodClientAssocNull() { @@ -11341,6 +11655,50 @@ namespace C2P_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string OfferResult { + get { + return ((string)(this[this.tableQuoteFull_S.OfferResultColumn])); + } + set { + this[this.tableQuoteFull_S.OfferResultColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KoReason { + get { + return ((string)(this[this.tableQuoteFull_S.KoReasonColumn])); + } + set { + this[this.tableQuoteFull_S.KoReasonColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Agente { + get { + return ((string)(this[this.tableQuoteFull_S.AgenteColumn])); + } + set { + this[this.tableQuoteFull_S.AgenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ProdType { + get { + return ((string)(this[this.tableQuoteFull_S.ProdTypeColumn])); + } + set { + this[this.tableQuoteFull_S.ProdTypeColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int IdxQState { @@ -11600,12 +11958,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DiamDies { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.DiamDiesColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DiamDies\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.DiamDiesColumn])); } set { this[this.tableQuoteFull_S.DiamDiesColumn] = value; @@ -11616,12 +11969,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public int HoleNumDies { get { - try { - return ((int)(this[this.tableQuoteFull_S.HoleNumDiesColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'HoleNumDies\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((int)(this[this.tableQuoteFull_S.HoleNumDiesColumn])); } set { this[this.tableQuoteFull_S.HoleNumDiesColumn] = value; @@ -11630,17 +11978,12 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public decimal DiesPrice_avg { + public decimal DiesPrice_sim { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.DiesPrice_avgColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DiesPrice_avg\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.DiesPrice_simColumn])); } set { - this[this.tableQuoteFull_S.DiesPrice_avgColumn] = value; + this[this.tableQuoteFull_S.DiesPrice_simColumn] = value; } } @@ -11670,12 +12013,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DiesFullCost { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.DiesFullCostColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DiesFullCost\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.DiesFullCostColumn])); } set { this[this.tableQuoteFull_S.DiesFullCostColumn] = value; @@ -11697,12 +12035,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DiesExpLife { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.DiesExpLifeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DiesExpLife\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.DiesExpLifeColumn])); } set { this[this.tableQuoteFull_S.DiesExpLifeColumn] = value; @@ -11713,12 +12046,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DiesEOLife { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.DiesEOLifeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DiesEOLife\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.DiesEOLifeColumn])); } set { this[this.tableQuoteFull_S.DiesEOLifeColumn] = value; @@ -11762,12 +12090,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal SalesPrevCost { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.SalesPrevCostColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'SalesPrevCost\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.SalesPrevCostColumn])); } set { this[this.tableQuoteFull_S.SalesPrevCostColumn] = value; @@ -11778,12 +12101,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DiesFinCost { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.DiesFinCostColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DiesFinCost\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.DiesFinCostColumn])); } set { this[this.tableQuoteFull_S.DiesFinCostColumn] = value; @@ -11794,12 +12112,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal ClientQuoteReven { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.ClientQuoteRevenColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientQuoteReven\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.ClientQuoteRevenColumn])); } set { this[this.tableQuoteFull_S.ClientQuoteRevenColumn] = value; @@ -11810,12 +12123,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal ExtraDiscountDies { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.ExtraDiscountDiesColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ExtraDiscountDies\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.ExtraDiscountDiesColumn])); } set { this[this.tableQuoteFull_S.ExtraDiscountDiesColumn] = value; @@ -11826,12 +12134,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool DiesByClass { get { - try { - return ((bool)(this[this.tableQuoteFull_S.DiesByClassColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DiesByClass\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((bool)(this[this.tableQuoteFull_S.DiesByClassColumn])); } set { this[this.tableQuoteFull_S.DiesByClassColumn] = value; @@ -11842,12 +12145,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal NumDiesInList { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.NumDiesInListColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NumDiesInList\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.NumDiesInListColumn])); } set { this[this.tableQuoteFull_S.NumDiesInListColumn] = value; @@ -11858,12 +12156,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal NumDiesExaust { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.NumDiesExaustColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NumDiesExaust\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.NumDiesExaustColumn])); } set { this[this.tableQuoteFull_S.NumDiesExaustColumn] = value; @@ -11906,12 +12199,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal KgTeo { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.KgTeoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'KgTeo\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.KgTeoColumn])); } set { this[this.tableQuoteFull_S.KgTeoColumn] = value; @@ -11920,14 +12208,9 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public decimal NumSMED { + public int NumSMED { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.NumSMEDColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NumSMED\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((int)(this[this.tableQuoteFull_S.NumSMEDColumn])); } set { this[this.tableQuoteFull_S.NumSMEDColumn] = value; @@ -11938,12 +12221,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal QuotaMan { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.QuotaManColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'QuotaMan\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.QuotaManColumn])); } set { this[this.tableQuoteFull_S.QuotaManColumn] = value; @@ -11954,12 +12232,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal PRMWeight { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.PRMWeightColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PRMWeight\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.PRMWeightColumn])); } set { this[this.tableQuoteFull_S.PRMWeightColumn] = value; @@ -11970,12 +12243,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal PWeight { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.PWeightColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PWeight\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.PWeightColumn])); } set { this[this.tableQuoteFull_S.PWeightColumn] = value; @@ -11986,12 +12254,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal PTare { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.PTareColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PTare\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.PTareColumn])); } set { this[this.tableQuoteFull_S.PTareColumn] = value; @@ -12056,12 +12319,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal RawMatFullCost { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.RawMatFullCostColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RawMatFullCost\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.RawMatFullCostColumn])); } set { this[this.tableQuoteFull_S.RawMatFullCostColumn] = value; @@ -12099,12 +12357,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal FSR { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.FSRColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FSR\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.FSRColumn])); } set { this[this.tableQuoteFull_S.FSRColumn] = value; @@ -12223,12 +12476,12 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public decimal WSR01_avg { + public decimal WSR01_sim { get { - return ((decimal)(this[this.tableQuoteFull_S.WSR01_avgColumn])); + return ((decimal)(this[this.tableQuoteFull_S.WSR01_simColumn])); } set { - this[this.tableQuoteFull_S.WSR01_avgColumn] = value; + this[this.tableQuoteFull_S.WSR01_simColumn] = value; } } @@ -12245,12 +12498,12 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public decimal MSR01_avg { + public decimal MSR01_sim { get { - return ((decimal)(this[this.tableQuoteFull_S.MSR01_avgColumn])); + return ((decimal)(this[this.tableQuoteFull_S.MSR01_simColumn])); } set { - this[this.tableQuoteFull_S.MSR01_avgColumn] = value; + this[this.tableQuoteFull_S.MSR01_simColumn] = value; } } @@ -12267,12 +12520,23 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public decimal NetProd01_avg { + public decimal NetProd01_sim { get { - return ((decimal)(this[this.tableQuoteFull_S.NetProd01_avgColumn])); + return ((decimal)(this[this.tableQuoteFull_S.NetProd01_simColumn])); } set { - this[this.tableQuoteFull_S.NetProd01_avgColumn] = value; + this[this.tableQuoteFull_S.NetProd01_simColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal NetProd04_sim { + get { + return ((decimal)(this[this.tableQuoteFull_S.NetProd04_simColumn])); + } + set { + this[this.tableQuoteFull_S.NetProd04_simColumn] = value; } } @@ -12333,12 +12597,12 @@ namespace C2P_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public decimal DSR_avg { + public decimal DSR_sim { get { - return ((decimal)(this[this.tableQuoteFull_S.DSR_avgColumn])); + return ((decimal)(this[this.tableQuoteFull_S.DSR_simColumn])); } set { - this[this.tableQuoteFull_S.DSR_avgColumn] = value; + this[this.tableQuoteFull_S.DSR_simColumn] = value; } } @@ -12346,12 +12610,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal DSR { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.DSRColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DSR\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.DSRColumn])); } set { this[this.tableQuoteFull_S.DSRColumn] = value; @@ -12395,12 +12654,7 @@ namespace C2P_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public decimal FVC { get { - try { - return ((decimal)(this[this.tableQuoteFull_S.FVCColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FVC\' in table \'QuoteFull_S\' is DBNull.", e); - } + return ((decimal)(this[this.tableQuoteFull_S.FVCColumn])); } set { this[this.tableQuoteFull_S.FVCColumn] = value; @@ -12524,162 +12778,6 @@ namespace C2P_Data { this[this.tableQuoteFull_S.CodDiesGroupColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDiamDiesNull() { - return this.IsNull(this.tableQuoteFull_S.DiamDiesColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDiamDiesNull() { - this[this.tableQuoteFull_S.DiamDiesColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsHoleNumDiesNull() { - return this.IsNull(this.tableQuoteFull_S.HoleNumDiesColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetHoleNumDiesNull() { - this[this.tableQuoteFull_S.HoleNumDiesColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDiesPrice_avgNull() { - return this.IsNull(this.tableQuoteFull_S.DiesPrice_avgColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDiesPrice_avgNull() { - this[this.tableQuoteFull_S.DiesPrice_avgColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDiesFullCostNull() { - return this.IsNull(this.tableQuoteFull_S.DiesFullCostColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDiesFullCostNull() { - this[this.tableQuoteFull_S.DiesFullCostColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDiesExpLifeNull() { - return this.IsNull(this.tableQuoteFull_S.DiesExpLifeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDiesExpLifeNull() { - this[this.tableQuoteFull_S.DiesExpLifeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDiesEOLifeNull() { - return this.IsNull(this.tableQuoteFull_S.DiesEOLifeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDiesEOLifeNull() { - this[this.tableQuoteFull_S.DiesEOLifeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsSalesPrevCostNull() { - return this.IsNull(this.tableQuoteFull_S.SalesPrevCostColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetSalesPrevCostNull() { - this[this.tableQuoteFull_S.SalesPrevCostColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDiesFinCostNull() { - return this.IsNull(this.tableQuoteFull_S.DiesFinCostColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDiesFinCostNull() { - this[this.tableQuoteFull_S.DiesFinCostColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsClientQuoteRevenNull() { - return this.IsNull(this.tableQuoteFull_S.ClientQuoteRevenColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetClientQuoteRevenNull() { - this[this.tableQuoteFull_S.ClientQuoteRevenColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsExtraDiscountDiesNull() { - return this.IsNull(this.tableQuoteFull_S.ExtraDiscountDiesColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetExtraDiscountDiesNull() { - this[this.tableQuoteFull_S.ExtraDiscountDiesColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDiesByClassNull() { - return this.IsNull(this.tableQuoteFull_S.DiesByClassColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDiesByClassNull() { - this[this.tableQuoteFull_S.DiesByClassColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsNumDiesInListNull() { - return this.IsNull(this.tableQuoteFull_S.NumDiesInListColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetNumDiesInListNull() { - this[this.tableQuoteFull_S.NumDiesInListColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsNumDiesExaustNull() { - return this.IsNull(this.tableQuoteFull_S.NumDiesExaustColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetNumDiesExaustNull() { - this[this.tableQuoteFull_S.NumDiesExaustColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsCodPlantNull() { @@ -12704,78 +12802,6 @@ namespace C2P_Data { this[this.tableQuoteFull_S.KeyAMILColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsKgTeoNull() { - return this.IsNull(this.tableQuoteFull_S.KgTeoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetKgTeoNull() { - this[this.tableQuoteFull_S.KgTeoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsNumSMEDNull() { - return this.IsNull(this.tableQuoteFull_S.NumSMEDColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetNumSMEDNull() { - this[this.tableQuoteFull_S.NumSMEDColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsQuotaManNull() { - return this.IsNull(this.tableQuoteFull_S.QuotaManColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetQuotaManNull() { - this[this.tableQuoteFull_S.QuotaManColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsPRMWeightNull() { - return this.IsNull(this.tableQuoteFull_S.PRMWeightColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetPRMWeightNull() { - this[this.tableQuoteFull_S.PRMWeightColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsPWeightNull() { - return this.IsNull(this.tableQuoteFull_S.PWeightColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetPWeightNull() { - this[this.tableQuoteFull_S.PWeightColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsPTareNull() { - return this.IsNull(this.tableQuoteFull_S.PTareColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetPTareNull() { - this[this.tableQuoteFull_S.PTareColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsLivPackageNull() { @@ -12800,18 +12826,6 @@ namespace C2P_Data { this[this.tableQuoteFull_S.LivPackageDettColumn] = global::System.Convert.DBNull; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsRawMatFullCostNull() { - return this.IsNull(this.tableQuoteFull_S.RawMatFullCostColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetRawMatFullCostNull() { - this[this.tableQuoteFull_S.RawMatFullCostColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsPkgDescNull() { @@ -12823,42 +12837,6 @@ namespace C2P_Data { public void SetPkgDescNull() { this[this.tableQuoteFull_S.PkgDescColumn] = global::System.Convert.DBNull; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsFSRNull() { - return this.IsNull(this.tableQuoteFull_S.FSRColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetFSRNull() { - this[this.tableQuoteFull_S.FSRColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsDSRNull() { - return this.IsNull(this.tableQuoteFull_S.DSRColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetDSRNull() { - this[this.tableQuoteFull_S.DSRColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsFVCNull() { - return this.IsNull(this.tableQuoteFull_S.FVCColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetFVCNull() { - this[this.tableQuoteFull_S.FVCColumn] = global::System.Convert.DBNull; - } } /// @@ -13703,6 +13681,11 @@ namespace C2P_Data.DS_QuotesTableAdapters { tableMapping.ColumnMappings.Add("QuoteType", "QuoteType"); tableMapping.ColumnMappings.Add("CodQuote", "CodQuote"); tableMapping.ColumnMappings.Add("QuoteRev", "QuoteRev"); + tableMapping.ColumnMappings.Add("OfferResult", "OfferResult"); + tableMapping.ColumnMappings.Add("KoReason", "KoReason"); + tableMapping.ColumnMappings.Add("Agente", "Agente"); + tableMapping.ColumnMappings.Add("ProdType", "ProdType"); + tableMapping.ColumnMappings.Add("IdxQState", "IdxQState"); tableMapping.ColumnMappings.Add("CodClient", "CodClient"); tableMapping.ColumnMappings.Add("CodItem", "CodItem"); tableMapping.ColumnMappings.Add("CodItemGroup", "CodItemGroup"); @@ -13717,7 +13700,6 @@ namespace C2P_Data.DS_QuotesTableAdapters { tableMapping.ColumnMappings.Add("OrdNum", "OrdNum"); tableMapping.ColumnMappings.Add("OrdRow", "OrdRow"); tableMapping.ColumnMappings.Add("OrdPrice", "OrdPrice"); - tableMapping.ColumnMappings.Add("IdxQState", "IdxQState"); tableMapping.ColumnMappings.Add("OrdQty", "OrdQty"); tableMapping.ColumnMappings.Add("valid", "valid"); tableMapping.ColumnMappings.Add("errorScore", "errorScore"); @@ -13726,142 +13708,6 @@ namespace C2P_Data.DS_QuotesTableAdapters { tableMapping.ColumnMappings.Add("UserMod", "UserMod"); tableMapping.ColumnMappings.Add("DataMod", "DataMod"); 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].[QuoteList] WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) AND ([IdxQState] = @Original_IdxQState) AND ([CodClient] = @Original_CodClient) AND ([CodItem] = @Original_CodItem) AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawMat] = @Original_RawMat) AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty] = @Original_BatchQty) AND ([CodInco] = @Original_CodInco) AND ([KeyAM] = @Original_KeyAM) AND ([Note] = @Original_Note) AND ([PriceOff] = @Original_PriceOff) AND ((@IsNull_OrdDate = 1 AND [OrdDate] IS NULL) OR ([OrdDate] = @Original_OrdDate)) AND ([OrdNum] = @Original_OrdNum) AND ([OrdRow] = @Original_OrdRow) AND ([OrdPrice] = @Original_OrdPrice) AND ([OrdQty] = @Original_OrdQty) AND ([valid] = @Original_valid) AND ([errorScore] = @Original_errorScore) AND ([UserCreaz] = @Original_UserCreaz) AND ([DataCreaz] = @Original_DataCreaz) AND ([UserMod] = @Original_UserMod) AND ([DataMod] = @Original_DataMod))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyAM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAM", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdDate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdRow", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdRow", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OrdPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserCreaz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreaz", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMod", 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].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev], [IdxQState], [CodClient], [CodItem], [CodItemGroup], [RawMat], [UnitWeight], [BatchQty], [CodInco], [Note], [PriceOff], [OrdDate], [OrdNum], [OrdRow], [OrdPrice], [OrdQty], [valid], [errorScore], [UserCreaz], [DataCreaz], [UserMod], [DataMod]) VALUES (@QuoteType, @CodQuote, @QuoteRev, @IdxQState, @CodClient, @CodItem, @CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @Note, @PriceOff, @OrdDate, @OrdNum, @OrdRow, @OrdPrice, @OrdQty, @valid, @errorScore, @UserCreaz, @DataCreaz, @UserMod, @DataMod); -SELECT QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice, OrdQty, valid, errorScore, UserCreaz, DataCreaz, UserMod, DataMod FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdDate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdNum", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdRow", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdRow", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OrdPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserCreaz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreaz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMod", 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].[QuoteList] SET [QuoteType] = @QuoteType, [CodQuote] = @CodQuote, [Q" + - "uoteRev] = @QuoteRev, [IdxQState] = @IdxQState, [CodClient] = @CodClient, [CodIt" + - "em] = @CodItem, [CodItemGroup] = @CodItemGroup, [RawMat] = @RawMat, [UnitWeight]" + - " = @UnitWeight, [BatchQty] = @BatchQty, [CodInco] = @CodInco, [Note] = @Note, [P" + - "riceOff] = @PriceOff, [OrdDate] = @OrdDate, [OrdNum] = @OrdNum, [OrdRow] = @OrdR" + - "ow, [OrdPrice] = @OrdPrice, [OrdQty] = @OrdQty, [valid] = @valid, [errorScore] =" + - " @errorScore, [UserCreaz] = @UserCreaz, [DataCreaz] = @DataCreaz, [UserMod] = @U" + - "serMod, [DataMod] = @DataMod WHERE (([QuoteType] = @Original_QuoteType) AND ([Co" + - "dQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) AND ([IdxQSt" + - "ate] = @Original_IdxQState) AND ([CodClient] = @Original_CodClient) AND ([CodIte" + - "m] = @Original_CodItem) AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawM" + - "at] = @Original_RawMat) AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty" + - "] = @Original_BatchQty) AND ([CodInco] = @Original_CodInco) AND ([KeyAM] = @Orig" + - "inal_KeyAM) AND ([Note] = @Original_Note) AND ([PriceOff] = @Original_PriceOff) " + - "AND ((@IsNull_OrdDate = 1 AND [OrdDate] IS NULL) OR ([OrdDate] = @Original_OrdDa" + - "te)) AND ([OrdNum] = @Original_OrdNum) AND ([OrdRow] = @Original_OrdRow) AND ([O" + - "rdPrice] = @Original_OrdPrice) AND ([OrdQty] = @Original_OrdQty) AND ([valid] = " + - "@Original_valid) AND ([errorScore] = @Original_errorScore) AND ([UserCreaz] = @O" + - "riginal_UserCreaz) AND ([DataCreaz] = @Original_DataCreaz) AND ([UserMod] = @Ori" + - "ginal_UserMod) AND ([DataMod] = @Original_DataMod));\r\nSELECT QuoteType, CodQuote" + - ", QuoteRev, IdxQState, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, Bat" + - "chQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice, OrdQty" + - ", valid, errorScore, UserCreaz, DataCreaz, UserMod, DataMod FROM QuoteList WHERE" + - " (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdDate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdNum", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdRow", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdRow", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OrdPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserCreaz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreaz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyAM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAM", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrdDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdDate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdNum", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdRow", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdRow", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OrdPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrdQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrdQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserCreaz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreaz", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataCreaz", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreaz", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -13877,7 +13723,7 @@ SELECT QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, CodItem, CodItemGrou this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT * FROM dbo.QuoteList"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM QuoteList"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -14168,602 +14014,6 @@ SELECT QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, CodItem, CodItemGrou return dataTable; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_Quotes.QuoteListDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_Quotes dataSet) { - return this.Adapter.Update(dataSet, "QuoteList"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete( - string Original_QuoteType, - long Original_CodQuote, - int Original_QuoteRev, - int Original_IdxQState, - string Original_CodClient, - string Original_CodItem, - string Original_CodItemGroup, - string Original_RawMat, - decimal Original_UnitWeight, - int Original_BatchQty, - string Original_CodInco, - string Original_KeyAM, - string Original_Note, - decimal Original_PriceOff, - global::System.Nullable Original_OrdDate, - string Original_OrdNum, - string Original_OrdRow, - decimal Original_OrdPrice, - int Original_OrdQty, - bool Original_valid, - int Original_errorScore, - string Original_UserCreaz, - System.DateTime Original_DataCreaz, - string Original_UserMod, - System.DateTime Original_DataMod) { - if ((Original_QuoteType == null)) { - throw new global::System.ArgumentNullException("Original_QuoteType"); - } - else { - this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_QuoteType)); - } - this.Adapter.DeleteCommand.Parameters[1].Value = ((long)(Original_CodQuote)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_QuoteRev)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_IdxQState)); - if ((Original_CodClient == null)) { - throw new global::System.ArgumentNullException("Original_CodClient"); - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodClient)); - } - if ((Original_CodItem == null)) { - throw new global::System.ArgumentNullException("Original_CodItem"); - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodItem)); - } - if ((Original_CodItemGroup == null)) { - throw new global::System.ArgumentNullException("Original_CodItemGroup"); - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodItemGroup)); - } - if ((Original_RawMat == null)) { - throw new global::System.ArgumentNullException("Original_RawMat"); - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_RawMat)); - } - this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_UnitWeight)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_BatchQty)); - if ((Original_CodInco == null)) { - throw new global::System.ArgumentNullException("Original_CodInco"); - } - else { - this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_CodInco)); - } - if ((Original_KeyAM == null)) { - throw new global::System.ArgumentNullException("Original_KeyAM"); - } - else { - this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_KeyAM)); - } - if ((Original_Note == null)) { - throw new global::System.ArgumentNullException("Original_Note"); - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Note)); - } - this.Adapter.DeleteCommand.Parameters[13].Value = ((decimal)(Original_PriceOff)); - if ((Original_OrdDate.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[15].Value = ((System.DateTime)(Original_OrdDate.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; - } - if ((Original_OrdNum == null)) { - throw new global::System.ArgumentNullException("Original_OrdNum"); - } - else { - this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_OrdNum)); - } - if ((Original_OrdRow == null)) { - throw new global::System.ArgumentNullException("Original_OrdRow"); - } - else { - this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_OrdRow)); - } - this.Adapter.DeleteCommand.Parameters[18].Value = ((decimal)(Original_OrdPrice)); - this.Adapter.DeleteCommand.Parameters[19].Value = ((int)(Original_OrdQty)); - this.Adapter.DeleteCommand.Parameters[20].Value = ((bool)(Original_valid)); - this.Adapter.DeleteCommand.Parameters[21].Value = ((int)(Original_errorScore)); - if ((Original_UserCreaz == null)) { - throw new global::System.ArgumentNullException("Original_UserCreaz"); - } - else { - this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_UserCreaz)); - } - this.Adapter.DeleteCommand.Parameters[23].Value = ((System.DateTime)(Original_DataCreaz)); - if ((Original_UserMod == null)) { - throw new global::System.ArgumentNullException("Original_UserMod"); - } - else { - this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_UserMod)); - } - this.Adapter.DeleteCommand.Parameters[25].Value = ((System.DateTime)(Original_DataMod)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert( - string QuoteType, - long CodQuote, - int QuoteRev, - int IdxQState, - string CodClient, - string CodItem, - string CodItemGroup, - string RawMat, - decimal UnitWeight, - int BatchQty, - string CodInco, - string Note, - decimal PriceOff, - global::System.Nullable OrdDate, - string OrdNum, - string OrdRow, - decimal OrdPrice, - int OrdQty, - bool valid, - int errorScore, - string UserCreaz, - System.DateTime DataCreaz, - string UserMod, - System.DateTime DataMod) { - if ((QuoteType == null)) { - throw new global::System.ArgumentNullException("QuoteType"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(QuoteType)); - } - this.Adapter.InsertCommand.Parameters[1].Value = ((long)(CodQuote)); - this.Adapter.InsertCommand.Parameters[2].Value = ((int)(QuoteRev)); - this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdxQState)); - if ((CodClient == null)) { - throw new global::System.ArgumentNullException("CodClient"); - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodClient)); - } - if ((CodItem == null)) { - throw new global::System.ArgumentNullException("CodItem"); - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodItem)); - } - if ((CodItemGroup == null)) { - throw new global::System.ArgumentNullException("CodItemGroup"); - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodItemGroup)); - } - if ((RawMat == null)) { - throw new global::System.ArgumentNullException("RawMat"); - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(RawMat)); - } - this.Adapter.InsertCommand.Parameters[8].Value = ((decimal)(UnitWeight)); - this.Adapter.InsertCommand.Parameters[9].Value = ((int)(BatchQty)); - if ((CodInco == null)) { - throw new global::System.ArgumentNullException("CodInco"); - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(CodInco)); - } - if ((Note == null)) { - throw new global::System.ArgumentNullException("Note"); - } - else { - this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Note)); - } - this.Adapter.InsertCommand.Parameters[12].Value = ((decimal)(PriceOff)); - if ((OrdDate.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[13].Value = ((System.DateTime)(OrdDate.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((OrdNum == null)) { - throw new global::System.ArgumentNullException("OrdNum"); - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = ((string)(OrdNum)); - } - if ((OrdRow == null)) { - throw new global::System.ArgumentNullException("OrdRow"); - } - else { - this.Adapter.InsertCommand.Parameters[15].Value = ((string)(OrdRow)); - } - this.Adapter.InsertCommand.Parameters[16].Value = ((decimal)(OrdPrice)); - this.Adapter.InsertCommand.Parameters[17].Value = ((int)(OrdQty)); - this.Adapter.InsertCommand.Parameters[18].Value = ((bool)(valid)); - this.Adapter.InsertCommand.Parameters[19].Value = ((int)(errorScore)); - if ((UserCreaz == null)) { - throw new global::System.ArgumentNullException("UserCreaz"); - } - else { - this.Adapter.InsertCommand.Parameters[20].Value = ((string)(UserCreaz)); - } - this.Adapter.InsertCommand.Parameters[21].Value = ((System.DateTime)(DataCreaz)); - if ((UserMod == null)) { - throw new global::System.ArgumentNullException("UserMod"); - } - else { - this.Adapter.InsertCommand.Parameters[22].Value = ((string)(UserMod)); - } - this.Adapter.InsertCommand.Parameters[23].Value = ((System.DateTime)(DataMod)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string QuoteType, - long CodQuote, - int QuoteRev, - int IdxQState, - string CodClient, - string CodItem, - string CodItemGroup, - string RawMat, - decimal UnitWeight, - int BatchQty, - string CodInco, - string Note, - decimal PriceOff, - global::System.Nullable OrdDate, - string OrdNum, - string OrdRow, - decimal OrdPrice, - int OrdQty, - bool valid, - int errorScore, - string UserCreaz, - System.DateTime DataCreaz, - string UserMod, - System.DateTime DataMod, - string Original_QuoteType, - long Original_CodQuote, - int Original_QuoteRev, - int Original_IdxQState, - string Original_CodClient, - string Original_CodItem, - string Original_CodItemGroup, - string Original_RawMat, - decimal Original_UnitWeight, - int Original_BatchQty, - string Original_CodInco, - string Original_KeyAM, - string Original_Note, - decimal Original_PriceOff, - global::System.Nullable Original_OrdDate, - string Original_OrdNum, - string Original_OrdRow, - decimal Original_OrdPrice, - int Original_OrdQty, - bool Original_valid, - int Original_errorScore, - string Original_UserCreaz, - System.DateTime Original_DataCreaz, - string Original_UserMod, - System.DateTime Original_DataMod) { - if ((QuoteType == null)) { - throw new global::System.ArgumentNullException("QuoteType"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(QuoteType)); - } - this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(CodQuote)); - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(QuoteRev)); - this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdxQState)); - if ((CodClient == null)) { - throw new global::System.ArgumentNullException("CodClient"); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodClient)); - } - if ((CodItem == null)) { - throw new global::System.ArgumentNullException("CodItem"); - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodItem)); - } - if ((CodItemGroup == null)) { - throw new global::System.ArgumentNullException("CodItemGroup"); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodItemGroup)); - } - if ((RawMat == null)) { - throw new global::System.ArgumentNullException("RawMat"); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(RawMat)); - } - this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(UnitWeight)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(BatchQty)); - if ((CodInco == null)) { - throw new global::System.ArgumentNullException("CodInco"); - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(CodInco)); - } - if ((Note == null)) { - throw new global::System.ArgumentNullException("Note"); - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Note)); - } - this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(PriceOff)); - if ((OrdDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(OrdDate.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((OrdNum == null)) { - throw new global::System.ArgumentNullException("OrdNum"); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(OrdNum)); - } - if ((OrdRow == null)) { - throw new global::System.ArgumentNullException("OrdRow"); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(OrdRow)); - } - this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(OrdPrice)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(OrdQty)); - this.Adapter.UpdateCommand.Parameters[18].Value = ((bool)(valid)); - this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(errorScore)); - if ((UserCreaz == null)) { - throw new global::System.ArgumentNullException("UserCreaz"); - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(UserCreaz)); - } - this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(DataCreaz)); - if ((UserMod == null)) { - throw new global::System.ArgumentNullException("UserMod"); - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(UserMod)); - } - this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(DataMod)); - if ((Original_QuoteType == null)) { - throw new global::System.ArgumentNullException("Original_QuoteType"); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_QuoteType)); - } - this.Adapter.UpdateCommand.Parameters[25].Value = ((long)(Original_CodQuote)); - this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_QuoteRev)); - this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_IdxQState)); - if ((Original_CodClient == null)) { - throw new global::System.ArgumentNullException("Original_CodClient"); - } - else { - this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_CodClient)); - } - if ((Original_CodItem == null)) { - throw new global::System.ArgumentNullException("Original_CodItem"); - } - else { - this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_CodItem)); - } - if ((Original_CodItemGroup == null)) { - throw new global::System.ArgumentNullException("Original_CodItemGroup"); - } - else { - this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_CodItemGroup)); - } - if ((Original_RawMat == null)) { - throw new global::System.ArgumentNullException("Original_RawMat"); - } - else { - this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_RawMat)); - } - this.Adapter.UpdateCommand.Parameters[32].Value = ((decimal)(Original_UnitWeight)); - this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_BatchQty)); - if ((Original_CodInco == null)) { - throw new global::System.ArgumentNullException("Original_CodInco"); - } - else { - this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_CodInco)); - } - if ((Original_KeyAM == null)) { - throw new global::System.ArgumentNullException("Original_KeyAM"); - } - else { - this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_KeyAM)); - } - if ((Original_Note == null)) { - throw new global::System.ArgumentNullException("Original_Note"); - } - else { - this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_Note)); - } - this.Adapter.UpdateCommand.Parameters[37].Value = ((decimal)(Original_PriceOff)); - if ((Original_OrdDate.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[39].Value = ((System.DateTime)(Original_OrdDate.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; - } - if ((Original_OrdNum == null)) { - throw new global::System.ArgumentNullException("Original_OrdNum"); - } - else { - this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(Original_OrdNum)); - } - if ((Original_OrdRow == null)) { - throw new global::System.ArgumentNullException("Original_OrdRow"); - } - else { - this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_OrdRow)); - } - this.Adapter.UpdateCommand.Parameters[42].Value = ((decimal)(Original_OrdPrice)); - this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(Original_OrdQty)); - this.Adapter.UpdateCommand.Parameters[44].Value = ((bool)(Original_valid)); - this.Adapter.UpdateCommand.Parameters[45].Value = ((int)(Original_errorScore)); - if ((Original_UserCreaz == null)) { - throw new global::System.ArgumentNullException("Original_UserCreaz"); - } - else { - this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_UserCreaz)); - } - this.Adapter.UpdateCommand.Parameters[47].Value = ((System.DateTime)(Original_DataCreaz)); - if ((Original_UserMod == null)) { - throw new global::System.ArgumentNullException("Original_UserMod"); - } - else { - this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_UserMod)); - } - this.Adapter.UpdateCommand.Parameters[49].Value = ((System.DateTime)(Original_DataMod)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - int IdxQState, - string CodClient, - string CodItem, - string CodItemGroup, - string RawMat, - decimal UnitWeight, - int BatchQty, - string CodInco, - string Note, - decimal PriceOff, - global::System.Nullable OrdDate, - string OrdNum, - string OrdRow, - decimal OrdPrice, - int OrdQty, - bool valid, - int errorScore, - string UserCreaz, - System.DateTime DataCreaz, - string UserMod, - System.DateTime DataMod, - string Original_QuoteType, - long Original_CodQuote, - int Original_QuoteRev, - int Original_IdxQState, - string Original_CodClient, - string Original_CodItem, - string Original_CodItemGroup, - string Original_RawMat, - decimal Original_UnitWeight, - int Original_BatchQty, - string Original_CodInco, - string Original_KeyAM, - string Original_Note, - decimal Original_PriceOff, - global::System.Nullable Original_OrdDate, - string Original_OrdNum, - string Original_OrdRow, - decimal Original_OrdPrice, - int Original_OrdQty, - bool Original_valid, - int Original_errorScore, - string Original_UserCreaz, - System.DateTime Original_DataCreaz, - string Original_UserMod, - System.DateTime Original_DataMod) { - return this.Update(Original_QuoteType, Original_CodQuote, Original_QuoteRev, IdxQState, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice, OrdQty, valid, errorScore, UserCreaz, DataCreaz, UserMod, DataMod, Original_QuoteType, Original_CodQuote, Original_QuoteRev, Original_IdxQState, Original_CodClient, Original_CodItem, Original_CodItemGroup, Original_RawMat, Original_UnitWeight, Original_BatchQty, Original_CodInco, Original_KeyAM, Original_Note, Original_PriceOff, Original_OrdDate, Original_OrdNum, Original_OrdRow, Original_OrdPrice, Original_OrdQty, Original_valid, Original_errorScore, Original_UserCreaz, Original_DataCreaz, Original_UserMod, Original_DataMod); - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -17871,6 +17121,11 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("QuoteType", "QuoteType"); tableMapping.ColumnMappings.Add("CodQuote", "CodQuote"); tableMapping.ColumnMappings.Add("QuoteRev", "QuoteRev"); + tableMapping.ColumnMappings.Add("OfferResult", "OfferResult"); + tableMapping.ColumnMappings.Add("KoReason", "KoReason"); + tableMapping.ColumnMappings.Add("Agente", "Agente"); + tableMapping.ColumnMappings.Add("ProdType", "ProdType"); + tableMapping.ColumnMappings.Add("IdxQState", "IdxQState"); tableMapping.ColumnMappings.Add("CodClient", "CodClient"); tableMapping.ColumnMappings.Add("ClientName", "ClientName"); tableMapping.ColumnMappings.Add("CodItem", "CodItem"); @@ -17879,6 +17134,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("UnitWeight", "UnitWeight"); tableMapping.ColumnMappings.Add("BatchQty", "BatchQty"); tableMapping.ColumnMappings.Add("CodInco", "CodInco"); + tableMapping.ColumnMappings.Add("TranspZone", "TranspZone"); tableMapping.ColumnMappings.Add("KeyAM", "KeyAM"); tableMapping.ColumnMappings.Add("Note", "Note"); tableMapping.ColumnMappings.Add("PriceOff", "PriceOff"); @@ -17894,11 +17150,13 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("DiesPrice", "DiesPrice"); tableMapping.ColumnMappings.Add("DiesExpLife", "DiesExpLife"); tableMapping.ColumnMappings.Add("DiesEOLife", "DiesEOLife"); + tableMapping.ColumnMappings.Add("DiesByClass", "DiesByClass"); tableMapping.ColumnMappings.Add("NumDiesInList", "NumDiesInList"); tableMapping.ColumnMappings.Add("NumDiesExaust", "NumDiesExaust"); tableMapping.ColumnMappings.Add("CodPlant", "CodPlant"); tableMapping.ColumnMappings.Add("KeyAMIL", "KeyAMIL"); tableMapping.ColumnMappings.Add("KgTeo", "KgTeo"); + tableMapping.ColumnMappings.Add("NumSMED", "NumSMED"); tableMapping.ColumnMappings.Add("QuotaMan", "QuotaMan"); tableMapping.ColumnMappings.Add("PRMWeight", "PRMWeight"); tableMapping.ColumnMappings.Add("PWeight", "PWeight"); @@ -17946,11 +17204,8 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("NetMar", "NetMar"); tableMapping.ColumnMappings.Add("FCShield", "FCShield"); tableMapping.ColumnMappings.Add("PckSur", "PckSur"); - tableMapping.ColumnMappings.Add("IdxQState", "IdxQState"); - tableMapping.ColumnMappings.Add("DiesByClass", "DiesByClass"); tableMapping.ColumnMappings.Add("valid", "valid"); tableMapping.ColumnMappings.Add("errorScore", "errorScore"); - tableMapping.ColumnMappings.Add("TranspZone", "TranspZone"); tableMapping.ColumnMappings.Add("DiesPrice_sim", "DiesPrice_sim"); tableMapping.ColumnMappings.Add("SamplePrice", "SamplePrice"); tableMapping.ColumnMappings.Add("DiesFullCost", "DiesFullCost"); @@ -17965,13 +17220,12 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("WSR01_sim", "WSR01_sim"); tableMapping.ColumnMappings.Add("MSR01_sim", "MSR01_sim"); tableMapping.ColumnMappings.Add("NetProd01_sim", "NetProd01_sim"); + tableMapping.ColumnMappings.Add("NetProd04_sim", "NetProd04_sim"); tableMapping.ColumnMappings.Add("DSR_sim", "DSR_sim"); tableMapping.ColumnMappings.Add("NetMar_sim", "NetMar_sim"); tableMapping.ColumnMappings.Add("FCShield_sim", "FCShield_sim"); tableMapping.ColumnMappings.Add("MinPrice_sim", "MinPrice_sim"); tableMapping.ColumnMappings.Add("P_MinPrice_sim", "P_MinPrice_sim"); - tableMapping.ColumnMappings.Add("NumSMED", "NumSMED"); - tableMapping.ColumnMappings.Add("NetProd04_sim", "NetProd04_sim"); this._adapter.TableMappings.Add(tableMapping); } @@ -18147,6 +17401,9 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchQty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 5, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OfferResult", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KoReason", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Agente", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[16].Connection = this.Connection; this._commandCollection[16].CommandText = "dbo.stp_QLS_UpdHead"; @@ -18166,6 +17423,9 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 5, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProvvCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OfferResult", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KoReason", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Agente", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[17] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[17].Connection = this.Connection; this._commandCollection[17].CommandText = "dbo.stp_QLS_UpdPackPar"; @@ -18656,7 +17916,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_Quotes.QuoteFull_QDataTable updateHeaders(string Original_QuoteType, global::System.Nullable Original_CodQuote, global::System.Nullable Original_QuoteRev, string CodClient, string CodItem, string RawMat, global::System.Nullable RawMatCost, global::System.Nullable RawMatExtraCost, global::System.Nullable BatchQty, string CodInco, string Note) { + public virtual DS_Quotes.QuoteFull_QDataTable updateHeaders(string Original_QuoteType, global::System.Nullable Original_CodQuote, global::System.Nullable Original_QuoteRev, string CodClient, string CodItem, string RawMat, global::System.Nullable RawMatCost, global::System.Nullable RawMatExtraCost, global::System.Nullable BatchQty, string CodInco, string Note, string OfferResult, string KoReason, string Agente) { this.Adapter.SelectCommand = this.CommandCollection[15]; if ((Original_QuoteType == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -18724,6 +17984,24 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas else { this.Adapter.SelectCommand.Parameters[11].Value = ((string)(Note)); } + if ((OfferResult == null)) { + this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[12].Value = ((string)(OfferResult)); + } + if ((KoReason == null)) { + this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[13].Value = ((string)(KoReason)); + } + if ((Agente == null)) { + this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[14].Value = ((string)(Agente)); + } DS_Quotes.QuoteFull_QDataTable dataTable = new DS_Quotes.QuoteFull_QDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -18733,7 +18011,24 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_Quotes.QuoteFull_QDataTable updateHeadSim(string Original_QuoteType, global::System.Nullable Original_CodQuote, global::System.Nullable Original_QuoteRev, string CodClient, string CodItem, global::System.Nullable UnitWeight, string CodItemGroup, string RawMat, global::System.Nullable RawMatCost, global::System.Nullable RawMatExtraCost, global::System.Nullable BatchQty, string CodInco, global::System.Nullable ProvvCost, string Note) { + public virtual DS_Quotes.QuoteFull_QDataTable updateHeadSim( + string Original_QuoteType, + global::System.Nullable Original_CodQuote, + global::System.Nullable Original_QuoteRev, + string CodClient, + string CodItem, + global::System.Nullable UnitWeight, + string CodItemGroup, + string RawMat, + global::System.Nullable RawMatCost, + global::System.Nullable RawMatExtraCost, + global::System.Nullable BatchQty, + string CodInco, + global::System.Nullable ProvvCost, + string Note, + string OfferResult, + string KoReason, + string Agente) { this.Adapter.SelectCommand = this.CommandCollection[16]; if ((Original_QuoteType == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -18819,6 +18114,24 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas else { this.Adapter.SelectCommand.Parameters[14].Value = ((string)(Note)); } + if ((OfferResult == null)) { + this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[15].Value = ((string)(OfferResult)); + } + if ((KoReason == null)) { + this.Adapter.SelectCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[16].Value = ((string)(KoReason)); + } + if ((Agente == null)) { + this.Adapter.SelectCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[17].Value = ((string)(Agente)); + } DS_Quotes.QuoteFull_QDataTable dataTable = new DS_Quotes.QuoteFull_QDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -19212,6 +18525,10 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("QuoteType", "QuoteType"); tableMapping.ColumnMappings.Add("CodQuote", "CodQuote"); tableMapping.ColumnMappings.Add("QuoteRev", "QuoteRev"); + tableMapping.ColumnMappings.Add("OfferResult", "OfferResult"); + tableMapping.ColumnMappings.Add("KoReason", "KoReason"); + tableMapping.ColumnMappings.Add("Agente", "Agente"); + tableMapping.ColumnMappings.Add("ProdType", "ProdType"); tableMapping.ColumnMappings.Add("IdxQState", "IdxQState"); tableMapping.ColumnMappings.Add("CodClient", "CodClient"); tableMapping.ColumnMappings.Add("ClientName", "ClientName"); @@ -19234,7 +18551,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("CodDiesGroup", "CodDiesGroup"); tableMapping.ColumnMappings.Add("DiamDies", "DiamDies"); tableMapping.ColumnMappings.Add("HoleNumDies", "HoleNumDies"); - tableMapping.ColumnMappings.Add("DiesPrice_avg", "DiesPrice_avg"); + tableMapping.ColumnMappings.Add("DiesPrice_sim", "DiesPrice_sim"); tableMapping.ColumnMappings.Add("DiesPrice", "DiesPrice"); tableMapping.ColumnMappings.Add("SamplePrice", "SamplePrice"); tableMapping.ColumnMappings.Add("DiesFullCost", "DiesFullCost"); @@ -19277,17 +18594,18 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("RefCost01", "RefCost01"); tableMapping.ColumnMappings.Add("SellCost04", "SellCost04"); tableMapping.ColumnMappings.Add("RefCost04", "RefCost04"); - tableMapping.ColumnMappings.Add("WSR01_avg", "WSR01_avg"); + tableMapping.ColumnMappings.Add("WSR01_sim", "WSR01_sim"); tableMapping.ColumnMappings.Add("WSR01", "WSR01"); - tableMapping.ColumnMappings.Add("MSR01_avg", "MSR01_avg"); + tableMapping.ColumnMappings.Add("MSR01_sim", "MSR01_sim"); tableMapping.ColumnMappings.Add("MSR01", "MSR01"); - tableMapping.ColumnMappings.Add("NetProd01_avg", "NetProd01_avg"); + tableMapping.ColumnMappings.Add("NetProd01_sim", "NetProd01_sim"); + tableMapping.ColumnMappings.Add("NetProd04_sim", "NetProd04_sim"); tableMapping.ColumnMappings.Add("NetProd01", "NetProd01"); tableMapping.ColumnMappings.Add("FC4UG01", "FC4UG01"); tableMapping.ColumnMappings.Add("VC4UG01", "VC4UG01"); tableMapping.ColumnMappings.Add("OH4UG01", "OH4UG01"); tableMapping.ColumnMappings.Add("SC4UG01", "SC4UG01"); - tableMapping.ColumnMappings.Add("DSR_avg", "DSR_avg"); + tableMapping.ColumnMappings.Add("DSR_sim", "DSR_sim"); tableMapping.ColumnMappings.Add("DSR", "DSR"); tableMapping.ColumnMappings.Add("NetProd04", "NetProd04"); tableMapping.ColumnMappings.Add("FC4UG04", "FC4UG04"); @@ -19297,646 +18615,6 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas tableMapping.ColumnMappings.Add("valid", "valid"); tableMapping.ColumnMappings.Add("errorScore", "errorScore"); 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].[QuoteFull_S] WHERE (([Vers] = @Original_Vers) AND ([QuoteType]" + - " = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = " + - "@Original_QuoteRev) AND ([IdxQState] = @Original_IdxQState) AND ([CodClient] = @" + - "Original_CodClient) AND ([ClientName] = @Original_ClientName) AND ([CodItem] = @" + - "Original_CodItem) AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawMat] = " + - "@Original_RawMat) AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty] = @O" + - "riginal_BatchQty) AND ([CodInco] = @Original_CodInco) AND ([TranspZone] = @Origi" + - "nal_TranspZone) AND ([KeyAM] = @Original_KeyAM) AND ([Note] = @Original_Note) AN" + - "D ([PriceOff] = @Original_PriceOff) AND ((@IsNull_CodClientAssoc = 1 AND [CodCli" + - "entAssoc] IS NULL) OR ([CodClientAssoc] = @Original_CodClientAssoc)) AND ((@IsNu" + - "ll_ClientNameAssoc = 1 AND [ClientNameAssoc] IS NULL) OR ([ClientNameAssoc] = @O" + - "riginal_ClientNameAssoc)) AND ((@IsNull_ItemDescr = 1 AND [ItemDescr] IS NULL) O" + - "R ([ItemDescr] = @Original_ItemDescr)) AND ((@IsNull_CodifProfilo = 1 AND [Codif" + - "Profilo] IS NULL) OR ([CodifProfilo] = @Original_CodifProfilo)) AND ((@IsNull_Cl" + - "asseMerc = 1 AND [ClasseMerc] IS NULL) OR ([ClasseMerc] = @Original_ClasseMerc))" + - " AND ((@IsNull_TipoDies = 1 AND [TipoDies] IS NULL) OR ([TipoDies] = @Original_T" + - "ipoDies)) AND ((@IsNull_CodDiesGroup = 1 AND [CodDiesGroup] IS NULL) OR ([CodDie" + - "sGroup] = @Original_CodDiesGroup)) AND ((@IsNull_DiamDies = 1 AND [DiamDies] IS " + - "NULL) OR ([DiamDies] = @Original_DiamDies)) AND ((@IsNull_HoleNumDies = 1 AND [H" + - "oleNumDies] IS NULL) OR ([HoleNumDies] = @Original_HoleNumDies)) AND ((@IsNull_D" + - "iesPrice_avg = 1 AND [DiesPrice_avg] IS NULL) OR ([DiesPrice_avg] = @Original_Di" + - "esPrice_avg)) AND ([DiesPrice] = @Original_DiesPrice) AND ([SamplePrice] = @Orig" + - "inal_SamplePrice) AND ((@IsNull_DiesFullCost = 1 AND [DiesFullCost] IS NULL) OR " + - "([DiesFullCost] = @Original_DiesFullCost)) AND ([DiesPriceClientQuote] = @Origin" + - "al_DiesPriceClientQuote) AND ((@IsNull_DiesExpLife = 1 AND [DiesExpLife] IS NULL" + - ") OR ([DiesExpLife] = @Original_DiesExpLife)) AND ((@IsNull_DiesEOLife = 1 AND [" + - "DiesEOLife] IS NULL) OR ([DiesEOLife] = @Original_DiesEOLife)) AND ([DiesTecLife" + - "] = @Original_DiesTecLife) AND ([DiesCommLife] = @Original_DiesCommLife) AND ([M" + - "onthSalesPrev] = @Original_MonthSalesPrev) AND ((@IsNull_SalesPrevCost = 1 AND [" + - "SalesPrevCost] IS NULL) OR ([SalesPrevCost] = @Original_SalesPrevCost)) AND ((@I" + - "sNull_DiesFinCost = 1 AND [DiesFinCost] IS NULL) OR ([DiesFinCost] = @Original_D" + - "iesFinCost)) AND ((@IsNull_ClientQuoteReven = 1 AND [ClientQuoteReven] IS NULL) " + - "OR ([ClientQuoteReven] = @Original_ClientQuoteReven)) AND ((@IsNull_ExtraDiscoun" + - "tDies = 1 AND [ExtraDiscountDies] IS NULL) OR ([ExtraDiscountDies] = @Original_E" + - "xtraDiscountDies)) AND ((@IsNull_DiesByClass = 1 AND [DiesByClass] IS NULL) OR (" + - "[DiesByClass] = @Original_DiesByClass)) AND ((@IsNull_NumDiesInList = 1 AND [Num" + - "DiesInList] IS NULL) OR ([NumDiesInList] = @Original_NumDiesInList)) AND ((@IsNu" + - "ll_NumDiesExaust = 1 AND [NumDiesExaust] IS NULL) OR ([NumDiesExaust] = @Origina" + - "l_NumDiesExaust)) AND ((@IsNull_CodPlant = 1 AND [CodPlant] IS NULL) OR ([CodPla" + - "nt] = @Original_CodPlant)) AND ((@IsNull_KeyAMIL = 1 AND [KeyAMIL] IS NULL) OR (" + - "[KeyAMIL] = @Original_KeyAMIL)) AND ((@IsNull_KgTeo = 1 AND [KgTeo] IS NULL) OR " + - "([KgTeo] = @Original_KgTeo)) AND ((@IsNull_NumSMED = 1 AND [NumSMED] IS NULL) OR" + - " ([NumSMED] = @Original_NumSMED)) AND ((@IsNull_QuotaMan = 1 AND [QuotaMan] IS N" + - "ULL) OR ([QuotaMan] = @Original_QuotaMan)) AND ((@IsNull_PRMWeight = 1 AND [PRMW" + - "eight] IS NULL) OR ([PRMWeight] = @Original_PRMWeight)) AND ((@IsNull_PWeight = " + - "1 AND [PWeight] IS NULL) OR ([PWeight] = @Original_PWeight)) AND ((@IsNull_PTare" + - " = 1 AND [PTare] IS NULL) OR ([PTare] = @Original_PTare)) AND ((@IsNull_LivPacka" + - "ge = 1 AND [LivPackage] IS NULL) OR ([LivPackage] = @Original_LivPackage)) AND (" + - "(@IsNull_LivPackageDett = 1 AND [LivPackageDett] IS NULL) OR ([LivPackageDett] =" + - " @Original_LivPackageDett)) AND ([RawMatCost] = @Original_RawMatCost) AND ([RawM" + - "atExtraCost] = @Original_RawMatExtraCost) AND ((@IsNull_RawMatFullCost = 1 AND [" + - "RawMatFullCost] IS NULL) OR ([RawMatFullCost] = @Original_RawMatFullCost)) AND (" + - "[CodPackag] = @Original_CodPackag) AND ((@IsNull_PkgDesc = 1 AND [PkgDesc] IS NU" + - "LL) OR ([PkgDesc] = @Original_PkgDesc)) AND ((@IsNull_FSR = 1 AND [FSR] IS NULL)" + - " OR ([FSR] = @Original_FSR)) AND ([ProvvCost] = @Original_ProvvCost) AND ([EECos" + - "t] = @Original_EECost) AND ([GasCost] = @Original_GasCost) AND ([DiesCost] = @Or" + - "iginal_DiesCost) AND ([PackCost] = @Original_PackCost) AND ([TranspCost] = @Orig" + - "inal_TranspCost) AND ([SellCost01] = @Original_SellCost01) AND ([RefCost01] = @O" + - "riginal_RefCost01) AND ([SellCost04] = @Original_SellCost04) AND ([RefCost04] = " + - "@Original_RefCost04) AND ([WSR01_avg] = @Original_WSR01_avg) AND ([WSR01] = @Ori" + - "ginal_WSR01) AND ([MSR01_avg] = @Original_MSR01_avg) AND ([MSR01] = @Original_MS" + - "R01) AND ([NetProd01_avg] = @Original_NetProd01_avg) AND ([NetProd01] = @Origina" + - "l_NetProd01) AND ([FC4UG01] = @Original_FC4UG01) AND ([VC4UG01] = @Original_VC4U" + - "G01) AND ([OH4UG01] = @Original_OH4UG01) AND ([SC4UG01] = @Original_SC4UG01) AND" + - " ([DSR_avg] = @Original_DSR_avg) AND ((@IsNull_DSR = 1 AND [DSR] IS NULL) OR ([D" + - "SR] = @Original_DSR)) AND ([NetProd04] = @Original_NetProd04) AND ([FC4UG04] = @" + - "Original_FC4UG04) AND ([VC4UG04] = @Original_VC4UG04) AND ((@IsNull_FVC = 1 AND " + - "[FVC] IS NULL) OR ([FVC] = @Original_FVC)) AND ([Charge] = @Original_Charge) AND" + - " ([valid] = @Original_valid) AND ([errorScore] = @Original_errorScore))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TranspZone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TranspZone", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyAM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAM", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodClientAssoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClientAssoc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodClientAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClientAssoc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientNameAssoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientNameAssoc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientNameAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientNameAssoc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemDescr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDescr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDescr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodifProfilo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodifProfilo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodifProfilo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodifProfilo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClasseMerc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseMerc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClasseMerc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseMerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TipoDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoDies", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodDiesGroup", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDiesGroup", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDiesGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDiesGroup", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiamDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiamDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiamDies", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiamDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_HoleNumDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HoleNumDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_HoleNumDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HoleNumDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesPrice_avg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesPrice_avg", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesPrice_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SamplePrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SamplePrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesFullCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesFullCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesFullCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 6, "DiesFullCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesPriceClientQuote", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPriceClientQuote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesExpLife", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesExpLife", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesExpLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesExpLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesEOLife", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesEOLife", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesEOLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesEOLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesTecLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesTecLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesCommLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCommLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MonthSalesPrev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthSalesPrev", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SalesPrevCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SalesPrevCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SalesPrevCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 6, "SalesPrevCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesFinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesFinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesFinCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 6, "DiesFinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientQuoteReven", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientQuoteReven", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientQuoteReven", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 20, "ClientQuoteReven", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ExtraDiscountDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtraDiscountDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ExtraDiscountDies", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 6, "ExtraDiscountDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesByClass", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesByClass", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesByClass", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesByClass", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDiesInList", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDiesInList", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDiesInList", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesInList", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDiesExaust", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDiesExaust", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDiesExaust", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesExaust", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodPlant", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KeyAMIL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAMIL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyAMIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAMIL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KgTeo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KgTeo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KgTeo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "KgTeo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumSMED", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumSMED", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumSMED", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumSMED", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuotaMan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuotaMan", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaMan", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "QuotaMan", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PRMWeight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PRMWeight", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PRMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PRMWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PWeight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PWeight", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PTare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PTare", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PTare", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PTare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LivPackage", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackage", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LivPackage", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackage", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LivPackageDett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackageDett", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LivPackageDett", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackageDett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMatCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatExtraCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RawMatFullCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMatFullCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMatFullCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatFullCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PkgDesc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PkgDesc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PkgDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PkgDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FSR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FSR", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FSR", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProvvCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "ProvvCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EECost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "EECost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GasCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "GasCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PackCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PackCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TranspCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "TranspCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SellCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RefCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SellCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RefCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NetProd01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NetProd01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OH4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OH4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "SC4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DSR_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DSR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DSR", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NetProd04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FVC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FVC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FVC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FVC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Charge", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "Charge", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", 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].[QuoteFull_S] ([Vers], [QuoteType], [CodQuote], [QuoteRev], [Id" + - "xQState], [CodClient], [ClientName], [CodItem], [CodItemGroup], [RawMat], [UnitW" + - "eight], [BatchQty], [CodInco], [TranspZone], [KeyAM], [Note], [PriceOff], [CodCl" + - "ientAssoc], [ClientNameAssoc], [ItemDescr], [CodifProfilo], [ClasseMerc], [TipoD" + - "ies], [CodDiesGroup], [DiamDies], [HoleNumDies], [DiesPrice_avg], [DiesPrice], [" + - "SamplePrice], [DiesPriceClientQuote], [DiesExpLife], [DiesEOLife], [DiesTecLife]" + - ", [DiesCommLife], [MonthSalesPrev], [DiesByClass], [NumDiesInList], [NumDiesExau" + - "st], [CodPlant], [KeyAMIL], [KgTeo], [NumSMED], [QuotaMan], [PRMWeight], [PWeigh" + - "t], [PTare], [LivPackage], [LivPackageDett], [RawMatCost], [RawMatExtraCost], [R" + - "awMatFullCost], [CodPackag], [PkgDesc], [FSR], [ProvvCost], [EECost], [GasCost]," + - " [DiesCost], [PackCost], [TranspCost], [SellCost01], [RefCost01], [SellCost04], " + - "[RefCost04], [WSR01_avg], [WSR01], [MSR01_avg], [MSR01], [NetProd01_avg], [NetPr" + - "od01], [FC4UG01], [VC4UG01], [OH4UG01], [SC4UG01], [DSR_avg], [DSR], [NetProd04]" + - ", [FC4UG04], [VC4UG04], [FVC], [Charge], [valid], [errorScore]) VALUES (@Vers, @" + - "QuoteType, @CodQuote, @QuoteRev, @IdxQState, @CodClient, @ClientName, @CodItem, " + - "@CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @TranspZone, @KeyAM, @" + - "Note, @PriceOff, @CodClientAssoc, @ClientNameAssoc, @ItemDescr, @CodifProfilo, @" + - "ClasseMerc, @TipoDies, @CodDiesGroup, @DiamDies, @HoleNumDies, @DiesPrice_avg, @" + - "DiesPrice, @SamplePrice, @DiesPriceClientQuote, @DiesExpLife, @DiesEOLife, @Dies" + - "TecLife, @DiesCommLife, @MonthSalesPrev, @DiesByClass, @NumDiesInList, @NumDiesE" + - "xaust, @CodPlant, @KeyAMIL, @KgTeo, @NumSMED, @QuotaMan, @PRMWeight, @PWeight, @" + - "PTare, @LivPackage, @LivPackageDett, @RawMatCost, @RawMatExtraCost, @RawMatFullC" + - "ost, @CodPackag, @PkgDesc, @FSR, @ProvvCost, @EECost, @GasCost, @DiesCost, @Pack" + - "Cost, @TranspCost, @SellCost01, @RefCost01, @SellCost04, @RefCost04, @WSR01_avg," + - " @WSR01, @MSR01_avg, @MSR01, @NetProd01_avg, @NetProd01, @FC4UG01, @VC4UG01, @OH" + - "4UG01, @SC4UG01, @DSR_avg, @DSR, @NetProd04, @FC4UG04, @VC4UG04, @FVC, @Charge, " + - "@valid, @errorScore);\r\nSELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, Co" + - "dClient, ClientName, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInc" + - "o, TranspZone, KeyAM, Note, PriceOff, CodClientAssoc, ClientNameAssoc, ItemDescr" + - ", CodifProfilo, ClasseMerc, TipoDies, CodDiesGroup, DiamDies, HoleNumDies, DiesP" + - "rice_avg, DiesPrice, SamplePrice, DiesFullCost, DiesPriceClientQuote, DiesExpLif" + - "e, DiesEOLife, DiesTecLife, DiesCommLife, MonthSalesPrev, SalesPrevCost, DiesFin" + - "Cost, ClientQuoteReven, ExtraDiscountDies, DiesByClass, NumDiesInList, NumDiesEx" + - "aust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaMan, PRMWeight, PWeight, PTare, Li" + - "vPackage, LivPackageDett, RawMatCost, RawMatExtraCost, RawMatFullCost, CodPackag" + - ", PkgDesc, FSR, ProvvCost, EECost, GasCost, DiesCost, PackCost, TranspCost, Sell" + - "Cost01, RefCost01, SellCost04, RefCost04, WSR01_avg, WSR01, MSR01_avg, MSR01, Ne" + - "tProd01_avg, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, DSR_avg, DSR, NetPro" + - "d04, FC4UG04, VC4UG04, FVC, Charge, valid, errorScore FROM QuoteFull_S WHERE (Co" + - "dQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TranspZone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TranspZone", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyAM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAM", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClientAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClientAssoc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientNameAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientNameAssoc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDescr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodifProfilo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodifProfilo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseMerc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseMerc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoDies", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoDies", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDiesGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDiesGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiamDies", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiamDies", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HoleNumDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HoleNumDies", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesPrice_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SamplePrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SamplePrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesPriceClientQuote", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPriceClientQuote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesExpLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesExpLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesEOLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesEOLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesTecLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesTecLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesCommLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCommLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MonthSalesPrev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthSalesPrev", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesByClass", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesByClass", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDiesInList", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesInList", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDiesExaust", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesExaust", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyAMIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAMIL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KgTeo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "KgTeo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumSMED", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumSMED", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaMan", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "QuotaMan", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PRMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PRMWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PTare", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PTare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LivPackage", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackage", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LivPackageDett", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackageDett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatExtraCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatFullCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatFullCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PkgDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PkgDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FSR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProvvCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "ProvvCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EECost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "EECost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GasCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "GasCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PackCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TranspCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "TranspCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SellCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RefCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SellCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RefCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NetProd01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NetProd01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OH4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OH4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "SC4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DSR_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NetProd04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FVC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FVC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Charge", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "Charge", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", 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].[QuoteFull_S] SET [Vers] = @Vers, [QuoteType] = @QuoteType, [CodQuot" + - "e] = @CodQuote, [QuoteRev] = @QuoteRev, [IdxQState] = @IdxQState, [CodClient] = " + - "@CodClient, [ClientName] = @ClientName, [CodItem] = @CodItem, [CodItemGroup] = @" + - "CodItemGroup, [RawMat] = @RawMat, [UnitWeight] = @UnitWeight, [BatchQty] = @Batc" + - "hQty, [CodInco] = @CodInco, [TranspZone] = @TranspZone, [KeyAM] = @KeyAM, [Note]" + - " = @Note, [PriceOff] = @PriceOff, [CodClientAssoc] = @CodClientAssoc, [ClientNam" + - "eAssoc] = @ClientNameAssoc, [ItemDescr] = @ItemDescr, [CodifProfilo] = @CodifPro" + - "filo, [ClasseMerc] = @ClasseMerc, [TipoDies] = @TipoDies, [CodDiesGroup] = @CodD" + - "iesGroup, [DiamDies] = @DiamDies, [HoleNumDies] = @HoleNumDies, [DiesPrice_avg] " + - "= @DiesPrice_avg, [DiesPrice] = @DiesPrice, [SamplePrice] = @SamplePrice, [DiesP" + - "riceClientQuote] = @DiesPriceClientQuote, [DiesExpLife] = @DiesExpLife, [DiesEOL" + - "ife] = @DiesEOLife, [DiesTecLife] = @DiesTecLife, [DiesCommLife] = @DiesCommLife" + - ", [MonthSalesPrev] = @MonthSalesPrev, [DiesByClass] = @DiesByClass, [NumDiesInLi" + - "st] = @NumDiesInList, [NumDiesExaust] = @NumDiesExaust, [CodPlant] = @CodPlant, " + - "[KeyAMIL] = @KeyAMIL, [KgTeo] = @KgTeo, [NumSMED] = @NumSMED, [QuotaMan] = @Quot" + - "aMan, [PRMWeight] = @PRMWeight, [PWeight] = @PWeight, [PTare] = @PTare, [LivPack" + - "age] = @LivPackage, [LivPackageDett] = @LivPackageDett, [RawMatCost] = @RawMatCo" + - "st, [RawMatExtraCost] = @RawMatExtraCost, [RawMatFullCost] = @RawMatFullCost, [C" + - "odPackag] = @CodPackag, [PkgDesc] = @PkgDesc, [FSR] = @FSR, [ProvvCost] = @Provv" + - "Cost, [EECost] = @EECost, [GasCost] = @GasCost, [DiesCost] = @DiesCost, [PackCos" + - "t] = @PackCost, [TranspCost] = @TranspCost, [SellCost01] = @SellCost01, [RefCost" + - "01] = @RefCost01, [SellCost04] = @SellCost04, [RefCost04] = @RefCost04, [WSR01_a" + - "vg] = @WSR01_avg, [WSR01] = @WSR01, [MSR01_avg] = @MSR01_avg, [MSR01] = @MSR01, " + - "[NetProd01_avg] = @NetProd01_avg, [NetProd01] = @NetProd01, [FC4UG01] = @FC4UG01" + - ", [VC4UG01] = @VC4UG01, [OH4UG01] = @OH4UG01, [SC4UG01] = @SC4UG01, [DSR_avg] = " + - "@DSR_avg, [DSR] = @DSR, [NetProd04] = @NetProd04, [FC4UG04] = @FC4UG04, [VC4UG04" + - "] = @VC4UG04, [FVC] = @FVC, [Charge] = @Charge, [valid] = @valid, [errorScore] =" + - " @errorScore WHERE (([Vers] = @Original_Vers) AND ([QuoteType] = @Original_Quote" + - "Type) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev" + - ") AND ([IdxQState] = @Original_IdxQState) AND ([CodClient] = @Original_CodClient" + - ") AND ([ClientName] = @Original_ClientName) AND ([CodItem] = @Original_CodItem) " + - "AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawMat] = @Original_RawMat) " + - "AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty] = @Original_BatchQty) " + - "AND ([CodInco] = @Original_CodInco) AND ([TranspZone] = @Original_TranspZone) AN" + - "D ([KeyAM] = @Original_KeyAM) AND ([Note] = @Original_Note) AND ([PriceOff] = @O" + - "riginal_PriceOff) AND ((@IsNull_CodClientAssoc = 1 AND [CodClientAssoc] IS NULL)" + - " OR ([CodClientAssoc] = @Original_CodClientAssoc)) AND ((@IsNull_ClientNameAssoc" + - " = 1 AND [ClientNameAssoc] IS NULL) OR ([ClientNameAssoc] = @Original_ClientName" + - "Assoc)) AND ((@IsNull_ItemDescr = 1 AND [ItemDescr] IS NULL) OR ([ItemDescr] = @" + - "Original_ItemDescr)) AND ((@IsNull_CodifProfilo = 1 AND [CodifProfilo] IS NULL) " + - "OR ([CodifProfilo] = @Original_CodifProfilo)) AND ((@IsNull_ClasseMerc = 1 AND [" + - "ClasseMerc] IS NULL) OR ([ClasseMerc] = @Original_ClasseMerc)) AND ((@IsNull_Tip" + - "oDies = 1 AND [TipoDies] IS NULL) OR ([TipoDies] = @Original_TipoDies)) AND ((@I" + - "sNull_CodDiesGroup = 1 AND [CodDiesGroup] IS NULL) OR ([CodDiesGroup] = @Origina" + - "l_CodDiesGroup)) AND ((@IsNull_DiamDies = 1 AND [DiamDies] IS NULL) OR ([DiamDie" + - "s] = @Original_DiamDies)) AND ((@IsNull_HoleNumDies = 1 AND [HoleNumDies] IS NUL" + - "L) OR ([HoleNumDies] = @Original_HoleNumDies)) AND ((@IsNull_DiesPrice_avg = 1 A" + - "ND [DiesPrice_avg] IS NULL) OR ([DiesPrice_avg] = @Original_DiesPrice_avg)) AND " + - "([DiesPrice] = @Original_DiesPrice) AND ([SamplePrice] = @Original_SamplePrice) " + - "AND ((@IsNull_DiesFullCost = 1 AND [DiesFullCost] IS NULL) OR ([DiesFullCost] = " + - "@Original_DiesFullCost)) AND ([DiesPriceClientQuote] = @Original_DiesPriceClient" + - "Quote) AND ((@IsNull_DiesExpLife = 1 AND [DiesExpLife] IS NULL) OR ([DiesExpLife" + - "] = @Original_DiesExpLife)) AND ((@IsNull_DiesEOLife = 1 AND [DiesEOLife] IS NUL" + - "L) OR ([DiesEOLife] = @Original_DiesEOLife)) AND ([DiesTecLife] = @Original_Dies" + - "TecLife) AND ([DiesCommLife] = @Original_DiesCommLife) AND ([MonthSalesPrev] = @" + - "Original_MonthSalesPrev) AND ((@IsNull_SalesPrevCost = 1 AND [SalesPrevCost] IS " + - "NULL) OR ([SalesPrevCost] = @Original_SalesPrevCost)) AND ((@IsNull_DiesFinCost " + - "= 1 AND [DiesFinCost] IS NULL) OR ([DiesFinCost] = @Original_DiesFinCost)) AND (" + - "(@IsNull_ClientQuoteReven = 1 AND [ClientQuoteReven] IS NULL) OR ([ClientQuoteRe" + - "ven] = @Original_ClientQuoteReven)) AND ((@IsNull_ExtraDiscountDies = 1 AND [Ext" + - "raDiscountDies] IS NULL) OR ([ExtraDiscountDies] = @Original_ExtraDiscountDies))" + - " AND ((@IsNull_DiesByClass = 1 AND [DiesByClass] IS NULL) OR ([DiesByClass] = @O" + - "riginal_DiesByClass)) AND ((@IsNull_NumDiesInList = 1 AND [NumDiesInList] IS NUL" + - "L) OR ([NumDiesInList] = @Original_NumDiesInList)) AND ((@IsNull_NumDiesExaust =" + - " 1 AND [NumDiesExaust] IS NULL) OR ([NumDiesExaust] = @Original_NumDiesExaust)) " + - "AND ((@IsNull_CodPlant = 1 AND [CodPlant] IS NULL) OR ([CodPlant] = @Original_Co" + - "dPlant)) AND ((@IsNull_KeyAMIL = 1 AND [KeyAMIL] IS NULL) OR ([KeyAMIL] = @Origi" + - "nal_KeyAMIL)) AND ((@IsNull_KgTeo = 1 AND [KgTeo] IS NULL) OR ([KgTeo] = @Origin" + - "al_KgTeo)) AND ((@IsNull_NumSMED = 1 AND [NumSMED] IS NULL) OR ([NumSMED] = @Ori" + - "ginal_NumSMED)) AND ((@IsNull_QuotaMan = 1 AND [QuotaMan] IS NULL) OR ([QuotaMan" + - "] = @Original_QuotaMan)) AND ((@IsNull_PRMWeight = 1 AND [PRMWeight] IS NULL) OR" + - " ([PRMWeight] = @Original_PRMWeight)) AND ((@IsNull_PWeight = 1 AND [PWeight] IS" + - " NULL) OR ([PWeight] = @Original_PWeight)) AND ((@IsNull_PTare = 1 AND [PTare] I" + - "S NULL) OR ([PTare] = @Original_PTare)) AND ((@IsNull_LivPackage = 1 AND [LivPac" + - "kage] IS NULL) OR ([LivPackage] = @Original_LivPackage)) AND ((@IsNull_LivPackag" + - "eDett = 1 AND [LivPackageDett] IS NULL) OR ([LivPackageDett] = @Original_LivPack" + - "ageDett)) AND ([RawMatCost] = @Original_RawMatCost) AND ([RawMatExtraCost] = @Or" + - "iginal_RawMatExtraCost) AND ((@IsNull_RawMatFullCost = 1 AND [RawMatFullCost] IS" + - " NULL) OR ([RawMatFullCost] = @Original_RawMatFullCost)) AND ([CodPackag] = @Ori" + - "ginal_CodPackag) AND ((@IsNull_PkgDesc = 1 AND [PkgDesc] IS NULL) OR ([PkgDesc] " + - "= @Original_PkgDesc)) AND ((@IsNull_FSR = 1 AND [FSR] IS NULL) OR ([FSR] = @Orig" + - "inal_FSR)) AND ([ProvvCost] = @Original_ProvvCost) AND ([EECost] = @Original_EEC" + - "ost) AND ([GasCost] = @Original_GasCost) AND ([DiesCost] = @Original_DiesCost) A" + - "ND ([PackCost] = @Original_PackCost) AND ([TranspCost] = @Original_TranspCost) A" + - "ND ([SellCost01] = @Original_SellCost01) AND ([RefCost01] = @Original_RefCost01)" + - " AND ([SellCost04] = @Original_SellCost04) AND ([RefCost04] = @Original_RefCost0" + - "4) AND ([WSR01_avg] = @Original_WSR01_avg) AND ([WSR01] = @Original_WSR01) AND (" + - "[MSR01_avg] = @Original_MSR01_avg) AND ([MSR01] = @Original_MSR01) AND ([NetProd" + - "01_avg] = @Original_NetProd01_avg) AND ([NetProd01] = @Original_NetProd01) AND (" + - "[FC4UG01] = @Original_FC4UG01) AND ([VC4UG01] = @Original_VC4UG01) AND ([OH4UG01" + - "] = @Original_OH4UG01) AND ([SC4UG01] = @Original_SC4UG01) AND ([DSR_avg] = @Ori" + - "ginal_DSR_avg) AND ((@IsNull_DSR = 1 AND [DSR] IS NULL) OR ([DSR] = @Original_DS" + - "R)) AND ([NetProd04] = @Original_NetProd04) AND ([FC4UG04] = @Original_FC4UG04) " + - "AND ([VC4UG04] = @Original_VC4UG04) AND ((@IsNull_FVC = 1 AND [FVC] IS NULL) OR " + - "([FVC] = @Original_FVC)) AND ([Charge] = @Original_Charge) AND ([valid] = @Origi" + - "nal_valid) AND ([errorScore] = @Original_errorScore));\r\nSELECT Vers, QuoteType, " + - "CodQuote, QuoteRev, IdxQState, CodClient, ClientName, CodItem, CodItemGroup, Raw" + - "Mat, UnitWeight, BatchQty, CodInco, TranspZone, KeyAM, Note, PriceOff, CodClient" + - "Assoc, ClientNameAssoc, ItemDescr, CodifProfilo, ClasseMerc, TipoDies, CodDiesGr" + - "oup, DiamDies, HoleNumDies, DiesPrice_avg, DiesPrice, SamplePrice, DiesFullCost," + - " DiesPriceClientQuote, DiesExpLife, DiesEOLife, DiesTecLife, DiesCommLife, Month" + - "SalesPrev, SalesPrevCost, DiesFinCost, ClientQuoteReven, ExtraDiscountDies, Dies" + - "ByClass, NumDiesInList, NumDiesExaust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaM" + - "an, PRMWeight, PWeight, PTare, LivPackage, LivPackageDett, RawMatCost, RawMatExt" + - "raCost, RawMatFullCost, CodPackag, PkgDesc, FSR, ProvvCost, EECost, GasCost, Die" + - "sCost, PackCost, TranspCost, SellCost01, RefCost01, SellCost04, RefCost04, WSR01" + - "_avg, WSR01, MSR01_avg, MSR01, NetProd01_avg, NetProd01, FC4UG01, VC4UG01, OH4UG" + - "01, SC4UG01, DSR_avg, DSR, NetProd04, FC4UG04, VC4UG04, FVC, Charge, valid, erro" + - "rScore FROM QuoteFull_S WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) " + - "AND (QuoteType = @QuoteType)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TranspZone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TranspZone", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyAM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAM", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClientAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClientAssoc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientNameAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientNameAssoc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDescr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodifProfilo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodifProfilo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseMerc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseMerc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoDies", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoDies", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodDiesGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDiesGroup", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiamDies", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiamDies", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@HoleNumDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HoleNumDies", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesPrice_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SamplePrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SamplePrice", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesPriceClientQuote", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPriceClientQuote", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesExpLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesExpLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesEOLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesEOLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesTecLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesTecLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesCommLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCommLife", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MonthSalesPrev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthSalesPrev", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesByClass", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesByClass", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDiesInList", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesInList", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDiesExaust", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesExaust", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyAMIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAMIL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KgTeo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "KgTeo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumSMED", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumSMED", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuotaMan", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "QuotaMan", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PRMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PRMWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PWeight", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PTare", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PTare", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LivPackage", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackage", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LivPackageDett", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackageDett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatExtraCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatFullCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatFullCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PkgDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PkgDesc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FSR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProvvCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "ProvvCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EECost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "EECost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GasCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "GasCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiesCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PackCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TranspCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "TranspCost", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SellCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RefCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SellCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RefCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@WSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NetProd01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NetProd01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OH4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OH4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "SC4UG01", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DSR_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR_avg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NetProd04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG04", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FVC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FVC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Charge", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "Charge", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteType", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodQuote", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodQuote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuoteRev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuoteRev", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxQState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxQState", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodClient", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClient", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItem", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItem", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodItemGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodItemGroup", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMat", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UnitWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "UnitWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BatchQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BatchQty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodInco", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodInco", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TranspZone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TranspZone", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyAM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAM", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriceOff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "PriceOff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodClientAssoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClientAssoc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodClientAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodClientAssoc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientNameAssoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientNameAssoc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientNameAssoc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientNameAssoc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemDescr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDescr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemDescr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemDescr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodifProfilo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodifProfilo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodifProfilo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodifProfilo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClasseMerc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseMerc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClasseMerc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseMerc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TipoDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoDies", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodDiesGroup", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDiesGroup", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodDiesGroup", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodDiesGroup", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiamDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiamDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiamDies", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiamDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_HoleNumDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HoleNumDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_HoleNumDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "HoleNumDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesPrice_avg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesPrice_avg", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesPrice_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesPrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SamplePrice", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SamplePrice", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesFullCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesFullCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesFullCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 6, "DiesFullCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesPriceClientQuote", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesPriceClientQuote", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesExpLife", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesExpLife", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesExpLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesExpLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesEOLife", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesEOLife", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesEOLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesEOLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesTecLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesTecLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesCommLife", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCommLife", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MonthSalesPrev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MonthSalesPrev", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SalesPrevCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SalesPrevCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SalesPrevCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 6, "SalesPrevCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesFinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesFinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesFinCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 6, "DiesFinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientQuoteReven", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientQuoteReven", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientQuoteReven", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 20, "ClientQuoteReven", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ExtraDiscountDies", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtraDiscountDies", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ExtraDiscountDies", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 38, 6, "ExtraDiscountDies", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DiesByClass", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesByClass", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesByClass", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiesByClass", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDiesInList", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDiesInList", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDiesInList", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesInList", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumDiesExaust", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumDiesExaust", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumDiesExaust", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumDiesExaust", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodPlant", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPlant", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPlant", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KeyAMIL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAMIL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyAMIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyAMIL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KgTeo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KgTeo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KgTeo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "KgTeo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumSMED", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumSMED", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumSMED", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "NumSMED", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QuotaMan", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QuotaMan", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QuotaMan", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "QuotaMan", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PRMWeight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PRMWeight", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PRMWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PRMWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PWeight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PWeight", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PWeight", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PWeight", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PTare", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PTare", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PTare", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PTare", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LivPackage", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackage", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LivPackage", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackage", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LivPackageDett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackageDett", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LivPackageDett", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LivPackageDett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMatCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatExtraCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RawMatFullCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RawMatFullCost", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RawMatFullCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RawMatFullCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPackag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPackag", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PkgDesc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PkgDesc", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PkgDesc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PkgDesc", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FSR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FSR", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FSR", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProvvCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "ProvvCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EECost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "EECost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GasCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "GasCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiesCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DiesCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PackCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "PackCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TranspCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "TranspCost", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SellCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RefCost01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SellCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "SellCost04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RefCost04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "RefCost04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_WSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "WSR01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MSR01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MSR01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 8, "MSR01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NetProd01_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NetProd01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OH4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "OH4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SC4UG01", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "SC4UG01", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DSR_avg", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR_avg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DSR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DSR", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DSR", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "DSR", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NetProd04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 3, "NetProd04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "FC4UG04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VC4UG04", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "VC4UG04", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FVC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FVC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FVC", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "FVC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Charge", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 9, 6, "Charge", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_valid", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_errorScore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "errorScore", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -19952,7 +18630,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = @"SELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, ClientName, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, TranspZone, KeyAM, Note, PriceOff, CodClientAssoc, ClientNameAssoc, ItemDescr, CodifProfilo, ClasseMerc, TipoDies, CodDiesGroup, DiamDies, HoleNumDies, DiesPrice_avg, DiesPrice, SamplePrice, DiesFullCost, DiesPriceClientQuote, DiesExpLife, DiesEOLife, DiesTecLife, DiesCommLife, MonthSalesPrev, SalesPrevCost, DiesFinCost, ClientQuoteReven, ExtraDiscountDies, DiesByClass, NumDiesInList, NumDiesExaust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaMan, PRMWeight, PWeight, PTare, LivPackage, LivPackageDett, RawMatCost, RawMatExtraCost, RawMatFullCost, CodPackag, PkgDesc, FSR, ProvvCost, EECost, GasCost, DiesCost, PackCost, TranspCost, SellCost01, RefCost01, SellCost04, RefCost04, WSR01_avg, WSR01, MSR01_avg, MSR01, NetProd01_avg, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, DSR_avg, DSR, NetProd04, FC4UG04, VC4UG04, FVC, Charge, valid, errorScore FROM dbo.QuoteFull_S"; + this._commandCollection[0].CommandText = "SELECT * FROM QuoteFull_S"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; } @@ -19979,1988 +18657,6 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas this.Adapter.Fill(dataTable); return dataTable; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_Quotes.QuoteFull_SDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_Quotes dataSet) { - return this.Adapter.Update(dataSet, "QuoteFull_S"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete( - string Original_Vers, - string Original_QuoteType, - long Original_CodQuote, - int Original_QuoteRev, - int Original_IdxQState, - string Original_CodClient, - string Original_ClientName, - string Original_CodItem, - string Original_CodItemGroup, - string Original_RawMat, - decimal Original_UnitWeight, - int Original_BatchQty, - string Original_CodInco, - string Original_TranspZone, - string Original_KeyAM, - string Original_Note, - decimal Original_PriceOff, - string Original_CodClientAssoc, - string Original_ClientNameAssoc, - string Original_ItemDescr, - string Original_CodifProfilo, - string Original_ClasseMerc, - string Original_TipoDies, - string Original_CodDiesGroup, - global::System.Nullable Original_DiamDies, - global::System.Nullable Original_HoleNumDies, - global::System.Nullable Original_DiesPrice_avg, - decimal Original_DiesPrice, - decimal Original_SamplePrice, - global::System.Nullable Original_DiesFullCost, - decimal Original_DiesPriceClientQuote, - global::System.Nullable Original_DiesExpLife, - global::System.Nullable Original_DiesEOLife, - decimal Original_DiesTecLife, - decimal Original_DiesCommLife, - int Original_MonthSalesPrev, - global::System.Nullable Original_SalesPrevCost, - global::System.Nullable Original_DiesFinCost, - global::System.Nullable Original_ClientQuoteReven, - global::System.Nullable Original_ExtraDiscountDies, - global::System.Nullable Original_DiesByClass, - global::System.Nullable Original_NumDiesInList, - global::System.Nullable Original_NumDiesExaust, - string Original_CodPlant, - string Original_KeyAMIL, - global::System.Nullable Original_KgTeo, - global::System.Nullable Original_NumSMED, - global::System.Nullable Original_QuotaMan, - global::System.Nullable Original_PRMWeight, - global::System.Nullable Original_PWeight, - global::System.Nullable Original_PTare, - string Original_LivPackage, - string Original_LivPackageDett, - decimal Original_RawMatCost, - decimal Original_RawMatExtraCost, - global::System.Nullable Original_RawMatFullCost, - string Original_CodPackag, - string Original_PkgDesc, - global::System.Nullable Original_FSR, - decimal Original_ProvvCost, - decimal Original_EECost, - decimal Original_GasCost, - decimal Original_DiesCost, - decimal Original_PackCost, - decimal Original_TranspCost, - decimal Original_SellCost01, - decimal Original_RefCost01, - decimal Original_SellCost04, - decimal Original_RefCost04, - decimal Original_WSR01_avg, - decimal Original_WSR01, - decimal Original_MSR01_avg, - decimal Original_MSR01, - decimal Original_NetProd01_avg, - decimal Original_NetProd01, - decimal Original_FC4UG01, - decimal Original_VC4UG01, - decimal Original_OH4UG01, - decimal Original_SC4UG01, - decimal Original_DSR_avg, - global::System.Nullable Original_DSR, - decimal Original_NetProd04, - decimal Original_FC4UG04, - decimal Original_VC4UG04, - global::System.Nullable Original_FVC, - decimal Original_Charge, - bool Original_valid, - int Original_errorScore) { - if ((Original_Vers == null)) { - throw new global::System.ArgumentNullException("Original_Vers"); - } - else { - this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Vers)); - } - if ((Original_QuoteType == null)) { - throw new global::System.ArgumentNullException("Original_QuoteType"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_QuoteType)); - } - this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(Original_CodQuote)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_QuoteRev)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxQState)); - if ((Original_CodClient == null)) { - throw new global::System.ArgumentNullException("Original_CodClient"); - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodClient)); - } - if ((Original_ClientName == null)) { - throw new global::System.ArgumentNullException("Original_ClientName"); - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_ClientName)); - } - if ((Original_CodItem == null)) { - throw new global::System.ArgumentNullException("Original_CodItem"); - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_CodItem)); - } - if ((Original_CodItemGroup == null)) { - throw new global::System.ArgumentNullException("Original_CodItemGroup"); - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_CodItemGroup)); - } - if ((Original_RawMat == null)) { - throw new global::System.ArgumentNullException("Original_RawMat"); - } - else { - this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_RawMat)); - } - this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_UnitWeight)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((int)(Original_BatchQty)); - if ((Original_CodInco == null)) { - throw new global::System.ArgumentNullException("Original_CodInco"); - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_CodInco)); - } - if ((Original_TranspZone == null)) { - throw new global::System.ArgumentNullException("Original_TranspZone"); - } - else { - this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_TranspZone)); - } - if ((Original_KeyAM == null)) { - throw new global::System.ArgumentNullException("Original_KeyAM"); - } - else { - this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_KeyAM)); - } - if ((Original_Note == null)) { - throw new global::System.ArgumentNullException("Original_Note"); - } - else { - this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_Note)); - } - this.Adapter.DeleteCommand.Parameters[16].Value = ((decimal)(Original_PriceOff)); - if ((Original_CodClientAssoc == null)) { - this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_CodClientAssoc)); - } - if ((Original_ClientNameAssoc == null)) { - this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_ClientNameAssoc)); - } - if ((Original_ItemDescr == null)) { - this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_ItemDescr)); - } - if ((Original_CodifProfilo == null)) { - this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_CodifProfilo)); - } - if ((Original_ClasseMerc == null)) { - this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_ClasseMerc)); - } - if ((Original_TipoDies == null)) { - this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_TipoDies)); - } - if ((Original_CodDiesGroup == null)) { - this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_CodDiesGroup)); - } - if ((Original_DiamDies.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[32].Value = ((decimal)(Original_DiamDies.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value; - } - if ((Original_HoleNumDies.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[34].Value = ((int)(Original_HoleNumDies.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value; - } - if ((Original_DiesPrice_avg.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[36].Value = ((decimal)(Original_DiesPrice_avg.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value; - } - this.Adapter.DeleteCommand.Parameters[37].Value = ((decimal)(Original_DiesPrice)); - this.Adapter.DeleteCommand.Parameters[38].Value = ((decimal)(Original_SamplePrice)); - if ((Original_DiesFullCost.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[40].Value = ((decimal)(Original_DiesFullCost.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value; - } - this.Adapter.DeleteCommand.Parameters[41].Value = ((decimal)(Original_DiesPriceClientQuote)); - if ((Original_DiesExpLife.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[43].Value = ((decimal)(Original_DiesExpLife.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[43].Value = global::System.DBNull.Value; - } - if ((Original_DiesEOLife.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[45].Value = ((decimal)(Original_DiesEOLife.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[45].Value = global::System.DBNull.Value; - } - this.Adapter.DeleteCommand.Parameters[46].Value = ((decimal)(Original_DiesTecLife)); - this.Adapter.DeleteCommand.Parameters[47].Value = ((decimal)(Original_DiesCommLife)); - this.Adapter.DeleteCommand.Parameters[48].Value = ((int)(Original_MonthSalesPrev)); - if ((Original_SalesPrevCost.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[50].Value = ((decimal)(Original_SalesPrevCost.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[50].Value = global::System.DBNull.Value; - } - if ((Original_DiesFinCost.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[52].Value = ((decimal)(Original_DiesFinCost.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[52].Value = global::System.DBNull.Value; - } - if ((Original_ClientQuoteReven.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[54].Value = ((decimal)(Original_ClientQuoteReven.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[54].Value = global::System.DBNull.Value; - } - if ((Original_ExtraDiscountDies.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[55].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[56].Value = ((decimal)(Original_ExtraDiscountDies.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[55].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[56].Value = global::System.DBNull.Value; - } - if ((Original_DiesByClass.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[57].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[58].Value = ((bool)(Original_DiesByClass.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[57].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[58].Value = global::System.DBNull.Value; - } - if ((Original_NumDiesInList.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[59].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[60].Value = ((decimal)(Original_NumDiesInList.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[59].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[60].Value = global::System.DBNull.Value; - } - if ((Original_NumDiesExaust.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[61].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[62].Value = ((decimal)(Original_NumDiesExaust.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[61].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[62].Value = global::System.DBNull.Value; - } - if ((Original_CodPlant == null)) { - this.Adapter.DeleteCommand.Parameters[63].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[64].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[63].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[64].Value = ((string)(Original_CodPlant)); - } - if ((Original_KeyAMIL == null)) { - this.Adapter.DeleteCommand.Parameters[65].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[66].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[65].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[66].Value = ((string)(Original_KeyAMIL)); - } - if ((Original_KgTeo.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[67].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[68].Value = ((decimal)(Original_KgTeo.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[67].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[68].Value = global::System.DBNull.Value; - } - if ((Original_NumSMED.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[69].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[70].Value = ((decimal)(Original_NumSMED.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[69].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[70].Value = global::System.DBNull.Value; - } - if ((Original_QuotaMan.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[71].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[72].Value = ((decimal)(Original_QuotaMan.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[71].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[72].Value = global::System.DBNull.Value; - } - if ((Original_PRMWeight.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[73].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[74].Value = ((decimal)(Original_PRMWeight.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[73].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[74].Value = global::System.DBNull.Value; - } - if ((Original_PWeight.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[75].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[76].Value = ((decimal)(Original_PWeight.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[75].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[76].Value = global::System.DBNull.Value; - } - if ((Original_PTare.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[77].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[78].Value = ((decimal)(Original_PTare.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[77].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[78].Value = global::System.DBNull.Value; - } - if ((Original_LivPackage == null)) { - this.Adapter.DeleteCommand.Parameters[79].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[80].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[79].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[80].Value = ((string)(Original_LivPackage)); - } - if ((Original_LivPackageDett == null)) { - this.Adapter.DeleteCommand.Parameters[81].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[82].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[81].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[82].Value = ((string)(Original_LivPackageDett)); - } - this.Adapter.DeleteCommand.Parameters[83].Value = ((decimal)(Original_RawMatCost)); - this.Adapter.DeleteCommand.Parameters[84].Value = ((decimal)(Original_RawMatExtraCost)); - if ((Original_RawMatFullCost.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[85].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[86].Value = ((decimal)(Original_RawMatFullCost.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[85].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[86].Value = global::System.DBNull.Value; - } - if ((Original_CodPackag == null)) { - throw new global::System.ArgumentNullException("Original_CodPackag"); - } - else { - this.Adapter.DeleteCommand.Parameters[87].Value = ((string)(Original_CodPackag)); - } - if ((Original_PkgDesc == null)) { - this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[89].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[88].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[89].Value = ((string)(Original_PkgDesc)); - } - if ((Original_FSR.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[91].Value = ((decimal)(Original_FSR.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[90].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[91].Value = global::System.DBNull.Value; - } - this.Adapter.DeleteCommand.Parameters[92].Value = ((decimal)(Original_ProvvCost)); - this.Adapter.DeleteCommand.Parameters[93].Value = ((decimal)(Original_EECost)); - this.Adapter.DeleteCommand.Parameters[94].Value = ((decimal)(Original_GasCost)); - this.Adapter.DeleteCommand.Parameters[95].Value = ((decimal)(Original_DiesCost)); - this.Adapter.DeleteCommand.Parameters[96].Value = ((decimal)(Original_PackCost)); - this.Adapter.DeleteCommand.Parameters[97].Value = ((decimal)(Original_TranspCost)); - this.Adapter.DeleteCommand.Parameters[98].Value = ((decimal)(Original_SellCost01)); - this.Adapter.DeleteCommand.Parameters[99].Value = ((decimal)(Original_RefCost01)); - this.Adapter.DeleteCommand.Parameters[100].Value = ((decimal)(Original_SellCost04)); - this.Adapter.DeleteCommand.Parameters[101].Value = ((decimal)(Original_RefCost04)); - this.Adapter.DeleteCommand.Parameters[102].Value = ((decimal)(Original_WSR01_avg)); - this.Adapter.DeleteCommand.Parameters[103].Value = ((decimal)(Original_WSR01)); - this.Adapter.DeleteCommand.Parameters[104].Value = ((decimal)(Original_MSR01_avg)); - this.Adapter.DeleteCommand.Parameters[105].Value = ((decimal)(Original_MSR01)); - this.Adapter.DeleteCommand.Parameters[106].Value = ((decimal)(Original_NetProd01_avg)); - this.Adapter.DeleteCommand.Parameters[107].Value = ((decimal)(Original_NetProd01)); - this.Adapter.DeleteCommand.Parameters[108].Value = ((decimal)(Original_FC4UG01)); - this.Adapter.DeleteCommand.Parameters[109].Value = ((decimal)(Original_VC4UG01)); - this.Adapter.DeleteCommand.Parameters[110].Value = ((decimal)(Original_OH4UG01)); - this.Adapter.DeleteCommand.Parameters[111].Value = ((decimal)(Original_SC4UG01)); - this.Adapter.DeleteCommand.Parameters[112].Value = ((decimal)(Original_DSR_avg)); - if ((Original_DSR.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[113].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[114].Value = ((decimal)(Original_DSR.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[113].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[114].Value = global::System.DBNull.Value; - } - this.Adapter.DeleteCommand.Parameters[115].Value = ((decimal)(Original_NetProd04)); - this.Adapter.DeleteCommand.Parameters[116].Value = ((decimal)(Original_FC4UG04)); - this.Adapter.DeleteCommand.Parameters[117].Value = ((decimal)(Original_VC4UG04)); - if ((Original_FVC.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[118].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[119].Value = ((decimal)(Original_FVC.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[118].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[119].Value = global::System.DBNull.Value; - } - this.Adapter.DeleteCommand.Parameters[120].Value = ((decimal)(Original_Charge)); - this.Adapter.DeleteCommand.Parameters[121].Value = ((bool)(Original_valid)); - this.Adapter.DeleteCommand.Parameters[122].Value = ((int)(Original_errorScore)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert( - string Vers, - string QuoteType, - long CodQuote, - int QuoteRev, - int IdxQState, - string CodClient, - string ClientName, - string CodItem, - string CodItemGroup, - string RawMat, - decimal UnitWeight, - int BatchQty, - string CodInco, - string TranspZone, - string KeyAM, - string Note, - decimal PriceOff, - string CodClientAssoc, - string ClientNameAssoc, - string ItemDescr, - string CodifProfilo, - string ClasseMerc, - string TipoDies, - string CodDiesGroup, - global::System.Nullable DiamDies, - global::System.Nullable HoleNumDies, - global::System.Nullable DiesPrice_avg, - decimal DiesPrice, - decimal SamplePrice, - decimal DiesPriceClientQuote, - global::System.Nullable DiesExpLife, - global::System.Nullable DiesEOLife, - decimal DiesTecLife, - decimal DiesCommLife, - int MonthSalesPrev, - global::System.Nullable DiesByClass, - global::System.Nullable NumDiesInList, - global::System.Nullable NumDiesExaust, - string CodPlant, - string KeyAMIL, - global::System.Nullable KgTeo, - global::System.Nullable NumSMED, - global::System.Nullable QuotaMan, - global::System.Nullable PRMWeight, - global::System.Nullable PWeight, - global::System.Nullable PTare, - string LivPackage, - string LivPackageDett, - decimal RawMatCost, - decimal RawMatExtraCost, - global::System.Nullable RawMatFullCost, - string CodPackag, - string PkgDesc, - global::System.Nullable FSR, - decimal ProvvCost, - decimal EECost, - decimal GasCost, - decimal DiesCost, - decimal PackCost, - decimal TranspCost, - decimal SellCost01, - decimal RefCost01, - decimal SellCost04, - decimal RefCost04, - decimal WSR01_avg, - decimal WSR01, - decimal MSR01_avg, - decimal MSR01, - decimal NetProd01_avg, - decimal NetProd01, - decimal FC4UG01, - decimal VC4UG01, - decimal OH4UG01, - decimal SC4UG01, - decimal DSR_avg, - global::System.Nullable DSR, - decimal NetProd04, - decimal FC4UG04, - decimal VC4UG04, - global::System.Nullable FVC, - decimal Charge, - bool valid, - int errorScore) { - if ((Vers == null)) { - throw new global::System.ArgumentNullException("Vers"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Vers)); - } - if ((QuoteType == null)) { - throw new global::System.ArgumentNullException("QuoteType"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(QuoteType)); - } - this.Adapter.InsertCommand.Parameters[2].Value = ((long)(CodQuote)); - this.Adapter.InsertCommand.Parameters[3].Value = ((int)(QuoteRev)); - this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdxQState)); - if ((CodClient == null)) { - throw new global::System.ArgumentNullException("CodClient"); - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodClient)); - } - if ((ClientName == null)) { - throw new global::System.ArgumentNullException("ClientName"); - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(ClientName)); - } - if ((CodItem == null)) { - throw new global::System.ArgumentNullException("CodItem"); - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(CodItem)); - } - if ((CodItemGroup == null)) { - throw new global::System.ArgumentNullException("CodItemGroup"); - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(CodItemGroup)); - } - if ((RawMat == null)) { - throw new global::System.ArgumentNullException("RawMat"); - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(RawMat)); - } - this.Adapter.InsertCommand.Parameters[10].Value = ((decimal)(UnitWeight)); - this.Adapter.InsertCommand.Parameters[11].Value = ((int)(BatchQty)); - if ((CodInco == null)) { - throw new global::System.ArgumentNullException("CodInco"); - } - else { - this.Adapter.InsertCommand.Parameters[12].Value = ((string)(CodInco)); - } - if ((TranspZone == null)) { - throw new global::System.ArgumentNullException("TranspZone"); - } - else { - this.Adapter.InsertCommand.Parameters[13].Value = ((string)(TranspZone)); - } - if ((KeyAM == null)) { - throw new global::System.ArgumentNullException("KeyAM"); - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = ((string)(KeyAM)); - } - if ((Note == null)) { - throw new global::System.ArgumentNullException("Note"); - } - else { - this.Adapter.InsertCommand.Parameters[15].Value = ((string)(Note)); - } - this.Adapter.InsertCommand.Parameters[16].Value = ((decimal)(PriceOff)); - if ((CodClientAssoc == null)) { - this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[17].Value = ((string)(CodClientAssoc)); - } - if ((ClientNameAssoc == null)) { - this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[18].Value = ((string)(ClientNameAssoc)); - } - if ((ItemDescr == null)) { - this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[19].Value = ((string)(ItemDescr)); - } - if ((CodifProfilo == null)) { - this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[20].Value = ((string)(CodifProfilo)); - } - if ((ClasseMerc == null)) { - this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[21].Value = ((string)(ClasseMerc)); - } - if ((TipoDies == null)) { - this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[22].Value = ((string)(TipoDies)); - } - if ((CodDiesGroup == null)) { - this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[23].Value = ((string)(CodDiesGroup)); - } - if ((DiamDies.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[24].Value = ((decimal)(DiamDies.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((HoleNumDies.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[25].Value = ((int)(HoleNumDies.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((DiesPrice_avg.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[26].Value = ((decimal)(DiesPrice_avg.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value; - } - this.Adapter.InsertCommand.Parameters[27].Value = ((decimal)(DiesPrice)); - this.Adapter.InsertCommand.Parameters[28].Value = ((decimal)(SamplePrice)); - this.Adapter.InsertCommand.Parameters[29].Value = ((decimal)(DiesPriceClientQuote)); - if ((DiesExpLife.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[30].Value = ((decimal)(DiesExpLife.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[30].Value = global::System.DBNull.Value; - } - if ((DiesEOLife.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[31].Value = ((decimal)(DiesEOLife.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[31].Value = global::System.DBNull.Value; - } - this.Adapter.InsertCommand.Parameters[32].Value = ((decimal)(DiesTecLife)); - this.Adapter.InsertCommand.Parameters[33].Value = ((decimal)(DiesCommLife)); - this.Adapter.InsertCommand.Parameters[34].Value = ((int)(MonthSalesPrev)); - if ((DiesByClass.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[35].Value = ((bool)(DiesByClass.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[35].Value = global::System.DBNull.Value; - } - if ((NumDiesInList.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[36].Value = ((decimal)(NumDiesInList.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[36].Value = global::System.DBNull.Value; - } - if ((NumDiesExaust.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[37].Value = ((decimal)(NumDiesExaust.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[37].Value = global::System.DBNull.Value; - } - if ((CodPlant == null)) { - this.Adapter.InsertCommand.Parameters[38].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[38].Value = ((string)(CodPlant)); - } - if ((KeyAMIL == null)) { - this.Adapter.InsertCommand.Parameters[39].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[39].Value = ((string)(KeyAMIL)); - } - if ((KgTeo.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[40].Value = ((decimal)(KgTeo.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[40].Value = global::System.DBNull.Value; - } - if ((NumSMED.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[41].Value = ((decimal)(NumSMED.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[41].Value = global::System.DBNull.Value; - } - if ((QuotaMan.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[42].Value = ((decimal)(QuotaMan.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[42].Value = global::System.DBNull.Value; - } - if ((PRMWeight.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[43].Value = ((decimal)(PRMWeight.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[43].Value = global::System.DBNull.Value; - } - if ((PWeight.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[44].Value = ((decimal)(PWeight.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[44].Value = global::System.DBNull.Value; - } - if ((PTare.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[45].Value = ((decimal)(PTare.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[45].Value = global::System.DBNull.Value; - } - if ((LivPackage == null)) { - this.Adapter.InsertCommand.Parameters[46].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[46].Value = ((string)(LivPackage)); - } - if ((LivPackageDett == null)) { - this.Adapter.InsertCommand.Parameters[47].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[47].Value = ((string)(LivPackageDett)); - } - this.Adapter.InsertCommand.Parameters[48].Value = ((decimal)(RawMatCost)); - this.Adapter.InsertCommand.Parameters[49].Value = ((decimal)(RawMatExtraCost)); - if ((RawMatFullCost.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[50].Value = ((decimal)(RawMatFullCost.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[50].Value = global::System.DBNull.Value; - } - if ((CodPackag == null)) { - throw new global::System.ArgumentNullException("CodPackag"); - } - else { - this.Adapter.InsertCommand.Parameters[51].Value = ((string)(CodPackag)); - } - if ((PkgDesc == null)) { - this.Adapter.InsertCommand.Parameters[52].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[52].Value = ((string)(PkgDesc)); - } - if ((FSR.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[53].Value = ((decimal)(FSR.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[53].Value = global::System.DBNull.Value; - } - this.Adapter.InsertCommand.Parameters[54].Value = ((decimal)(ProvvCost)); - this.Adapter.InsertCommand.Parameters[55].Value = ((decimal)(EECost)); - this.Adapter.InsertCommand.Parameters[56].Value = ((decimal)(GasCost)); - this.Adapter.InsertCommand.Parameters[57].Value = ((decimal)(DiesCost)); - this.Adapter.InsertCommand.Parameters[58].Value = ((decimal)(PackCost)); - this.Adapter.InsertCommand.Parameters[59].Value = ((decimal)(TranspCost)); - this.Adapter.InsertCommand.Parameters[60].Value = ((decimal)(SellCost01)); - this.Adapter.InsertCommand.Parameters[61].Value = ((decimal)(RefCost01)); - this.Adapter.InsertCommand.Parameters[62].Value = ((decimal)(SellCost04)); - this.Adapter.InsertCommand.Parameters[63].Value = ((decimal)(RefCost04)); - this.Adapter.InsertCommand.Parameters[64].Value = ((decimal)(WSR01_avg)); - this.Adapter.InsertCommand.Parameters[65].Value = ((decimal)(WSR01)); - this.Adapter.InsertCommand.Parameters[66].Value = ((decimal)(MSR01_avg)); - this.Adapter.InsertCommand.Parameters[67].Value = ((decimal)(MSR01)); - this.Adapter.InsertCommand.Parameters[68].Value = ((decimal)(NetProd01_avg)); - this.Adapter.InsertCommand.Parameters[69].Value = ((decimal)(NetProd01)); - this.Adapter.InsertCommand.Parameters[70].Value = ((decimal)(FC4UG01)); - this.Adapter.InsertCommand.Parameters[71].Value = ((decimal)(VC4UG01)); - this.Adapter.InsertCommand.Parameters[72].Value = ((decimal)(OH4UG01)); - this.Adapter.InsertCommand.Parameters[73].Value = ((decimal)(SC4UG01)); - this.Adapter.InsertCommand.Parameters[74].Value = ((decimal)(DSR_avg)); - if ((DSR.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[75].Value = ((decimal)(DSR.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[75].Value = global::System.DBNull.Value; - } - this.Adapter.InsertCommand.Parameters[76].Value = ((decimal)(NetProd04)); - this.Adapter.InsertCommand.Parameters[77].Value = ((decimal)(FC4UG04)); - this.Adapter.InsertCommand.Parameters[78].Value = ((decimal)(VC4UG04)); - if ((FVC.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[79].Value = ((decimal)(FVC.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[79].Value = global::System.DBNull.Value; - } - this.Adapter.InsertCommand.Parameters[80].Value = ((decimal)(Charge)); - this.Adapter.InsertCommand.Parameters[81].Value = ((bool)(valid)); - this.Adapter.InsertCommand.Parameters[82].Value = ((int)(errorScore)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string Vers, - string QuoteType, - long CodQuote, - int QuoteRev, - int IdxQState, - string CodClient, - string ClientName, - string CodItem, - string CodItemGroup, - string RawMat, - decimal UnitWeight, - int BatchQty, - string CodInco, - string TranspZone, - string KeyAM, - string Note, - decimal PriceOff, - string CodClientAssoc, - string ClientNameAssoc, - string ItemDescr, - string CodifProfilo, - string ClasseMerc, - string TipoDies, - string CodDiesGroup, - global::System.Nullable DiamDies, - global::System.Nullable HoleNumDies, - global::System.Nullable DiesPrice_avg, - decimal DiesPrice, - decimal SamplePrice, - decimal DiesPriceClientQuote, - global::System.Nullable DiesExpLife, - global::System.Nullable DiesEOLife, - decimal DiesTecLife, - decimal DiesCommLife, - int MonthSalesPrev, - global::System.Nullable DiesByClass, - global::System.Nullable NumDiesInList, - global::System.Nullable NumDiesExaust, - string CodPlant, - string KeyAMIL, - global::System.Nullable KgTeo, - global::System.Nullable NumSMED, - global::System.Nullable QuotaMan, - global::System.Nullable PRMWeight, - global::System.Nullable PWeight, - global::System.Nullable PTare, - string LivPackage, - string LivPackageDett, - decimal RawMatCost, - decimal RawMatExtraCost, - global::System.Nullable RawMatFullCost, - string CodPackag, - string PkgDesc, - global::System.Nullable FSR, - decimal ProvvCost, - decimal EECost, - decimal GasCost, - decimal DiesCost, - decimal PackCost, - decimal TranspCost, - decimal SellCost01, - decimal RefCost01, - decimal SellCost04, - decimal RefCost04, - decimal WSR01_avg, - decimal WSR01, - decimal MSR01_avg, - decimal MSR01, - decimal NetProd01_avg, - decimal NetProd01, - decimal FC4UG01, - decimal VC4UG01, - decimal OH4UG01, - decimal SC4UG01, - decimal DSR_avg, - global::System.Nullable DSR, - decimal NetProd04, - decimal FC4UG04, - decimal VC4UG04, - global::System.Nullable FVC, - decimal Charge, - bool valid, - int errorScore, - string Original_Vers, - string Original_QuoteType, - long Original_CodQuote, - int Original_QuoteRev, - int Original_IdxQState, - string Original_CodClient, - string Original_ClientName, - string Original_CodItem, - string Original_CodItemGroup, - string Original_RawMat, - decimal Original_UnitWeight, - int Original_BatchQty, - string Original_CodInco, - string Original_TranspZone, - string Original_KeyAM, - string Original_Note, - decimal Original_PriceOff, - string Original_CodClientAssoc, - string Original_ClientNameAssoc, - string Original_ItemDescr, - string Original_CodifProfilo, - string Original_ClasseMerc, - string Original_TipoDies, - string Original_CodDiesGroup, - global::System.Nullable Original_DiamDies, - global::System.Nullable Original_HoleNumDies, - global::System.Nullable Original_DiesPrice_avg, - decimal Original_DiesPrice, - decimal Original_SamplePrice, - global::System.Nullable Original_DiesFullCost, - decimal Original_DiesPriceClientQuote, - global::System.Nullable Original_DiesExpLife, - global::System.Nullable Original_DiesEOLife, - decimal Original_DiesTecLife, - decimal Original_DiesCommLife, - int Original_MonthSalesPrev, - global::System.Nullable Original_SalesPrevCost, - global::System.Nullable Original_DiesFinCost, - global::System.Nullable Original_ClientQuoteReven, - global::System.Nullable Original_ExtraDiscountDies, - global::System.Nullable Original_DiesByClass, - global::System.Nullable Original_NumDiesInList, - global::System.Nullable Original_NumDiesExaust, - string Original_CodPlant, - string Original_KeyAMIL, - global::System.Nullable Original_KgTeo, - global::System.Nullable Original_NumSMED, - global::System.Nullable Original_QuotaMan, - global::System.Nullable Original_PRMWeight, - global::System.Nullable Original_PWeight, - global::System.Nullable Original_PTare, - string Original_LivPackage, - string Original_LivPackageDett, - decimal Original_RawMatCost, - decimal Original_RawMatExtraCost, - global::System.Nullable Original_RawMatFullCost, - string Original_CodPackag, - string Original_PkgDesc, - global::System.Nullable Original_FSR, - decimal Original_ProvvCost, - decimal Original_EECost, - decimal Original_GasCost, - decimal Original_DiesCost, - decimal Original_PackCost, - decimal Original_TranspCost, - decimal Original_SellCost01, - decimal Original_RefCost01, - decimal Original_SellCost04, - decimal Original_RefCost04, - decimal Original_WSR01_avg, - decimal Original_WSR01, - decimal Original_MSR01_avg, - decimal Original_MSR01, - decimal Original_NetProd01_avg, - decimal Original_NetProd01, - decimal Original_FC4UG01, - decimal Original_VC4UG01, - decimal Original_OH4UG01, - decimal Original_SC4UG01, - decimal Original_DSR_avg, - global::System.Nullable Original_DSR, - decimal Original_NetProd04, - decimal Original_FC4UG04, - decimal Original_VC4UG04, - global::System.Nullable Original_FVC, - decimal Original_Charge, - bool Original_valid, - int Original_errorScore) { - if ((Vers == null)) { - throw new global::System.ArgumentNullException("Vers"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Vers)); - } - if ((QuoteType == null)) { - throw new global::System.ArgumentNullException("QuoteType"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(QuoteType)); - } - this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(CodQuote)); - this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(QuoteRev)); - this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdxQState)); - if ((CodClient == null)) { - throw new global::System.ArgumentNullException("CodClient"); - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodClient)); - } - if ((ClientName == null)) { - throw new global::System.ArgumentNullException("ClientName"); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(ClientName)); - } - if ((CodItem == null)) { - throw new global::System.ArgumentNullException("CodItem"); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(CodItem)); - } - if ((CodItemGroup == null)) { - throw new global::System.ArgumentNullException("CodItemGroup"); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(CodItemGroup)); - } - if ((RawMat == null)) { - throw new global::System.ArgumentNullException("RawMat"); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(RawMat)); - } - this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(UnitWeight)); - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(BatchQty)); - if ((CodInco == null)) { - throw new global::System.ArgumentNullException("CodInco"); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(CodInco)); - } - if ((TranspZone == null)) { - throw new global::System.ArgumentNullException("TranspZone"); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(TranspZone)); - } - if ((KeyAM == null)) { - throw new global::System.ArgumentNullException("KeyAM"); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(KeyAM)); - } - if ((Note == null)) { - throw new global::System.ArgumentNullException("Note"); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Note)); - } - this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(PriceOff)); - if ((CodClientAssoc == null)) { - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(CodClientAssoc)); - } - if ((ClientNameAssoc == null)) { - this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(ClientNameAssoc)); - } - if ((ItemDescr == null)) { - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(ItemDescr)); - } - if ((CodifProfilo == null)) { - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(CodifProfilo)); - } - if ((ClasseMerc == null)) { - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(ClasseMerc)); - } - if ((TipoDies == null)) { - this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(TipoDies)); - } - if ((CodDiesGroup == null)) { - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(CodDiesGroup)); - } - if ((DiamDies.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[24].Value = ((decimal)(DiamDies.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((HoleNumDies.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(HoleNumDies.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((DiesPrice_avg.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[26].Value = ((decimal)(DiesPrice_avg.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[27].Value = ((decimal)(DiesPrice)); - this.Adapter.UpdateCommand.Parameters[28].Value = ((decimal)(SamplePrice)); - this.Adapter.UpdateCommand.Parameters[29].Value = ((decimal)(DiesPriceClientQuote)); - if ((DiesExpLife.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[30].Value = ((decimal)(DiesExpLife.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; - } - if ((DiesEOLife.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[31].Value = ((decimal)(DiesEOLife.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[32].Value = ((decimal)(DiesTecLife)); - this.Adapter.UpdateCommand.Parameters[33].Value = ((decimal)(DiesCommLife)); - this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(MonthSalesPrev)); - if ((DiesByClass.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[35].Value = ((bool)(DiesByClass.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value; - } - if ((NumDiesInList.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[36].Value = ((decimal)(NumDiesInList.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; - } - if ((NumDiesExaust.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[37].Value = ((decimal)(NumDiesExaust.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value; - } - if ((CodPlant == null)) { - this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(CodPlant)); - } - if ((KeyAMIL == null)) { - this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(KeyAMIL)); - } - if ((KgTeo.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[40].Value = ((decimal)(KgTeo.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; - } - if ((NumSMED.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[41].Value = ((decimal)(NumSMED.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; - } - if ((QuotaMan.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[42].Value = ((decimal)(QuotaMan.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; - } - if ((PRMWeight.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[43].Value = ((decimal)(PRMWeight.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value; - } - if ((PWeight.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[44].Value = ((decimal)(PWeight.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value; - } - if ((PTare.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[45].Value = ((decimal)(PTare.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; - } - if ((LivPackage == null)) { - this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(LivPackage)); - } - if ((LivPackageDett == null)) { - this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(LivPackageDett)); - } - this.Adapter.UpdateCommand.Parameters[48].Value = ((decimal)(RawMatCost)); - this.Adapter.UpdateCommand.Parameters[49].Value = ((decimal)(RawMatExtraCost)); - if ((RawMatFullCost.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[50].Value = ((decimal)(RawMatFullCost.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; - } - if ((CodPackag == null)) { - throw new global::System.ArgumentNullException("CodPackag"); - } - else { - this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(CodPackag)); - } - if ((PkgDesc == null)) { - this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(PkgDesc)); - } - if ((FSR.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[53].Value = ((decimal)(FSR.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[54].Value = ((decimal)(ProvvCost)); - this.Adapter.UpdateCommand.Parameters[55].Value = ((decimal)(EECost)); - this.Adapter.UpdateCommand.Parameters[56].Value = ((decimal)(GasCost)); - this.Adapter.UpdateCommand.Parameters[57].Value = ((decimal)(DiesCost)); - this.Adapter.UpdateCommand.Parameters[58].Value = ((decimal)(PackCost)); - this.Adapter.UpdateCommand.Parameters[59].Value = ((decimal)(TranspCost)); - this.Adapter.UpdateCommand.Parameters[60].Value = ((decimal)(SellCost01)); - this.Adapter.UpdateCommand.Parameters[61].Value = ((decimal)(RefCost01)); - this.Adapter.UpdateCommand.Parameters[62].Value = ((decimal)(SellCost04)); - this.Adapter.UpdateCommand.Parameters[63].Value = ((decimal)(RefCost04)); - this.Adapter.UpdateCommand.Parameters[64].Value = ((decimal)(WSR01_avg)); - this.Adapter.UpdateCommand.Parameters[65].Value = ((decimal)(WSR01)); - this.Adapter.UpdateCommand.Parameters[66].Value = ((decimal)(MSR01_avg)); - this.Adapter.UpdateCommand.Parameters[67].Value = ((decimal)(MSR01)); - this.Adapter.UpdateCommand.Parameters[68].Value = ((decimal)(NetProd01_avg)); - this.Adapter.UpdateCommand.Parameters[69].Value = ((decimal)(NetProd01)); - this.Adapter.UpdateCommand.Parameters[70].Value = ((decimal)(FC4UG01)); - this.Adapter.UpdateCommand.Parameters[71].Value = ((decimal)(VC4UG01)); - this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(OH4UG01)); - this.Adapter.UpdateCommand.Parameters[73].Value = ((decimal)(SC4UG01)); - this.Adapter.UpdateCommand.Parameters[74].Value = ((decimal)(DSR_avg)); - if ((DSR.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[75].Value = ((decimal)(DSR.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[76].Value = ((decimal)(NetProd04)); - this.Adapter.UpdateCommand.Parameters[77].Value = ((decimal)(FC4UG04)); - this.Adapter.UpdateCommand.Parameters[78].Value = ((decimal)(VC4UG04)); - if ((FVC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[79].Value = ((decimal)(FVC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[79].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[80].Value = ((decimal)(Charge)); - this.Adapter.UpdateCommand.Parameters[81].Value = ((bool)(valid)); - this.Adapter.UpdateCommand.Parameters[82].Value = ((int)(errorScore)); - if ((Original_Vers == null)) { - throw new global::System.ArgumentNullException("Original_Vers"); - } - else { - this.Adapter.UpdateCommand.Parameters[83].Value = ((string)(Original_Vers)); - } - if ((Original_QuoteType == null)) { - throw new global::System.ArgumentNullException("Original_QuoteType"); - } - else { - this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_QuoteType)); - } - this.Adapter.UpdateCommand.Parameters[85].Value = ((long)(Original_CodQuote)); - this.Adapter.UpdateCommand.Parameters[86].Value = ((int)(Original_QuoteRev)); - this.Adapter.UpdateCommand.Parameters[87].Value = ((int)(Original_IdxQState)); - if ((Original_CodClient == null)) { - throw new global::System.ArgumentNullException("Original_CodClient"); - } - else { - this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_CodClient)); - } - if ((Original_ClientName == null)) { - throw new global::System.ArgumentNullException("Original_ClientName"); - } - else { - this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_ClientName)); - } - if ((Original_CodItem == null)) { - throw new global::System.ArgumentNullException("Original_CodItem"); - } - else { - this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_CodItem)); - } - if ((Original_CodItemGroup == null)) { - throw new global::System.ArgumentNullException("Original_CodItemGroup"); - } - else { - this.Adapter.UpdateCommand.Parameters[91].Value = ((string)(Original_CodItemGroup)); - } - if ((Original_RawMat == null)) { - throw new global::System.ArgumentNullException("Original_RawMat"); - } - else { - this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_RawMat)); - } - this.Adapter.UpdateCommand.Parameters[93].Value = ((decimal)(Original_UnitWeight)); - this.Adapter.UpdateCommand.Parameters[94].Value = ((int)(Original_BatchQty)); - if ((Original_CodInco == null)) { - throw new global::System.ArgumentNullException("Original_CodInco"); - } - else { - this.Adapter.UpdateCommand.Parameters[95].Value = ((string)(Original_CodInco)); - } - if ((Original_TranspZone == null)) { - throw new global::System.ArgumentNullException("Original_TranspZone"); - } - else { - this.Adapter.UpdateCommand.Parameters[96].Value = ((string)(Original_TranspZone)); - } - if ((Original_KeyAM == null)) { - throw new global::System.ArgumentNullException("Original_KeyAM"); - } - else { - this.Adapter.UpdateCommand.Parameters[97].Value = ((string)(Original_KeyAM)); - } - if ((Original_Note == null)) { - throw new global::System.ArgumentNullException("Original_Note"); - } - else { - this.Adapter.UpdateCommand.Parameters[98].Value = ((string)(Original_Note)); - } - this.Adapter.UpdateCommand.Parameters[99].Value = ((decimal)(Original_PriceOff)); - if ((Original_CodClientAssoc == null)) { - this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[101].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[101].Value = ((string)(Original_CodClientAssoc)); - } - if ((Original_ClientNameAssoc == null)) { - this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[103].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_ClientNameAssoc)); - } - if ((Original_ItemDescr == null)) { - this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[105].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_ItemDescr)); - } - if ((Original_CodifProfilo == null)) { - this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[107].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[107].Value = ((string)(Original_CodifProfilo)); - } - if ((Original_ClasseMerc == null)) { - this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[109].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[109].Value = ((string)(Original_ClasseMerc)); - } - if ((Original_TipoDies == null)) { - this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[111].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[111].Value = ((string)(Original_TipoDies)); - } - if ((Original_CodDiesGroup == null)) { - this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[113].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[113].Value = ((string)(Original_CodDiesGroup)); - } - if ((Original_DiamDies.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[115].Value = ((decimal)(Original_DiamDies.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[115].Value = global::System.DBNull.Value; - } - if ((Original_HoleNumDies.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[117].Value = ((int)(Original_HoleNumDies.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[117].Value = global::System.DBNull.Value; - } - if ((Original_DiesPrice_avg.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[119].Value = ((decimal)(Original_DiesPrice_avg.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[119].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[120].Value = ((decimal)(Original_DiesPrice)); - this.Adapter.UpdateCommand.Parameters[121].Value = ((decimal)(Original_SamplePrice)); - if ((Original_DiesFullCost.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[123].Value = ((decimal)(Original_DiesFullCost.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[123].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[124].Value = ((decimal)(Original_DiesPriceClientQuote)); - if ((Original_DiesExpLife.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[126].Value = ((decimal)(Original_DiesExpLife.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[126].Value = global::System.DBNull.Value; - } - if ((Original_DiesEOLife.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[128].Value = ((decimal)(Original_DiesEOLife.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[128].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[129].Value = ((decimal)(Original_DiesTecLife)); - this.Adapter.UpdateCommand.Parameters[130].Value = ((decimal)(Original_DiesCommLife)); - this.Adapter.UpdateCommand.Parameters[131].Value = ((int)(Original_MonthSalesPrev)); - if ((Original_SalesPrevCost.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[133].Value = ((decimal)(Original_SalesPrevCost.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[133].Value = global::System.DBNull.Value; - } - if ((Original_DiesFinCost.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[135].Value = ((decimal)(Original_DiesFinCost.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[134].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[135].Value = global::System.DBNull.Value; - } - if ((Original_ClientQuoteReven.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[137].Value = ((decimal)(Original_ClientQuoteReven.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[136].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[137].Value = global::System.DBNull.Value; - } - if ((Original_ExtraDiscountDies.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[139].Value = ((decimal)(Original_ExtraDiscountDies.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[138].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[139].Value = global::System.DBNull.Value; - } - if ((Original_DiesByClass.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[140].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[141].Value = ((bool)(Original_DiesByClass.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[140].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[141].Value = global::System.DBNull.Value; - } - if ((Original_NumDiesInList.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[142].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[143].Value = ((decimal)(Original_NumDiesInList.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[142].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[143].Value = global::System.DBNull.Value; - } - if ((Original_NumDiesExaust.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[144].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[145].Value = ((decimal)(Original_NumDiesExaust.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[144].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[145].Value = global::System.DBNull.Value; - } - if ((Original_CodPlant == null)) { - this.Adapter.UpdateCommand.Parameters[146].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[147].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[146].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[147].Value = ((string)(Original_CodPlant)); - } - if ((Original_KeyAMIL == null)) { - this.Adapter.UpdateCommand.Parameters[148].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[149].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[148].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[149].Value = ((string)(Original_KeyAMIL)); - } - if ((Original_KgTeo.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[150].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[151].Value = ((decimal)(Original_KgTeo.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[150].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[151].Value = global::System.DBNull.Value; - } - if ((Original_NumSMED.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[152].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[153].Value = ((decimal)(Original_NumSMED.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[152].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[153].Value = global::System.DBNull.Value; - } - if ((Original_QuotaMan.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[154].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[155].Value = ((decimal)(Original_QuotaMan.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[154].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[155].Value = global::System.DBNull.Value; - } - if ((Original_PRMWeight.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[156].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[157].Value = ((decimal)(Original_PRMWeight.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[156].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[157].Value = global::System.DBNull.Value; - } - if ((Original_PWeight.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[158].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[159].Value = ((decimal)(Original_PWeight.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[158].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[159].Value = global::System.DBNull.Value; - } - if ((Original_PTare.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[160].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[161].Value = ((decimal)(Original_PTare.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[160].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[161].Value = global::System.DBNull.Value; - } - if ((Original_LivPackage == null)) { - this.Adapter.UpdateCommand.Parameters[162].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[163].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[162].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[163].Value = ((string)(Original_LivPackage)); - } - if ((Original_LivPackageDett == null)) { - this.Adapter.UpdateCommand.Parameters[164].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[165].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[164].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[165].Value = ((string)(Original_LivPackageDett)); - } - this.Adapter.UpdateCommand.Parameters[166].Value = ((decimal)(Original_RawMatCost)); - this.Adapter.UpdateCommand.Parameters[167].Value = ((decimal)(Original_RawMatExtraCost)); - if ((Original_RawMatFullCost.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[168].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[169].Value = ((decimal)(Original_RawMatFullCost.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[168].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[169].Value = global::System.DBNull.Value; - } - if ((Original_CodPackag == null)) { - throw new global::System.ArgumentNullException("Original_CodPackag"); - } - else { - this.Adapter.UpdateCommand.Parameters[170].Value = ((string)(Original_CodPackag)); - } - if ((Original_PkgDesc == null)) { - this.Adapter.UpdateCommand.Parameters[171].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[172].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[171].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[172].Value = ((string)(Original_PkgDesc)); - } - if ((Original_FSR.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[173].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[174].Value = ((decimal)(Original_FSR.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[173].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[174].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[175].Value = ((decimal)(Original_ProvvCost)); - this.Adapter.UpdateCommand.Parameters[176].Value = ((decimal)(Original_EECost)); - this.Adapter.UpdateCommand.Parameters[177].Value = ((decimal)(Original_GasCost)); - this.Adapter.UpdateCommand.Parameters[178].Value = ((decimal)(Original_DiesCost)); - this.Adapter.UpdateCommand.Parameters[179].Value = ((decimal)(Original_PackCost)); - this.Adapter.UpdateCommand.Parameters[180].Value = ((decimal)(Original_TranspCost)); - this.Adapter.UpdateCommand.Parameters[181].Value = ((decimal)(Original_SellCost01)); - this.Adapter.UpdateCommand.Parameters[182].Value = ((decimal)(Original_RefCost01)); - this.Adapter.UpdateCommand.Parameters[183].Value = ((decimal)(Original_SellCost04)); - this.Adapter.UpdateCommand.Parameters[184].Value = ((decimal)(Original_RefCost04)); - this.Adapter.UpdateCommand.Parameters[185].Value = ((decimal)(Original_WSR01_avg)); - this.Adapter.UpdateCommand.Parameters[186].Value = ((decimal)(Original_WSR01)); - this.Adapter.UpdateCommand.Parameters[187].Value = ((decimal)(Original_MSR01_avg)); - this.Adapter.UpdateCommand.Parameters[188].Value = ((decimal)(Original_MSR01)); - this.Adapter.UpdateCommand.Parameters[189].Value = ((decimal)(Original_NetProd01_avg)); - this.Adapter.UpdateCommand.Parameters[190].Value = ((decimal)(Original_NetProd01)); - this.Adapter.UpdateCommand.Parameters[191].Value = ((decimal)(Original_FC4UG01)); - this.Adapter.UpdateCommand.Parameters[192].Value = ((decimal)(Original_VC4UG01)); - this.Adapter.UpdateCommand.Parameters[193].Value = ((decimal)(Original_OH4UG01)); - this.Adapter.UpdateCommand.Parameters[194].Value = ((decimal)(Original_SC4UG01)); - this.Adapter.UpdateCommand.Parameters[195].Value = ((decimal)(Original_DSR_avg)); - if ((Original_DSR.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[196].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[197].Value = ((decimal)(Original_DSR.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[196].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[197].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[198].Value = ((decimal)(Original_NetProd04)); - this.Adapter.UpdateCommand.Parameters[199].Value = ((decimal)(Original_FC4UG04)); - this.Adapter.UpdateCommand.Parameters[200].Value = ((decimal)(Original_VC4UG04)); - if ((Original_FVC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[201].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[202].Value = ((decimal)(Original_FVC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[201].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[202].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[203].Value = ((decimal)(Original_Charge)); - this.Adapter.UpdateCommand.Parameters[204].Value = ((bool)(Original_valid)); - this.Adapter.UpdateCommand.Parameters[205].Value = ((int)(Original_errorScore)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string Vers, - int IdxQState, - string CodClient, - string ClientName, - string CodItem, - string CodItemGroup, - string RawMat, - decimal UnitWeight, - int BatchQty, - string CodInco, - string TranspZone, - string KeyAM, - string Note, - decimal PriceOff, - string CodClientAssoc, - string ClientNameAssoc, - string ItemDescr, - string CodifProfilo, - string ClasseMerc, - string TipoDies, - string CodDiesGroup, - global::System.Nullable DiamDies, - global::System.Nullable HoleNumDies, - global::System.Nullable DiesPrice_avg, - decimal DiesPrice, - decimal SamplePrice, - decimal DiesPriceClientQuote, - global::System.Nullable DiesExpLife, - global::System.Nullable DiesEOLife, - decimal DiesTecLife, - decimal DiesCommLife, - int MonthSalesPrev, - global::System.Nullable DiesByClass, - global::System.Nullable NumDiesInList, - global::System.Nullable NumDiesExaust, - string CodPlant, - string KeyAMIL, - global::System.Nullable KgTeo, - global::System.Nullable NumSMED, - global::System.Nullable QuotaMan, - global::System.Nullable PRMWeight, - global::System.Nullable PWeight, - global::System.Nullable PTare, - string LivPackage, - string LivPackageDett, - decimal RawMatCost, - decimal RawMatExtraCost, - global::System.Nullable RawMatFullCost, - string CodPackag, - string PkgDesc, - global::System.Nullable FSR, - decimal ProvvCost, - decimal EECost, - decimal GasCost, - decimal DiesCost, - decimal PackCost, - decimal TranspCost, - decimal SellCost01, - decimal RefCost01, - decimal SellCost04, - decimal RefCost04, - decimal WSR01_avg, - decimal WSR01, - decimal MSR01_avg, - decimal MSR01, - decimal NetProd01_avg, - decimal NetProd01, - decimal FC4UG01, - decimal VC4UG01, - decimal OH4UG01, - decimal SC4UG01, - decimal DSR_avg, - global::System.Nullable DSR, - decimal NetProd04, - decimal FC4UG04, - decimal VC4UG04, - global::System.Nullable FVC, - decimal Charge, - bool valid, - int errorScore, - string Original_Vers, - string Original_QuoteType, - long Original_CodQuote, - int Original_QuoteRev, - int Original_IdxQState, - string Original_CodClient, - string Original_ClientName, - string Original_CodItem, - string Original_CodItemGroup, - string Original_RawMat, - decimal Original_UnitWeight, - int Original_BatchQty, - string Original_CodInco, - string Original_TranspZone, - string Original_KeyAM, - string Original_Note, - decimal Original_PriceOff, - string Original_CodClientAssoc, - string Original_ClientNameAssoc, - string Original_ItemDescr, - string Original_CodifProfilo, - string Original_ClasseMerc, - string Original_TipoDies, - string Original_CodDiesGroup, - global::System.Nullable Original_DiamDies, - global::System.Nullable Original_HoleNumDies, - global::System.Nullable Original_DiesPrice_avg, - decimal Original_DiesPrice, - decimal Original_SamplePrice, - global::System.Nullable Original_DiesFullCost, - decimal Original_DiesPriceClientQuote, - global::System.Nullable Original_DiesExpLife, - global::System.Nullable Original_DiesEOLife, - decimal Original_DiesTecLife, - decimal Original_DiesCommLife, - int Original_MonthSalesPrev, - global::System.Nullable Original_SalesPrevCost, - global::System.Nullable Original_DiesFinCost, - global::System.Nullable Original_ClientQuoteReven, - global::System.Nullable Original_ExtraDiscountDies, - global::System.Nullable Original_DiesByClass, - global::System.Nullable Original_NumDiesInList, - global::System.Nullable Original_NumDiesExaust, - string Original_CodPlant, - string Original_KeyAMIL, - global::System.Nullable Original_KgTeo, - global::System.Nullable Original_NumSMED, - global::System.Nullable Original_QuotaMan, - global::System.Nullable Original_PRMWeight, - global::System.Nullable Original_PWeight, - global::System.Nullable Original_PTare, - string Original_LivPackage, - string Original_LivPackageDett, - decimal Original_RawMatCost, - decimal Original_RawMatExtraCost, - global::System.Nullable Original_RawMatFullCost, - string Original_CodPackag, - string Original_PkgDesc, - global::System.Nullable Original_FSR, - decimal Original_ProvvCost, - decimal Original_EECost, - decimal Original_GasCost, - decimal Original_DiesCost, - decimal Original_PackCost, - decimal Original_TranspCost, - decimal Original_SellCost01, - decimal Original_RefCost01, - decimal Original_SellCost04, - decimal Original_RefCost04, - decimal Original_WSR01_avg, - decimal Original_WSR01, - decimal Original_MSR01_avg, - decimal Original_MSR01, - decimal Original_NetProd01_avg, - decimal Original_NetProd01, - decimal Original_FC4UG01, - decimal Original_VC4UG01, - decimal Original_OH4UG01, - decimal Original_SC4UG01, - decimal Original_DSR_avg, - global::System.Nullable Original_DSR, - decimal Original_NetProd04, - decimal Original_FC4UG04, - decimal Original_VC4UG04, - global::System.Nullable Original_FVC, - decimal Original_Charge, - bool Original_valid, - int Original_errorScore) { - return this.Update(Vers, Original_QuoteType, Original_CodQuote, Original_QuoteRev, IdxQState, CodClient, ClientName, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, TranspZone, KeyAM, Note, PriceOff, CodClientAssoc, ClientNameAssoc, ItemDescr, CodifProfilo, ClasseMerc, TipoDies, CodDiesGroup, DiamDies, HoleNumDies, DiesPrice_avg, DiesPrice, SamplePrice, DiesPriceClientQuote, DiesExpLife, DiesEOLife, DiesTecLife, DiesCommLife, MonthSalesPrev, DiesByClass, NumDiesInList, NumDiesExaust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaMan, PRMWeight, PWeight, PTare, LivPackage, LivPackageDett, RawMatCost, RawMatExtraCost, RawMatFullCost, CodPackag, PkgDesc, FSR, ProvvCost, EECost, GasCost, DiesCost, PackCost, TranspCost, SellCost01, RefCost01, SellCost04, RefCost04, WSR01_avg, WSR01, MSR01_avg, MSR01, NetProd01_avg, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, DSR_avg, DSR, NetProd04, FC4UG04, VC4UG04, FVC, Charge, valid, errorScore, Original_Vers, Original_QuoteType, Original_CodQuote, Original_QuoteRev, Original_IdxQState, Original_CodClient, Original_ClientName, Original_CodItem, Original_CodItemGroup, Original_RawMat, Original_UnitWeight, Original_BatchQty, Original_CodInco, Original_TranspZone, Original_KeyAM, Original_Note, Original_PriceOff, Original_CodClientAssoc, Original_ClientNameAssoc, Original_ItemDescr, Original_CodifProfilo, Original_ClasseMerc, Original_TipoDies, Original_CodDiesGroup, Original_DiamDies, Original_HoleNumDies, Original_DiesPrice_avg, Original_DiesPrice, Original_SamplePrice, Original_DiesFullCost, Original_DiesPriceClientQuote, Original_DiesExpLife, Original_DiesEOLife, Original_DiesTecLife, Original_DiesCommLife, Original_MonthSalesPrev, Original_SalesPrevCost, Original_DiesFinCost, Original_ClientQuoteReven, Original_ExtraDiscountDies, Original_DiesByClass, Original_NumDiesInList, Original_NumDiesExaust, Original_CodPlant, Original_KeyAMIL, Original_KgTeo, Original_NumSMED, Original_QuotaMan, Original_PRMWeight, Original_PWeight, Original_PTare, Original_LivPackage, Original_LivPackageDett, Original_RawMatCost, Original_RawMatExtraCost, Original_RawMatFullCost, Original_CodPackag, Original_PkgDesc, Original_FSR, Original_ProvvCost, Original_EECost, Original_GasCost, Original_DiesCost, Original_PackCost, Original_TranspCost, Original_SellCost01, Original_RefCost01, Original_SellCost04, Original_RefCost04, Original_WSR01_avg, Original_WSR01, Original_MSR01_avg, Original_MSR01, Original_NetProd01_avg, Original_NetProd01, Original_FC4UG01, Original_VC4UG01, Original_OH4UG01, Original_SC4UG01, Original_DSR_avg, Original_DSR, Original_NetProd04, Original_FC4UG04, Original_VC4UG04, Original_FVC, Original_Charge, Original_valid, Original_errorScore); - } } /// @@ -22782,8 +19478,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer private UpdateOrderOption _updateOrder; - private QuoteListTableAdapter _quoteListTableAdapter; - private QuoteRMTableAdapter _quoteRMTableAdapter; private QuoteWorkExtTableAdapter _quoteWorkExtTableAdapter; @@ -22794,8 +19488,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer private QuoteOCTableAdapter _quoteOCTableAdapter; - private QuoteFull_STableAdapter _quoteFull_STableAdapter; - private RawMatDetTableAdapter _rawMatDetTableAdapter; private bool _backupDataSetBeforeUpdate; @@ -22813,20 +19505,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public QuoteListTableAdapter QuoteListTableAdapter { - get { - return this._quoteListTableAdapter; - } - set { - this._quoteListTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + @@ -22897,20 +19575,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public QuoteFull_STableAdapter QuoteFull_STableAdapter { - get { - return this._quoteFull_STableAdapter; - } - set { - this._quoteFull_STableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + @@ -22944,10 +19608,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer if ((this._connection != null)) { return this._connection; } - if (((this._quoteListTableAdapter != null) - && (this._quoteListTableAdapter.Connection != null))) { - return this._quoteListTableAdapter.Connection; - } if (((this._quoteRMTableAdapter != null) && (this._quoteRMTableAdapter.Connection != null))) { return this._quoteRMTableAdapter.Connection; @@ -22968,10 +19628,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer && (this._quoteOCTableAdapter.Connection != null))) { return this._quoteOCTableAdapter.Connection; } - if (((this._quoteFull_STableAdapter != null) - && (this._quoteFull_STableAdapter.Connection != null))) { - return this._quoteFull_STableAdapter.Connection; - } if (((this._rawMatDetTableAdapter != null) && (this._rawMatDetTableAdapter.Connection != null))) { return this._rawMatDetTableAdapter.Connection; @@ -22989,9 +19645,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer public int TableAdapterInstanceCount { get { int count = 0; - if ((this._quoteListTableAdapter != null)) { - count = (count + 1); - } if ((this._quoteRMTableAdapter != null)) { count = (count + 1); } @@ -23007,9 +19660,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer if ((this._quoteOCTableAdapter != null)) { count = (count + 1); } - if ((this._quoteFull_STableAdapter != null)) { - count = (count + 1); - } if ((this._rawMatDetTableAdapter != null)) { count = (count + 1); } @@ -23024,15 +19674,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateUpdatedRows(DS_Quotes dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._quoteListTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.QuoteList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._quoteListTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._quoteRMTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -23078,15 +19719,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer allChangedRows.AddRange(updatedRows); } } - if ((this._quoteFull_STableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.QuoteFull_S.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._quoteFull_STableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._rawMatDetTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.RawMatDet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -23106,14 +19738,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateInsertedRows(DS_Quotes dataSet, global::System.Collections.Generic.List allAddedRows) { int result = 0; - if ((this._quoteListTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.QuoteList.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._quoteListTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._quoteRMTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.QuoteRM.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -23154,14 +19778,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer allAddedRows.AddRange(addedRows); } } - if ((this._quoteFull_STableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.QuoteFull_S.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._quoteFull_STableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._rawMatDetTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.RawMatDet.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -23188,14 +19804,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer allChangedRows.AddRange(deletedRows); } } - if ((this._quoteFull_STableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.QuoteFull_S.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._quoteFull_STableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._quoteOCTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.QuoteOC.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -23236,14 +19844,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer allChangedRows.AddRange(deletedRows); } } - if ((this._quoteListTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.QuoteList.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._quoteListTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } return result; } @@ -23283,11 +19883,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer if ((dataSet.HasChanges() == false)) { return 0; } - if (((this._quoteListTableAdapter != null) - && (this.MatchTableAdapterConnection(this._quoteListTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + - "tring."); - } if (((this._quoteRMTableAdapter != null) && (this.MatchTableAdapterConnection(this._quoteRMTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + @@ -23313,11 +19908,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._quoteFull_STableAdapter != null) - && (this.MatchTableAdapterConnection(this._quoteFull_STableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + - "tring."); - } if (((this._rawMatDetTableAdapter != null) && (this.MatchTableAdapterConnection(this._rawMatDetTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + @@ -23355,15 +19945,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer try { // ---- Prepare for update ----------- // - if ((this._quoteListTableAdapter != null)) { - revertConnections.Add(this._quoteListTableAdapter, this._quoteListTableAdapter.Connection); - this._quoteListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._quoteListTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._quoteListTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._quoteListTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._quoteListTableAdapter.Adapter); - } - } if ((this._quoteRMTableAdapter != null)) { revertConnections.Add(this._quoteRMTableAdapter, this._quoteRMTableAdapter.Connection); this._quoteRMTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -23409,15 +19990,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer adaptersWithAcceptChangesDuringUpdate.Add(this._quoteOCTableAdapter.Adapter); } } - if ((this._quoteFull_STableAdapter != null)) { - revertConnections.Add(this._quoteFull_STableAdapter, this._quoteFull_STableAdapter.Connection); - this._quoteFull_STableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._quoteFull_STableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._quoteFull_STableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._quoteFull_STableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._quoteFull_STableAdapter.Adapter); - } - } if ((this._rawMatDetTableAdapter != null)) { revertConnections.Add(this._rawMatDetTableAdapter, this._rawMatDetTableAdapter.Connection); this._rawMatDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -23485,10 +20057,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer if (workConnOpened) { workConnection.Close(); } - if ((this._quoteListTableAdapter != null)) { - this._quoteListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._quoteListTableAdapter])); - this._quoteListTableAdapter.Transaction = null; - } if ((this._quoteRMTableAdapter != null)) { this._quoteRMTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._quoteRMTableAdapter])); this._quoteRMTableAdapter.Transaction = null; @@ -23509,10 +20077,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer this._quoteOCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._quoteOCTableAdapter])); this._quoteOCTableAdapter.Transaction = null; } - if ((this._quoteFull_STableAdapter != null)) { - this._quoteFull_STableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._quoteFull_STableAdapter])); - this._quoteFull_STableAdapter.Transaction = null; - } if ((this._rawMatDetTableAdapter != null)) { this._rawMatDetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rawMatDetTableAdapter])); this._rawMatDetTableAdapter.Transaction = null; diff --git a/C2P_Data/DS_Quotes.xsd b/C2P_Data/DS_Quotes.xsd index e0b46f6..31012bc 100644 --- a/C2P_Data/DS_Quotes.xsd +++ b/C2P_Data/DS_Quotes.xsd @@ -9,142 +9,25 @@ - - - - DELETE FROM [dbo].[QuoteList] WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) AND ([IdxQState] = @Original_IdxQState) AND ([CodClient] = @Original_CodClient) AND ([CodItem] = @Original_CodItem) AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawMat] = @Original_RawMat) AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty] = @Original_BatchQty) AND ([CodInco] = @Original_CodInco) AND ([KeyAM] = @Original_KeyAM) AND ([Note] = @Original_Note) AND ([PriceOff] = @Original_PriceOff) AND ((@IsNull_OrdDate = 1 AND [OrdDate] IS NULL) OR ([OrdDate] = @Original_OrdDate)) AND ([OrdNum] = @Original_OrdNum) AND ([OrdRow] = @Original_OrdRow) AND ([OrdPrice] = @Original_OrdPrice) AND ([OrdQty] = @Original_OrdQty) AND ([valid] = @Original_valid) AND ([errorScore] = @Original_errorScore) AND ([UserCreaz] = @Original_UserCreaz) AND ([DataCreaz] = @Original_DataCreaz) AND ([UserMod] = @Original_UserMod) AND ([DataMod] = @Original_DataMod)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev], [IdxQState], [CodClient], [CodItem], [CodItemGroup], [RawMat], [UnitWeight], [BatchQty], [CodInco], [Note], [PriceOff], [OrdDate], [OrdNum], [OrdRow], [OrdPrice], [OrdQty], [valid], [errorScore], [UserCreaz], [DataCreaz], [UserMod], [DataMod]) VALUES (@QuoteType, @CodQuote, @QuoteRev, @IdxQState, @CodClient, @CodItem, @CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @Note, @PriceOff, @OrdDate, @OrdNum, @OrdRow, @OrdPrice, @OrdQty, @valid, @errorScore, @UserCreaz, @DataCreaz, @UserMod, @DataMod); -SELECT QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice, OrdQty, valid, errorScore, UserCreaz, DataCreaz, UserMod, DataMod FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType) - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - SELECT * FROM dbo.QuoteList + SELECT * +FROM QuoteList - - - UPDATE [dbo].[QuoteList] SET [QuoteType] = @QuoteType, [CodQuote] = @CodQuote, [QuoteRev] = @QuoteRev, [IdxQState] = @IdxQState, [CodClient] = @CodClient, [CodItem] = @CodItem, [CodItemGroup] = @CodItemGroup, [RawMat] = @RawMat, [UnitWeight] = @UnitWeight, [BatchQty] = @BatchQty, [CodInco] = @CodInco, [Note] = @Note, [PriceOff] = @PriceOff, [OrdDate] = @OrdDate, [OrdNum] = @OrdNum, [OrdRow] = @OrdRow, [OrdPrice] = @OrdPrice, [OrdQty] = @OrdQty, [valid] = @valid, [errorScore] = @errorScore, [UserCreaz] = @UserCreaz, [DataCreaz] = @DataCreaz, [UserMod] = @UserMod, [DataMod] = @DataMod WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) AND ([IdxQState] = @Original_IdxQState) AND ([CodClient] = @Original_CodClient) AND ([CodItem] = @Original_CodItem) AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawMat] = @Original_RawMat) AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty] = @Original_BatchQty) AND ([CodInco] = @Original_CodInco) AND ([KeyAM] = @Original_KeyAM) AND ([Note] = @Original_Note) AND ([PriceOff] = @Original_PriceOff) AND ((@IsNull_OrdDate = 1 AND [OrdDate] IS NULL) OR ([OrdDate] = @Original_OrdDate)) AND ([OrdNum] = @Original_OrdNum) AND ([OrdRow] = @Original_OrdRow) AND ([OrdPrice] = @Original_OrdPrice) AND ([OrdQty] = @Original_OrdQty) AND ([valid] = @Original_valid) AND ([errorScore] = @Original_errorScore) AND ([UserCreaz] = @Original_UserCreaz) AND ([DataCreaz] = @Original_DataCreaz) AND ([UserMod] = @Original_UserMod) AND ([DataMod] = @Original_DataMod)); -SELECT QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice, OrdQty, valid, errorScore, UserCreaz, DataCreaz, UserMod, DataMod FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -159,7 +42,6 @@ SELECT QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, CodItem, CodItemGrou - @@ -822,6 +704,11 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas + + + + + @@ -830,6 +717,7 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas + @@ -845,11 +733,13 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas + + @@ -897,11 +787,8 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas - - - @@ -916,13 +803,12 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas + - - @@ -1152,6 +1038,9 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas + + + @@ -1176,6 +1065,9 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas + + + @@ -1215,448 +1107,13 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas - - - - DELETE FROM [dbo].[QuoteFull_S] WHERE (([Vers] = @Original_Vers) AND ([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) AND ([IdxQState] = @Original_IdxQState) AND ([CodClient] = @Original_CodClient) AND ([ClientName] = @Original_ClientName) AND ([CodItem] = @Original_CodItem) AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawMat] = @Original_RawMat) AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty] = @Original_BatchQty) AND ([CodInco] = @Original_CodInco) AND ([TranspZone] = @Original_TranspZone) AND ([KeyAM] = @Original_KeyAM) AND ([Note] = @Original_Note) AND ([PriceOff] = @Original_PriceOff) AND ((@IsNull_CodClientAssoc = 1 AND [CodClientAssoc] IS NULL) OR ([CodClientAssoc] = @Original_CodClientAssoc)) AND ((@IsNull_ClientNameAssoc = 1 AND [ClientNameAssoc] IS NULL) OR ([ClientNameAssoc] = @Original_ClientNameAssoc)) AND ((@IsNull_ItemDescr = 1 AND [ItemDescr] IS NULL) OR ([ItemDescr] = @Original_ItemDescr)) AND ((@IsNull_CodifProfilo = 1 AND [CodifProfilo] IS NULL) OR ([CodifProfilo] = @Original_CodifProfilo)) AND ((@IsNull_ClasseMerc = 1 AND [ClasseMerc] IS NULL) OR ([ClasseMerc] = @Original_ClasseMerc)) AND ((@IsNull_TipoDies = 1 AND [TipoDies] IS NULL) OR ([TipoDies] = @Original_TipoDies)) AND ((@IsNull_CodDiesGroup = 1 AND [CodDiesGroup] IS NULL) OR ([CodDiesGroup] = @Original_CodDiesGroup)) AND ((@IsNull_DiamDies = 1 AND [DiamDies] IS NULL) OR ([DiamDies] = @Original_DiamDies)) AND ((@IsNull_HoleNumDies = 1 AND [HoleNumDies] IS NULL) OR ([HoleNumDies] = @Original_HoleNumDies)) AND ((@IsNull_DiesPrice_avg = 1 AND [DiesPrice_avg] IS NULL) OR ([DiesPrice_avg] = @Original_DiesPrice_avg)) AND ([DiesPrice] = @Original_DiesPrice) AND ([SamplePrice] = @Original_SamplePrice) AND ((@IsNull_DiesFullCost = 1 AND [DiesFullCost] IS NULL) OR ([DiesFullCost] = @Original_DiesFullCost)) AND ([DiesPriceClientQuote] = @Original_DiesPriceClientQuote) AND ((@IsNull_DiesExpLife = 1 AND [DiesExpLife] IS NULL) OR ([DiesExpLife] = @Original_DiesExpLife)) AND ((@IsNull_DiesEOLife = 1 AND [DiesEOLife] IS NULL) OR ([DiesEOLife] = @Original_DiesEOLife)) AND ([DiesTecLife] = @Original_DiesTecLife) AND ([DiesCommLife] = @Original_DiesCommLife) AND ([MonthSalesPrev] = @Original_MonthSalesPrev) AND ((@IsNull_SalesPrevCost = 1 AND [SalesPrevCost] IS NULL) OR ([SalesPrevCost] = @Original_SalesPrevCost)) AND ((@IsNull_DiesFinCost = 1 AND [DiesFinCost] IS NULL) OR ([DiesFinCost] = @Original_DiesFinCost)) AND ((@IsNull_ClientQuoteReven = 1 AND [ClientQuoteReven] IS NULL) OR ([ClientQuoteReven] = @Original_ClientQuoteReven)) AND ((@IsNull_ExtraDiscountDies = 1 AND [ExtraDiscountDies] IS NULL) OR ([ExtraDiscountDies] = @Original_ExtraDiscountDies)) AND ((@IsNull_DiesByClass = 1 AND [DiesByClass] IS NULL) OR ([DiesByClass] = @Original_DiesByClass)) AND ((@IsNull_NumDiesInList = 1 AND [NumDiesInList] IS NULL) OR ([NumDiesInList] = @Original_NumDiesInList)) AND ((@IsNull_NumDiesExaust = 1 AND [NumDiesExaust] IS NULL) OR ([NumDiesExaust] = @Original_NumDiesExaust)) AND ((@IsNull_CodPlant = 1 AND [CodPlant] IS NULL) OR ([CodPlant] = @Original_CodPlant)) AND ((@IsNull_KeyAMIL = 1 AND [KeyAMIL] IS NULL) OR ([KeyAMIL] = @Original_KeyAMIL)) AND ((@IsNull_KgTeo = 1 AND [KgTeo] IS NULL) OR ([KgTeo] = @Original_KgTeo)) AND ((@IsNull_NumSMED = 1 AND [NumSMED] IS NULL) OR ([NumSMED] = @Original_NumSMED)) AND ((@IsNull_QuotaMan = 1 AND [QuotaMan] IS NULL) OR ([QuotaMan] = @Original_QuotaMan)) AND ((@IsNull_PRMWeight = 1 AND [PRMWeight] IS NULL) OR ([PRMWeight] = @Original_PRMWeight)) AND ((@IsNull_PWeight = 1 AND [PWeight] IS NULL) OR ([PWeight] = @Original_PWeight)) AND ((@IsNull_PTare = 1 AND [PTare] IS NULL) OR ([PTare] = @Original_PTare)) AND ((@IsNull_LivPackage = 1 AND [LivPackage] IS NULL) OR ([LivPackage] = @Original_LivPackage)) AND ((@IsNull_LivPackageDett = 1 AND [LivPackageDett] IS NULL) OR ([LivPackageDett] = @Original_LivPackageDett)) AND ([RawMatCost] = @Original_RawMatCost) AND ([RawMatExtraCost] = @Original_RawMatExtraCost) AND ((@IsNull_RawMatFullCost = 1 AND [RawMatFullCost] IS NULL) OR ([RawMatFullCost] = @Original_RawMatFullCost)) AND ([CodPackag] = @Original_CodPackag) AND ((@IsNull_PkgDesc = 1 AND [PkgDesc] IS NULL) OR ([PkgDesc] = @Original_PkgDesc)) AND ((@IsNull_FSR = 1 AND [FSR] IS NULL) OR ([FSR] = @Original_FSR)) AND ([ProvvCost] = @Original_ProvvCost) AND ([EECost] = @Original_EECost) AND ([GasCost] = @Original_GasCost) AND ([DiesCost] = @Original_DiesCost) AND ([PackCost] = @Original_PackCost) AND ([TranspCost] = @Original_TranspCost) AND ([SellCost01] = @Original_SellCost01) AND ([RefCost01] = @Original_RefCost01) AND ([SellCost04] = @Original_SellCost04) AND ([RefCost04] = @Original_RefCost04) AND ([WSR01_avg] = @Original_WSR01_avg) AND ([WSR01] = @Original_WSR01) AND ([MSR01_avg] = @Original_MSR01_avg) AND ([MSR01] = @Original_MSR01) AND ([NetProd01_avg] = @Original_NetProd01_avg) AND ([NetProd01] = @Original_NetProd01) AND ([FC4UG01] = @Original_FC4UG01) AND ([VC4UG01] = @Original_VC4UG01) AND ([OH4UG01] = @Original_OH4UG01) AND ([SC4UG01] = @Original_SC4UG01) AND ([DSR_avg] = @Original_DSR_avg) AND ((@IsNull_DSR = 1 AND [DSR] IS NULL) OR ([DSR] = @Original_DSR)) AND ([NetProd04] = @Original_NetProd04) AND ([FC4UG04] = @Original_FC4UG04) AND ([VC4UG04] = @Original_VC4UG04) AND ((@IsNull_FVC = 1 AND [FVC] IS NULL) OR ([FVC] = @Original_FVC)) AND ([Charge] = @Original_Charge) AND ([valid] = @Original_valid) AND ([errorScore] = @Original_errorScore)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[QuoteFull_S] ([Vers], [QuoteType], [CodQuote], [QuoteRev], [IdxQState], [CodClient], [ClientName], [CodItem], [CodItemGroup], [RawMat], [UnitWeight], [BatchQty], [CodInco], [TranspZone], [KeyAM], [Note], [PriceOff], [CodClientAssoc], [ClientNameAssoc], [ItemDescr], [CodifProfilo], [ClasseMerc], [TipoDies], [CodDiesGroup], [DiamDies], [HoleNumDies], [DiesPrice_avg], [DiesPrice], [SamplePrice], [DiesPriceClientQuote], [DiesExpLife], [DiesEOLife], [DiesTecLife], [DiesCommLife], [MonthSalesPrev], [DiesByClass], [NumDiesInList], [NumDiesExaust], [CodPlant], [KeyAMIL], [KgTeo], [NumSMED], [QuotaMan], [PRMWeight], [PWeight], [PTare], [LivPackage], [LivPackageDett], [RawMatCost], [RawMatExtraCost], [RawMatFullCost], [CodPackag], [PkgDesc], [FSR], [ProvvCost], [EECost], [GasCost], [DiesCost], [PackCost], [TranspCost], [SellCost01], [RefCost01], [SellCost04], [RefCost04], [WSR01_avg], [WSR01], [MSR01_avg], [MSR01], [NetProd01_avg], [NetProd01], [FC4UG01], [VC4UG01], [OH4UG01], [SC4UG01], [DSR_avg], [DSR], [NetProd04], [FC4UG04], [VC4UG04], [FVC], [Charge], [valid], [errorScore]) VALUES (@Vers, @QuoteType, @CodQuote, @QuoteRev, @IdxQState, @CodClient, @ClientName, @CodItem, @CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @TranspZone, @KeyAM, @Note, @PriceOff, @CodClientAssoc, @ClientNameAssoc, @ItemDescr, @CodifProfilo, @ClasseMerc, @TipoDies, @CodDiesGroup, @DiamDies, @HoleNumDies, @DiesPrice_avg, @DiesPrice, @SamplePrice, @DiesPriceClientQuote, @DiesExpLife, @DiesEOLife, @DiesTecLife, @DiesCommLife, @MonthSalesPrev, @DiesByClass, @NumDiesInList, @NumDiesExaust, @CodPlant, @KeyAMIL, @KgTeo, @NumSMED, @QuotaMan, @PRMWeight, @PWeight, @PTare, @LivPackage, @LivPackageDett, @RawMatCost, @RawMatExtraCost, @RawMatFullCost, @CodPackag, @PkgDesc, @FSR, @ProvvCost, @EECost, @GasCost, @DiesCost, @PackCost, @TranspCost, @SellCost01, @RefCost01, @SellCost04, @RefCost04, @WSR01_avg, @WSR01, @MSR01_avg, @MSR01, @NetProd01_avg, @NetProd01, @FC4UG01, @VC4UG01, @OH4UG01, @SC4UG01, @DSR_avg, @DSR, @NetProd04, @FC4UG04, @VC4UG04, @FVC, @Charge, @valid, @errorScore); -SELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, ClientName, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, TranspZone, KeyAM, Note, PriceOff, CodClientAssoc, ClientNameAssoc, ItemDescr, CodifProfilo, ClasseMerc, TipoDies, CodDiesGroup, DiamDies, HoleNumDies, DiesPrice_avg, DiesPrice, SamplePrice, DiesFullCost, DiesPriceClientQuote, DiesExpLife, DiesEOLife, DiesTecLife, DiesCommLife, MonthSalesPrev, SalesPrevCost, DiesFinCost, ClientQuoteReven, ExtraDiscountDies, DiesByClass, NumDiesInList, NumDiesExaust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaMan, PRMWeight, PWeight, PTare, LivPackage, LivPackageDett, RawMatCost, RawMatExtraCost, RawMatFullCost, CodPackag, PkgDesc, FSR, ProvvCost, EECost, GasCost, DiesCost, PackCost, TranspCost, SellCost01, RefCost01, SellCost04, RefCost04, WSR01_avg, WSR01, MSR01_avg, MSR01, NetProd01_avg, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, DSR_avg, DSR, NetProd04, FC4UG04, VC4UG04, FVC, Charge, valid, errorScore FROM QuoteFull_S WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - SELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, ClientName, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, TranspZone, KeyAM, Note, PriceOff, CodClientAssoc, ClientNameAssoc, ItemDescr, CodifProfilo, ClasseMerc, TipoDies, CodDiesGroup, DiamDies, HoleNumDies, DiesPrice_avg, DiesPrice, SamplePrice, DiesFullCost, DiesPriceClientQuote, DiesExpLife, DiesEOLife, DiesTecLife, DiesCommLife, MonthSalesPrev, SalesPrevCost, DiesFinCost, ClientQuoteReven, ExtraDiscountDies, DiesByClass, NumDiesInList, NumDiesExaust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaMan, PRMWeight, PWeight, PTare, LivPackage, LivPackageDett, RawMatCost, RawMatExtraCost, RawMatFullCost, CodPackag, PkgDesc, FSR, ProvvCost, EECost, GasCost, DiesCost, PackCost, TranspCost, SellCost01, RefCost01, SellCost04, RefCost04, WSR01_avg, WSR01, MSR01_avg, MSR01, NetProd01_avg, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, DSR_avg, DSR, NetProd04, FC4UG04, VC4UG04, FVC, Charge, valid, errorScore FROM dbo.QuoteFull_S + + SELECT * FROM QuoteFull_S - - - UPDATE [dbo].[QuoteFull_S] SET [Vers] = @Vers, [QuoteType] = @QuoteType, [CodQuote] = @CodQuote, [QuoteRev] = @QuoteRev, [IdxQState] = @IdxQState, [CodClient] = @CodClient, [ClientName] = @ClientName, [CodItem] = @CodItem, [CodItemGroup] = @CodItemGroup, [RawMat] = @RawMat, [UnitWeight] = @UnitWeight, [BatchQty] = @BatchQty, [CodInco] = @CodInco, [TranspZone] = @TranspZone, [KeyAM] = @KeyAM, [Note] = @Note, [PriceOff] = @PriceOff, [CodClientAssoc] = @CodClientAssoc, [ClientNameAssoc] = @ClientNameAssoc, [ItemDescr] = @ItemDescr, [CodifProfilo] = @CodifProfilo, [ClasseMerc] = @ClasseMerc, [TipoDies] = @TipoDies, [CodDiesGroup] = @CodDiesGroup, [DiamDies] = @DiamDies, [HoleNumDies] = @HoleNumDies, [DiesPrice_avg] = @DiesPrice_avg, [DiesPrice] = @DiesPrice, [SamplePrice] = @SamplePrice, [DiesPriceClientQuote] = @DiesPriceClientQuote, [DiesExpLife] = @DiesExpLife, [DiesEOLife] = @DiesEOLife, [DiesTecLife] = @DiesTecLife, [DiesCommLife] = @DiesCommLife, [MonthSalesPrev] = @MonthSalesPrev, [DiesByClass] = @DiesByClass, [NumDiesInList] = @NumDiesInList, [NumDiesExaust] = @NumDiesExaust, [CodPlant] = @CodPlant, [KeyAMIL] = @KeyAMIL, [KgTeo] = @KgTeo, [NumSMED] = @NumSMED, [QuotaMan] = @QuotaMan, [PRMWeight] = @PRMWeight, [PWeight] = @PWeight, [PTare] = @PTare, [LivPackage] = @LivPackage, [LivPackageDett] = @LivPackageDett, [RawMatCost] = @RawMatCost, [RawMatExtraCost] = @RawMatExtraCost, [RawMatFullCost] = @RawMatFullCost, [CodPackag] = @CodPackag, [PkgDesc] = @PkgDesc, [FSR] = @FSR, [ProvvCost] = @ProvvCost, [EECost] = @EECost, [GasCost] = @GasCost, [DiesCost] = @DiesCost, [PackCost] = @PackCost, [TranspCost] = @TranspCost, [SellCost01] = @SellCost01, [RefCost01] = @RefCost01, [SellCost04] = @SellCost04, [RefCost04] = @RefCost04, [WSR01_avg] = @WSR01_avg, [WSR01] = @WSR01, [MSR01_avg] = @MSR01_avg, [MSR01] = @MSR01, [NetProd01_avg] = @NetProd01_avg, [NetProd01] = @NetProd01, [FC4UG01] = @FC4UG01, [VC4UG01] = @VC4UG01, [OH4UG01] = @OH4UG01, [SC4UG01] = @SC4UG01, [DSR_avg] = @DSR_avg, [DSR] = @DSR, [NetProd04] = @NetProd04, [FC4UG04] = @FC4UG04, [VC4UG04] = @VC4UG04, [FVC] = @FVC, [Charge] = @Charge, [valid] = @valid, [errorScore] = @errorScore WHERE (([Vers] = @Original_Vers) AND ([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) AND ([IdxQState] = @Original_IdxQState) AND ([CodClient] = @Original_CodClient) AND ([ClientName] = @Original_ClientName) AND ([CodItem] = @Original_CodItem) AND ([CodItemGroup] = @Original_CodItemGroup) AND ([RawMat] = @Original_RawMat) AND ([UnitWeight] = @Original_UnitWeight) AND ([BatchQty] = @Original_BatchQty) AND ([CodInco] = @Original_CodInco) AND ([TranspZone] = @Original_TranspZone) AND ([KeyAM] = @Original_KeyAM) AND ([Note] = @Original_Note) AND ([PriceOff] = @Original_PriceOff) AND ((@IsNull_CodClientAssoc = 1 AND [CodClientAssoc] IS NULL) OR ([CodClientAssoc] = @Original_CodClientAssoc)) AND ((@IsNull_ClientNameAssoc = 1 AND [ClientNameAssoc] IS NULL) OR ([ClientNameAssoc] = @Original_ClientNameAssoc)) AND ((@IsNull_ItemDescr = 1 AND [ItemDescr] IS NULL) OR ([ItemDescr] = @Original_ItemDescr)) AND ((@IsNull_CodifProfilo = 1 AND [CodifProfilo] IS NULL) OR ([CodifProfilo] = @Original_CodifProfilo)) AND ((@IsNull_ClasseMerc = 1 AND [ClasseMerc] IS NULL) OR ([ClasseMerc] = @Original_ClasseMerc)) AND ((@IsNull_TipoDies = 1 AND [TipoDies] IS NULL) OR ([TipoDies] = @Original_TipoDies)) AND ((@IsNull_CodDiesGroup = 1 AND [CodDiesGroup] IS NULL) OR ([CodDiesGroup] = @Original_CodDiesGroup)) AND ((@IsNull_DiamDies = 1 AND [DiamDies] IS NULL) OR ([DiamDies] = @Original_DiamDies)) AND ((@IsNull_HoleNumDies = 1 AND [HoleNumDies] IS NULL) OR ([HoleNumDies] = @Original_HoleNumDies)) AND ((@IsNull_DiesPrice_avg = 1 AND [DiesPrice_avg] IS NULL) OR ([DiesPrice_avg] = @Original_DiesPrice_avg)) AND ([DiesPrice] = @Original_DiesPrice) AND ([SamplePrice] = @Original_SamplePrice) AND ((@IsNull_DiesFullCost = 1 AND [DiesFullCost] IS NULL) OR ([DiesFullCost] = @Original_DiesFullCost)) AND ([DiesPriceClientQuote] = @Original_DiesPriceClientQuote) AND ((@IsNull_DiesExpLife = 1 AND [DiesExpLife] IS NULL) OR ([DiesExpLife] = @Original_DiesExpLife)) AND ((@IsNull_DiesEOLife = 1 AND [DiesEOLife] IS NULL) OR ([DiesEOLife] = @Original_DiesEOLife)) AND ([DiesTecLife] = @Original_DiesTecLife) AND ([DiesCommLife] = @Original_DiesCommLife) AND ([MonthSalesPrev] = @Original_MonthSalesPrev) AND ((@IsNull_SalesPrevCost = 1 AND [SalesPrevCost] IS NULL) OR ([SalesPrevCost] = @Original_SalesPrevCost)) AND ((@IsNull_DiesFinCost = 1 AND [DiesFinCost] IS NULL) OR ([DiesFinCost] = @Original_DiesFinCost)) AND ((@IsNull_ClientQuoteReven = 1 AND [ClientQuoteReven] IS NULL) OR ([ClientQuoteReven] = @Original_ClientQuoteReven)) AND ((@IsNull_ExtraDiscountDies = 1 AND [ExtraDiscountDies] IS NULL) OR ([ExtraDiscountDies] = @Original_ExtraDiscountDies)) AND ((@IsNull_DiesByClass = 1 AND [DiesByClass] IS NULL) OR ([DiesByClass] = @Original_DiesByClass)) AND ((@IsNull_NumDiesInList = 1 AND [NumDiesInList] IS NULL) OR ([NumDiesInList] = @Original_NumDiesInList)) AND ((@IsNull_NumDiesExaust = 1 AND [NumDiesExaust] IS NULL) OR ([NumDiesExaust] = @Original_NumDiesExaust)) AND ((@IsNull_CodPlant = 1 AND [CodPlant] IS NULL) OR ([CodPlant] = @Original_CodPlant)) AND ((@IsNull_KeyAMIL = 1 AND [KeyAMIL] IS NULL) OR ([KeyAMIL] = @Original_KeyAMIL)) AND ((@IsNull_KgTeo = 1 AND [KgTeo] IS NULL) OR ([KgTeo] = @Original_KgTeo)) AND ((@IsNull_NumSMED = 1 AND [NumSMED] IS NULL) OR ([NumSMED] = @Original_NumSMED)) AND ((@IsNull_QuotaMan = 1 AND [QuotaMan] IS NULL) OR ([QuotaMan] = @Original_QuotaMan)) AND ((@IsNull_PRMWeight = 1 AND [PRMWeight] IS NULL) OR ([PRMWeight] = @Original_PRMWeight)) AND ((@IsNull_PWeight = 1 AND [PWeight] IS NULL) OR ([PWeight] = @Original_PWeight)) AND ((@IsNull_PTare = 1 AND [PTare] IS NULL) OR ([PTare] = @Original_PTare)) AND ((@IsNull_LivPackage = 1 AND [LivPackage] IS NULL) OR ([LivPackage] = @Original_LivPackage)) AND ((@IsNull_LivPackageDett = 1 AND [LivPackageDett] IS NULL) OR ([LivPackageDett] = @Original_LivPackageDett)) AND ([RawMatCost] = @Original_RawMatCost) AND ([RawMatExtraCost] = @Original_RawMatExtraCost) AND ((@IsNull_RawMatFullCost = 1 AND [RawMatFullCost] IS NULL) OR ([RawMatFullCost] = @Original_RawMatFullCost)) AND ([CodPackag] = @Original_CodPackag) AND ((@IsNull_PkgDesc = 1 AND [PkgDesc] IS NULL) OR ([PkgDesc] = @Original_PkgDesc)) AND ((@IsNull_FSR = 1 AND [FSR] IS NULL) OR ([FSR] = @Original_FSR)) AND ([ProvvCost] = @Original_ProvvCost) AND ([EECost] = @Original_EECost) AND ([GasCost] = @Original_GasCost) AND ([DiesCost] = @Original_DiesCost) AND ([PackCost] = @Original_PackCost) AND ([TranspCost] = @Original_TranspCost) AND ([SellCost01] = @Original_SellCost01) AND ([RefCost01] = @Original_RefCost01) AND ([SellCost04] = @Original_SellCost04) AND ([RefCost04] = @Original_RefCost04) AND ([WSR01_avg] = @Original_WSR01_avg) AND ([WSR01] = @Original_WSR01) AND ([MSR01_avg] = @Original_MSR01_avg) AND ([MSR01] = @Original_MSR01) AND ([NetProd01_avg] = @Original_NetProd01_avg) AND ([NetProd01] = @Original_NetProd01) AND ([FC4UG01] = @Original_FC4UG01) AND ([VC4UG01] = @Original_VC4UG01) AND ([OH4UG01] = @Original_OH4UG01) AND ([SC4UG01] = @Original_SC4UG01) AND ([DSR_avg] = @Original_DSR_avg) AND ((@IsNull_DSR = 1 AND [DSR] IS NULL) OR ([DSR] = @Original_DSR)) AND ([NetProd04] = @Original_NetProd04) AND ([FC4UG04] = @Original_FC4UG04) AND ([VC4UG04] = @Original_VC4UG04) AND ((@IsNull_FVC = 1 AND [FVC] IS NULL) OR ([FVC] = @Original_FVC)) AND ([Charge] = @Original_Charge) AND ([valid] = @Original_valid) AND ([errorScore] = @Original_errorScore)); -SELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, ClientName, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, TranspZone, KeyAM, Note, PriceOff, CodClientAssoc, ClientNameAssoc, ItemDescr, CodifProfilo, ClasseMerc, TipoDies, CodDiesGroup, DiamDies, HoleNumDies, DiesPrice_avg, DiesPrice, SamplePrice, DiesFullCost, DiesPriceClientQuote, DiesExpLife, DiesEOLife, DiesTecLife, DiesCommLife, MonthSalesPrev, SalesPrevCost, DiesFinCost, ClientQuoteReven, ExtraDiscountDies, DiesByClass, NumDiesInList, NumDiesExaust, CodPlant, KeyAMIL, KgTeo, NumSMED, QuotaMan, PRMWeight, PWeight, PTare, LivPackage, LivPackageDett, RawMatCost, RawMatExtraCost, RawMatFullCost, CodPackag, PkgDesc, FSR, ProvvCost, EECost, GasCost, DiesCost, PackCost, TranspCost, SellCost01, RefCost01, SellCost04, RefCost04, WSR01_avg, WSR01, MSR01_avg, MSR01, NetProd01_avg, NetProd01, FC4UG01, VC4UG01, OH4UG01, SC4UG01, DSR_avg, DSR, NetProd04, FC4UG04, VC4UG04, FVC, Charge, valid, errorScore FROM QuoteFull_S WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1664,6 +1121,10 @@ SELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, ClientName, Co + + + + @@ -1686,7 +1147,7 @@ SELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, ClientName, Co - + @@ -1729,17 +1190,18 @@ SELECT Vers, QuoteType, CodQuote, QuoteRev, IdxQState, CodClient, ClientName, Co - + - + - + + - + @@ -1927,6 +1389,35 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1995,7 +1486,6 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - @@ -2285,6 +1775,35 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2329,6 +1848,13 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer + + + + + + + @@ -2398,6 +1924,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer + @@ -2475,29 +2002,20 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - @@ -2512,12 +2030,12 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer + - @@ -2540,6 +2058,34 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2656,25 +2202,25 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - - - + + + - + - - + + - - - - - - - + + + + + + + @@ -2689,12 +2235,12 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - - - - - - + + + + + + @@ -2711,7 +2257,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2726,7 +2272,7 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + @@ -2737,22 +2283,23 @@ SELECT RawMat, ProcCost, ProcYield, CSR, SSR, SSVA, SSVR, ExtraMatCost, ExtraSer - + - + - + + - - + + - + diff --git a/C2P_Data/DS_Quotes.xss b/C2P_Data/DS_Quotes.xss index ee92cd8..287a133 100644 --- a/C2P_Data/DS_Quotes.xss +++ b/C2P_Data/DS_Quotes.xss @@ -4,16 +4,16 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - - + + @@ -62,7 +62,7 @@ 559 - 567 + 510 559 @@ -73,12 +73,16 @@ - 762 - 430 + 745 + 510 + + + 745 + 518 889 - 430 + 518 diff --git a/C2P_Data/DS_Utility.Designer.cs b/C2P_Data/DS_Utility.Designer.cs index 0011870..17b21e2 100644 --- a/C2P_Data/DS_Utility.Designer.cs +++ b/C2P_Data/DS_Utility.Designer.cs @@ -12025,17 +12025,50 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT TableName, FieldName, value, label, ordinal FROM dbo.ListValues"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "dbo.stp_listValues_getByTable"; + this._commandCollection[1].CommandText = "dbo.stp_listValues_delete"; this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FieldName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_value", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_listValues_getByTable"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_listValues_getDistTable"; + 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[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_listValues_insNew"; + 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("@TableName", 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("@FieldName", 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("@value", 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("@label", 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("@ordinal", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_listValues_update"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FieldName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_value", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@label", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ordinal", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -12067,7 +12100,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_Utility.ListValuesDataTable getByTable(string TableName) { - this.Adapter.SelectCommand = this.CommandCollection[1]; + this.Adapter.SelectCommand = this.CommandCollection[2]; if ((TableName == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -12079,6 +12112,17 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.ListValuesDataTable getDistTableName() { + this.Adapter.SelectCommand = this.CommandCollection[3]; + DS_Utility.ListValuesDataTable dataTable = new DS_Utility.ListValuesDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -12306,6 +12350,150 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN public virtual int Update(string label, global::System.Nullable ordinal, string Original_TableName, string Original_FieldName, string Original_value, string Original_label, global::System.Nullable Original_ordinal) { return this.Update(Original_TableName, Original_FieldName, Original_value, label, ordinal, Original_TableName, Original_FieldName, Original_value, Original_label, Original_ordinal); } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int deleteQuery(string Original_TableName, string Original_FieldName, string Original_value) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_TableName == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_TableName)); + } + if ((Original_FieldName == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Original_FieldName)); + } + if ((Original_value == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Original_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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int insertQuery(string TableName, string FieldName, string value, string label, global::System.Nullable ordinal) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((TableName == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(TableName)); + } + if ((FieldName == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(FieldName)); + } + if ((value == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(value)); + } + if ((label == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(label)); + } + if ((ordinal.HasValue == true)) { + command.Parameters[5].Value = ((int)(ordinal.Value)); + } + else { + command.Parameters[5].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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateQuery(string Original_TableName, string Original_FieldName, string Original_value, string label, global::System.Nullable ordinal) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; + if ((Original_TableName == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_TableName)); + } + if ((Original_FieldName == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Original_FieldName)); + } + if ((Original_value == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Original_value)); + } + if ((label == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(label)); + } + if ((ordinal.HasValue == true)) { + command.Parameters[5].Value = ((int)(ordinal.Value)); + } + else { + command.Parameters[5].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; + } } /// diff --git a/C2P_Data/DS_Utility.xsd b/C2P_Data/DS_Utility.xsd index e9d25ea..7edc091 100644 --- a/C2P_Data/DS_Utility.xsd +++ b/C2P_Data/DS_Utility.xsd @@ -561,6 +561,19 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN + + + + dbo.stp_listValues_delete + + + + + + + + + @@ -572,6 +585,46 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN + + + + dbo.stp_listValues_getDistTable + + + + + + + + + + dbo.stp_listValues_insNew + + + + + + + + + + + + + + + dbo.stp_listValues_update + + + + + + + + + + + diff --git a/C2P_Data/DS_Utility.xss b/C2P_Data/DS_Utility.xss index 6c40b68..9e56aec 100644 --- a/C2P_Data/DS_Utility.xss +++ b/C2P_Data/DS_Utility.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -21,7 +21,7 @@ - + diff --git a/C2P_Data/DtProxy.cs b/C2P_Data/DtProxy.cs index 50001e0..76b1b93 100644 --- a/C2P_Data/DtProxy.cs +++ b/C2P_Data/DtProxy.cs @@ -70,6 +70,7 @@ namespace C2P_Data taOH = new DS_UtilityTableAdapters.OrderHistTableAdapter(); taSC2C = new DS_UtilityTableAdapters.StdCost2createTableAdapter(); taImpTL = new DS_UtilityTableAdapters.Import_TicketListTableAdapter(); + taListVal = new DS_UtilityTableAdapters.ListValuesTableAdapter(); } /// /// effettua setup dei connection strings da web.config della singola applicazione @@ -91,6 +92,7 @@ namespace C2P_Data taOH.Connection.ConnectionString = connStr; taSC2C.Connection.ConnectionString = connStr; taImpTL.Connection.ConnectionString = connStr; + taListVal.Connection.ConnectionString = connStr; } #endregion @@ -110,6 +112,7 @@ namespace C2P_Data public DS_UtilityTableAdapters.OrderHistTableAdapter taOH; public DS_UtilityTableAdapters.StdCost2createTableAdapter taSC2C; public DS_UtilityTableAdapters.Import_TicketListTableAdapter taImpTL; + public DS_UtilityTableAdapters.ListValuesTableAdapter taListVal; public static DtProxy man = new DtProxy(); diff --git a/C2P_Data/bin/Release/C2P_Data.dll b/C2P_Data/bin/Release/C2P_Data.dll index 3f0c49a..ba04d46 100644 Binary files a/C2P_Data/bin/Release/C2P_Data.dll and b/C2P_Data/bin/Release/C2P_Data.dll differ diff --git a/C2P_Data/bin/Release/SteamWare.dll b/C2P_Data/bin/Release/SteamWare.dll index 80634d4..51c4904 100644 Binary files a/C2P_Data/bin/Release/SteamWare.dll and b/C2P_Data/bin/Release/SteamWare.dll differ diff --git a/C2P_Project/bin/Output/C2P_DB.dacpac b/C2P_Project/bin/Output/C2P_DB.dacpac index b075555..bdab0fa 100644 Binary files a/C2P_Project/bin/Output/C2P_DB.dacpac and b/C2P_Project/bin/Output/C2P_DB.dacpac differ diff --git a/C2P_Project/bin/Output/C2P_Project.dll b/C2P_Project/bin/Output/C2P_Project.dll index ad806a9..9ee9106 100644 Binary files a/C2P_Project/bin/Output/C2P_Project.dll and b/C2P_Project/bin/Output/C2P_Project.dll differ diff --git a/C2P_Report/C2P_Report.csproj b/C2P_Report/C2P_Report.csproj index b890599..99504bd 100644 --- a/C2P_Report/C2P_Report.csproj +++ b/C2P_Report/C2P_Report.csproj @@ -117,16 +117,20 @@ + Designer + Designer + + @@ -134,6 +138,9 @@ + + + Web.config diff --git a/C2P_Report/ReportViewer.aspx.cs b/C2P_Report/ReportViewer.aspx.cs index a98a34b..2c0291c 100644 --- a/C2P_Report/ReportViewer.aspx.cs +++ b/C2P_Report/ReportViewer.aspx.cs @@ -36,6 +36,7 @@ namespace C2P_Report int CodQuote = 0; int QuoteRev = 0; string chiave = ""; + string TypeDoc = ""; try { ticket = Convert.ToInt32(Request.QueryString["ticket"]); @@ -70,8 +71,28 @@ namespace C2P_Report } if (lingua == "" || lingua == null) lingua = "EN"; - // 1) impostazione file report - localReport.ReportPath = string.Format(@".\Reports\ReportOffers_{0}.rdlc", QuoteType); + try + { + TypeDoc = Request.QueryString["TypeDoc"]; + } + catch + { + lingua = "ReportOff"; + } + + // 1) impostazione file report da TypeDoc: + if (TypeDoc == "ReportOff") + { + localReport.ReportPath = string.Format(@".\Reports\ReportOffers_{0}.rdlc", QuoteType); + } + else if (TypeDoc == "OffertDOC") + { + localReport.ReportPath = string.Format(@".\Reports\OffertDOC.rdlc"); + } + else // fallback + { + localReport.ReportPath = string.Format(@".\Reports\ReportOffers_{0}.rdlc", QuoteType); + } // 2) caricamento tab dati DataTable tabVoc = new DataTable(); DataTable tabVocQState = new DataTable(); diff --git a/C2P_Report/Reports/IIS02/OffertDOC.rdl b/C2P_Report/Reports/IIS02/OffertDOC.rdl new file mode 100644 index 0000000..037b068 --- /dev/null +++ b/C2P_Report/Reports/IIS02/OffertDOC.rdl @@ -0,0 +1,1665 @@ + + + Steamware SRL - Vers. 1.1.1 + 0 + + + DB_C2P + None + ffd8a90c-e6a6-4b01-88d5-724b8c467036 + + + + + + DB_C2P + + + =Parameters!Ticket.Value + true + + + stp_prt_dsQuoteFull_Q_Data + true + + + + =Fields!QuoteType.Value+CStr(Fields!CodQuote.Value)+CStr(Fields!QuoteRev.Value) + + + Vers + System.String + + + QuoteType + System.String + + + CodQuote + System.Int64 + + + OfferResult + System.String + + + QuoteRev + System.Int32 + + + IdxQState + System.Int32 + + + KoReason + System.String + + + CodClient + System.String + + + Agente + System.String + + + ClientName + System.String + + + ProdType + System.String + + + CodItem + System.String + + + CodItemGroup + System.String + + + RawMat + System.String + + + UnitWeight + System.Decimal + + + BatchQty + System.Int32 + + + CodInco + System.String + + + TranspZone + System.String + + + KeyAM + System.String + + + Note + System.String + + + PriceOff + System.Decimal + + + CodClientAssoc + System.String + + + ClientNameAssoc + System.String + + + ItemDescr + System.String + + + CodifProfilo + System.String + + + ClasseMerc + System.String + + + TipoDies + System.String + + + CodDiesGroup + System.String + + + DiamDies + System.Decimal + + + HoleNumDies + System.Int32 + + + DiesPrice + System.Decimal + + + DiesExpLife + System.Decimal + + + DiesEOLife + System.Decimal + + + DiesByClass + System.Boolean + + + NumDiesInList + System.Decimal + + + NumDiesExaust + System.Decimal + + + CodPlant + System.String + + + KeyAMIL + System.String + + + KgTeo + System.Decimal + + + NumSMED + System.Decimal + + + QuotaMan + System.Decimal + + + PRMWeight + System.Decimal + + + PWeight + System.Decimal + + + PTare + System.Decimal + + + LivPackage + System.String + + + LivPackageDett + System.String + + + RawMatCost + System.Decimal + + + RawMatExtraCost + System.Decimal + + + RawMatFullCost + System.Decimal + + + CodPackag + System.String + + + PkgDesc + System.String + + + FSR + System.Decimal + + + ProvvCost + System.Decimal + + + EECost + System.Decimal + + + GasCost + System.Decimal + + + DiesCost + System.Decimal + + + PackCost + System.Decimal + + + TranspCost + System.Decimal + + + SellCost01 + System.Decimal + + + RefCost01 + System.Decimal + + + SellCost04 + System.Decimal + + + RefCost04 + System.Decimal + + + WSR01 + System.Decimal + + + MSR01 + System.Decimal + + + NetProd01 + System.Decimal + + + FC4UG01 + System.Decimal + + + VC4UG01 + System.Decimal + + + OH4UG01 + System.Decimal + + + SC4UG01 + System.Decimal + + + DSR + System.Decimal + + + NetProd04 + System.Decimal + + + FC4UG04 + System.Decimal + + + VC4UG04 + System.Decimal + + + FVC + System.Decimal + + + Charge + System.Decimal + + + P_FVC + System.Decimal + + + CPS + System.Decimal + + + P_CPS + System.Decimal + + + P_FC4UG04 + System.Decimal + + + FullCost + System.Decimal + + + P_FullCost + System.Decimal + + + MinPrice + System.Decimal + + + P_MinPrice + System.Decimal + + + P_PriceOff + System.Decimal + + + NetMar + System.Decimal + + + FCShield + System.Decimal + + + PckSur + System.Decimal + + + valid + System.Boolean + + + errorScore + System.Int32 + + + DiesPrice_sim + System.Decimal + + + SamplePrice + System.Decimal + + + DiesFullCost + System.Decimal + + + DiesPriceClientQuote + System.Decimal + + + DiesTecLife + System.Decimal + + + DiesCommLife + System.Decimal + + + MonthSalesPrev + System.Decimal + + + SalesPrevCost + System.Decimal + + + DiesFinCost + System.Decimal + + + ClientQuoteReven + System.Decimal + + + ExtraDiscountDies + System.Decimal + + + WSR01_sim + System.Decimal + + + MSR01_sim + System.Decimal + + + NetProd01_sim + System.Decimal + + + NetProd04_sim + System.Decimal + + + DSR_sim + System.Decimal + + + NetMar_sim + System.Decimal + + + FCShield_sim + System.Decimal + + + MinPrice_sim + System.Decimal + + + P_MinPrice_sim + System.Decimal + + + Cli_ZipCode + System.String + + + Cli_City + System.String + + + Cli_State + System.String + + + Cli_Nation + System.String + + + DescInco + System.String + + + + + + + + + + + + + 18.9cm + + + + + 19.38542cm + + + + + + + Embedded + SoloProxima_285x72px + FitProportional + 0.36903cm + 0.44335cm + 1.5cm + 6.58cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!KgTeo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!KgTeo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!KgTeo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!KgTeo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!KgTeo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!KgTeo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!KgTeo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm +