SFI 계산기능 추가
This commit is contained in:
102
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
102
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
@@ -1037,6 +1037,8 @@ namespace FPJ0000 {
|
||||
|
||||
private global::System.Data.DataColumn columnjasmin;
|
||||
|
||||
private global::System.Data.DataColumn columnsfi;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ProjectsDataTable() :
|
||||
@@ -1679,6 +1681,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 sfiColumn {
|
||||
get {
|
||||
return this.columnsfi;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -1790,7 +1800,8 @@ namespace FPJ0000 {
|
||||
string ReqPlant,
|
||||
int pno,
|
||||
string kdate,
|
||||
int jasmin) {
|
||||
int jasmin,
|
||||
double sfi) {
|
||||
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -1867,7 +1878,8 @@ namespace FPJ0000 {
|
||||
ReqPlant,
|
||||
pno,
|
||||
kdate,
|
||||
jasmin};
|
||||
jasmin,
|
||||
sfi};
|
||||
rowProjectsRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowProjectsRow);
|
||||
return rowProjectsRow;
|
||||
@@ -1948,7 +1960,8 @@ namespace FPJ0000 {
|
||||
string ReqPlant,
|
||||
int pno,
|
||||
string kdate,
|
||||
int jasmin) {
|
||||
int jasmin,
|
||||
double sfi) {
|
||||
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -2025,7 +2038,8 @@ namespace FPJ0000 {
|
||||
ReqPlant,
|
||||
pno,
|
||||
kdate,
|
||||
jasmin};
|
||||
jasmin,
|
||||
sfi};
|
||||
rowProjectsRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowProjectsRow);
|
||||
return rowProjectsRow;
|
||||
@@ -2130,6 +2144,7 @@ namespace FPJ0000 {
|
||||
this.columnpno = base.Columns["pno"];
|
||||
this.columnkdate = base.Columns["kdate"];
|
||||
this.columnjasmin = base.Columns["jasmin"];
|
||||
this.columnsfi = base.Columns["sfi"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -2285,6 +2300,8 @@ namespace FPJ0000 {
|
||||
base.Columns.Add(this.columnkdate);
|
||||
this.columnjasmin = new global::System.Data.DataColumn("jasmin", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnjasmin);
|
||||
this.columnsfi = new global::System.Data.DataColumn("sfi", typeof(double), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnsfi);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnidx}, true));
|
||||
this.columnidx.AutoIncrement = true;
|
||||
@@ -12941,6 +12958,22 @@ namespace FPJ0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public double sfi {
|
||||
get {
|
||||
if (this.IssfiNull()) {
|
||||
return 0D;
|
||||
}
|
||||
else {
|
||||
return ((double)(this[this.tableProjects.sfiColumn]));
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableProjects.sfiColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public bool IsnameNull() {
|
||||
@@ -13792,6 +13825,18 @@ namespace FPJ0000 {
|
||||
public void SetjasminNull() {
|
||||
this[this.tableProjects.jasminColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public bool IssfiNull() {
|
||||
return this.IsNull(this.tableProjects.sfiColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public void SetsfiNull() {
|
||||
this[this.tableProjects.sfiColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -22873,6 +22918,7 @@ namespace FPJ0000.dsPRJTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("pno", "pno");
|
||||
tableMapping.ColumnMappings.Add("kdate", "kdate");
|
||||
tableMapping.ColumnMappings.Add("jasmin", "jasmin");
|
||||
tableMapping.ColumnMappings.Add("sfi", "sfi");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
@@ -22881,37 +22927,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], [reqsta" +
|
||||
"ff], [sdate], [edate], [odate], [memo], [wuid], [wdate], [rev], [pidx], [userMan" +
|
||||
"ager], [level], [part], [process], [costo], [costn], [cnt], [remark_req], [remar" +
|
||||
"k_ans], [ddate], [progress], [import], [asset], [isdel], [path], [userhw2], [ord" +
|
||||
"erno], [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]) VALUES (@status, @pdate, @name, @usermain, @usersub, @r" +
|
||||
"eqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx, @userManager" +
|
||||
", @level, @part, @process, @costo, @costn, @cnt, @remark_req, @remark_ans, @ddat" +
|
||||
"e, @progress, @import, @asset, @isdel, @path, @userhw2, @orderno, @gcode, @categ" +
|
||||
"ory, @userprocess, @CMP_Background, @CMP_Description, @CMP_Before, @CMP_After, @" +
|
||||
"bCost, @bFanOut, @div, @crdue, @model, @serial, @bdate, @qdate, @cdate, @champio" +
|
||||
"nid, @designid, @assemblyid, @epanelid, @softwareid, @userAssembly, @ReqLine, @R" +
|
||||
"eqSite, @ReqPackage, @ReqPlant, @pno, @kdate, @jasmin);\r\nSELECT idx, status, pda" +
|
||||
"te, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, r" +
|
||||
"ev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, rema" +
|
||||
"rk_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.getLa" +
|
||||
"stHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP" +
|
||||
"_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getSchedule" +
|
||||
"ProgressI(idx) AS ProgressPrj, \'\' AS wws, \'\' AS wwo, \'\' AS wwe, \'\' AS wwd, model" +
|
||||
", serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, idx) " +
|
||||
"AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(champ" +
|
||||
"ionid) AS name_champion, dbo.getUserName(designid) AS name_design, dbo.getUserNa" +
|
||||
"me(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.g" +
|
||||
"etUserName(softwareid) AS name_software, userAssembly, ReqLine, ReqSite, ReqPack" +
|
||||
"age, ReqPlant, pno, kdate, jasmin FROM Projects WHERE (idx = SCOPE_IDENTITY()) O" +
|
||||
"RDER BY (CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN" +
|
||||
" ([status] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') THEN \'3\' WHEN ([status] = \'취소" +
|
||||
"\') THEN \'9\' ELSE \'5\' END)";
|
||||
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.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, "", "", ""));
|
||||
@@ -22973,6 +22989,7 @@ namespace FPJ0000.dsPRJTableAdapters {
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
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.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" +
|
||||
@@ -23090,7 +23107,7 @@ namespace FPJ0000.dsPRJTableAdapters {
|
||||
bCost, bFanOut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid,
|
||||
dbo.getProjectFinishRate(gcode, idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid)
|
||||
AS name_design, dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software, userAssembly,
|
||||
ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin
|
||||
ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin, sfi
|
||||
FROM Projects
|
||||
WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR
|
||||
ISNULL(usermain, '') LIKE @username OR
|
||||
@@ -23113,7 +23130,7 @@ ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN
|
||||
bCost, bFanOut, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode,
|
||||
idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) AS name_design,
|
||||
dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software, userAssembly, ReqLine, ReqSite,
|
||||
ReqPackage, ReqPlant, pno, kdate, jasmin
|
||||
ReqPackage, ReqPlant, pno, kdate, jasmin, sfi
|
||||
FROM Projects
|
||||
WHERE (idx = @idx)";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
@@ -23125,7 +23142,7 @@ WHERE (idx = @idx)";
|
||||
bCost, bFanOut, dbo.getScheduleProgressI(idx) AS ProgressPrj, '' AS wws, '' AS wwo, '' AS wwe, '' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode,
|
||||
idx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_champion, dbo.getUserName(designid) AS name_design,
|
||||
dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software, userAssembly, ReqLine, ReqSite,
|
||||
ReqPackage, ReqPlant, pno, kdate, jasmin
|
||||
ReqPackage, ReqPlant, pno, kdate, jasmin, sfi
|
||||
FROM Projects
|
||||
WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) OR
|
||||
(ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (CAST(idx AS varchar) LIKE @search) OR
|
||||
@@ -23392,7 +23409,8 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode =
|
||||
string ReqPlant,
|
||||
global::System.Nullable<int> pno,
|
||||
string kdate,
|
||||
global::System.Nullable<int> jasmin) {
|
||||
global::System.Nullable<int> jasmin,
|
||||
global::System.Nullable<double> sfi) {
|
||||
if ((status == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -23748,6 +23766,12 @@ WHERE (ISNULL(name, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode =
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[59].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((sfi.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[60].Value = ((double)(sfi.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[60].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)) {
|
||||
|
||||
Reference in New Issue
Block a user