sendmail 별도의 프로세스로 분리하고 클라우드서버에서 실행함
This commit is contained in:
142
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
142
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
@@ -1244,6 +1244,8 @@ namespace FPJ0000 {
|
||||
|
||||
private global::System.Data.DataColumn columncramount;
|
||||
|
||||
private global::System.Data.DataColumn columnpanelimage;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public ProjectsDataTable() :
|
||||
@@ -2014,6 +2016,14 @@ namespace FPJ0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn panelimageColumn {
|
||||
get {
|
||||
return this.columnpanelimage;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -2141,7 +2151,8 @@ namespace FPJ0000 {
|
||||
double sfic,
|
||||
bool bmajoritem,
|
||||
int lastSchNo,
|
||||
decimal cramount) {
|
||||
decimal cramount,
|
||||
byte[] panelimage) {
|
||||
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -2234,7 +2245,8 @@ namespace FPJ0000 {
|
||||
sfic,
|
||||
bmajoritem,
|
||||
lastSchNo,
|
||||
cramount};
|
||||
cramount,
|
||||
panelimage};
|
||||
rowProjectsRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowProjectsRow);
|
||||
return rowProjectsRow;
|
||||
@@ -2331,7 +2343,8 @@ namespace FPJ0000 {
|
||||
double sfic,
|
||||
bool bmajoritem,
|
||||
int lastSchNo,
|
||||
decimal cramount) {
|
||||
decimal cramount,
|
||||
byte[] panelimage) {
|
||||
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
@@ -2424,7 +2437,8 @@ namespace FPJ0000 {
|
||||
sfic,
|
||||
bmajoritem,
|
||||
lastSchNo,
|
||||
cramount};
|
||||
cramount,
|
||||
panelimage};
|
||||
rowProjectsRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowProjectsRow);
|
||||
return rowProjectsRow;
|
||||
@@ -2545,6 +2559,7 @@ namespace FPJ0000 {
|
||||
this.columnbmajoritem = base.Columns["bmajoritem"];
|
||||
this.columnlastSchNo = base.Columns["lastSchNo"];
|
||||
this.columncramount = base.Columns["cramount"];
|
||||
this.columnpanelimage = base.Columns["panelimage"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -2732,6 +2747,8 @@ namespace FPJ0000 {
|
||||
base.Columns.Add(this.columnlastSchNo);
|
||||
this.columncramount = new global::System.Data.DataColumn("cramount", typeof(decimal), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columncramount);
|
||||
this.columnpanelimage = new global::System.Data.DataColumn("panelimage", typeof(byte[]), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnpanelimage);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnidx}, true));
|
||||
this.columnidx.AutoIncrement = true;
|
||||
@@ -15624,6 +15641,22 @@ namespace FPJ0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public byte[] panelimage {
|
||||
get {
|
||||
try {
|
||||
return ((byte[])(this[this.tableProjects.panelimageColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'panelimage\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableProjects.panelimageColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsnameNull() {
|
||||
@@ -16667,6 +16700,18 @@ namespace FPJ0000 {
|
||||
public void SetcramountNull() {
|
||||
this[this.tableProjects.cramountColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IspanelimageNull() {
|
||||
return this.IsNull(this.tableProjects.panelimageColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetpanelimageNull() {
|
||||
this[this.tableProjects.panelimageColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -27118,6 +27163,7 @@ namespace FPJ0000.dsPRJTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("bmajoritem", "bmajoritem");
|
||||
tableMapping.ColumnMappings.Add("lastSchNo", "lastSchNo");
|
||||
tableMapping.ColumnMappings.Add("cramount", "cramount");
|
||||
tableMapping.ColumnMappings.Add("panelimage", "panelimage");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
@@ -27130,8 +27176,8 @@ namespace FPJ0000.dsPRJTableAdapters {
|
||||
(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, bHighlight, effect_tangible,
|
||||
effect_intangible, sfi, sfi_type, sfi_savetime, sfi_savecount, sfi_shiftcount, sfic, bmajoritem, cramount)
|
||||
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,@bHighlight,@effect_tangible,@effect_intangible,@sfi,@sfi_type,@sfi_savetime,@sfi_savecount,@sfi_shiftcount,@sfic,@bmajoritem,@cramount)";
|
||||
effect_intangible, sfi, sfi_type, sfi_savetime, sfi_savecount, sfi_shiftcount, sfic, bmajoritem, cramount, panelimage)
|
||||
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,@bHighlight,@effect_tangible,@effect_intangible,@sfi,@sfi_type,@sfi_savetime,@sfi_savecount,@sfi_shiftcount,@sfic,@bmajoritem,@cramount,@panelimage)";
|
||||
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, 50, 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, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -27203,7 +27249,8 @@ VALUES (@status,@pdate,@name,@usermain,@usersub,@reqstaff,@sdate,@edate,@odate,
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi_shiftcount", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_shiftcount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfic", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bmajoritem", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "bmajoritem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cramount", global::System.Data.SqlDbType.Decimal, 12, global::System.Data.ParameterDirection.Input, 14, 3, "cramount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cramount", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 14, 3, "cramount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@panelimage", global::System.Data.SqlDbType.VarBinary, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, "panelimage", 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" +
|
||||
@@ -27226,22 +27273,22 @@ VALUES (@status,@pdate,@name,@usermain,@usersub,@reqstaff,@sdate,@edate,@odate,
|
||||
"t_tangible, effect_intangible = @effect_intangible, sfi = @sfi, sfi_type = @sfi_" +
|
||||
"type, sfi_savetime = @sfi_savetime, \r\n sfi_savecount = @sfi_saveco" +
|
||||
"unt, sfi_shiftcount = @sfi_shiftcount, sfic = @sfic, cramount = @cramount, bmajo" +
|
||||
"ritem = @bmajoritem\r\nWHERE (idx = @Original_idx); \r\nSELECT idx, status," +
|
||||
" pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdat" +
|
||||
"e, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, " +
|
||||
"remark_ans, ddate, progress, import, asset, isdel, path, userhw2, orderno, dbo.g" +
|
||||
"etLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background," +
|
||||
" CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, crdue, dbo.getSche" +
|
||||
"duleProgressI(idx) AS ProgressPrj, \'\' AS wws, \'\' AS wwo, \'\' AS wwe, \'\' AS wwd, m" +
|
||||
"odel, serial, bdate, qdate, cdate, championid, dbo.getProjectFinishRate(gcode, i" +
|
||||
"dx) AS finishrate, designid, assemblyid, epanelid, softwareid, dbo.getUserName(c" +
|
||||
"hampionid) AS name_champion, dbo.getUserName(designid) AS name_design, dbo.getUs" +
|
||||
"erName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, d" +
|
||||
"bo.getUserName(softwareid) AS name_software, userAssembly, ReqLine, ReqSite, Req" +
|
||||
"Package, ReqPlant, pno, kdate, jasmin FROM Projects WHERE (idx = @idx) ORDER BY " +
|
||||
"(CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN ([statu" +
|
||||
"s] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') THEN \'3\' WHEN ([status] = \'취소\') THEN " +
|
||||
"\'9\' ELSE \'5\' END)";
|
||||
"ritem = @bmajoritem, panelimage = @panelimage\r\nWHERE (idx = @Original_idx); " +
|
||||
" \r\nSELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, eda" +
|
||||
"te, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, cost" +
|
||||
"o, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, pa" +
|
||||
"th, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, u" +
|
||||
"serprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanO" +
|
||||
"ut, div, crdue, dbo.getScheduleProgressI(idx) AS ProgressPrj, \'\' AS wws, \'\' AS w" +
|
||||
"wo, \'\' AS wwe, \'\' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.ge" +
|
||||
"tProjectFinishRate(gcode, idx) AS finishrate, designid, assemblyid, epanelid, so" +
|
||||
"ftwareid, 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, userAsse" +
|
||||
"mbly, ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin FROM Projects W" +
|
||||
"HERE (idx = @idx) ORDER BY (CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([status] = " +
|
||||
"\'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') THEN \'3\' W" +
|
||||
"HEN ([status] = \'취소\') THEN \'9\' ELSE \'5\' END)";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -27312,8 +27359,9 @@ VALUES (@status,@pdate,@name,@usermain,@usersub,@reqstaff,@sdate,@edate,@odate,
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi_savecount", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_savecount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi_shiftcount", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_shiftcount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfic", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cramount", global::System.Data.SqlDbType.Decimal, 12, global::System.Data.ParameterDirection.Input, 14, 3, "cramount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cramount", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 14, 3, "cramount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bmajoritem", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "bmajoritem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@panelimage", global::System.Data.SqlDbType.VarBinary, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, "panelimage", 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, 4, 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("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
}
|
||||
@@ -27348,13 +27396,13 @@ VALUES (@status,@pdate,@name,@usermain,@usersub,@reqstaff,@sdate,@edate,@odate,
|
||||
" (SELECT MAX(pdate) AS Expr1\r\n FROM Projects" +
|
||||
"History\r\n WHERE (pidx = Projects.idx)) AS lasthistory_date, " +
|
||||
"sfi, sfi_type, sfi_savetime, sfi_savecount, sfi_shiftcount, sfic, bmajoritem, db" +
|
||||
"o.getLastProjectScheduleNo(gcode, idx) AS lastSchNo, \r\n cramount\r\n" +
|
||||
"FROM Projects WITH (nolock)\r\nWHERE (status LIKE @state) AND (ISNULL(userMan" +
|
||||
"ager, \'\') LIKE @username OR\r\n ISNULL(usermain, \'\') LIKE @username " +
|
||||
"OR\r\n ISNULL(usersub, \'\') LIKE @username) AND (ISNULL(isdel, 0) = 0" +
|
||||
") AND (gcode = @gcode)\r\nORDER BY (CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([stat" +
|
||||
"us] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') THEN" +
|
||||
" \'3\' WHEN ([status] = \'취소\') \r\n THEN \'9\' ELSE \'5\' END)";
|
||||
"o.getLastProjectScheduleNo(gcode, idx) AS lastSchNo, \r\n cramount, " +
|
||||
"panelimage\r\nFROM Projects WITH (nolock)\r\nWHERE (status LIKE @state) AND (IS" +
|
||||
"NULL(userManager, \'\') LIKE @username OR\r\n ISNULL(usermain, \'\') LIK" +
|
||||
"E @username OR\r\n ISNULL(usersub, \'\') LIKE @username) AND (ISNULL(i" +
|
||||
"sdel, 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, "", "", ""));
|
||||
@@ -27374,7 +27422,7 @@ VALUES (@status,@pdate,@name,@usermain,@usersub,@reqstaff,@sdate,@edate,@odate,
|
||||
WHERE (pidx = Projects.idx)) AS lasthistory_date, level, memo, model, name, dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(championid) AS name_champion,
|
||||
dbo.getUserName(designid) AS name_design, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwareid) AS name_software, odate, orderno, part, path, pdate, pidx, pno,
|
||||
process, progress, qdate, remark_ans, remark_req, reqstaff, rev, sdate, serial, sfi, sfi_savecount, sfi_savetime, sfi_shiftcount, sfi_type, sfic, softwareid, status, userAssembly, userManager,
|
||||
userhw2, usermain, userprocess, usersub, wdate, wuid, '' AS wwd, '' AS wwe, '' AS wwo, '' AS wws, dbo.getLastProjectScheduleNo(gcode, idx) AS lastSchNo, cramount
|
||||
userhw2, usermain, userprocess, usersub, wdate, wuid, '' AS wwd, '' AS wwe, '' AS wwo, '' AS wws, dbo.getLastProjectScheduleNo(gcode, idx) AS lastSchNo, cramount, panelimage
|
||||
FROM Projects WITH (nolock)
|
||||
WHERE (idx = @idx)";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
@@ -27398,11 +27446,11 @@ WHERE (idx = @idx)";
|
||||
", sfi_shiftcount, sfi_type, sfic, softwareid, status, userAssembly, userManager," +
|
||||
" \r\n userhw2, usermain, userprocess, usersub, wdate, wuid, \'\' AS ww" +
|
||||
"d, \'\' AS wwe, \'\' AS wwo, \'\' AS wws, dbo.getLastProjectScheduleNo(gcode, idx) AS " +
|
||||
"lastSchNo, cramount\r\nFROM Projects WITH (nolock)\r\nWHERE (ISNULL(name, N\'\') " +
|
||||
"LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) OR\r\n " +
|
||||
" (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (CAST(idx AS varchar) LIKE @sea" +
|
||||
"rch) OR\r\n (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(" +
|
||||
"memo, N\'\') LIKE @search)";
|
||||
"lastSchNo, cramount, panelimage\r\nFROM Projects WITH (nolock)\r\nWHERE (ISNULL" +
|
||||
"(name, N\'\') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) OR\r\n " +
|
||||
" (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) AND (CAST(idx AS varcha" +
|
||||
"r) LIKE @search) OR\r\n (ISNULL(isdel, 0) = 0) AND (gcode = @gcode) " +
|
||||
"AND (ISNULL(memo, N\'\') LIKE @search)";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -27676,7 +27724,8 @@ WHERE (idx = @idx)";
|
||||
global::System.Nullable<double> sfi_shiftcount,
|
||||
global::System.Nullable<double> sfic,
|
||||
global::System.Nullable<bool> bmajoritem,
|
||||
global::System.Nullable<decimal> cramount) {
|
||||
global::System.Nullable<decimal> cramount,
|
||||
byte[] panelimage) {
|
||||
if ((status == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -28098,6 +28147,12 @@ WHERE (idx = @idx)";
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[70].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((panelimage == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[71].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[71].Value = ((byte[])(panelimage));
|
||||
}
|
||||
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)) {
|
||||
@@ -28190,6 +28245,7 @@ WHERE (idx = @idx)";
|
||||
global::System.Nullable<double> sfic,
|
||||
global::System.Nullable<decimal> cramount,
|
||||
global::System.Nullable<bool> bmajoritem,
|
||||
byte[] panelimage,
|
||||
int Original_idx,
|
||||
int idx) {
|
||||
if ((status == null)) {
|
||||
@@ -28613,8 +28669,14 @@ WHERE (idx = @idx)";
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value;
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[71].Value = ((int)(Original_idx));
|
||||
this.Adapter.UpdateCommand.Parameters[72].Value = ((int)(idx));
|
||||
if ((panelimage == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[71].Value = ((byte[])(panelimage));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[72].Value = ((int)(Original_idx));
|
||||
this.Adapter.UpdateCommand.Parameters[73].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)) {
|
||||
|
||||
Reference in New Issue
Block a user