diff --git a/C2P/Quote.aspx.cs b/C2P/Quote.aspx.cs
index 0c8e107..b1093b5 100644
--- a/C2P/Quote.aspx.cs
+++ b/C2P/Quote.aspx.cs
@@ -13,6 +13,16 @@ namespace C2P
{
mod_newQuote1.eh_newSearchData += mod_newQuote1_eh_newSearchData;
mod_newQuote1.eh_newQuote += mod_newQuote1_eh_newQuote;
+ mod_QuoteList1.eh_loadReq += mod_QuoteList1_eh_loadReq;
+ }
+ ///
+ /// richeista load dati dell'offerta...
+ ///
+ ///
+ ///
+ void mod_QuoteList1_eh_loadReq(object sender, EventArgs e)
+ {
+ mod_newQuote1.loadSelData();
}
void mod_newQuote1_eh_newQuote(object sender, EventArgs e)
diff --git a/C2P/WebUserControls/mod_QuoteList.ascx b/C2P/WebUserControls/mod_QuoteList.ascx
index bcf22f0..4516f28 100644
--- a/C2P/WebUserControls/mod_QuoteList.ascx
+++ b/C2P/WebUserControls/mod_QuoteList.ascx
@@ -92,7 +92,13 @@
<%----%>
-
+
+
+ <%----%>
+
+
+
+
@@ -148,15 +154,15 @@
-
-
-
-
+
+
+
+
-
+
-
+
diff --git a/C2P/WebUserControls/mod_QuoteList.ascx.cs b/C2P/WebUserControls/mod_QuoteList.ascx.cs
index 26cf4fe..ed8532a 100644
--- a/C2P/WebUserControls/mod_QuoteList.ascx.cs
+++ b/C2P/WebUserControls/mod_QuoteList.ascx.cs
@@ -11,6 +11,11 @@ namespace C2P.WebUserControls
{
public partial class mod_QuoteList : System.Web.UI.UserControl
{
+
+ ///
+ public event EventHandler eh_loadReq;
+
protected void Page_Load(object sender, EventArgs e)
{
}
@@ -30,12 +35,45 @@ namespace C2P.WebUserControls
///
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
- // ricalcolo!
+ // verifico parametri riga scelta
string QuoteType = grView.SelectedDataKey["QuoteType"].ToString();
long CodQuote = Convert.ToInt64(grView.SelectedDataKey["CodQuote"]);
int QuoteRev = Convert.ToInt16(grView.SelectedDataKey["QuoteRev"]);
- // rimando a dettaglio!
- Response.Redirect(string.Format("QuoteDet?QuoteType={0}&CodQuote={1}&QuoteRev={2}", QuoteType, CodQuote, QuoteRev));
+ // verifico tipo di caricamento...
+ string _comando = "";
+ if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
+ {
+ _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
+ SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
+ }
+ switch (_comando)
+ {
+ case "load":
+ memLayer.ML.setSessionVal("QuoteType", QuoteType);
+ memLayer.ML.setSessionVal("CodQuote", CodQuote);
+ memLayer.ML.setSessionVal("QuoteRev", QuoteRev);
+ // sollevo evento
+ if (eh_loadReq!= null)
+ {
+ eh_loadReq(this, new EventArgs());
+ }
+ break;
+ case "toDetail":
+ // rimando a dettaglio!
+ Response.Redirect(string.Format("QuoteDet?QuoteType={0}&CodQuote={1}&QuoteRev={2}", QuoteType, CodQuote, QuoteRev));
+ break;
+ default:
+ break;
+ }
+ //if (_comando == "load")
+ //{
+ // memLayer.ML.setSessionVal("QuoteType", QuoteType);
+ // memLayer.ML.setSessionVal("CodQuote", CodQuote);
+ // memLayer.ML.setSessionVal("QuoteRev", QuoteRev);
+ //}
+ //else
+ //{
+ //}
}
///
/// Calcola css dato valore prezzo offerto vs importi full cost e min price
@@ -88,5 +126,10 @@ namespace C2P.WebUserControls
{
doUpdate();
}
+
+ protected void lbt_Command(object sender, CommandEventArgs e)
+ {
+ SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
+ }
}
}
\ No newline at end of file
diff --git a/C2P/WebUserControls/mod_newQuote.ascx b/C2P/WebUserControls/mod_newQuote.ascx
index 1872720..2e667aa 100644
--- a/C2P/WebUserControls/mod_newQuote.ascx
+++ b/C2P/WebUserControls/mod_newQuote.ascx
@@ -114,6 +114,15 @@
-
+
diff --git a/C2P/WebUserControls/mod_newQuote.ascx.cs b/C2P/WebUserControls/mod_newQuote.ascx.cs
index 9344eb3..e5084bb 100644
--- a/C2P/WebUserControls/mod_newQuote.ascx.cs
+++ b/C2P/WebUserControls/mod_newQuote.ascx.cs
@@ -5,6 +5,7 @@ using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
+using C2P_Data;
namespace C2P.WebUserControls
{
@@ -210,6 +211,57 @@ namespace C2P.WebUserControls
{
checkBtnNew();
}
+ ///
+ /// carica i dati selezionati (da chiave quote...)
+ ///
+ public void loadSelData()
+ {
+ string QuoteType = memLayer.ML.StringSessionObj("QuoteType");
+ long CodQuote = memLayer.ML.IntSessionObj("CodQuote");
+ int QuoteRev = memLayer.ML.IntSessionObj("QuoteRev");
+ DS_Quotes.QuoteListRow riga = DtProxy.man.taQL.getByKey(QuoteType, CodQuote, QuoteRev)[0];
+ DS_Quotes.QuoteRMRow rigaRM = DtProxy.man.taQRM.getByKey(QuoteType, CodQuote, QuoteRev, 1)[0];
+ if (riga != null)
+ {
+ // imposto valori!
+ acCliente.selezione = riga.CodClient;
+ acCliente.valore = riga.CodClient;
+ acArticolo.selezione = riga.CodItem;
+ acArticolo.valore = riga.CodItem;
+ ddlConsegna.SelectedValue = riga.CodInco;
+ ddlLega.SelectedValue = riga.RawMat;
+ txtLotto.Text = riga.BatchQty.ToString();
+ txtNote.Text = riga.Note;
+ txtBaseAl.Text = rigaRM.RawMatCost.ToString();
+ txtExtraLega.Text = rigaRM.RawMatExtraCost.ToString();
+ }
+ // update filtraggio
+ salvaRicerca();
+ // check btn genera...
+ checkBtnNew();
+ }
+ ///
+ /// reset dell'offerta
+ ///
+ ///
+ ///
+ protected void btnReset_Click(object sender, EventArgs e)
+ {
+ acCliente.selezione = "";
+ acCliente.valore = "";
+ acArticolo.selezione = "";
+ acArticolo.valore = "";
+ ddlConsegna.SelectedValue = "";
+ ddlLega.SelectedValue = "";
+ txtLotto.Text = "";
+ txtNote.Text = "";
+ txtBaseAl.Text = "";
+ txtExtraLega.Text = "";
+ // update filtraggio
+ salvaRicerca();
+ // check btn genera...
+ checkBtnNew();
+ }
}
}
\ No newline at end of file
diff --git a/C2P/WebUserControls/mod_newQuote.ascx.designer.cs b/C2P/WebUserControls/mod_newQuote.ascx.designer.cs
index cf9bf10..20c6907 100644
--- a/C2P/WebUserControls/mod_newQuote.ascx.designer.cs
+++ b/C2P/WebUserControls/mod_newQuote.ascx.designer.cs
@@ -218,5 +218,14 @@ namespace C2P.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Button btnNew;
+
+ ///
+ /// btnReset control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnReset;
}
}
diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll
index 95f51c2..88d3be5 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 150809f..5a729d6 100644
Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ
diff --git a/C2P/bin/C2P_Data.pdb b/C2P/bin/C2P_Data.pdb
index d67db79..a7b1b7a 100644
Binary files a/C2P/bin/C2P_Data.pdb and b/C2P/bin/C2P_Data.pdb differ
diff --git a/C2P/bin/SteamWare.dll b/C2P/bin/SteamWare.dll
index eb0b2bf..ba4dabe 100644
Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ
diff --git a/C2P_Data/DS_Quotes.Designer.cs b/C2P_Data/DS_Quotes.Designer.cs
index ca1be0a..56a7c14 100644
--- a/C2P_Data/DS_Quotes.Designer.cs
+++ b/C2P_Data/DS_Quotes.Designer.cs
@@ -568,6 +568,16 @@ namespace C2P_Data {
private global::System.Data.DataColumn columnNote;
+ private global::System.Data.DataColumn columnPriceOff;
+
+ private global::System.Data.DataColumn columnOrdDate;
+
+ private global::System.Data.DataColumn columnOrdNum;
+
+ private global::System.Data.DataColumn columnOrdRow;
+
+ private global::System.Data.DataColumn columnOrdPrice;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public QuoteListDataTable() {
@@ -697,6 +707,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 PriceOffColumn {
+ get {
+ return this.columnPriceOff;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn OrdDateColumn {
+ get {
+ return this.columnOrdDate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn OrdNumColumn {
+ get {
+ return this.columnOrdNum;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn OrdRowColumn {
+ get {
+ return this.columnOrdRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn OrdPriceColumn {
+ get {
+ return this.columnOrdPrice;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -734,7 +784,24 @@ namespace C2P_Data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public QuoteListRow AddQuoteListRow(string QuoteType, long CodQuote, int QuoteRev, string CodClient, string CodItem, string CodItemGroup, string RawMat, decimal UnitWeight, int BatchQty, string CodInco, string KeyAM, string Note) {
+ public QuoteListRow AddQuoteListRow(
+ string QuoteType,
+ long CodQuote,
+ int QuoteRev,
+ string CodClient,
+ string CodItem,
+ string CodItemGroup,
+ string RawMat,
+ decimal UnitWeight,
+ int BatchQty,
+ string CodInco,
+ string KeyAM,
+ string Note,
+ decimal PriceOff,
+ System.DateTime OrdDate,
+ string OrdNum,
+ string OrdRow,
+ decimal OrdPrice) {
QuoteListRow rowQuoteListRow = ((QuoteListRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
QuoteType,
@@ -748,7 +815,12 @@ namespace C2P_Data {
BatchQty,
CodInco,
KeyAM,
- Note};
+ Note,
+ PriceOff,
+ OrdDate,
+ OrdNum,
+ OrdRow,
+ OrdPrice};
rowQuoteListRow.ItemArray = columnValuesArray;
this.Rows.Add(rowQuoteListRow);
return rowQuoteListRow;
@@ -792,6 +864,11 @@ namespace C2P_Data {
this.columnCodInco = base.Columns["CodInco"];
this.columnKeyAM = base.Columns["KeyAM"];
this.columnNote = base.Columns["Note"];
+ this.columnPriceOff = base.Columns["PriceOff"];
+ this.columnOrdDate = base.Columns["OrdDate"];
+ this.columnOrdNum = base.Columns["OrdNum"];
+ this.columnOrdRow = base.Columns["OrdRow"];
+ this.columnOrdPrice = base.Columns["OrdPrice"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -821,6 +898,16 @@ namespace C2P_Data {
base.Columns.Add(this.columnKeyAM);
this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNote);
+ this.columnPriceOff = new global::System.Data.DataColumn("PriceOff", typeof(decimal), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnPriceOff);
+ this.columnOrdDate = new global::System.Data.DataColumn("OrdDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOrdDate);
+ this.columnOrdNum = new global::System.Data.DataColumn("OrdNum", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOrdNum);
+ this.columnOrdRow = new global::System.Data.DataColumn("OrdRow", typeof(string), null, global::System.Data.MappingType.Element);
+ 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.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnQuoteType,
this.columnCodQuote,
@@ -845,6 +932,12 @@ namespace C2P_Data {
this.columnKeyAM.MaxLength = 101;
this.columnNote.AllowDBNull = false;
this.columnNote.MaxLength = 2500;
+ this.columnPriceOff.AllowDBNull = false;
+ this.columnOrdNum.AllowDBNull = false;
+ this.columnOrdNum.MaxLength = 50;
+ this.columnOrdRow.AllowDBNull = false;
+ this.columnOrdRow.MaxLength = 50;
+ this.columnOrdPrice.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4969,6 +5062,66 @@ namespace C2P_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal PriceOff {
+ get {
+ return ((decimal)(this[this.tableQuoteList.PriceOffColumn]));
+ }
+ set {
+ this[this.tableQuoteList.PriceOffColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime OrdDate {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableQuoteList.OrdDateColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'OrdDate\' in table \'QuoteList\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableQuoteList.OrdDateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string OrdNum {
+ get {
+ return ((string)(this[this.tableQuoteList.OrdNumColumn]));
+ }
+ set {
+ this[this.tableQuoteList.OrdNumColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string OrdRow {
+ get {
+ return ((string)(this[this.tableQuoteList.OrdRowColumn]));
+ }
+ set {
+ this[this.tableQuoteList.OrdRowColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public decimal OrdPrice {
+ get {
+ return ((decimal)(this[this.tableQuoteList.OrdPriceColumn]));
+ }
+ set {
+ this[this.tableQuoteList.OrdPriceColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsKeyAMNull() {
@@ -4981,6 +5134,18 @@ namespace C2P_Data {
this[this.tableQuoteList.KeyAMColumn] = global::System.Convert.DBNull;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsOrdDateNull() {
+ return this.IsNull(this.tableQuoteList.OrdDateColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetOrdDateNull() {
+ this[this.tableQuoteList.OrdDateColumn] = global::System.Convert.DBNull;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public QuoteRMRow[] GetQuoteRMRows() {
@@ -8035,10 +8200,15 @@ namespace C2P_Data.DS_QuotesTableAdapters {
tableMapping.ColumnMappings.Add("CodInco", "CodInco");
tableMapping.ColumnMappings.Add("KeyAM", "KeyAM");
tableMapping.ColumnMappings.Add("Note", "Note");
+ tableMapping.ColumnMappings.Add("PriceOff", "PriceOff");
+ tableMapping.ColumnMappings.Add("OrdDate", "OrdDate");
+ tableMapping.ColumnMappings.Add("OrdNum", "OrdNum");
+ tableMapping.ColumnMappings.Add("OrdRow", "OrdRow");
+ tableMapping.ColumnMappings.Add("OrdPrice", "OrdPrice");
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 ([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))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[QuoteList] WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) 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))";
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, "", "", ""));
@@ -8052,10 +8222,16 @@ namespace C2P_Data.DS_QuotesTableAdapters {
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.Date, 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.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev], [CodClient], [CodItem], [CodItemGroup], [RawMat], [UnitWeight], [BatchQty], [CodInco], [Note]) VALUES (@QuoteType, @CodQuote, @QuoteRev, @CodClient, @CodItem, @CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @Note);
-SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev], [CodClient], [CodItem], [CodItemGroup], [RawMat], [UnitWeight], [BatchQty], [CodInco], [Note], [PriceOff], [OrdDate], [OrdNum], [OrdRow], [OrdPrice]) VALUES (@QuoteType, @CodQuote, @QuoteRev, @CodClient, @CodItem, @CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @Note, @PriceOff, @OrdDate, @OrdNum, @OrdRow, @OrdPrice);
+SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice 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, "", "", ""));
@@ -8068,10 +8244,15 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
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.Date, 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.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, [QuoteRev] = @QuoteRev, [CodClient] = @CodClient, [CodItem] = @CodItem, [CodItemGroup] = @CodItemGroup, [RawMat] = @RawMat, [UnitWeight] = @UnitWeight, [BatchQty] = @BatchQty, [CodInco] = @CodInco, [Note] = @Note WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) 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));
-SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[QuoteList] SET [QuoteType] = @QuoteType, [CodQuote] = @CodQuote, [QuoteRev] = @QuoteRev, [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 WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) 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));
+SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice 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, "", "", ""));
@@ -8084,6 +8265,11 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
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.Date, 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("@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, "", "", ""));
@@ -8096,6 +8282,12 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
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.Date, 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, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8108,34 +8300,41 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
[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[3];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, U" +
- "nitWeight, BatchQty, CodInco, KeyAM, Note FROM dbo.QuoteList";
+ this._commandCollection[0].CommandText = "SELECT * FROM dbo.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;
- this._commandCollection[1].CommandText = "dbo.stp_QL_insNew";
+ this._commandCollection[1].CommandText = "dbo.stp_QL_getByKey";
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("@QuoteType", global::System.Data.SqlDbType.Char, 1, 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("@CodClient", 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("@CodItem", 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("@RawMat", 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("@RawMatCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].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[1].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[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_QL_update";
+ this._commandCollection[2].CommandText = "dbo.stp_QL_insNew";
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("@QuoteType", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodClient", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItem", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMat", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RawMatExtraCost", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 6, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].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[2].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[2].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[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_QL_update";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteType", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", 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()]
@@ -8162,6 +8361,35 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
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_Quotes.QuoteListDataTable getByKey(string QuoteType, global::System.Nullable CodQuote, global::System.Nullable QuoteRev) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((QuoteType == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(QuoteType));
+ }
+ if ((CodQuote.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((long)(CodQuote.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((QuoteRev.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((int)(QuoteRev.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ DS_Quotes.QuoteListDataTable dataTable = new DS_Quotes.QuoteListDataTable();
+ 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")]
@@ -8195,7 +8423,24 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
[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, 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) {
+ public virtual int Delete(
+ string Original_QuoteType,
+ long Original_CodQuote,
+ int Original_QuoteRev,
+ 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) {
if ((Original_QuoteType == null)) {
throw new global::System.ArgumentNullException("Original_QuoteType");
}
@@ -8248,6 +8493,28 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
else {
this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_Note));
}
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_PriceOff));
+ if ((Original_OrdDate.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_OrdDate.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ if ((Original_OrdNum == null)) {
+ throw new global::System.ArgumentNullException("Original_OrdNum");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_OrdNum));
+ }
+ if ((Original_OrdRow == null)) {
+ throw new global::System.ArgumentNullException("Original_OrdRow");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_OrdRow));
+ }
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((decimal)(Original_OrdPrice));
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)) {
@@ -8268,7 +8535,23 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
[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, string CodClient, string CodItem, string CodItemGroup, string RawMat, decimal UnitWeight, int BatchQty, string CodInco, string Note) {
+ public virtual int Insert(
+ string QuoteType,
+ long CodQuote,
+ int QuoteRev,
+ 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) {
if ((QuoteType == null)) {
throw new global::System.ArgumentNullException("QuoteType");
}
@@ -8315,6 +8598,26 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
else {
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Note));
}
+ this.Adapter.InsertCommand.Parameters[11].Value = ((decimal)(PriceOff));
+ if ((OrdDate.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[12].Value = ((System.DateTime)(OrdDate.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ if ((OrdNum == null)) {
+ throw new global::System.ArgumentNullException("OrdNum");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[13].Value = ((string)(OrdNum));
+ }
+ if ((OrdRow == null)) {
+ throw new global::System.ArgumentNullException("OrdRow");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[14].Value = ((string)(OrdRow));
+ }
+ this.Adapter.InsertCommand.Parameters[15].Value = ((decimal)(OrdPrice));
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)) {
@@ -8347,6 +8650,11 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
int BatchQty,
string CodInco,
string Note,
+ decimal PriceOff,
+ global::System.Nullable OrdDate,
+ string OrdNum,
+ string OrdRow,
+ decimal OrdPrice,
string Original_QuoteType,
long Original_CodQuote,
int Original_QuoteRev,
@@ -8358,7 +8666,12 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
int Original_BatchQty,
string Original_CodInco,
string Original_KeyAM,
- string Original_Note) {
+ string Original_Note,
+ decimal Original_PriceOff,
+ global::System.Nullable Original_OrdDate,
+ string Original_OrdNum,
+ string Original_OrdRow,
+ decimal Original_OrdPrice) {
if ((QuoteType == null)) {
throw new global::System.ArgumentNullException("QuoteType");
}
@@ -8405,58 +8718,100 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
else {
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Note));
}
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((decimal)(PriceOff));
+ if ((OrdDate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(OrdDate.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ if ((OrdNum == null)) {
+ throw new global::System.ArgumentNullException("OrdNum");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(OrdNum));
+ }
+ if ((OrdRow == null)) {
+ throw new global::System.ArgumentNullException("OrdRow");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(OrdRow));
+ }
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(OrdPrice));
if ((Original_QuoteType == null)) {
throw new global::System.ArgumentNullException("Original_QuoteType");
}
else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_QuoteType));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_QuoteType));
}
- this.Adapter.UpdateCommand.Parameters[12].Value = ((long)(Original_CodQuote));
- this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_QuoteRev));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((long)(Original_CodQuote));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_QuoteRev));
if ((Original_CodClient == null)) {
throw new global::System.ArgumentNullException("Original_CodClient");
}
else {
- this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_CodClient));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_CodClient));
}
if ((Original_CodItem == null)) {
throw new global::System.ArgumentNullException("Original_CodItem");
}
else {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_CodItem));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_CodItem));
}
if ((Original_CodItemGroup == null)) {
throw new global::System.ArgumentNullException("Original_CodItemGroup");
}
else {
- this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_CodItemGroup));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_CodItemGroup));
}
if ((Original_RawMat == null)) {
throw new global::System.ArgumentNullException("Original_RawMat");
}
else {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_RawMat));
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_RawMat));
}
- this.Adapter.UpdateCommand.Parameters[18].Value = ((decimal)(Original_UnitWeight));
- this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_BatchQty));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((decimal)(Original_UnitWeight));
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_BatchQty));
if ((Original_CodInco == null)) {
throw new global::System.ArgumentNullException("Original_CodInco");
}
else {
- this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_CodInco));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_CodInco));
}
if ((Original_KeyAM == null)) {
throw new global::System.ArgumentNullException("Original_KeyAM");
}
else {
- this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_KeyAM));
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_KeyAM));
}
if ((Original_Note == null)) {
throw new global::System.ArgumentNullException("Original_Note");
}
else {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Note));
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Note));
}
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((decimal)(Original_PriceOff));
+ if ((Original_OrdDate.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((System.DateTime)(Original_OrdDate.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
+ }
+ if ((Original_OrdNum == null)) {
+ throw new global::System.ArgumentNullException("Original_OrdNum");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_OrdNum));
+ }
+ if ((Original_OrdRow == null)) {
+ throw new global::System.ArgumentNullException("Original_OrdRow");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_OrdRow));
+ }
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((decimal)(Original_OrdPrice));
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)) {
@@ -8486,6 +8841,11 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
int BatchQty,
string CodInco,
string Note,
+ decimal PriceOff,
+ global::System.Nullable OrdDate,
+ string OrdNum,
+ string OrdRow,
+ decimal OrdPrice,
string Original_QuoteType,
long Original_CodQuote,
int Original_QuoteRev,
@@ -8497,15 +8857,20 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
int Original_BatchQty,
string Original_CodInco,
string Original_KeyAM,
- string Original_Note) {
- return this.Update(Original_QuoteType, Original_CodQuote, Original_QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, Note, Original_QuoteType, Original_CodQuote, Original_QuoteRev, Original_CodClient, Original_CodItem, Original_CodItemGroup, Original_RawMat, Original_UnitWeight, Original_BatchQty, Original_CodInco, Original_KeyAM, Original_Note);
+ string Original_Note,
+ decimal Original_PriceOff,
+ global::System.Nullable Original_OrdDate,
+ string Original_OrdNum,
+ string Original_OrdRow,
+ decimal Original_OrdPrice) {
+ return this.Update(Original_QuoteType, Original_CodQuote, Original_QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice, Original_QuoteType, Original_CodQuote, Original_QuoteRev, 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);
}
[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 stp_QL_insNew(string QuoteType, string CodClient, string CodItem, string RawMat, global::System.Nullable RawMatCost, global::System.Nullable RawMatExtraCost, global::System.Nullable BatchQty, string CodInco, string Note) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
if ((QuoteType == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -8581,7 +8946,7 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_QL_update(string QuoteType, global::System.Nullable CodQuote, global::System.Nullable QuoteRev) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((QuoteType == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -8826,12 +9191,21 @@ SELECT QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost
[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[1];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost," +
" CodPackag, FCR, FYR, FSR, valid FROM dbo.QuoteRM";
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_QRM_getByKey";
+ 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("@QuoteType", global::System.Data.SqlDbType.Char, 1, 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("@CodQuote", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 19, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QuoteRev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumRM", 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()]
@@ -8858,6 +9232,41 @@ SELECT QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost
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_Quotes.QuoteRMDataTable getByKey(string QuoteType, global::System.Nullable CodQuote, global::System.Nullable QuoteRev, global::System.Nullable NumRM) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((QuoteType == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(QuoteType));
+ }
+ if ((CodQuote.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((long)(CodQuote.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((QuoteRev.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((int)(QuoteRev.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((NumRM.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[4].Value = ((int)(NumRM.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ DS_Quotes.QuoteRMDataTable dataTable = new DS_Quotes.QuoteRMDataTable();
+ 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")]
diff --git a/C2P_Data/DS_Quotes.xsd b/C2P_Data/DS_Quotes.xsd
index 09449b1..9e472b7 100644
--- a/C2P_Data/DS_Quotes.xsd
+++ b/C2P_Data/DS_Quotes.xsd
@@ -12,7 +12,7 @@
- DELETE FROM [dbo].[QuoteList] WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) 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))
+ DELETE FROM [dbo].[QuoteList] WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) 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))
@@ -26,13 +26,19 @@
+
+
+
+
+
+
- INSERT INTO [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev], [CodClient], [CodItem], [CodItemGroup], [RawMat], [UnitWeight], [BatchQty], [CodInco], [Note]) VALUES (@QuoteType, @CodQuote, @QuoteRev, @CodClient, @CodItem, @CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @Note);
-SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)
+ INSERT INTO [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev], [CodClient], [CodItem], [CodItemGroup], [RawMat], [UnitWeight], [BatchQty], [CodInco], [Note], [PriceOff], [OrdDate], [OrdNum], [OrdRow], [OrdPrice]) VALUES (@QuoteType, @CodQuote, @QuoteRev, @CodClient, @CodItem, @CodItemGroup, @RawMat, @UnitWeight, @BatchQty, @CodInco, @Note, @PriceOff, @OrdDate, @OrdNum, @OrdRow, @OrdPrice);
+SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)
@@ -45,19 +51,24 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
+
+
+
+
+
-
- SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note FROM dbo.QuoteList
+
+ SELECT * FROM dbo.QuoteList
- UPDATE [dbo].[QuoteList] SET [QuoteType] = @QuoteType, [CodQuote] = @CodQuote, [QuoteRev] = @QuoteRev, [CodClient] = @CodClient, [CodItem] = @CodItem, [CodItemGroup] = @CodItemGroup, [RawMat] = @RawMat, [UnitWeight] = @UnitWeight, [BatchQty] = @BatchQty, [CodInco] = @CodInco, [Note] = @Note WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) 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));
-SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)
+ UPDATE [dbo].[QuoteList] SET [QuoteType] = @QuoteType, [CodQuote] = @CodQuote, [QuoteRev] = @QuoteRev, [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 WHERE (([QuoteType] = @Original_QuoteType) AND ([CodQuote] = @Original_CodQuote) AND ([QuoteRev] = @Original_QuoteRev) 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));
+SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat, UnitWeight, BatchQty, CodInco, KeyAM, Note, PriceOff, OrdDate, OrdNum, OrdRow, OrdPrice FROM QuoteList WHERE (CodQuote = @CodQuote) AND (QuoteRev = @QuoteRev) AND (QuoteType = @QuoteType)
@@ -70,6 +81,11 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
+
+
+
+
+
@@ -82,6 +98,12 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
+
+
+
+
+
+
@@ -100,8 +122,26 @@ SELECT QuoteType, CodQuote, QuoteRev, CodClient, CodItem, CodItemGroup, RawMat,
+
+
+
+
+
+
+
+
+ dbo.stp_QL_getByKey
+
+
+
+
+
+
+
+
+
@@ -232,7 +272,22 @@ SELECT QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost
-
+
+
+
+
+ dbo.stp_QRM_getByKey
+
+
+
+
+
+
+
+
+
+
+
@@ -876,6 +931,23 @@ SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Clas
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/C2P_Data/DS_Quotes.xss b/C2P_Data/DS_Quotes.xss
index 07b596b..c8b9c41 100644
--- a/C2P_Data/DS_Quotes.xss
+++ b/C2P_Data/DS_Quotes.xss
@@ -6,11 +6,11 @@
-->
-
-
+
+
-
+
@@ -22,7 +22,7 @@
280
- 322
+ 386
280
@@ -43,7 +43,7 @@
645
- 167
+ 129
645
@@ -58,19 +58,19 @@
- 562
- 510
+ 570
+ 586
- 562
- 551
+ 570
+ 665