신규 스케쥴 추가시 조회되지 않는 현상 수정

스케쥴 승인,1,2 기능 구현
This commit is contained in:
chi
2021-05-18 09:21:34 +09:00
parent d56775dc75
commit b3228bbdb6
41 changed files with 2390 additions and 723 deletions

View File

@@ -9425,6 +9425,10 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnuid;
private global::System.Data.DataColumn columnappoval;
private global::System.Data.DataColumn columnno;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public EETGW_ProjectsScheduleDataTable() {
@@ -9570,6 +9574,22 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn appovalColumn {
get {
return this.columnappoval;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn noColumn {
get {
return this.columnno;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -9607,7 +9627,7 @@ namespace FPJ0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public EETGW_ProjectsScheduleRow AddEETGW_ProjectsScheduleRow(string gcode, int project, int seq, string title, int sw, int ew, int swa, int ewa, string memo, int progress, string wuid, System.DateTime wdate, string uid) {
public EETGW_ProjectsScheduleRow AddEETGW_ProjectsScheduleRow(string gcode, int project, int seq, string title, int sw, int ew, int swa, int ewa, string memo, int progress, string wuid, System.DateTime wdate, string uid, int appoval, int no) {
EETGW_ProjectsScheduleRow rowEETGW_ProjectsScheduleRow = ((EETGW_ProjectsScheduleRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -9623,7 +9643,9 @@ namespace FPJ0000 {
progress,
wuid,
wdate,
uid};
uid,
appoval,
no};
rowEETGW_ProjectsScheduleRow.ItemArray = columnValuesArray;
this.Rows.Add(rowEETGW_ProjectsScheduleRow);
return rowEETGW_ProjectsScheduleRow;
@@ -9667,6 +9689,8 @@ namespace FPJ0000 {
this.columnwuid = base.Columns["wuid"];
this.columnwdate = base.Columns["wdate"];
this.columnuid = base.Columns["uid"];
this.columnappoval = base.Columns["appoval"];
this.columnno = base.Columns["no"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9700,6 +9724,10 @@ namespace FPJ0000 {
base.Columns.Add(this.columnwdate);
this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnuid);
this.columnappoval = new global::System.Data.DataColumn("appoval", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnappoval);
this.columnno = new global::System.Data.DataColumn("no", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnno);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -18559,6 +18587,38 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int appoval {
get {
if (this.IsappovalNull()) {
return 0;
}
else {
return ((int)(this[this.tableEETGW_ProjectsSchedule.appovalColumn]));
}
}
set {
this[this.tableEETGW_ProjectsSchedule.appovalColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int no {
get {
if (this.IsnoNull()) {
return 1;
}
else {
return ((int)(this[this.tableEETGW_ProjectsSchedule.noColumn]));
}
}
set {
this[this.tableEETGW_ProjectsSchedule.noColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsgcodeNull() {
@@ -18690,6 +18750,30 @@ namespace FPJ0000 {
public void SetuidNull() {
this[this.tableEETGW_ProjectsSchedule.uidColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsappovalNull() {
return this.IsNull(this.tableEETGW_ProjectsSchedule.appovalColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetappovalNull() {
this[this.tableEETGW_ProjectsSchedule.appovalColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsnoNull() {
return this.IsNull(this.tableEETGW_ProjectsSchedule.noColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetnoNull() {
this[this.tableEETGW_ProjectsSchedule.noColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -32840,10 +32924,12 @@ WHERE (gcode = @gcode)";
tableMapping.ColumnMappings.Add("wuid", "wuid");
tableMapping.ColumnMappings.Add("wdate", "wdate");
tableMapping.ColumnMappings.Add("uid", "uid");
tableMapping.ColumnMappings.Add("appoval", "appoval");
tableMapping.ColumnMappings.Add("no", "no");
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 [EETGW_ProjectsSchedule] WHERE (([idx] = @Original_idx) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)))";
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [EETGW_ProjectsSchedule] WHERE (([idx] = @Original_idx) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_appoval = 1 AND [appoval] IS NULL) OR ([appoval] = @Original_appoval)) AND ((@IsNull_no = 1 AND [no] IS NULL) OR ([no] = @Original_no)))";
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_gcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -32868,10 +32954,14 @@ WHERE (gcode = @gcode)";
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", 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 [EETGW_ProjectsSchedule] ([gcode], [project], [seq], [title], [sw], [ew], [swa], [ewa], [memo], [progress], [wuid], [wdate], [uid]) VALUES (@gcode, @project, @seq, @title, @sw, @ew, @swa, @ewa, @memo, @progress, @wuid, @wdate, @uid);
SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid, wdate, uid FROM EETGW_ProjectsSchedule WHERE (idx = SCOPE_IDENTITY()) ORDER BY seq";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_ProjectsSchedule] ([gcode], [project], [seq], [title], [sw], [ew], [swa], [ewa], [memo], [progress], [wuid], [wdate], [uid], [appoval], [no]) VALUES (@gcode, @project, @seq, @title, @sw, @ew, @swa, @ewa, @memo, @progress, @wuid, @wdate, @uid, @appoval, @no);
SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid, wdate, uid, appoval, no FROM EETGW_ProjectsSchedule WHERE (idx = SCOPE_IDENTITY()) ORDER BY seq";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
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, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -32886,10 +32976,12 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", 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 [EETGW_ProjectsSchedule] SET [gcode] = @gcode, [project] = @project, [seq] = @seq, [title] = @title, [sw] = @sw, [ew] = @ew, [swa] = @swa, [ewa] = @ewa, [memo] = @memo, [progress] = @progress, [wuid] = @wuid, [wdate] = @wdate, [uid] = @uid WHERE (([idx] = @Original_idx) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)));
SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid, wdate, uid FROM EETGW_ProjectsSchedule WHERE (idx = @idx) ORDER BY seq";
this._adapter.UpdateCommand.CommandText = @"UPDATE [EETGW_ProjectsSchedule] SET [gcode] = @gcode, [project] = @project, [seq] = @seq, [title] = @title, [sw] = @sw, [ew] = @ew, [swa] = @swa, [ewa] = @ewa, [memo] = @memo, [progress] = @progress, [wuid] = @wuid, [wdate] = @wdate, [uid] = @uid, [appoval] = @appoval, [no] = @no WHERE (([idx] = @Original_idx) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_appoval = 1 AND [appoval] IS NULL) OR ([appoval] = @Original_appoval)) AND ((@IsNull_no = 1 AND [no] IS NULL) OR ([no] = @Original_no)));
SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid, wdate, uid, appoval, no FROM EETGW_ProjectsSchedule WHERE (idx = @idx) ORDER BY seq";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
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, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -32904,6 +32996,8 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", 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_gcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -32927,6 +33021,10 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", 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, "", "", ""));
}
@@ -32944,18 +33042,19 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid, " +
"wdate, uid\r\nFROM EETGW_ProjectsSchedule\r\nWHERE (gcode = @gcode) AND (projec" +
"t = @project)\r\nORDER BY seq";
"wdate, uid, appoval, no\r\nFROM EETGW_ProjectsSchedule\r\nWHERE (gcode = @gcode" +
") AND (project = @project) AND (no = @no)\r\nORDER BY seq";
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, 20, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@no", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "no", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[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.Fill, true)]
public virtual int Fill(dsPRJ.EETGW_ProjectsScheduleDataTable dataTable, string gcode, global::System.Nullable<int> project) {
public virtual int Fill(dsPRJ.EETGW_ProjectsScheduleDataTable dataTable, string gcode, global::System.Nullable<int> project, global::System.Nullable<int> no) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((gcode == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -32969,6 +33068,12 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
if ((no.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(no.Value));
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
@@ -32980,7 +33085,7 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
[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.Select, true)]
public virtual dsPRJ.EETGW_ProjectsScheduleDataTable GetData(string gcode, global::System.Nullable<int> project) {
public virtual dsPRJ.EETGW_ProjectsScheduleDataTable GetData(string gcode, global::System.Nullable<int> project, global::System.Nullable<int> no) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((gcode == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -32994,6 +33099,12 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
if ((no.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(no.Value));
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
dsPRJ.EETGW_ProjectsScheduleDataTable dataTable = new dsPRJ.EETGW_ProjectsScheduleDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
@@ -33032,7 +33143,7 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
[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_gcode, global::System.Nullable<int> Original_project, global::System.Nullable<int> Original_seq, string Original_title, global::System.Nullable<int> Original_sw, global::System.Nullable<int> Original_ew, global::System.Nullable<int> Original_swa, global::System.Nullable<int> Original_ewa, global::System.Nullable<int> Original_progress, string Original_wuid, System.DateTime Original_wdate, string Original_uid) {
public virtual int Delete(int Original_idx, string Original_gcode, global::System.Nullable<int> Original_project, global::System.Nullable<int> Original_seq, string Original_title, global::System.Nullable<int> Original_sw, global::System.Nullable<int> Original_ew, global::System.Nullable<int> Original_swa, global::System.Nullable<int> Original_ewa, global::System.Nullable<int> Original_progress, string Original_wuid, System.DateTime Original_wdate, string Original_uid, global::System.Nullable<int> Original_appoval, global::System.Nullable<int> Original_no) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_gcode == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
@@ -33121,6 +33232,22 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_uid));
}
if ((Original_appoval.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[24].Value = ((int)(Original_appoval.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
}
if ((Original_no.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_no.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[26].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)) {
@@ -33141,7 +33268,7 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
[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 gcode, global::System.Nullable<int> project, global::System.Nullable<int> seq, string title, global::System.Nullable<int> sw, global::System.Nullable<int> ew, global::System.Nullable<int> swa, global::System.Nullable<int> ewa, string memo, global::System.Nullable<int> progress, string wuid, System.DateTime wdate, string uid) {
public virtual int Insert(string gcode, global::System.Nullable<int> project, global::System.Nullable<int> seq, string title, global::System.Nullable<int> sw, global::System.Nullable<int> ew, global::System.Nullable<int> swa, global::System.Nullable<int> ewa, string memo, global::System.Nullable<int> progress, string wuid, System.DateTime wdate, string uid, global::System.Nullable<int> appoval, global::System.Nullable<int> no) {
if ((gcode == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -33215,6 +33342,18 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
else {
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(uid));
}
if ((appoval.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[13].Value = ((int)(appoval.Value));
}
else {
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
}
if ((no.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[14].Value = ((int)(no.Value));
}
else {
this.Adapter.InsertCommand.Parameters[14].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)) {
@@ -33249,6 +33388,8 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
string wuid,
System.DateTime wdate,
string uid,
global::System.Nullable<int> appoval,
global::System.Nullable<int> no,
int Original_idx,
string Original_gcode,
global::System.Nullable<int> Original_project,
@@ -33262,6 +33403,8 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
string Original_wuid,
System.DateTime Original_wdate,
string Original_uid,
global::System.Nullable<int> Original_appoval,
global::System.Nullable<int> Original_no,
int idx) {
if ((gcode == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -33336,95 +33479,123 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
else {
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(uid));
}
this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_idx));
if ((appoval.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(appoval.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
}
if ((no.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(no.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx));
if ((Original_gcode == null)) {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
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_gcode));
}
if ((Original_project.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_project.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
}
if ((Original_seq.HasValue == true)) {
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_gcode));
}
if ((Original_project.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_seq.Value));
this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_project.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
if ((Original_title == null)) {
if ((Original_seq.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_seq.Value));
}
else {
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_title));
}
if ((Original_sw.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_sw.Value));
}
else {
if ((Original_title == null)) {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
if ((Original_ew.HasValue == true)) {
else {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_title));
}
if ((Original_sw.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_ew.Value));
this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_sw.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
if ((Original_swa.HasValue == true)) {
if ((Original_ew.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_swa.Value));
this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_ew.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
if ((Original_ewa.HasValue == true)) {
if ((Original_swa.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_ewa.Value));
this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_swa.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
if ((Original_progress.HasValue == true)) {
if ((Original_ewa.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_progress.Value));
this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_ewa.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
if ((Original_progress.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_progress.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_wuid));
this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_wuid));
}
this.Adapter.UpdateCommand.Parameters[33].Value = ((System.DateTime)(Original_wdate));
this.Adapter.UpdateCommand.Parameters[35].Value = ((System.DateTime)(Original_wdate));
if ((Original_uid == null)) {
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_uid));
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_uid));
}
this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(idx));
if ((Original_appoval.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[39].Value = ((int)(Original_appoval.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
}
if ((Original_no.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_no.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)) {
@@ -33459,6 +33630,8 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
string wuid,
System.DateTime wdate,
string uid,
global::System.Nullable<int> appoval,
global::System.Nullable<int> no,
int Original_idx,
string Original_gcode,
global::System.Nullable<int> Original_project,
@@ -33471,8 +33644,10 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
global::System.Nullable<int> Original_progress,
string Original_wuid,
System.DateTime Original_wdate,
string Original_uid) {
return this.Update(gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid, wdate, uid, Original_idx, Original_gcode, Original_project, Original_seq, Original_title, Original_sw, Original_ew, Original_swa, Original_ewa, Original_progress, Original_wuid, Original_wdate, Original_uid, Original_idx);
string Original_uid,
global::System.Nullable<int> Original_appoval,
global::System.Nullable<int> Original_no) {
return this.Update(gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid, wdate, uid, appoval, no, Original_idx, Original_gcode, Original_project, Original_seq, Original_title, Original_sw, Original_ew, Original_swa, Original_ewa, Original_progress, Original_wuid, Original_wdate, Original_uid, Original_appoval, Original_no, Original_idx);
}
}