업무일지 등록시 분류가 1개라면 자동 선택, 업무형태 글자 짤림으로 인해 늘리기

This commit is contained in:
chi
2023-10-26 20:17:02 +09:00
parent c18b72ede6
commit a95b26c55d
26 changed files with 2916 additions and 1571 deletions

View File

@@ -1107,8 +1107,6 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnjasmin;
private global::System.Data.DataColumn columnsfi;
private global::System.Data.DataColumn columnchamyeo;
private global::System.Data.DataColumn columnname2;
@@ -1121,18 +1119,16 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columneffect_intangible;
private global::System.Data.DataColumn columnlasthistory_date;
private global::System.Data.DataColumn columnsfi;
private global::System.Data.DataColumn columnsfi_type;
private global::System.Data.DataColumn columnsfi_savetime;
private global::System.Data.DataColumn columnsfi_savecount;
private global::System.Data.DataColumn columnsfi_savetime1;
private global::System.Data.DataColumn columnsfi_savecount1;
private global::System.Data.DataColumn columnlasthistory_date;
private global::System.Data.DataColumn columnsfi_shiftcount;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1777,14 +1773,6 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
public global::System.Data.DataColumn chamyeoColumn {
@@ -1833,6 +1821,22 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn lasthistory_dateColumn {
get {
return this.columnlasthistory_date;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
public global::System.Data.DataColumn sfi_typeColumn {
@@ -1857,30 +1861,6 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn sfi_savetime1Column {
get {
return this.columnsfi_savetime1;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn sfi_savecount1Column {
get {
return this.columnsfi_savecount1;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn lasthistory_dateColumn {
get {
return this.columnlasthistory_date;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn sfi_shiftcountColumn {
@@ -2001,19 +1981,17 @@ namespace FPJ0000 {
int pno,
string kdate,
int jasmin,
double sfi,
float chamyeo,
string name2,
string lasthistoryD,
bool bHighlight,
string effect_tangible,
string effect_intangible,
string sfi_type,
float sfi_savetime,
float sfi_savecount,
double sfi_savetime1,
double sfi_savecount1,
string lasthistory_date,
double sfi,
string sfi_type,
double sfi_savetime,
double sfi_savecount,
double sfi_shiftcount) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
@@ -2092,19 +2070,17 @@ namespace FPJ0000 {
pno,
kdate,
jasmin,
sfi,
chamyeo,
name2,
lasthistoryD,
bHighlight,
effect_tangible,
effect_intangible,
lasthistory_date,
sfi,
sfi_type,
sfi_savetime,
sfi_savecount,
sfi_savetime1,
sfi_savecount1,
lasthistory_date,
sfi_shiftcount};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
@@ -2187,19 +2163,17 @@ namespace FPJ0000 {
int pno,
string kdate,
int jasmin,
double sfi,
float chamyeo,
string name2,
string lasthistoryD,
bool bHighlight,
string effect_tangible,
string effect_intangible,
string sfi_type,
float sfi_savetime,
float sfi_savecount,
double sfi_savetime1,
double sfi_savecount1,
string lasthistory_date,
double sfi,
string sfi_type,
double sfi_savetime,
double sfi_savecount,
double sfi_shiftcount) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
@@ -2278,19 +2252,17 @@ namespace FPJ0000 {
pno,
kdate,
jasmin,
sfi,
chamyeo,
name2,
lasthistoryD,
bHighlight,
effect_tangible,
effect_intangible,
lasthistory_date,
sfi,
sfi_type,
sfi_savetime,
sfi_savecount,
sfi_savetime1,
sfi_savecount1,
lasthistory_date,
sfi_shiftcount};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
@@ -2396,19 +2368,17 @@ namespace FPJ0000 {
this.columnpno = base.Columns["pno"];
this.columnkdate = base.Columns["kdate"];
this.columnjasmin = base.Columns["jasmin"];
this.columnsfi = base.Columns["sfi"];
this.columnchamyeo = base.Columns["chamyeo"];
this.columnname2 = base.Columns["name2"];
this.columnlasthistoryD = base.Columns["lasthistoryD"];
this.columnbHighlight = base.Columns["bHighlight"];
this.columneffect_tangible = base.Columns["effect_tangible"];
this.columneffect_intangible = base.Columns["effect_intangible"];
this.columnlasthistory_date = base.Columns["lasthistory_date"];
this.columnsfi = base.Columns["sfi"];
this.columnsfi_type = base.Columns["sfi_type"];
this.columnsfi_savetime = base.Columns["sfi_savetime"];
this.columnsfi_savecount = base.Columns["sfi_savecount"];
this.columnsfi_savetime1 = base.Columns["sfi_savetime1"];
this.columnsfi_savecount1 = base.Columns["sfi_savecount1"];
this.columnlasthistory_date = base.Columns["lasthistory_date"];
this.columnsfi_shiftcount = base.Columns["sfi_shiftcount"];
}
@@ -2565,8 +2535,6 @@ 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.columnchamyeo = new global::System.Data.DataColumn("chamyeo", typeof(float), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnchamyeo);
this.columnname2 = new global::System.Data.DataColumn("name2", typeof(string), null, global::System.Data.MappingType.Element);
@@ -2579,18 +2547,16 @@ namespace FPJ0000 {
base.Columns.Add(this.columneffect_tangible);
this.columneffect_intangible = new global::System.Data.DataColumn("effect_intangible", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columneffect_intangible);
this.columnsfi_type = new global::System.Data.DataColumn("sfi_type", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_type);
this.columnsfi_savetime = new global::System.Data.DataColumn("sfi_savetime", typeof(float), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_savetime);
this.columnsfi_savecount = new global::System.Data.DataColumn("sfi_savecount", typeof(float), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_savecount);
this.columnsfi_savetime1 = new global::System.Data.DataColumn("sfi_savetime1", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_savetime1);
this.columnsfi_savecount1 = new global::System.Data.DataColumn("sfi_savecount1", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_savecount1);
this.columnlasthistory_date = new global::System.Data.DataColumn("lasthistory_date", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlasthistory_date);
this.columnsfi = new global::System.Data.DataColumn("sfi", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi);
this.columnsfi_type = new global::System.Data.DataColumn("sfi_type", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_type);
this.columnsfi_savetime = new global::System.Data.DataColumn("sfi_savetime", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_savetime);
this.columnsfi_savecount = new global::System.Data.DataColumn("sfi_savecount", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_savecount);
this.columnsfi_shiftcount = new global::System.Data.DataColumn("sfi_shiftcount", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsfi_shiftcount);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
@@ -2677,11 +2643,9 @@ namespace FPJ0000 {
this.columnlasthistoryD.MaxLength = 200;
this.columneffect_tangible.MaxLength = 1000;
this.columneffect_intangible.MaxLength = 1000;
this.columnsfi_type.MaxLength = 1;
this.columnsfi_savetime1.Caption = "sfi_savetime";
this.columnsfi_savecount1.Caption = "sfi_savecount";
this.columnlasthistory_date.ReadOnly = true;
this.columnlasthistory_date.MaxLength = 10;
this.columnsfi_type.MaxLength = 1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -14010,22 +13974,6 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
public float chamyeo {
@@ -14122,86 +14070,6 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string sfi_type {
get {
try {
return ((string)(this[this.tableProjects.sfi_typeColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sfi_type\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjects.sfi_typeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public float sfi_savetime {
get {
try {
return ((float)(this[this.tableProjects.sfi_savetimeColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sfi_savetime\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjects.sfi_savetimeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public float sfi_savecount {
get {
try {
return ((float)(this[this.tableProjects.sfi_savecountColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sfi_savecount\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjects.sfi_savecountColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public double sfi_savetime1 {
get {
try {
return ((double)(this[this.tableProjects.sfi_savetime1Column]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sfi_savetime1\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjects.sfi_savetime1Column] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public double sfi_savecount1 {
get {
try {
return ((double)(this[this.tableProjects.sfi_savecount1Column]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sfi_savecount1\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjects.sfi_savecount1Column] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string lasthistory_date {
@@ -14218,6 +14086,70 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
public string sfi_type {
get {
if (this.Issfi_typeNull()) {
return "M";
}
else {
return ((string)(this[this.tableProjects.sfi_typeColumn]));
}
}
set {
this[this.tableProjects.sfi_typeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public double sfi_savetime {
get {
if (this.Issfi_savetimeNull()) {
return 0D;
}
else {
return ((double)(this[this.tableProjects.sfi_savetimeColumn]));
}
}
set {
this[this.tableProjects.sfi_savetimeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public double sfi_savecount {
get {
if (this.Issfi_savecountNull()) {
return 0D;
}
else {
return ((double)(this[this.tableProjects.sfi_savecountColumn]));
}
}
set {
this[this.tableProjects.sfi_savecountColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public double sfi_shiftcount {
@@ -15086,18 +15018,6 @@ namespace FPJ0000 {
this[this.tableProjects.jasminColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
public void SetsfiNull() {
this[this.tableProjects.sfiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IschamyeoNull() {
@@ -15170,6 +15090,30 @@ namespace FPJ0000 {
this[this.tableProjects.effect_intangibleColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool Islasthistory_dateNull() {
return this.IsNull(this.tableProjects.lasthistory_dateColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void Setlasthistory_dateNull() {
this[this.tableProjects.lasthistory_dateColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")]
public void SetsfiNull() {
this[this.tableProjects.sfiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool Issfi_typeNull() {
@@ -15206,42 +15150,6 @@ namespace FPJ0000 {
this[this.tableProjects.sfi_savecountColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool Issfi_savetime1Null() {
return this.IsNull(this.tableProjects.sfi_savetime1Column);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void Setsfi_savetime1Null() {
this[this.tableProjects.sfi_savetime1Column] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool Issfi_savecount1Null() {
return this.IsNull(this.tableProjects.sfi_savecount1Column);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void Setsfi_savecount1Null() {
this[this.tableProjects.sfi_savecount1Column] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool Islasthistory_dateNull() {
return this.IsNull(this.tableProjects.lasthistory_dateColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void Setlasthistory_dateNull() {
this[this.tableProjects.lasthistory_dateColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool Issfi_shiftcountNull() {
@@ -24766,15 +24674,15 @@ namespace FPJ0000.dsPRJTableAdapters {
tableMapping.ColumnMappings.Add("pno", "pno");
tableMapping.ColumnMappings.Add("kdate", "kdate");
tableMapping.ColumnMappings.Add("jasmin", "jasmin");
tableMapping.ColumnMappings.Add("sfi", "sfi");
tableMapping.ColumnMappings.Add("lasthistoryD", "lasthistoryD");
tableMapping.ColumnMappings.Add("bHighlight", "bHighlight");
tableMapping.ColumnMappings.Add("effect_tangible", "effect_tangible");
tableMapping.ColumnMappings.Add("effect_intangible", "effect_intangible");
tableMapping.ColumnMappings.Add("sfi_type", "sfi_type");
tableMapping.ColumnMappings.Add("sfi_savetime", "sfi_savetime1");
tableMapping.ColumnMappings.Add("sfi_savecount", "sfi_savecount1");
tableMapping.ColumnMappings.Add("lasthistory_date", "lasthistory_date");
tableMapping.ColumnMappings.Add("sfi", "sfi");
tableMapping.ColumnMappings.Add("sfi_type", "sfi_type");
tableMapping.ColumnMappings.Add("sfi_savetime", "sfi_savetime");
tableMapping.ColumnMappings.Add("sfi_savecount", "sfi_savecount");
tableMapping.ColumnMappings.Add("sfi_shiftcount", "sfi_shiftcount");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
@@ -24784,7 +24692,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], [bHighlight], [effect_tangible], [effect_intangible], [sfi_type], [sfi_savetime], [sfi_savecount], [sfi_shiftcount]) 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, @effect_tangible, @effect_intangible, @sfi_type, @sfi_savetime, @sfi_savecount, @sfi_shiftcount)";
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], [bHighlight], [effect_tangible], [effect_intangible], [sfi], [sfi_type], [sfi_savetime], [sfi_savecount], [sfi_shiftcount]) 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)";
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, "", "", ""));
@@ -24846,10 +24754,10 @@ 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.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.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect_tangible", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "effect_tangible", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect_intangible", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "effect_intangible", 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("@sfi_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi_savetime", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_savetime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi_savecount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_savecount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -24872,24 +24780,25 @@ namespace FPJ0000.dsPRJTableAdapters {
"semblyid = @assemblyid, epanelid = @epanelid, softwareid = @softwareid, \r\n " +
" userAssembly = @userAssembly, ReqLine = @ReqLine, ReqSite = @ReqSite, R" +
"eqPackage = @ReqPackage, ReqPlant = @ReqPlant, pno = @pno, kdate = @kdate, jasmi" +
"n = @jasmin, \r\n bHighlight = @bHighlight, sfi = @sfi, effect_tangi" +
"ble = @effect_tangible, effect_intangible = @effect_intangible, sfi_type = @sfi_" +
"n = @jasmin, \r\n bHighlight = @bHighlight, effect_tangible = @effec" +
"t_tangible, effect_intangible = @effect_intangible, sfi = @sfi, sfi_type = @sfi_" +
"type, sfi_savetime = @sfi_savetime, \r\n sfi_savecount = @sfi_saveco" +
"unt\r\nWHERE (idx = @Original_idx); \r\nSELECT idx, status, pdate, name, usermai" +
"n, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userMan" +
"ager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, pr" +
"ogress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS" +
" lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP" +
"_Before, CMP_After, 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, de" +
"signid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_ch" +
"ampion, dbo.getUserName(designid) AS name_design, dbo.getUserName(assemblyid) AS" +
" name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.getUserName(softwa" +
"reid) AS name_software, userAssembly, ReqLine, ReqSite, ReqPackage, ReqPlant, pn" +
"o, kdate, jasmin FROM Projects WHERE (idx = @idx) ORDER BY (CASE WHEN [status] =" +
" \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN \'2\' W" +
"HEN ([status] = \'완료\') THEN \'3\' WHEN ([status] = \'취소\') THEN \'9\' ELSE \'5\' END)";
"unt, sfi_shiftcount = @sfi_shiftcount\r\nWHERE (idx = @Original_idx); \r\nSEL" +
"ECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, " +
"memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, c" +
"nt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2" +
", orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess," +
" CMP_Background, CMP_Description, CMP_Before, CMP_After, bCost, bFanOut, div, cr" +
"due, dbo.getScheduleProgressI(idx) AS ProgressPrj, \'\' AS wws, \'\' AS wwo, \'\' AS w" +
"we, \'\' AS wwd, model, serial, bdate, qdate, cdate, championid, dbo.getProjectFin" +
"ishRate(gcode, idx) AS finishrate, designid, assemblyid, epanelid, softwareid, d" +
"bo.getUserName(championid) AS name_champion, dbo.getUserName(designid) AS name_d" +
"esign, dbo.getUserName(assemblyid) AS name_assembly, dbo.getUserName(epanelid) A" +
"S name_epanel, dbo.getUserName(softwareid) AS name_software, userAssembly, ReqLi" +
"ne, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin FROM Projects WHERE (idx =" +
" @idx) ORDER BY (CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN " +
"\'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') THEN \'3\' WHEN ([statu" +
"s] = \'취소\') 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, "", "", ""));
@@ -24952,12 +24861,13 @@ namespace FPJ0000.dsPRJTableAdapters {
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kdate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "kdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@jasmin", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "jasmin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bHighlight", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "bHighlight", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect_tangible", global::System.Data.SqlDbType.VarChar, 1000, global::System.Data.ParameterDirection.Input, 0, 0, "effect_tangible", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@effect_intangible", global::System.Data.SqlDbType.VarChar, 1000, global::System.Data.ParameterDirection.Input, 0, 0, "effect_intangible", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfi", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi_type", global::System.Data.SqlDbType.VarChar, 1, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sfi_savetime", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 0, 0, "sfi_savetime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
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("@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, "", "", ""));
}
@@ -24987,17 +24897,17 @@ namespace FPJ0000.dsPRJTableAdapters {
" AS name_champion, dbo.getUserName(designid) \r\n AS name_design, db" +
"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, bHighlight, effect_tangible, effect_intangible, sf" +
"i_type, sfi_savetime, \r\n sfi_savecount,\r\n (SELEC" +
"T MAX(pdate) AS Expr1\r\n FROM ProjectsHistory\r\n " +
" WHERE (pidx = Projects.idx)) AS lasthistory_date, sfi_shiftcount\r\nFRO" +
"M Projects\r\nWHERE (status LIKE @state) AND (ISNULL(userManager, \'\') LIKE @u" +
"sername OR\r\n ISNULL(usermain, \'\') LIKE @username OR\r\n " +
" ISNULL(usersub, \'\') LIKE @username) AND (ISNULL(isdel, 0) = 0) AND (gcode = @g" +
"code)\r\nORDER BY (CASE WHEN [status] = \'검토\' THEN \'0\' WHEN ([status] = \'진행\') THEN " +
"\'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([status] = \'완료\') THEN \'3\' WHEN ([statu" +
"s] = \'취소\') \r\n THEN \'9\' ELSE \'5\' END)";
" ReqLine, ReqSite, ReqPackage, ReqPlant, pno, kdate, jasmin, dbo.getLastHistor" +
"yD(idx) AS lasthistoryD, bHighlight, effect_tangible, effect_intangible,\r\n " +
" (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\r\nFROM Projects\r\nW" +
"HERE (status LIKE @state) AND (ISNULL(userManager, \'\') 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 ([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, "", "", ""));
@@ -25009,41 +24919,12 @@ namespace FPJ0000.dsPRJTableAdapters {
this._commandCollection[1].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.Original, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = @"SELECT asset, cnt, costn, costo, ddate, edate, idx, import, isdel, level, memo, name, odate, orderno, part, path, pdate, pidx, process, progress, remark_ans, remark_req, reqstaff, rev, sdate, status,
userManager, userhw2, usermain, usersub, wdate, wuid, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After,
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, sfi, bHighlight, effect_tangible, effect_intangible, sfi_savecount, sfi_savetime, sfi_type,
(SELECT MAX(pdate) AS Expr1
FROM ProjectsHistory
WHERE (pidx = Projects.idx)) AS lasthistory_date, sfi_shiftcount
FROM Projects
WHERE (idx = @idx)";
this._commandCollection[2].CommandText = @"SELECT CMP_After, CMP_Background, CMP_Before, CMP_Description, dbo.getScheduleProgressI(idx) AS ProgressPrj, ReqLine, ReqPackage, ReqPlant, ReqSite, assemblyid, asset, bCost, bFanOut, bHighlight, bdate, category, cdate, championid, cnt, costn, costo, crdue, ddate, designid, div, edate, effect_intangible, effect_tangible, epanelid, dbo.getProjectFinishRate(gcode, idx) AS finishrate, gcode, idx, import, isdel, jasmin, kdate, dbo.getLastHistory(idx) AS lasthistory, (SELECT MAX(pdate) AS Expr1 FROM ProjectsHistory 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, softwareid, status, userAssembly, userManager, userhw2, usermain, userprocess, usersub, wdate, wuid, '' AS wwd, '' AS wwe, '' AS wwo, '' AS wws FROM Projects WHERE (idx = @idx)";
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[2].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, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat" +
"e, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn" +
", cnt, remark_req, remark_ans, ddate, \r\n progress, import, asset, " +
"isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, ca" +
"tegory, userprocess, CMP_Background, CMP_Description, CMP_Before, CMP_After, \r\n " +
" bCost, bFanOut, dbo.getScheduleProgressI(idx) AS ProgressPrj, \'\' A" +
"S wws, \'\' AS wwo, \'\' AS wwe, \'\' AS wwd, model, serial, bdate, qdate, cdate, cham" +
"pionid, dbo.getProjectFinishRate(gcode, \r\n idx) AS finishrate, des" +
"ignid, assemblyid, epanelid, softwareid, dbo.getUserName(championid) AS name_cha" +
"mpion, dbo.getUserName(designid) AS name_design, \r\n dbo.getUserNam" +
"e(assemblyid) AS name_assembly, dbo.getUserName(epanelid) AS name_epanel, dbo.ge" +
"tUserName(softwareid) AS name_software, userAssembly, ReqLine, ReqSite, \r\n " +
" ReqPackage, ReqPlant, pno, kdate, jasmin, sfi, bHighlight, effect_tangi" +
"ble, effect_intangible, sfi_savecount, sfi_savetime, sfi_type,\r\n " +
" (SELECT MAX(pdate) AS Expr1\r\n FROM ProjectsHistory\r\n " +
" WHERE (pidx = Projects.idx)) AS lasthistory_date, sfi_shiftc" +
"ount\r\nFROM Projects\r\nWHERE (ISNULL(name, N\'\') LIKE @search) AND (ISNULL(isd" +
"el, 0) = 0) AND (gcode = @gcode) OR\r\n (ISNULL(isdel, 0) = 0) AND (" +
"gcode = @gcode) AND (CAST(idx AS varchar) LIKE @search) OR\r\n (ISNU" +
"LL(isdel, 0) = 0) AND (gcode = @gcode) AND (ISNULL(memo, N\'\') LIKE @search)";
this._commandCollection[3].CommandText = @"SELECT CMP_After, CMP_Background, CMP_Before, CMP_Description, dbo.getScheduleProgressI(idx) AS ProgressPrj, ReqLine, ReqPackage, ReqPlant, ReqSite, assemblyid, asset, bCost, bFanOut, bHighlight, bdate, category, cdate, championid, cnt, costn, costo, crdue, ddate, designid, div, edate, effect_intangible, effect_tangible, epanelid, dbo.getProjectFinishRate(gcode, idx) AS finishrate, gcode, idx, import, isdel, jasmin, kdate, dbo.getLastHistory(idx) AS lasthistory, (SELECT MAX(pdate) AS Expr1 FROM ProjectsHistory 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, softwareid, status, userAssembly, userManager, userhw2, usermain, userprocess, usersub, wdate, wuid, '' AS wwd, '' AS wwe, '' AS wwo, '' AS wws 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 (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, "", "", ""));
@@ -25307,10 +25188,10 @@ WHERE (idx = @idx)";
global::System.Nullable<int> pno,
string kdate,
global::System.Nullable<int> jasmin,
global::System.Nullable<double> sfi,
global::System.Nullable<bool> bHighlight,
string effect_tangible,
string effect_intangible,
global::System.Nullable<double> sfi,
string sfi_type,
global::System.Nullable<double> sfi_savetime,
global::System.Nullable<double> sfi_savecount,
@@ -25670,29 +25551,29 @@ WHERE (idx = @idx)";
else {
this.Adapter.InsertCommand.Parameters[59].Value = global::System.DBNull.Value;
}
if ((sfi.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[60].Value = ((double)(sfi.Value));
if ((bHighlight.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[60].Value = ((bool)(bHighlight.Value));
}
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 {
if ((effect_tangible == null)) {
this.Adapter.InsertCommand.Parameters[61].Value = global::System.DBNull.Value;
}
if ((effect_tangible == null)) {
else {
this.Adapter.InsertCommand.Parameters[61].Value = ((string)(effect_tangible));
}
if ((effect_intangible == null)) {
this.Adapter.InsertCommand.Parameters[62].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[62].Value = ((string)(effect_tangible));
this.Adapter.InsertCommand.Parameters[62].Value = ((string)(effect_intangible));
}
if ((effect_intangible == null)) {
this.Adapter.InsertCommand.Parameters[63].Value = global::System.DBNull.Value;
if ((sfi.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[63].Value = ((double)(sfi.Value));
}
else {
this.Adapter.InsertCommand.Parameters[63].Value = ((string)(effect_intangible));
this.Adapter.InsertCommand.Parameters[63].Value = global::System.DBNull.Value;
}
if ((sfi_type == null)) {
this.Adapter.InsertCommand.Parameters[64].Value = global::System.DBNull.Value;
@@ -25800,12 +25681,13 @@ WHERE (idx = @idx)";
string kdate,
global::System.Nullable<int> jasmin,
global::System.Nullable<bool> bHighlight,
global::System.Nullable<double> sfi,
string effect_tangible,
string effect_intangible,
global::System.Nullable<double> sfi,
string sfi_type,
global::System.Nullable<double> sfi_savetime,
global::System.Nullable<double> sfi_savecount,
global::System.Nullable<double> sfi_shiftcount,
int Original_idx,
int idx) {
if ((status == null)) {
@@ -26169,23 +26051,23 @@ WHERE (idx = @idx)";
else {
this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value;
}
if ((sfi.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[61].Value = ((double)(sfi.Value));
}
else {
if ((effect_tangible == null)) {
this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value;
}
if ((effect_tangible == null)) {
else {
this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(effect_tangible));
}
if ((effect_intangible == null)) {
this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(effect_tangible));
this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(effect_intangible));
}
if ((effect_intangible == null)) {
this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value;
if ((sfi.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[63].Value = ((double)(sfi.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(effect_intangible));
this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value;
}
if ((sfi_type == null)) {
this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value;
@@ -26205,8 +26087,14 @@ WHERE (idx = @idx)";
else {
this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[67].Value = ((int)(Original_idx));
this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(idx));
if ((sfi_shiftcount.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[67].Value = ((double)(sfi_shiftcount.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[68].Value = ((int)(Original_idx));
this.Adapter.UpdateCommand.Parameters[69].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)) {