..
This commit is contained in:
599
SubProject/FEQ0000/dsPurchase.Designer.cs
generated
599
SubProject/FEQ0000/dsPurchase.Designer.cs
generated
@@ -568,6 +568,8 @@ namespace FEQ0000 {
|
||||
|
||||
private global::System.Data.DataColumn columncurrency;
|
||||
|
||||
private global::System.Data.DataColumn columnprdate;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public PurchaseDataTable() :
|
||||
@@ -1010,6 +1012,14 @@ namespace FEQ0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn prdateColumn {
|
||||
get {
|
||||
return this.columnprdate;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -1096,7 +1106,8 @@ namespace FEQ0000 {
|
||||
string chkremark,
|
||||
string purchase_manager,
|
||||
string purchase_admin,
|
||||
string currency) {
|
||||
string currency,
|
||||
string prdate) {
|
||||
PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -1148,7 +1159,8 @@ namespace FEQ0000 {
|
||||
chkremark,
|
||||
purchase_manager,
|
||||
purchase_admin,
|
||||
currency};
|
||||
currency,
|
||||
prdate};
|
||||
rowPurchaseRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowPurchaseRow);
|
||||
return rowPurchaseRow;
|
||||
@@ -1204,7 +1216,8 @@ namespace FEQ0000 {
|
||||
string chkremark,
|
||||
string purchase_manager,
|
||||
string purchase_admin,
|
||||
string currency) {
|
||||
string currency,
|
||||
string prdate) {
|
||||
PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -1256,7 +1269,8 @@ namespace FEQ0000 {
|
||||
chkremark,
|
||||
purchase_manager,
|
||||
purchase_admin,
|
||||
currency};
|
||||
currency,
|
||||
prdate};
|
||||
rowPurchaseRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowPurchaseRow);
|
||||
return rowPurchaseRow;
|
||||
@@ -1336,6 +1350,7 @@ namespace FEQ0000 {
|
||||
this.columnpurchase_manager = base.Columns["purchase_manager"];
|
||||
this.columnpurchase_admin = base.Columns["purchase_admin"];
|
||||
this.columncurrency = base.Columns["currency"];
|
||||
this.columnprdate = base.Columns["prdate"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -1441,6 +1456,8 @@ namespace FEQ0000 {
|
||||
base.Columns.Add(this.columnpurchase_admin);
|
||||
this.columncurrency = new global::System.Data.DataColumn("currency", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columncurrency);
|
||||
this.columnprdate = new global::System.Data.DataColumn("prdate", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnprdate);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnidx}, true));
|
||||
this.columnidx.AutoIncrement = true;
|
||||
@@ -1488,6 +1505,7 @@ namespace FEQ0000 {
|
||||
this.columnpurchase_manager.MaxLength = 50;
|
||||
this.columnpurchase_admin.MaxLength = 50;
|
||||
this.columncurrency.MaxLength = 10;
|
||||
this.columnprdate.MaxLength = 10;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -6182,6 +6200,22 @@ namespace FEQ0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string prdate {
|
||||
get {
|
||||
if (this.IsprdateNull()) {
|
||||
return string.Empty;
|
||||
}
|
||||
else {
|
||||
return ((string)(this[this.tablePurchase.prdateColumn]));
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tablePurchase.prdateColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IspdateNull() {
|
||||
@@ -6733,6 +6767,18 @@ namespace FEQ0000 {
|
||||
public void SetcurrencyNull() {
|
||||
this[this.tablePurchase.currencyColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsprdateNull() {
|
||||
return this.IsNull(this.tablePurchase.prdateColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetprdateNull() {
|
||||
this[this.tablePurchase.prdateColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -10999,6 +11045,7 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("purchase_manager", "purchase_manager");
|
||||
tableMapping.ColumnMappings.Add("purchase_admin", "purchase_admin");
|
||||
tableMapping.ColumnMappings.Add("currency", "currency");
|
||||
tableMapping.ColumnMappings.Add("prdate", "prdate");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
@@ -11047,7 +11094,8 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
"ull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purchase_manager] " +
|
||||
"= @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AND [purchase_ad" +
|
||||
"min] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AND ((@IsNull_cu" +
|
||||
"rrency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)))";
|
||||
"rrency = 1 AND [currency] IS NULL) OR ([currency] = @Original_currency)) AND ((@" +
|
||||
"IsNull_prdate = 1 AND [prdate] IS NULL) OR ([prdate] = @Original_prdate)))";
|
||||
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
@@ -11137,6 +11185,8 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_currency", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_prdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", 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 [Purchase] ([pdate], [state], [process], [receive], [sc], [request], " +
|
||||
@@ -11145,20 +11195,20 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
"], [wuid], [wdate], [import], [pumidx], [isdel], [bigo], [manuproc], [orderno], " +
|
||||
"[gcode], [place], [inqty], [pumpriceD], [inremark], [winuid], [windate], [chk1]," +
|
||||
" [chk2], [costcenter], [linecode], [pumqtyReq], [chkremark], [purchase_manager]," +
|
||||
" [purchase_admin], [currency]) VALUES (@pdate, @state, @process, @receive, @sc, " +
|
||||
"@request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pumamt, @sup" +
|
||||
"ply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, @dept, @wu" +
|
||||
"id, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gcode, @place" +
|
||||
", @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @costcenter, @" +
|
||||
"linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, @currency)" +
|
||||
";\r\nSELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS recei" +
|
||||
"veName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pums" +
|
||||
"cale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx," +
|
||||
" asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manup" +
|
||||
"roc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, c" +
|
||||
"hk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admi" +
|
||||
"n, currency FROM Purchase WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate DESC, id" +
|
||||
"x DESC";
|
||||
" [purchase_admin], [currency], [prdate]) VALUES (@pdate, @state, @process, @rece" +
|
||||
"ive, @sc, @request, @sid, @pumname, @pumscale, @pumunit, @pumqty, @pumprice, @pu" +
|
||||
"mamt, @supply, @supplyidx, @project, @projectidx, @asset, @edate, @indate, @po, " +
|
||||
"@dept, @wuid, @wdate, @import, @pumidx, @isdel, @bigo, @manuproc, @orderno, @gco" +
|
||||
"de, @place, @inqty, @pumpriceD, @inremark, @winuid, @windate, @chk1, @chk2, @cos" +
|
||||
"tcenter, @linecode, @pumqtyReq, @chkremark, @purchase_manager, @purchase_admin, " +
|
||||
"@currency, @prdate);\r\nSELECT idx, pdate, state, process, receive, dbo.getUserNam" +
|
||||
"e(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName," +
|
||||
" sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, p" +
|
||||
"roject, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx," +
|
||||
" isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winui" +
|
||||
"d, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_man" +
|
||||
"ager, purchase_admin, currency, prdate FROM Purchase WHERE (idx = SCOPE_IDENTITY" +
|
||||
"()) ORDER BY pdate DESC, idx DESC";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -11206,6 +11256,7 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", 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 [Purchase] SET [pdate] = @pdate, [state] = @state, [process] = @process, [" +
|
||||
@@ -11220,60 +11271,61 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
"winuid] = @winuid, [windate] = @windate, [chk1] = @chk1, [chk2] = @chk2, [costce" +
|
||||
"nter] = @costcenter, [linecode] = @linecode, [pumqtyReq] = @pumqtyReq, [chkremar" +
|
||||
"k] = @chkremark, [purchase_manager] = @purchase_manager, [purchase_admin] = @pur" +
|
||||
"chase_admin, [currency] = @currency WHERE (([idx] = @Original_idx) AND ((@IsNull" +
|
||||
"_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_st" +
|
||||
"ate = 1 AND [state] IS NULL) OR ([state] = @Original_state)) AND ((@IsNull_proce" +
|
||||
"ss = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_" +
|
||||
"receive = 1 AND [receive] IS NULL) OR ([receive] = @Original_receive)) AND ((@Is" +
|
||||
"Null_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND ((@IsNull_request = " +
|
||||
"1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_sid =" +
|
||||
" 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_pumname = 1 AND " +
|
||||
"[pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND ((@IsNull_pumscale = " +
|
||||
"1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscale)) AND ((@IsNull_pu" +
|
||||
"munit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_pumunit)) AND ((@IsNu" +
|
||||
"ll_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original_pumqty)) AND ((@IsN" +
|
||||
"ull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @Original_pumprice)) A" +
|
||||
"ND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] = @Original_pumamt)) " +
|
||||
"AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply))" +
|
||||
" AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Origina" +
|
||||
"l_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] IS NULL) OR ([projec" +
|
||||
"tidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR (" +
|
||||
"[asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([ed" +
|
||||
"ate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([ind" +
|
||||
"ate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS NULL) OR ([po] = @Ori" +
|
||||
"ginal_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dep" +
|
||||
"t)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_" +
|
||||
"import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ((@IsNull" +
|
||||
"_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_pumidx)) AND ((@IsNul" +
|
||||
"l_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isdel)) AND ((@IsNull_b" +
|
||||
"igo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AND ((@IsNull_manuproc" +
|
||||
" = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manuproc)) AND ((@IsNull" +
|
||||
"_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Original_orderno)) AND ([gc" +
|
||||
"ode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place]" +
|
||||
" = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS NULL) OR ([inqty] = " +
|
||||
"@Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD] IS NULL) OR ([pump" +
|
||||
"riceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AND [inremark] IS NULL" +
|
||||
") OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid = 1 AND [winuid] IS" +
|
||||
" NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_windate = 1 AND [windate]" +
|
||||
" IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_chk1 = 1 AND [chk1] " +
|
||||
"IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = 1 AND [chk2] IS NULL" +
|
||||
") OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1 AND [costcenter] IS" +
|
||||
" NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNull_linecode = 1 AND " +
|
||||
"[linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_pumqtyRe" +
|
||||
"q = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_pumqtyReq)) AND ((@Is" +
|
||||
"Null_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] = @Original_chkremar" +
|
||||
"k)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager] IS NULL) OR ([purc" +
|
||||
"hase_manager] = @Original_purchase_manager)) AND ((@IsNull_purchase_admin = 1 AN" +
|
||||
"D [purchase_admin] IS NULL) OR ([purchase_admin] = @Original_purchase_admin)) AN" +
|
||||
"D ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([currency] = @Original_curr" +
|
||||
"ency)));\r\nSELECT idx, pdate, state, process, receive, dbo.getUserName(receive) A" +
|
||||
"S receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumnam" +
|
||||
"e, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, proj" +
|
||||
"ectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo" +
|
||||
", manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, " +
|
||||
"chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purcha" +
|
||||
"se_admin, currency FROM Purchase WHERE (idx = @idx) ORDER BY pdate DESC, idx DES" +
|
||||
"C";
|
||||
"chase_admin, [currency] = @currency, [prdate] = @prdate WHERE (([idx] = @Origina" +
|
||||
"l_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdat" +
|
||||
"e)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state))" +
|
||||
" AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_proc" +
|
||||
"ess)) AND ((@IsNull_receive = 1 AND [receive] IS NULL) OR ([receive] = @Original" +
|
||||
"_receive)) AND ((@IsNull_sc = 1 AND [sc] IS NULL) OR ([sc] = @Original_sc)) AND " +
|
||||
"((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request))" +
|
||||
" AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsN" +
|
||||
"ull_pumname = 1 AND [pumname] IS NULL) OR ([pumname] = @Original_pumname)) AND (" +
|
||||
"(@IsNull_pumscale = 1 AND [pumscale] IS NULL) OR ([pumscale] = @Original_pumscal" +
|
||||
"e)) AND ((@IsNull_pumunit = 1 AND [pumunit] IS NULL) OR ([pumunit] = @Original_p" +
|
||||
"umunit)) AND ((@IsNull_pumqty = 1 AND [pumqty] IS NULL) OR ([pumqty] = @Original" +
|
||||
"_pumqty)) AND ((@IsNull_pumprice = 1 AND [pumprice] IS NULL) OR ([pumprice] = @O" +
|
||||
"riginal_pumprice)) AND ((@IsNull_pumamt = 1 AND [pumamt] IS NULL) OR ([pumamt] =" +
|
||||
" @Original_pumamt)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] " +
|
||||
"= @Original_supply)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([s" +
|
||||
"upplyidx] = @Original_supplyidx)) AND ((@IsNull_projectidx = 1 AND [projectidx] " +
|
||||
"IS NULL) OR ([projectidx] = @Original_projectidx)) AND ((@IsNull_asset = 1 AND [" +
|
||||
"asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_edate = 1 AND [eda" +
|
||||
"te] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_indate = 1 AND [indat" +
|
||||
"e] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_po = 1 AND [po] IS N" +
|
||||
"ULL) OR ([po] = @Original_po)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([d" +
|
||||
"ept] = @Original_dept)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_w" +
|
||||
"date) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_im" +
|
||||
"port)) AND ((@IsNull_pumidx = 1 AND [pumidx] IS NULL) OR ([pumidx] = @Original_p" +
|
||||
"umidx)) AND ((@IsNull_isdel = 1 AND [isdel] IS NULL) OR ([isdel] = @Original_isd" +
|
||||
"el)) AND ((@IsNull_bigo = 1 AND [bigo] IS NULL) OR ([bigo] = @Original_bigo)) AN" +
|
||||
"D ((@IsNull_manuproc = 1 AND [manuproc] IS NULL) OR ([manuproc] = @Original_manu" +
|
||||
"proc)) AND ((@IsNull_orderno = 1 AND [orderno] IS NULL) OR ([orderno] = @Origina" +
|
||||
"l_orderno)) AND ([gcode] = @Original_gcode) AND ((@IsNull_place = 1 AND [place] " +
|
||||
"IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_inqty = 1 AND [inqty] IS " +
|
||||
"NULL) OR ([inqty] = @Original_inqty)) AND ((@IsNull_pumpriceD = 1 AND [pumpriceD" +
|
||||
"] IS NULL) OR ([pumpriceD] = @Original_pumpriceD)) AND ((@IsNull_inremark = 1 AN" +
|
||||
"D [inremark] IS NULL) OR ([inremark] = @Original_inremark)) AND ((@IsNull_winuid" +
|
||||
" = 1 AND [winuid] IS NULL) OR ([winuid] = @Original_winuid)) AND ((@IsNull_winda" +
|
||||
"te = 1 AND [windate] IS NULL) OR ([windate] = @Original_windate)) AND ((@IsNull_" +
|
||||
"chk1 = 1 AND [chk1] IS NULL) OR ([chk1] = @Original_chk1)) AND ((@IsNull_chk2 = " +
|
||||
"1 AND [chk2] IS NULL) OR ([chk2] = @Original_chk2)) AND ((@IsNull_costcenter = 1" +
|
||||
" AND [costcenter] IS NULL) OR ([costcenter] = @Original_costcenter)) AND ((@IsNu" +
|
||||
"ll_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AN" +
|
||||
"D ((@IsNull_pumqtyReq = 1 AND [pumqtyReq] IS NULL) OR ([pumqtyReq] = @Original_p" +
|
||||
"umqtyReq)) AND ((@IsNull_chkremark = 1 AND [chkremark] IS NULL) OR ([chkremark] " +
|
||||
"= @Original_chkremark)) AND ((@IsNull_purchase_manager = 1 AND [purchase_manager" +
|
||||
"] IS NULL) OR ([purchase_manager] = @Original_purchase_manager)) AND ((@IsNull_p" +
|
||||
"urchase_admin = 1 AND [purchase_admin] IS NULL) OR ([purchase_admin] = @Original" +
|
||||
"_purchase_admin)) AND ((@IsNull_currency = 1 AND [currency] IS NULL) OR ([curren" +
|
||||
"cy] = @Original_currency)) AND ((@IsNull_prdate = 1 AND [prdate] IS NULL) OR ([p" +
|
||||
"rdate] = @Original_prdate)));\r\nSELECT idx, pdate, state, process, receive, dbo.g" +
|
||||
"etUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS req" +
|
||||
"uestName, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, sup" +
|
||||
"plyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import" +
|
||||
", pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inrema" +
|
||||
"rk, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, pur" +
|
||||
"chase_manager, purchase_admin, currency, prdate FROM Purchase WHERE (idx = @idx)" +
|
||||
" ORDER BY pdate DESC, idx DESC";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -11321,6 +11373,7 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_manager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
@@ -11409,6 +11462,8 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_purchase_admin", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "purchase_admin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_currency", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_currency", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "currency", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_prdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
@@ -11427,7 +11482,7 @@ namespace FEQ0000.dsPurchaseTableAdapters {
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, dbo.getUserName(receive) AS receiveName, sc, request, dbo.getUserName(request) AS requestName, sid, pumname, pumscale, pumunit, pumqty,
|
||||
pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark,
|
||||
winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency
|
||||
winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate
|
||||
FROM Purchase
|
||||
WHERE (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)
|
||||
ORDER BY pdate DESC, idx DESC";
|
||||
@@ -11453,19 +11508,19 @@ ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[3].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(orderno, '') = '') AND (state IN ('PO', 'Received')) ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", 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 = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx)";
|
||||
this._commandCollection[4].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (idx = @idx)";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", 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 = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[5].CommandText = @"SELECT asset, bigo, chk1, chk2, chkremark, costcenter, currency, dept, edate, gcode, idx, import, indate, inqty, inremark, isdel, linecode, manuproc, orderno, pdate, place, po, prdate, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumpriceD, pumqty, pumqtyReq, pumscale, pumunit, purchase_admin, purchase_manager, receive, dbo.getUserName(receive) AS receiveName, request, dbo.getUserName(request) AS requestName, sc, sid, state, supply, supplyidx, wdate, windate, winuid, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -11733,7 +11788,8 @@ ORDER BY pdate DESC, idx DESC";
|
||||
string Original_chkremark,
|
||||
string Original_purchase_manager,
|
||||
string Original_purchase_admin,
|
||||
string Original_currency) {
|
||||
string Original_currency,
|
||||
string Original_prdate) {
|
||||
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
||||
if ((Original_pdate == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
||||
@@ -12084,6 +12140,14 @@ ORDER BY pdate DESC, idx DESC";
|
||||
this.Adapter.DeleteCommand.Parameters[86].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[87].Value = ((string)(Original_currency));
|
||||
}
|
||||
if ((Original_prdate == 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_prdate));
|
||||
}
|
||||
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)) {
|
||||
@@ -12150,7 +12214,8 @@ ORDER BY pdate DESC, idx DESC";
|
||||
string chkremark,
|
||||
string purchase_manager,
|
||||
string purchase_admin,
|
||||
string currency) {
|
||||
string currency,
|
||||
string prdate) {
|
||||
if ((pdate == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -12422,6 +12487,12 @@ ORDER BY pdate DESC, idx DESC";
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[45].Value = ((string)(currency));
|
||||
}
|
||||
if ((prdate == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[46].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[46].Value = ((string)(prdate));
|
||||
}
|
||||
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)) {
|
||||
@@ -12489,6 +12560,7 @@ ORDER BY pdate DESC, idx DESC";
|
||||
string purchase_manager,
|
||||
string purchase_admin,
|
||||
string currency,
|
||||
string prdate,
|
||||
int Original_idx,
|
||||
string Original_pdate,
|
||||
string Original_state,
|
||||
@@ -12535,6 +12607,7 @@ ORDER BY pdate DESC, idx DESC";
|
||||
string Original_purchase_manager,
|
||||
string Original_purchase_admin,
|
||||
string Original_currency,
|
||||
string Original_prdate,
|
||||
int idx) {
|
||||
if ((pdate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
@@ -12807,357 +12880,371 @@ ORDER BY pdate DESC, idx DESC";
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(currency));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[46].Value = ((int)(Original_idx));
|
||||
if ((Original_pdate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
|
||||
if ((prdate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_pdate));
|
||||
this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(prdate));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[47].Value = ((int)(Original_idx));
|
||||
if ((Original_pdate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_pdate));
|
||||
}
|
||||
if ((Original_state == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_state));
|
||||
this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_state));
|
||||
}
|
||||
if ((Original_process == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_process));
|
||||
this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_process));
|
||||
}
|
||||
if ((Original_receive == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_receive));
|
||||
this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_receive));
|
||||
}
|
||||
if ((Original_sc == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_sc));
|
||||
this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_sc));
|
||||
}
|
||||
if ((Original_request == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_request));
|
||||
this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_request));
|
||||
}
|
||||
if ((Original_sid == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_sid));
|
||||
this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_sid));
|
||||
}
|
||||
if ((Original_pumname == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_pumname));
|
||||
this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_pumname));
|
||||
}
|
||||
if ((Original_pumscale == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_pumscale));
|
||||
this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[65].Value = ((string)(Original_pumscale));
|
||||
}
|
||||
if ((Original_pumunit == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_pumunit));
|
||||
this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[67].Value = ((string)(Original_pumunit));
|
||||
}
|
||||
if ((Original_pumqty.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_pumqty.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[69].Value = ((int)(Original_pumqty.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_pumprice.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[70].Value = ((decimal)(Original_pumprice.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[71].Value = ((decimal)(Original_pumprice.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_pumamt.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(Original_pumamt.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[73].Value = ((decimal)(Original_pumamt.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_supply == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[74].Value = ((string)(Original_supply));
|
||||
this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[75].Value = ((string)(Original_supply));
|
||||
}
|
||||
if ((Original_supplyidx.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[76].Value = ((int)(Original_supplyidx.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[77].Value = ((int)(Original_supplyidx.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[77].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_projectidx.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[78].Value = ((int)(Original_projectidx.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[79].Value = ((int)(Original_projectidx.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[78].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[79].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_asset == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[81].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[80].Value = ((string)(Original_asset));
|
||||
this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[81].Value = ((string)(Original_asset));
|
||||
}
|
||||
if ((Original_edate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[82].Value = ((string)(Original_edate));
|
||||
this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[83].Value = ((string)(Original_edate));
|
||||
}
|
||||
if ((Original_indate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_indate));
|
||||
this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[85].Value = ((string)(Original_indate));
|
||||
}
|
||||
if ((Original_po == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[87].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_po));
|
||||
this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[87].Value = ((string)(Original_po));
|
||||
}
|
||||
if ((Original_dept == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[89].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_dept));
|
||||
this.Adapter.UpdateCommand.Parameters[88].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_dept));
|
||||
}
|
||||
if ((Original_wuid == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_wuid");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[89].Value = ((string)(Original_wuid));
|
||||
this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_wuid));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[90].Value = ((System.DateTime)(Original_wdate));
|
||||
this.Adapter.UpdateCommand.Parameters[91].Value = ((System.DateTime)(Original_wdate));
|
||||
if ((Original_import.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[92].Value = ((bool)(Original_import.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[93].Value = ((bool)(Original_import.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[92].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[92].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[93].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_pumidx.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[94].Value = ((int)(Original_pumidx.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[95].Value = ((int)(Original_pumidx.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[94].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[94].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[95].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_isdel.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[96].Value = ((bool)(Original_isdel.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[97].Value = ((bool)(Original_isdel.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[96].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[96].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[97].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_bigo == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[99].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[98].Value = ((string)(Original_bigo));
|
||||
this.Adapter.UpdateCommand.Parameters[98].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[99].Value = ((string)(Original_bigo));
|
||||
}
|
||||
if ((Original_manuproc == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[100].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[101].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_manuproc));
|
||||
this.Adapter.UpdateCommand.Parameters[100].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[101].Value = ((string)(Original_manuproc));
|
||||
}
|
||||
if ((Original_orderno == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[103].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_orderno));
|
||||
this.Adapter.UpdateCommand.Parameters[102].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_orderno));
|
||||
}
|
||||
if ((Original_gcode == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_gcode");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[103].Value = ((string)(Original_gcode));
|
||||
this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_gcode));
|
||||
}
|
||||
if ((Original_place == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[105].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[104].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[105].Value = ((string)(Original_place));
|
||||
this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[106].Value = ((string)(Original_place));
|
||||
}
|
||||
if ((Original_inqty.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[107].Value = ((int)(Original_inqty.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[108].Value = ((int)(Original_inqty.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[106].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[107].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_pumpriceD.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[109].Value = ((decimal)(Original_pumpriceD.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[110].Value = ((decimal)(Original_pumpriceD.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[108].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[109].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_inremark == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[111].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[110].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[111].Value = ((string)(Original_inremark));
|
||||
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[112].Value = ((string)(Original_inremark));
|
||||
}
|
||||
if ((Original_winuid == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[113].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[112].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[113].Value = ((string)(Original_winuid));
|
||||
this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[114].Value = ((string)(Original_winuid));
|
||||
}
|
||||
if ((Original_windate.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[115].Value = ((System.DateTime)(Original_windate.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[116].Value = ((System.DateTime)(Original_windate.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[114].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[115].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_chk1.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[117].Value = ((bool)(Original_chk1.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[118].Value = ((bool)(Original_chk1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[116].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[117].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_chk2.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[119].Value = ((bool)(Original_chk2.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[120].Value = ((bool)(Original_chk2.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[118].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[119].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_costcenter == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[121].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[120].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[121].Value = ((string)(Original_costcenter));
|
||||
this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[122].Value = ((string)(Original_costcenter));
|
||||
}
|
||||
if ((Original_linecode == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[123].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[122].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[123].Value = ((string)(Original_linecode));
|
||||
this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_linecode));
|
||||
}
|
||||
if ((Original_pumqtyReq.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[125].Value = ((int)(Original_pumqtyReq.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[126].Value = ((int)(Original_pumqtyReq.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[124].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[125].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[126].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_chkremark == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[127].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[128].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[126].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[127].Value = ((string)(Original_chkremark));
|
||||
this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[128].Value = ((string)(Original_chkremark));
|
||||
}
|
||||
if ((Original_purchase_manager == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[128].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[129].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[130].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[128].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[129].Value = ((string)(Original_purchase_manager));
|
||||
this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[130].Value = ((string)(Original_purchase_manager));
|
||||
}
|
||||
if ((Original_purchase_admin == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[131].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[132].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[130].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[131].Value = ((string)(Original_purchase_admin));
|
||||
this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[132].Value = ((string)(Original_purchase_admin));
|
||||
}
|
||||
if ((Original_currency == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[133].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[134].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[132].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[133].Value = ((string)(Original_currency));
|
||||
this.Adapter.UpdateCommand.Parameters[133].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[134].Value = ((string)(Original_currency));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[134].Value = ((int)(idx));
|
||||
if ((Original_prdate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[136].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[135].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[136].Value = ((string)(Original_prdate));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[137].Value = ((int)(idx));
|
||||
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)) {
|
||||
@@ -13225,6 +13312,7 @@ ORDER BY pdate DESC, idx DESC";
|
||||
string purchase_manager,
|
||||
string purchase_admin,
|
||||
string currency,
|
||||
string prdate,
|
||||
int Original_idx,
|
||||
string Original_pdate,
|
||||
string Original_state,
|
||||
@@ -13270,8 +13358,9 @@ ORDER BY pdate DESC, idx DESC";
|
||||
string Original_chkremark,
|
||||
string Original_purchase_manager,
|
||||
string Original_purchase_admin,
|
||||
string Original_currency) {
|
||||
return this.Update(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, Original_idx, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumprice, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_edate, Original_indate, Original_po, Original_dept, Original_wuid, Original_wdate, Original_import, Original_pumidx, Original_isdel, Original_bigo, Original_manuproc, Original_orderno, Original_gcode, Original_place, Original_inqty, Original_pumpriceD, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_costcenter, Original_linecode, Original_pumqtyReq, Original_chkremark, Original_purchase_manager, Original_purchase_admin, Original_currency, Original_idx);
|
||||
string Original_currency,
|
||||
string Original_prdate) {
|
||||
return this.Update(pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid, wdate, import, pumidx, isdel, bigo, manuproc, orderno, gcode, place, inqty, pumpriceD, inremark, winuid, windate, chk1, chk2, costcenter, linecode, pumqtyReq, chkremark, purchase_manager, purchase_admin, currency, prdate, Original_idx, Original_pdate, Original_state, Original_process, Original_receive, Original_sc, Original_request, Original_sid, Original_pumname, Original_pumscale, Original_pumunit, Original_pumqty, Original_pumprice, Original_pumamt, Original_supply, Original_supplyidx, Original_projectidx, Original_asset, Original_edate, Original_indate, Original_po, Original_dept, Original_wuid, Original_wdate, Original_import, Original_pumidx, Original_isdel, Original_bigo, Original_manuproc, Original_orderno, Original_gcode, Original_place, Original_inqty, Original_pumpriceD, Original_inremark, Original_winuid, Original_windate, Original_chk1, Original_chk2, Original_costcenter, Original_linecode, Original_pumqtyReq, Original_chkremark, Original_purchase_manager, Original_purchase_admin, Original_currency, Original_prdate, Original_idx);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
Reference in New Issue
Block a user