This commit is contained in:
chikyun.kim
2019-01-15 11:40:59 +09:00
parent e2f859f3f9
commit a45bf77419
9 changed files with 385 additions and 169 deletions

View File

@@ -451,6 +451,8 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnpidx;
private global::System.Data.DataColumn columnuserManager;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ProjectsDataTable() {
@@ -612,6 +614,14 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn userManagerColumn {
get {
return this.columnuserManager;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -649,7 +659,23 @@ namespace FPJ0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ProjectsRow AddProjectsRow(string name, string pdate, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate, string status, string usermain, string usersub, int rev, int pidx) {
public ProjectsRow AddProjectsRow(
string name,
string pdate,
string request,
string reqstaff,
string sdate,
string edate,
string odate,
string memo,
string wuid,
System.DateTime wdate,
string status,
string usermain,
string usersub,
int rev,
int pidx,
string userManager) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -667,7 +693,8 @@ namespace FPJ0000 {
usermain,
usersub,
rev,
pidx};
pidx,
userManager};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
return rowProjectsRow;
@@ -713,6 +740,7 @@ namespace FPJ0000 {
this.columnusersub = base.Columns["usersub"];
this.columnrev = base.Columns["rev"];
this.columnpidx = base.Columns["pidx"];
this.columnuserManager = base.Columns["userManager"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -750,6 +778,8 @@ namespace FPJ0000 {
base.Columns.Add(this.columnrev);
this.columnpidx = new global::System.Data.DataColumn("pidx", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnpidx);
this.columnuserManager = new global::System.Data.DataColumn("userManager", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnuserManager);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -772,6 +802,7 @@ namespace FPJ0000 {
this.columnstatus.MaxLength = 20;
this.columnusermain.MaxLength = 50;
this.columnusersub.MaxLength = 50;
this.columnuserManager.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2839,6 +2870,22 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string userManager {
get {
if (this.IsuserManagerNull()) {
return string.Empty;
}
else {
return ((string)(this[this.tableProjects.userManagerColumn]));
}
}
set {
this[this.tableProjects.userManagerColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsnameNull() {
@@ -2994,6 +3041,18 @@ namespace FPJ0000 {
public void SetpidxNull() {
this[this.tableProjects.pidxColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsuserManagerNull() {
return this.IsNull(this.tableProjects.userManagerColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetuserManagerNull() {
this[this.tableProjects.userManagerColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -4479,10 +4538,11 @@ namespace FPJ0000.dsPRJTableAdapters {
tableMapping.ColumnMappings.Add("usersub", "usersub");
tableMapping.ColumnMappings.Add("rev", "rev");
tableMapping.ColumnMappings.Add("pidx", "pidx");
tableMapping.ColumnMappings.Add("userManager", "userManager");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_rev = 1 AND [rev] IS NULL) OR ([rev] = @Original_rev)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)))";
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Original_usersub)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_rev = 1 AND [rev] IS NULL) OR ([rev] = @Original_rev)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ((@IsNull_userManager = 1 AND [userManager] IS NULL) OR ([userManager] = @Original_userManager)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -4513,10 +4573,12 @@ namespace FPJ0000.dsPRJTableAdapters {
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", 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], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate], [rev], [pidx]) VALUES (@status, @pdate, @name, @usermain, @usersub, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx);
SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY status";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Projects] ([status], [pdate], [name], [usermain], [usersub], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate], [rev], [pidx], [userManager]) VALUES (@status, @pdate, @name, @usermain, @usersub, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate, @rev, @pidx, @userManager);
SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER 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.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, "", "", ""));
@@ -4533,28 +4595,33 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", 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] SET [status] = @status, [pdate] = @pdate, [name] = @name, [user" +
"main] = @usermain, [usersub] = @usersub, [request] = @request, [reqstaff] = @req" +
"staff, [sdate] = @sdate, [edate] = @edate, [odate] = @odate, [memo] = @memo, [wu" +
"id] = @wuid, [wdate] = @wdate, [rev] = @rev, [pidx] = @pidx WHERE (([idx] = @Ori" +
"ginal_idx) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Origin" +
"al_status)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original" +
"_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)" +
") AND ((@IsNull_usermain = 1 AND [usermain] IS NULL) OR ([usermain] = @Original_" +
"usermain)) AND ((@IsNull_usersub = 1 AND [usersub] IS NULL) OR ([usersub] = @Ori" +
"ginal_usersub)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] =" +
" @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([req" +
"staff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([" +
"sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([eda" +
"te] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate]" +
" = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Or" +
"iginal_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND " +
"((@IsNull_rev = 1 AND [rev] IS NULL) OR ([rev] = @Original_rev)) AND ((@IsNull_p" +
"idx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)));\r\nSELECT idx, status," +
" pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, w" +
"uid, wdate, rev, pidx FROM Projects WHERE (idx = @idx) ORDER BY status";
"id] = @wuid, [wdate] = @wdate, [rev] = @rev, [pidx] = @pidx, [userManager] = @us" +
"erManager WHERE (([idx] = @Original_idx) AND ((@IsNull_status = 1 AND [status] I" +
"S NULL) OR ([status] = @Original_status)) AND ((@IsNull_pdate = 1 AND [pdate] IS" +
" NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_name = 1 AND [name] IS NULL" +
") OR ([name] = @Original_name)) AND ((@IsNull_usermain = 1 AND [usermain] IS NUL" +
"L) OR ([usermain] = @Original_usermain)) AND ((@IsNull_usersub = 1 AND [usersub]" +
" IS NULL) OR ([usersub] = @Original_usersub)) AND ((@IsNull_request = 1 AND [req" +
"uest] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AN" +
"D [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate " +
"= 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1" +
" AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AN" +
"D [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [m" +
"emo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([" +
"wdate] = @Original_wdate) AND ((@IsNull_rev = 1 AND [rev] IS NULL) OR ([rev] = @" +
"Original_rev)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original" +
"_pidx)) AND ((@IsNull_userManager = 1 AND [userManager] IS NULL) OR ([userManage" +
"r] = @Original_userManager)));\r\nSELECT idx, status, pdate, name, usermain, users" +
"ub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userMa" +
"nager FROM Projects WHERE (idx = @idx) ORDER BY (CASE WHEN [status] = \'검토\' THEN " +
"\'0\' WHEN ([status] = \'진행\') THEN \'1\' WHEN ([status] = \'보류\') THEN \'2\' WHEN ([statu" +
"s] = \'완료\') THEN \'3\' WHEN ([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, 0, 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, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4571,6 +4638,7 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -4600,6 +4668,8 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rev", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rev", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_userManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userManager", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -4616,16 +4686,21 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed" +
"ate, odate, memo, wuid, wdate, rev, pidx\r\nFROM Projects\r\nWHERE (status LIKE" +
" @state)\r\nORDER BY status";
this._commandCollection[0].CommandText = @"SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager
FROM Projects
WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR
ISNULL(usermain, '') LIKE @username OR
ISNULL(usersub, '') LIKE @username)
ORDER 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._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, 20, 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, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "SELECT edate, idx, memo, name, odate, pdate, pidx, reqstaff, request, rev, sdate" +
", status, usermain, usersub, wdate, wuid\r\nFROM Projects\r\nWHERE (idx = @idx)" +
"";
this._commandCollection[1].CommandText = "SELECT edate, idx, memo, name, odate, pdate, pidx, reqstaff, request, rev, sdate," +
" status, userManager, usermain, usersub, wdate, wuid FROM Projects WHERE (idx = " +
"@idx)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].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, "", "", ""));
}
@@ -4634,7 +4709,7 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(dsPRJ.ProjectsDataTable dataTable, string state) {
public virtual int Fill(dsPRJ.ProjectsDataTable dataTable, string state, string username) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((state == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -4642,6 +4717,12 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(state));
}
if ((username == null)) {
throw new global::System.ArgumentNullException("username");
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(username));
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
@@ -4653,7 +4734,7 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual dsPRJ.ProjectsDataTable GetData(string state) {
public virtual dsPRJ.ProjectsDataTable GetData(string state, string username) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((state == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -4661,6 +4742,12 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(state));
}
if ((username == null)) {
throw new global::System.ArgumentNullException("username");
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(username));
}
dsPRJ.ProjectsDataTable dataTable = new dsPRJ.ProjectsDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
@@ -4741,7 +4828,8 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
string Original_wuid,
System.DateTime Original_wdate,
global::System.Nullable<int> Original_rev,
global::System.Nullable<int> Original_pidx) {
global::System.Nullable<int> Original_pidx,
string Original_userManager) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_status == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
@@ -4854,6 +4942,14 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
}
if ((Original_userManager == null)) {
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_userManager));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -4874,7 +4970,23 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string status, string pdate, string name, string usermain, string usersub, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate, global::System.Nullable<int> rev, global::System.Nullable<int> pidx) {
public virtual int Insert(
string status,
string pdate,
string name,
string usermain,
string usersub,
string request,
string reqstaff,
string sdate,
string edate,
string odate,
string memo,
string wuid,
System.DateTime wdate,
global::System.Nullable<int> rev,
global::System.Nullable<int> pidx,
string userManager) {
if ((status == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -4960,6 +5072,12 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
else {
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
}
if ((userManager == null)) {
this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[15].Value = ((string)(userManager));
}
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)) {
@@ -4996,6 +5114,7 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
System.DateTime wdate,
global::System.Nullable<int> rev,
global::System.Nullable<int> pidx,
string userManager,
int Original_idx,
string Original_status,
string Original_pdate,
@@ -5012,6 +5131,7 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
System.DateTime Original_wdate,
global::System.Nullable<int> Original_rev,
global::System.Nullable<int> Original_pidx,
string Original_userManager,
int idx) {
if ((status == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -5098,119 +5218,133 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
else {
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx));
if ((Original_status == null)) {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
if ((userManager == null)) {
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_status));
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(userManager));
}
this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_idx));
if ((Original_status == null)) {
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_status));
}
if ((Original_pdate == null)) {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_pdate));
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_pdate));
}
if ((Original_name == null)) {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_name));
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_name));
}
if ((Original_usermain == null)) {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_usermain));
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_usermain));
}
if ((Original_usersub == null)) {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_usersub));
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_usersub));
}
if ((Original_request == null)) {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_request));
this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_request));
}
if ((Original_reqstaff == null)) {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_reqstaff));
this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_reqstaff));
}
if ((Original_sdate == null)) {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_sdate));
this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_sdate));
}
if ((Original_edate == null)) {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_edate));
this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_edate));
}
if ((Original_odate == null)) {
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_odate));
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_odate));
}
if ((Original_memo == null)) {
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_memo));
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_memo));
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_wuid));
this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_wuid));
}
this.Adapter.UpdateCommand.Parameters[39].Value = ((System.DateTime)(Original_wdate));
this.Adapter.UpdateCommand.Parameters[40].Value = ((System.DateTime)(Original_wdate));
if ((Original_rev.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_rev.Value));
this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(Original_rev.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
}
if ((Original_pidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(Original_pidx.Value));
this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[44].Value = ((int)(Original_pidx.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[44].Value = ((int)(idx));
if ((Original_userManager == null)) {
this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_userManager));
}
this.Adapter.UpdateCommand.Parameters[47].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)) {
@@ -5247,6 +5381,7 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
System.DateTime wdate,
global::System.Nullable<int> rev,
global::System.Nullable<int> pidx,
string userManager,
int Original_idx,
string Original_status,
string Original_pdate,
@@ -5262,8 +5397,9 @@ SELECT idx, status, pdate, name, usermain, usersub, request, reqstaff, sdate, ed
string Original_wuid,
System.DateTime Original_wdate,
global::System.Nullable<int> Original_rev,
global::System.Nullable<int> Original_pidx) {
return this.Update(status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, Original_idx, Original_status, Original_pdate, Original_name, Original_usermain, Original_usersub, Original_request, Original_reqstaff, Original_sdate, Original_edate, Original_odate, Original_memo, Original_wuid, Original_wdate, Original_rev, Original_pidx, Original_idx);
global::System.Nullable<int> Original_pidx,
string Original_userManager) {
return this.Update(status, pdate, name, usermain, usersub, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, Original_idx, Original_status, Original_pdate, Original_name, Original_usermain, Original_usersub, Original_request, Original_reqstaff, Original_sdate, Original_edate, Original_odate, Original_memo, Original_wuid, Original_wdate, Original_rev, Original_pidx, Original_userManager, Original_idx);
}
}