프로젝트 정보에 COSTSAVE/HIGHTLIGHT/FANOUT 체크박스 추가

This commit is contained in:
chi
2023-06-22 23:19:49 +09:00
parent b04b79b5f5
commit 819b9264d0
11 changed files with 784 additions and 667 deletions

View File

@@ -1045,6 +1045,8 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnlasthistoryD;
private global::System.Data.DataColumn columnbHighlight;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public ProjectsDataTable() :
@@ -1719,6 +1721,14 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn bHighlightColumn {
get {
return this.columnbHighlight;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1834,7 +1844,8 @@ namespace FPJ0000 {
double sfi,
float chamyeo,
string name2,
string lasthistoryD) {
string lasthistoryD,
bool bHighlight) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1915,7 +1926,8 @@ namespace FPJ0000 {
sfi,
chamyeo,
name2,
lasthistoryD};
lasthistoryD,
bHighlight};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
return rowProjectsRow;
@@ -2000,7 +2012,8 @@ namespace FPJ0000 {
double sfi,
float chamyeo,
string name2,
string lasthistoryD) {
string lasthistoryD,
bool bHighlight) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -2081,7 +2094,8 @@ namespace FPJ0000 {
sfi,
chamyeo,
name2,
lasthistoryD};
lasthistoryD,
bHighlight};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
return rowProjectsRow;
@@ -2190,6 +2204,7 @@ namespace FPJ0000 {
this.columnchamyeo = base.Columns["chamyeo"];
this.columnname2 = base.Columns["name2"];
this.columnlasthistoryD = base.Columns["lasthistoryD"];
this.columnbHighlight = base.Columns["bHighlight"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2353,6 +2368,8 @@ namespace FPJ0000 {
base.Columns.Add(this.columnname2);
this.columnlasthistoryD = new global::System.Data.DataColumn("lasthistoryD", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlasthistoryD);
this.columnbHighlight = new global::System.Data.DataColumn("bHighlight", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnbHighlight);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -13061,6 +13078,22 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool bHighlight {
get {
if (this.IsbHighlightNull()) {
return false;
}
else {
return ((bool)(this[this.tableProjects.bHighlightColumn]));
}
}
set {
this[this.tableProjects.bHighlightColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsnameNull() {
@@ -13960,6 +13993,18 @@ namespace FPJ0000 {
public void SetlasthistoryDNull() {
this[this.tableProjects.lasthistoryDColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsbHighlightNull() {
return this.IsNull(this.tableProjects.bHighlightColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetbHighlightNull() {
this[this.tableProjects.bHighlightColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -23015,6 +23060,7 @@ namespace FPJ0000.dsPRJTableAdapters {
tableMapping.ColumnMappings.Add("jasmin", "jasmin");
tableMapping.ColumnMappings.Add("sfi", "sfi");
tableMapping.ColumnMappings.Add("lasthistoryD", "lasthistoryD");
tableMapping.ColumnMappings.Add("bHighlight", "bHighlight");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
@@ -23023,7 +23069,7 @@ namespace FPJ0000.dsPRJTableAdapters {
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", 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 [Projects] ([status], [pdate], [name], [usermain], [usersub], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate], [rev], [pidx], [userManager], [level], [part], [process], [costo], [costn], [cnt], [remark_req], [remark_ans], [ddate], [progress], [import], [asset], [isdel], [path], [userhw2], [orderno], [gcode], [category], [userprocess], [CMP_Background], [CMP_Description], [CMP_Before], [CMP_After], [bCost], [bFanOut], [div], [crdue], [model], [serial], [bdate], [qdate], [cdate], [championid], [designid], [assemblyid], [epanelid], [softwareid], [userAssembly], [ReqLine], [ReqSite], [ReqPackage], [ReqPlant], [pno], [kdate], [jasmin], [sfi]) VALUES (@status, @pdate, @name, @usermain, @usersub, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx, @userManager, @level, @part, @process, @costo, @costn, @cnt, @remark_req, @remark_ans, @ddate, @progress, @import, @asset, @isdel, @path, @userhw2, @orderno, @gcode, @category, @userprocess, @CMP_Background, @CMP_Description, @CMP_Before, @CMP_After, @bCost, @bFanOut, @div, @crdue, @model, @serial, @bdate, @qdate, @cdate, @championid, @designid, @assemblyid, @epanelid, @softwareid, @userAssembly, @ReqLine, @ReqSite, @ReqPackage, @ReqPlant, @pno, @kdate, @jasmin, @sfi)";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Projects] ([status], [pdate], [name], [usermain], [usersub], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate], [rev], [pidx], [userManager], [level], [part], [process], [costo], [costn], [cnt], [remark_req], [remark_ans], [ddate], [progress], [import], [asset], [isdel], [path], [userhw2], [orderno], [gcode], [category], [userprocess], [CMP_Background], [CMP_Description], [CMP_Before], [CMP_After], [bCost], [bFanOut], [div], [crdue], [model], [serial], [bdate], [qdate], [cdate], [championid], [designid], [assemblyid], [epanelid], [softwareid], [userAssembly], [ReqLine], [ReqSite], [ReqPackage], [ReqPlant], [pno], [kdate], [jasmin], [sfi], [bHighlight]) VALUES (@status, @pdate, @name, @usermain, @usersub, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx, @userManager, @level, @part, @process, @costo, @costn, @cnt, @remark_req, @remark_ans, @ddate, @progress, @import, @asset, @isdel, @path, @userhw2, @orderno, @gcode, @category, @userprocess, @CMP_Background, @CMP_Description, @CMP_Before, @CMP_After, @bCost, @bFanOut, @div, @crdue, @model, @serial, @bdate, @qdate, @cdate, @championid, @designid, @assemblyid, @epanelid, @softwareid, @userAssembly, @ReqLine, @ReqSite, @ReqPackage, @ReqPlant, @pno, @kdate, @jasmin, @sfi, @bHighlight)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -23086,6 +23132,7 @@ namespace FPJ0000.dsPRJTableAdapters {
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@jasmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sfi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bHighlight", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bHighlight", 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 Projects\r\nSET status = @status, pdate = @pdate, name = @name, userm" +
@@ -23211,13 +23258,13 @@ namespace FPJ0000.dsPRJTableAdapters {
"o.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_ep" +
"anel, dbo.getUserName(softwareid) AS name_software, userAssembly, \r\n " +
" ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin, sfi, dbo.getLastH" +
"istoryD(idx) AS lasthistoryD\r\nFROM Projects\r\nWHERE (status LIKE @state) AND" +
" (ISNULL(userManager, \'\') LIKE @username OR\r\n ISNULL(usermain, \'\')" +
" LIKE @username OR\r\n ISNULL(usersub, \'\') LIKE @username) AND (ISNU" +
"LL(isdel, 0) = 0) AND (gcode = @gcode)\r\nORDER BY (CASE WHEN [status] = \'검토\' THEN" +
" \'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([stat" +
"us] = \'완료\') THEN \'3\' WHEN ([status] = \'취소\') \r\n THEN \'9\' ELSE \'5\' E" +
"ND)";
"istoryD(idx) AS lasthistoryD, bHighlight\r\nFROM Projects\r\nWHERE (status LIKE" +
" @state) AND (ISNULL(userManager, \'\') LIKE @username OR\r\n ISNULL(u" +
"sermain, \'\') LIKE @username OR\r\n ISNULL(usersub, \'\') LIKE @usernam" +
"e) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)\r\nORDER BY (CASE WHEN [status]" +
" = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN \'2\'" +
" WHEN ([status] = \'완료\') THEN \'3\' WHEN ([status] = \'취소\') \r\n THEN \'9" +
"\' ELSE \'5\' END)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -23514,7 +23561,8 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode =
global::System.Nullable<int> pno,
string kdate,
global::System.Nullable<int> jasmin,
global::System.Nullable<double> sfi) {
global::System.Nullable<double> sfi,
global::System.Nullable<bool> bHighlight) {
if ((status == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -23876,6 +23924,12 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode =
else {
this.Adapter.InsertCommand.Parameters[60].Value = global::System.DBNull.Value;
}
if ((bHighlight.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[61].Value = ((bool)(bHighlight.Value));
}
else {
this.Adapter.InsertCommand.Parameters[61].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)) {