..
This commit is contained in:
607
SubProject/FCM0000/dsMSSQL.Designer.cs
generated
607
SubProject/FCM0000/dsMSSQL.Designer.cs
generated
@@ -657,6 +657,14 @@ namespace FCM0000 {
|
||||
|
||||
private global::System.Data.DataColumn columnunit;
|
||||
|
||||
private global::System.Data.DataColumn columndisable;
|
||||
|
||||
private global::System.Data.DataColumn columnbparam1;
|
||||
|
||||
private global::System.Data.DataColumn columniparam1;
|
||||
|
||||
private global::System.Data.DataColumn columnimport;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public ItemsDataTable() {
|
||||
@@ -802,6 +810,38 @@ namespace FCM0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn disableColumn {
|
||||
get {
|
||||
return this.columndisable;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn bparam1Column {
|
||||
get {
|
||||
return this.columnbparam1;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn iparam1Column {
|
||||
get {
|
||||
return this.columniparam1;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn importColumn {
|
||||
get {
|
||||
return this.columnimport;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -839,7 +879,24 @@ namespace FCM0000 {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public ItemsRow AddItemsRow(string name, string sid, string model, string manu, string supply, string memo, string wuid, System.DateTime wdate, decimal price, string cate, int supplyidx, double scale, string unit) {
|
||||
public ItemsRow AddItemsRow(
|
||||
string name,
|
||||
string sid,
|
||||
string model,
|
||||
string manu,
|
||||
string supply,
|
||||
string memo,
|
||||
string wuid,
|
||||
System.DateTime wdate,
|
||||
decimal price,
|
||||
string cate,
|
||||
int supplyidx,
|
||||
double scale,
|
||||
string unit,
|
||||
bool disable,
|
||||
bool bparam1,
|
||||
int iparam1,
|
||||
string import) {
|
||||
ItemsRow rowItemsRow = ((ItemsRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -855,7 +912,11 @@ namespace FCM0000 {
|
||||
cate,
|
||||
supplyidx,
|
||||
scale,
|
||||
unit};
|
||||
unit,
|
||||
disable,
|
||||
bparam1,
|
||||
iparam1,
|
||||
import};
|
||||
rowItemsRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowItemsRow);
|
||||
return rowItemsRow;
|
||||
@@ -899,6 +960,10 @@ namespace FCM0000 {
|
||||
this.columnsupplyidx = base.Columns["supplyidx"];
|
||||
this.columnscale = base.Columns["scale"];
|
||||
this.columnunit = base.Columns["unit"];
|
||||
this.columndisable = base.Columns["disable"];
|
||||
this.columnbparam1 = base.Columns["bparam1"];
|
||||
this.columniparam1 = base.Columns["iparam1"];
|
||||
this.columnimport = base.Columns["import"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -932,6 +997,14 @@ namespace FCM0000 {
|
||||
base.Columns.Add(this.columnscale);
|
||||
this.columnunit = new global::System.Data.DataColumn("unit", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnunit);
|
||||
this.columndisable = new global::System.Data.DataColumn("disable", typeof(bool), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columndisable);
|
||||
this.columnbparam1 = new global::System.Data.DataColumn("bparam1", typeof(bool), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnbparam1);
|
||||
this.columniparam1 = new global::System.Data.DataColumn("iparam1", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columniparam1);
|
||||
this.columnimport = new global::System.Data.DataColumn("import", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnimport);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnidx}, true));
|
||||
this.columnidx.AutoIncrement = true;
|
||||
@@ -940,19 +1013,20 @@ namespace FCM0000 {
|
||||
this.columnidx.AllowDBNull = false;
|
||||
this.columnidx.ReadOnly = true;
|
||||
this.columnidx.Unique = true;
|
||||
this.columnname.MaxLength = 100;
|
||||
this.columnname.MaxLength = 200;
|
||||
this.columnsid.MaxLength = 50;
|
||||
this.columnmodel.MaxLength = 100;
|
||||
this.columnmodel.MaxLength = 200;
|
||||
this.columnmanu.MaxLength = 100;
|
||||
this.columnsupply.MaxLength = 100;
|
||||
this.columnmemo.MaxLength = 255;
|
||||
this.columnwuid.AllowDBNull = false;
|
||||
this.columnwuid.MaxLength = 20;
|
||||
this.columnwdate.AllowDBNull = false;
|
||||
this.columncate.MaxLength = 20;
|
||||
this.columncate.MaxLength = 50;
|
||||
this.columnscale.DefaultValue = ((double)(1D));
|
||||
this.columnunit.DefaultValue = ((string)("EA"));
|
||||
this.columnunit.MaxLength = 10;
|
||||
this.columnimport.MaxLength = 1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -5928,6 +6002,70 @@ namespace FCM0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool disable {
|
||||
get {
|
||||
try {
|
||||
return ((bool)(this[this.tableItems.disableColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'disable\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableItems.disableColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool bparam1 {
|
||||
get {
|
||||
try {
|
||||
return ((bool)(this[this.tableItems.bparam1Column]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'bparam1\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableItems.bparam1Column] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public int iparam1 {
|
||||
get {
|
||||
try {
|
||||
return ((int)(this[this.tableItems.iparam1Column]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'iparam1\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableItems.iparam1Column] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public string import {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableItems.importColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'import\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableItems.importColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IsnameNull() {
|
||||
@@ -6059,6 +6197,54 @@ namespace FCM0000 {
|
||||
public void SetunitNull() {
|
||||
this[this.tableItems.unitColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IsdisableNull() {
|
||||
return this.IsNull(this.tableItems.disableColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void SetdisableNull() {
|
||||
this[this.tableItems.disableColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool Isbparam1Null() {
|
||||
return this.IsNull(this.tableItems.bparam1Column);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void Setbparam1Null() {
|
||||
this[this.tableItems.bparam1Column] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool Isiparam1Null() {
|
||||
return this.IsNull(this.tableItems.iparam1Column);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void Setiparam1Null() {
|
||||
this[this.tableItems.iparam1Column] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IsimportNull() {
|
||||
return this.IsNull(this.tableItems.importColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void SetimportNull() {
|
||||
this[this.tableItems.importColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -10190,10 +10376,14 @@ namespace FCM0000.dsMSSQLTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("supplyidx", "supplyidx");
|
||||
tableMapping.ColumnMappings.Add("scale", "scale");
|
||||
tableMapping.ColumnMappings.Add("unit", "unit");
|
||||
tableMapping.ColumnMappings.Add("disable", "disable");
|
||||
tableMapping.ColumnMappings.Add("bparam1", "bparam1");
|
||||
tableMapping.ColumnMappings.Add("iparam1", "iparam1");
|
||||
tableMapping.ColumnMappings.Add("import", "import");
|
||||
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 [Items] WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_scale = 1 AND [scale] IS NULL) OR ([scale] = @Original_scale)) AND ((@IsNull_unit = 1 AND [unit] IS NULL) OR ([unit] = @Original_unit)))";
|
||||
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Items] WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_scale = 1 AND [scale] IS NULL) OR ([scale] = @Original_scale)) AND ((@IsNull_unit = 1 AND [unit] IS NULL) OR ([unit] = @Original_unit)) AND ((@IsNull_disable = 1 AND [disable] IS NULL) OR ([disable] = @Original_disable)) AND ((@IsNull_bparam1 = 1 AND [bparam1] IS NULL) OR ([bparam1] = @Original_bparam1)) AND ((@IsNull_iparam1 = 1 AND [iparam1] IS NULL) OR ([iparam1] = @Original_iparam1)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)))";
|
||||
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_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
@@ -10220,10 +10410,18 @@ namespace FCM0000.dsMSSQLTableAdapters {
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_scale", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_unit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "unit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_unit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "unit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_disable", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "disable", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_disable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "disable", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bparam1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bparam1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bparam1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_iparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "iparam1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_iparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "iparam1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", 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 [Items] ([name], [sid], [model], [manu], [supply], [price], [memo], [wuid], [wdate], [cate], [supplyidx], [scale], [unit]) VALUES (@name, @sid, @model, @manu, @supply, @price, @memo, @wuid, @wdate, @cate, @supplyidx, @scale, @unit);
|
||||
SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supplyidx, scale, unit FROM Items WHERE (idx = SCOPE_IDENTITY()) ORDER BY cate, name, idx";
|
||||
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Items] ([name], [sid], [model], [manu], [supply], [price], [memo], [wuid], [wdate], [cate], [supplyidx], [scale], [unit], [disable], [bparam1], [iparam1], [import]) VALUES (@name, @sid, @model, @manu, @supply, @price, @memo, @wuid, @wdate, @cate, @supplyidx, @scale, @unit, @disable, @bparam1, @iparam1, @import);
|
||||
SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supplyidx, scale, unit, disable, bparam1, iparam1, import FROM Items WHERE (idx = SCOPE_IDENTITY()) ORDER BY cate, name, idx";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -10238,10 +10436,35 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@scale", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@unit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "unit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@disable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "disable", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bparam1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bparam1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@iparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "iparam1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", 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 [Items] SET [name] = @name, [sid] = @sid, [model] = @model, [manu] = @manu, [supply] = @supply, [price] = @price, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [cate] = @cate, [supplyidx] = @supplyidx, [scale] = @scale, [unit] = @unit WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_supplyidx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@IsNull_scale = 1 AND [scale] IS NULL) OR ([scale] = @Original_scale)) AND ((@IsNull_unit = 1 AND [unit] IS NULL) OR ([unit] = @Original_unit)));
|
||||
SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supplyidx, scale, unit FROM Items WHERE (idx = @idx) ORDER BY cate, name, idx";
|
||||
this._adapter.UpdateCommand.CommandText = "UPDATE [Items] SET [name] = @name, [sid] = @sid, [model] = @model, [manu] = @manu" +
|
||||
", [supply] = @supply, [price] = @price, [memo] = @memo, [wuid] = @wuid, [wdate] " +
|
||||
"= @wdate, [cate] = @cate, [supplyidx] = @supplyidx, [scale] = @scale, [unit] = @" +
|
||||
"unit, [disable] = @disable, [bparam1] = @bparam1, [iparam1] = @iparam1, [import]" +
|
||||
" = @import WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS N" +
|
||||
"ULL) OR ([name] = @Original_name)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR (" +
|
||||
"[sid] = @Original_sid)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model]" +
|
||||
" = @Original_model)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Or" +
|
||||
"iginal_manu)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Ori" +
|
||||
"ginal_supply)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Origi" +
|
||||
"nal_price)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_me" +
|
||||
"mo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull" +
|
||||
"_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_supply" +
|
||||
"idx = 1 AND [supplyidx] IS NULL) OR ([supplyidx] = @Original_supplyidx)) AND ((@" +
|
||||
"IsNull_scale = 1 AND [scale] IS NULL) OR ([scale] = @Original_scale)) AND ((@IsN" +
|
||||
"ull_unit = 1 AND [unit] IS NULL) OR ([unit] = @Original_unit)) AND ((@IsNull_dis" +
|
||||
"able = 1 AND [disable] IS NULL) OR ([disable] = @Original_disable)) AND ((@IsNul" +
|
||||
"l_bparam1 = 1 AND [bparam1] IS NULL) OR ([bparam1] = @Original_bparam1)) AND ((@" +
|
||||
"IsNull_iparam1 = 1 AND [iparam1] IS NULL) OR ([iparam1] = @Original_iparam1)) AN" +
|
||||
"D ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)));" +
|
||||
"\r\nSELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, su" +
|
||||
"pplyidx, scale, unit, disable, bparam1, iparam1, import FROM Items WHERE (idx = " +
|
||||
"@idx) ORDER BY cate, name, idx";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -10256,6 +10479,10 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supplyidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@scale", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@unit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "unit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@disable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "disable", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bparam1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bparam1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@iparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "iparam1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", 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_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
@@ -10281,6 +10508,14 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_scale", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "scale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_unit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "unit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_unit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "unit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_disable", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "disable", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_disable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "disable", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_bparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bparam1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bparam1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bparam1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_iparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "iparam1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_iparam1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "iparam1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", 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, "", "", ""));
|
||||
}
|
||||
|
||||
@@ -10294,50 +10529,42 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp
|
||||
[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[5];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp" +
|
||||
"lyidx, scale, unit\r\nFROM Items\r\nORDER BY cate, name, idx";
|
||||
"lyidx, scale, unit, disable, bparam1, iparam1, import\r\nFROM Items\r\nORDER BY " +
|
||||
"cate, name, idx";
|
||||
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 = @"SELECT cate, idx, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid
|
||||
FROM Items
|
||||
WHERE (sid IN
|
||||
(SELECT sid
|
||||
FROM Items AS Items_1
|
||||
GROUP BY sid
|
||||
HAVING (COUNT(*) > 1))) AND (ISNULL(sid, '') <> '') AND (cate LIKE @cate)
|
||||
ORDER BY sid, name, idx";
|
||||
this._commandCollection[1].CommandText = "DELETE FROM Items\r\nWHERE (import = @imptag)";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@imptag", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "SELECT cate, idx, manu, memo, model, name, price, scale, sid, supply, supplyidx," +
|
||||
" unit, wdate, wuid\r\nFROM Items\r\nWHERE (cate LIKE @cate)\r\nORDER BY name, idx" +
|
||||
"";
|
||||
this._commandCollection[2].CommandText = @"SELECT bparam1, cate, disable, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (sid IN (SELECT sid FROM Items AS Items_1 GROUP BY sid HAVING (COUNT(*) > 1))) AND (ISNULL(sid, '') <> '') AND (cate LIKE @cate) ORDER BY sid, name, idx";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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 = @"SELECT cate, idx, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid
|
||||
FROM Items
|
||||
WHERE (ISNULL(name, N'') LIKE @search) OR
|
||||
(ISNULL(sid, N'') LIKE @search) OR
|
||||
(ISNULL(manu, N'') LIKE @search) OR
|
||||
(ISNULL(supply, N'') LIKE @search) OR
|
||||
(ISNULL(model, N'') LIKE @search) OR
|
||||
(ISNULL(memo, N'') LIKE @search)
|
||||
ORDER BY name, idx";
|
||||
this._commandCollection[3].CommandText = "SELECT bparam1, cate, disable, idx, import, iparam1, manu, memo, model, name, pri" +
|
||||
"ce, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (cate LIKE" +
|
||||
" @cate) ORDER BY name, idx";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", 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 cate, idx, manu, memo, model, name, price, scale, sid, supply, supplyidx, " +
|
||||
"unit, wdate, wuid FROM Items WHERE (idx = @idx)";
|
||||
this._commandCollection[4].CommandText = @"SELECT bparam1, cate, disable, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (ISNULL(name, N'') LIKE @search) OR (ISNULL(sid, N'') LIKE @search) OR (ISNULL(manu, N'') LIKE @search) OR (ISNULL(supply, N'') LIKE @search) OR (ISNULL(model, N'') LIKE @search) OR (ISNULL(memo, N'') LIKE @search) ORDER BY name, 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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", 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 bparam1, cate, disable, idx, import, iparam1, manu, memo, model, name, pri" +
|
||||
"ce, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (idx = @id" +
|
||||
"x)";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[5].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, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -10369,7 +10596,7 @@ ORDER BY name, idx";
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
||||
public virtual int FillDupCheck(dsMSSQL.ItemsDataTable dataTable, string cate) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((cate == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -10388,7 +10615,7 @@ ORDER BY name, idx";
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual dsMSSQL.ItemsDataTable GetDupCheck(string cate) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((cate == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -10405,7 +10632,7 @@ ORDER BY name, idx";
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
||||
public virtual int FillNoImage(dsMSSQL.ItemsDataTable dataTable, string cate) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
if ((cate == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -10424,7 +10651,7 @@ ORDER BY name, idx";
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual dsMSSQL.ItemsDataTable GetNoImage(string cate) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
if ((cate == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -10441,7 +10668,7 @@ ORDER BY name, idx";
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
||||
public virtual int FillSearch(dsMSSQL.ItemsDataTable dataTable, string search) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
if ((search == null)) {
|
||||
throw new global::System.ArgumentNullException("search");
|
||||
}
|
||||
@@ -10460,7 +10687,7 @@ ORDER BY name, idx";
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual dsMSSQL.ItemsDataTable GetSearch(string search) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
if ((search == null)) {
|
||||
throw new global::System.ArgumentNullException("search");
|
||||
}
|
||||
@@ -10477,7 +10704,7 @@ ORDER BY name, idx";
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual dsMSSQL.ItemsDataTable GetIDX(int idx) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[5];
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx));
|
||||
dsMSSQL.ItemsDataTable dataTable = new dsMSSQL.ItemsDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
@@ -10517,7 +10744,25 @@ ORDER BY name, idx";
|
||||
[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(int Original_idx, string Original_name, string Original_sid, string Original_model, string Original_manu, string Original_supply, global::System.Nullable<decimal> Original_price, string Original_memo, string Original_wuid, System.DateTime Original_wdate, string Original_cate, global::System.Nullable<int> Original_supplyidx, global::System.Nullable<double> Original_scale, string Original_unit) {
|
||||
public virtual int Delete(
|
||||
int Original_idx,
|
||||
string Original_name,
|
||||
string Original_sid,
|
||||
string Original_model,
|
||||
string Original_manu,
|
||||
string Original_supply,
|
||||
global::System.Nullable<decimal> Original_price,
|
||||
string Original_memo,
|
||||
string Original_wuid,
|
||||
System.DateTime Original_wdate,
|
||||
string Original_cate,
|
||||
global::System.Nullable<int> Original_supplyidx,
|
||||
global::System.Nullable<double> Original_scale,
|
||||
string Original_unit,
|
||||
global::System.Nullable<bool> Original_disable,
|
||||
global::System.Nullable<bool> Original_bparam1,
|
||||
global::System.Nullable<int> Original_iparam1,
|
||||
string Original_import) {
|
||||
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
||||
if ((Original_name == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
||||
@@ -10614,6 +10859,38 @@ ORDER BY name, idx";
|
||||
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_unit));
|
||||
}
|
||||
if ((Original_disable.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[26].Value = ((bool)(Original_disable.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_bparam1.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[28].Value = ((bool)(Original_bparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_iparam1.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[30].Value = ((int)(Original_iparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_import == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_import));
|
||||
}
|
||||
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)) {
|
||||
@@ -10634,7 +10911,24 @@ ORDER BY name, idx";
|
||||
[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 name, string sid, string model, string manu, string supply, global::System.Nullable<decimal> price, string memo, string wuid, System.DateTime wdate, string cate, global::System.Nullable<int> supplyidx, global::System.Nullable<double> scale, string unit) {
|
||||
public virtual int Insert(
|
||||
string name,
|
||||
string sid,
|
||||
string model,
|
||||
string manu,
|
||||
string supply,
|
||||
global::System.Nullable<decimal> price,
|
||||
string memo,
|
||||
string wuid,
|
||||
System.DateTime wdate,
|
||||
string cate,
|
||||
global::System.Nullable<int> supplyidx,
|
||||
global::System.Nullable<double> scale,
|
||||
string unit,
|
||||
global::System.Nullable<bool> disable,
|
||||
global::System.Nullable<bool> bparam1,
|
||||
global::System.Nullable<int> iparam1,
|
||||
string import) {
|
||||
if ((name == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -10708,6 +11002,30 @@ ORDER BY name, idx";
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(unit));
|
||||
}
|
||||
if ((disable.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[13].Value = ((bool)(disable.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((bparam1.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[14].Value = ((bool)(bparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((iparam1.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[15].Value = ((int)(iparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((import == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[16].Value = ((string)(import));
|
||||
}
|
||||
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)) {
|
||||
@@ -10742,6 +11060,10 @@ ORDER BY name, idx";
|
||||
global::System.Nullable<int> supplyidx,
|
||||
global::System.Nullable<double> scale,
|
||||
string unit,
|
||||
global::System.Nullable<bool> disable,
|
||||
global::System.Nullable<bool> bparam1,
|
||||
global::System.Nullable<int> iparam1,
|
||||
string import,
|
||||
int Original_idx,
|
||||
string Original_name,
|
||||
string Original_sid,
|
||||
@@ -10756,6 +11078,10 @@ ORDER BY name, idx";
|
||||
global::System.Nullable<int> Original_supplyidx,
|
||||
global::System.Nullable<double> Original_scale,
|
||||
string Original_unit,
|
||||
global::System.Nullable<bool> Original_disable,
|
||||
global::System.Nullable<bool> Original_bparam1,
|
||||
global::System.Nullable<int> Original_iparam1,
|
||||
string Original_import,
|
||||
int idx) {
|
||||
if ((name == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
@@ -10830,103 +11156,159 @@ ORDER BY name, idx";
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(unit));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_idx));
|
||||
if ((Original_name == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
|
||||
if ((disable.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(disable.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((bparam1.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((bool)(bparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((iparam1.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(iparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_name));
|
||||
}
|
||||
if ((Original_sid == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
||||
if ((import == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_sid));
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(import));
|
||||
}
|
||||
if ((Original_model == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_idx));
|
||||
if ((Original_name == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_model));
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_name));
|
||||
}
|
||||
if ((Original_manu == null)) {
|
||||
if ((Original_sid == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_manu));
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_sid));
|
||||
}
|
||||
if ((Original_supply == null)) {
|
||||
if ((Original_model == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_supply));
|
||||
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_model));
|
||||
}
|
||||
if ((Original_price.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[25].Value = ((decimal)(Original_price.Value));
|
||||
}
|
||||
else {
|
||||
if ((Original_manu == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_memo == null)) {
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_manu));
|
||||
}
|
||||
if ((Original_supply == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_memo));
|
||||
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_supply));
|
||||
}
|
||||
if ((Original_wuid == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_wuid");
|
||||
if ((Original_price.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[29].Value = ((decimal)(Original_price.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_wuid));
|
||||
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_wdate));
|
||||
if ((Original_cate == null)) {
|
||||
if ((Original_memo == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_cate));
|
||||
this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_memo));
|
||||
}
|
||||
if ((Original_supplyidx.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_supplyidx.Value));
|
||||
if ((Original_wuid == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_wuid");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_wuid));
|
||||
}
|
||||
if ((Original_scale.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[35].Value = ((double)(Original_scale.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[33].Value = ((System.DateTime)(Original_wdate));
|
||||
if ((Original_cate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_unit == null)) {
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_cate));
|
||||
}
|
||||
if ((Original_supplyidx.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(Original_supplyidx.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_unit));
|
||||
if ((Original_scale.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[39].Value = ((double)(Original_scale.Value));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(idx));
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_unit == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_unit));
|
||||
}
|
||||
if ((Original_disable.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[43].Value = ((bool)(Original_disable.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_bparam1.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[45].Value = ((bool)(Original_bparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_iparam1.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[47].Value = ((int)(Original_iparam1.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_import == 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_import));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[50].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)) {
|
||||
@@ -10961,6 +11343,10 @@ ORDER BY name, idx";
|
||||
global::System.Nullable<int> supplyidx,
|
||||
global::System.Nullable<double> scale,
|
||||
string unit,
|
||||
global::System.Nullable<bool> disable,
|
||||
global::System.Nullable<bool> bparam1,
|
||||
global::System.Nullable<int> iparam1,
|
||||
string import,
|
||||
int Original_idx,
|
||||
string Original_name,
|
||||
string Original_sid,
|
||||
@@ -10974,8 +11360,41 @@ ORDER BY name, idx";
|
||||
string Original_cate,
|
||||
global::System.Nullable<int> Original_supplyidx,
|
||||
global::System.Nullable<double> Original_scale,
|
||||
string Original_unit) {
|
||||
return this.Update(name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supplyidx, scale, unit, Original_idx, Original_name, Original_sid, Original_model, Original_manu, Original_supply, Original_price, Original_memo, Original_wuid, Original_wdate, Original_cate, Original_supplyidx, Original_scale, Original_unit, Original_idx);
|
||||
string Original_unit,
|
||||
global::System.Nullable<bool> Original_disable,
|
||||
global::System.Nullable<bool> Original_bparam1,
|
||||
global::System.Nullable<int> Original_iparam1,
|
||||
string Original_import) {
|
||||
return this.Update(name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supplyidx, scale, unit, disable, bparam1, iparam1, import, Original_idx, Original_name, Original_sid, Original_model, Original_manu, Original_supply, Original_price, Original_memo, Original_wuid, Original_wdate, Original_cate, Original_supplyidx, Original_scale, Original_unit, Original_disable, Original_bparam1, Original_iparam1, Original_import, Original_idx);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
|
||||
public virtual int DeleteImport(string imptag) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
||||
if ((imptag == null)) {
|
||||
command.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[0].Value = ((string)(imptag));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user