This commit is contained in:
chi
2021-12-31 10:22:49 +09:00
parent 10d05e36d4
commit 68a4443333
10 changed files with 390 additions and 236 deletions

View File

@@ -1228,6 +1228,8 @@ namespace FCM0000 {
private global::System.Data.DataColumn columnholyreq;
private global::System.Data.DataColumn columnaccount;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AuthDataTable() {
@@ -1373,6 +1375,14 @@ namespace FCM0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn accountColumn {
get {
return this.columnaccount;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1410,7 +1420,7 @@ namespace FCM0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public AuthRow AddAuthRow(string user, string gcode, int purchase, int holyday, int project, int jobreport, int savecost, int scheapp, int equipment, int kusul, int otconfirm, int kuntae, int holyreq) {
public AuthRow AddAuthRow(string user, string gcode, int purchase, int holyday, int project, int jobreport, int savecost, int scheapp, int equipment, int kusul, int otconfirm, int kuntae, int holyreq, int account) {
AuthRow rowAuthRow = ((AuthRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1426,7 +1436,8 @@ namespace FCM0000 {
kusul,
otconfirm,
kuntae,
holyreq};
holyreq,
account};
rowAuthRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAuthRow);
return rowAuthRow;
@@ -1470,6 +1481,7 @@ namespace FCM0000 {
this.columnotconfirm = base.Columns["otconfirm"];
this.columnkuntae = base.Columns["kuntae"];
this.columnholyreq = base.Columns["holyreq"];
this.columnaccount = base.Columns["account"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1503,6 +1515,8 @@ namespace FCM0000 {
base.Columns.Add(this.columnkuntae);
this.columnholyreq = new global::System.Data.DataColumn("holyreq", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnholyreq);
this.columnaccount = new global::System.Data.DataColumn("account", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnaccount);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -2462,11 +2476,11 @@ namespace FCM0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int holyreq {
get {
try {
return ((int)(this[this.tableAuth.holyreqColumn]));
if (this.IsholyreqNull()) {
return 0;
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Auth\' 테이블의 \'holyreq\' 열의 값이 DBNull입니다.", e);
else {
return ((int)(this[this.tableAuth.holyreqColumn]));
}
}
set {
@@ -2474,6 +2488,22 @@ namespace FCM0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int account {
get {
if (this.IsaccountNull()) {
return 0;
}
else {
return ((int)(this[this.tableAuth.accountColumn]));
}
}
set {
this[this.tableAuth.accountColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsuserNull() {
@@ -2617,6 +2647,18 @@ namespace FCM0000 {
public void SetholyreqNull() {
this[this.tableAuth.holyreqColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsaccountNull() {
return this.IsNull(this.tableAuth.accountColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetaccountNull() {
this[this.tableAuth.accountColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -4359,10 +4401,11 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
tableMapping.ColumnMappings.Add("otconfirm", "otconfirm");
tableMapping.ColumnMappings.Add("kuntae", "kuntae");
tableMapping.ColumnMappings.Add("holyreq", "holyreq");
tableMapping.ColumnMappings.Add("account", "account");
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 [Auth] WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)) AND ((@IsNull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = @Original_savecost)) AND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([scheapp] = @Original_scheapp)) AND ((@IsNull_equipment = 1 AND [equipment] IS NULL) OR ([equipment] = @Original_equipment)) AND ((@IsNull_kusul = 1 AND [kusul] IS NULL) OR ([kusul] = @Original_kusul)) AND ((@IsNull_otconfirm = 1 AND [otconfirm] IS NULL) OR ([otconfirm] = @Original_otconfirm)) AND ((@IsNull_kuntae = 1 AND [kuntae] IS NULL) OR ([kuntae] = @Original_kuntae)) AND ((@IsNull_holyreq = 1 AND [holyreq] IS NULL) OR ([holyreq] = @Original_holyreq)))";
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Auth] WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)) AND ((@IsNull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = @Original_savecost)) AND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([scheapp] = @Original_scheapp)) AND ((@IsNull_equipment = 1 AND [equipment] IS NULL) OR ([equipment] = @Original_equipment)) AND ((@IsNull_kusul = 1 AND [kusul] IS NULL) OR ([kusul] = @Original_kusul)) AND ((@IsNull_otconfirm = 1 AND [otconfirm] IS NULL) OR ([otconfirm] = @Original_otconfirm)) AND ((@IsNull_kuntae = 1 AND [kuntae] IS NULL) OR ([kuntae] = @Original_kuntae)) AND ((@IsNull_holyreq = 1 AND [holyreq] IS NULL) OR ([holyreq] = @Original_holyreq)) AND ((@IsNull_account = 1 AND [account] IS NULL) OR ([account] = @Original_account)))";
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_user", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -4390,10 +4433,12 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kuntae", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kuntae", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_holyreq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyreq", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_holyreq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyreq", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_account", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "account", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_account", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "account", 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 [Auth] ([user], [gcode], [purchase], [holyday], [project], [jobreport], [savecost], [scheapp], [equipment], [kusul], [otconfirm], [kuntae], [holyreq]) VALUES (@user, @gcode, @purchase, @holyday, @project, @jobreport, @savecost, @scheapp, @equipment, @kusul, @otconfirm, @kuntae, @holyreq);
SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp, equipment, kusul, otconfirm, kuntae, holyreq FROM Auth WHERE (idx = SCOPE_IDENTITY()) ORDER BY [user]";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Auth] ([user], [gcode], [purchase], [holyday], [project], [jobreport], [savecost], [scheapp], [equipment], [kusul], [otconfirm], [kuntae], [holyreq], [account]) VALUES (@user, @gcode, @purchase, @holyday, @project, @jobreport, @savecost, @scheapp, @equipment, @kusul, @otconfirm, @kuntae, @holyreq, @account);
SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, scheapp, equipment, kusul, otconfirm, kuntae, holyreq, account FROM Auth WHERE (idx = SCOPE_IDENTITY()) ORDER BY [user]";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@user", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4408,28 +4453,31 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otconfirm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otconfirm", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kuntae", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kuntae", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@holyreq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyreq", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@account", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "account", 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 [Auth] SET [user] = @user, [gcode] = @gcode, [purchase] = @purchase, [holy" +
"day] = @holyday, [project] = @project, [jobreport] = @jobreport, [savecost] = @s" +
"avecost, [scheapp] = @scheapp, [equipment] = @equipment, [kusul] = @kusul, [otco" +
"nfirm] = @otconfirm, [kuntae] = @kuntae, [holyreq] = @holyreq WHERE (([idx] = @O" +
"riginal_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR ([user] = @Original_u" +
"ser)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purchase = 1 AND [purchase] " +
"IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNull_holyday = 1 AND [ho" +
"lyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((@IsNull_project = 1 AN" +
"D [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_jobreport" +
" = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_jobreport)) AND ((@IsN" +
"ull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = @Original_savecost)) A" +
"ND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([scheapp] = @Original_scheap" +
"p)) AND ((@IsNull_equipment = 1 AND [equipment] IS NULL) OR ([equipment] = @Orig" +
"inal_equipment)) AND ((@IsNull_kusul = 1 AND [kusul] IS NULL) OR ([kusul] = @Ori" +
"ginal_kusul)) AND ((@IsNull_otconfirm = 1 AND [otconfirm] IS NULL) OR ([otconfir" +
"m] = @Original_otconfirm)) AND ((@IsNull_kuntae = 1 AND [kuntae] IS NULL) OR ([k" +
"untae] = @Original_kuntae)) AND ((@IsNull_holyreq = 1 AND [holyreq] IS NULL) OR " +
"([holyreq] = @Original_holyreq)));\r\nSELECT idx, [user], gcode, purchase, holyday" +
", project, jobreport, savecost, scheapp, equipment, kusul, otconfirm, kuntae, ho" +
"lyreq FROM Auth WHERE (idx = @idx) ORDER BY [user]";
"nfirm] = @otconfirm, [kuntae] = @kuntae, [holyreq] = @holyreq, [account] = @acco" +
"unt WHERE (([idx] = @Original_idx) AND ((@IsNull_user = 1 AND [user] IS NULL) OR" +
" ([user] = @Original_user)) AND ([gcode] = @Original_gcode) AND ((@IsNull_purcha" +
"se = 1 AND [purchase] IS NULL) OR ([purchase] = @Original_purchase)) AND ((@IsNu" +
"ll_holyday = 1 AND [holyday] IS NULL) OR ([holyday] = @Original_holyday)) AND ((" +
"@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) A" +
"ND ((@IsNull_jobreport = 1 AND [jobreport] IS NULL) OR ([jobreport] = @Original_" +
"jobreport)) AND ((@IsNull_savecost = 1 AND [savecost] IS NULL) OR ([savecost] = " +
"@Original_savecost)) AND ((@IsNull_scheapp = 1 AND [scheapp] IS NULL) OR ([schea" +
"pp] = @Original_scheapp)) AND ((@IsNull_equipment = 1 AND [equipment] IS NULL) O" +
"R ([equipment] = @Original_equipment)) AND ((@IsNull_kusul = 1 AND [kusul] IS NU" +
"LL) OR ([kusul] = @Original_kusul)) AND ((@IsNull_otconfirm = 1 AND [otconfirm] " +
"IS NULL) OR ([otconfirm] = @Original_otconfirm)) AND ((@IsNull_kuntae = 1 AND [k" +
"untae] IS NULL) OR ([kuntae] = @Original_kuntae)) AND ((@IsNull_holyreq = 1 AND " +
"[holyreq] IS NULL) OR ([holyreq] = @Original_holyreq)) AND ((@IsNull_account = 1" +
" AND [account] IS NULL) OR ([account] = @Original_account)));\r\nSELECT idx, [user" +
"], gcode, purchase, holyday, project, jobreport, savecost, scheapp, equipment, k" +
"usul, otconfirm, kuntae, holyreq, account FROM Auth WHERE (idx = @idx) ORDER BY " +
"[user]";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@user", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4444,6 +4492,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otconfirm", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otconfirm", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kuntae", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kuntae", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@holyreq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyreq", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@account", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "account", 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_user", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_user", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -4470,6 +4519,8 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kuntae", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kuntae", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_holyreq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyreq", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_holyreq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "holyreq", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_account", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "account", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_account", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "account", 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, "", "", ""));
}
@@ -4487,8 +4538,8 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche" +
"app, equipment, kusul, otconfirm, kuntae, holyreq\r\nFROM Auth\r\nWHERE (gcode " +
"= @gcode)\r\nORDER BY [user]";
"app, equipment, kusul, otconfirm, kuntae, holyreq, account\r\nFROM Auth\r\nWHERE" +
" (gcode = @gcode)\r\nORDER BY [user]";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].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, "", "", ""));
}
@@ -4562,7 +4613,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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_user, string Original_gcode, global::System.Nullable<int> Original_purchase, global::System.Nullable<int> Original_holyday, global::System.Nullable<int> Original_project, global::System.Nullable<int> Original_jobreport, global::System.Nullable<int> Original_savecost, global::System.Nullable<int> Original_scheapp, global::System.Nullable<int> Original_equipment, global::System.Nullable<int> Original_kusul, global::System.Nullable<int> Original_otconfirm, global::System.Nullable<int> Original_kuntae, global::System.Nullable<int> Original_holyreq) {
public virtual int Delete(int Original_idx, string Original_user, string Original_gcode, global::System.Nullable<int> Original_purchase, global::System.Nullable<int> Original_holyday, global::System.Nullable<int> Original_project, global::System.Nullable<int> Original_jobreport, global::System.Nullable<int> Original_savecost, global::System.Nullable<int> Original_scheapp, global::System.Nullable<int> Original_equipment, global::System.Nullable<int> Original_kusul, global::System.Nullable<int> Original_otconfirm, global::System.Nullable<int> Original_kuntae, global::System.Nullable<int> Original_holyreq, global::System.Nullable<int> Original_account) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_user == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
@@ -4666,6 +4717,14 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value;
}
if ((Original_account.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[27].Value = ((int)(Original_account.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value;
}
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)) {
@@ -4686,7 +4745,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 user, string gcode, global::System.Nullable<int> purchase, global::System.Nullable<int> holyday, global::System.Nullable<int> project, global::System.Nullable<int> jobreport, global::System.Nullable<int> savecost, global::System.Nullable<int> scheapp, global::System.Nullable<int> equipment, global::System.Nullable<int> kusul, global::System.Nullable<int> otconfirm, global::System.Nullable<int> kuntae, global::System.Nullable<int> holyreq) {
public virtual int Insert(string user, string gcode, global::System.Nullable<int> purchase, global::System.Nullable<int> holyday, global::System.Nullable<int> project, global::System.Nullable<int> jobreport, global::System.Nullable<int> savecost, global::System.Nullable<int> scheapp, global::System.Nullable<int> equipment, global::System.Nullable<int> kusul, global::System.Nullable<int> otconfirm, global::System.Nullable<int> kuntae, global::System.Nullable<int> holyreq, global::System.Nullable<int> account) {
if ((user == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -4765,6 +4824,12 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
else {
this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
}
if ((account.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[13].Value = ((int)(account.Value));
}
else {
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
}
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)) {
@@ -4799,6 +4864,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
global::System.Nullable<int> otconfirm,
global::System.Nullable<int> kuntae,
global::System.Nullable<int> holyreq,
global::System.Nullable<int> account,
int Original_idx,
string Original_user,
string Original_gcode,
@@ -4813,6 +4879,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
global::System.Nullable<int> Original_otconfirm,
global::System.Nullable<int> Original_kuntae,
global::System.Nullable<int> Original_holyreq,
global::System.Nullable<int> Original_account,
int idx) {
if ((user == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -4892,110 +4959,124 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
else {
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_idx));
if ((Original_user == null)) {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
if ((account.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(account.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_user));
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_idx));
if ((Original_user == null)) {
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_user));
}
if ((Original_gcode == null)) {
throw new global::System.ArgumentNullException("Original_gcode");
}
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_gcode));
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_gcode));
}
if ((Original_purchase.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_purchase.Value));
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_purchase.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
if ((Original_holyday.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_holyday.Value));
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_holyday.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
if ((Original_project.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_project.Value));
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_project.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
if ((Original_jobreport.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_jobreport.Value));
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_jobreport.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
if ((Original_savecost.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_savecost.Value));
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_savecost.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
if ((Original_scheapp.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_scheapp.Value));
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_scheapp.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
if ((Original_equipment.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_equipment.Value));
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_equipment.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
if ((Original_kusul.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(Original_kusul.Value));
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_kusul.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
if ((Original_otconfirm.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(Original_otconfirm.Value));
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(Original_otconfirm.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
}
if ((Original_kuntae.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(Original_kuntae.Value));
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(Original_kuntae.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
}
if ((Original_holyreq.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(Original_holyreq.Value));
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[39].Value = ((int)(Original_holyreq.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[39].Value = ((int)(idx));
if ((Original_account.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_account.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[42].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)) {
@@ -5030,6 +5111,7 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
global::System.Nullable<int> otconfirm,
global::System.Nullable<int> kuntae,
global::System.Nullable<int> holyreq,
global::System.Nullable<int> account,
int Original_idx,
string Original_user,
string Original_gcode,
@@ -5043,8 +5125,9 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
global::System.Nullable<int> Original_kusul,
global::System.Nullable<int> Original_otconfirm,
global::System.Nullable<int> Original_kuntae,
global::System.Nullable<int> Original_holyreq) {
return this.Update(user, gcode, purchase, holyday, project, jobreport, savecost, scheapp, equipment, kusul, otconfirm, kuntae, holyreq, Original_idx, Original_user, Original_gcode, Original_purchase, Original_holyday, Original_project, Original_jobreport, Original_savecost, Original_scheapp, Original_equipment, Original_kusul, Original_otconfirm, Original_kuntae, Original_holyreq, Original_idx);
global::System.Nullable<int> Original_holyreq,
global::System.Nullable<int> Original_account) {
return this.Update(user, gcode, purchase, holyday, project, jobreport, savecost, scheapp, equipment, kusul, otconfirm, kuntae, holyreq, account, Original_idx, Original_user, Original_gcode, Original_purchase, Original_holyday, Original_project, Original_jobreport, Original_savecost, Original_scheapp, Original_equipment, Original_kusul, Original_otconfirm, Original_kuntae, Original_holyreq, Original_account, Original_idx);
}
}