database query : add with(nolock)

This commit is contained in:
chi
2024-01-30 10:05:52 +09:00
parent ed37fd6c40
commit 3c86087f76
53 changed files with 6656 additions and 6423 deletions

View File

@@ -1913,7 +1913,6 @@ namespace Project {
this.columnidx.ReadOnly = true;
this.columnidx.Unique = true;
this.columnname.MaxLength = 50;
this.columnsid.AllowDBNull = false;
this.columnsid.MaxLength = 50;
this.columnmodel.MaxLength = 50;
this.columnmanu.MaxLength = 50;
@@ -2083,10 +2082,10 @@ namespace Project {
private global::System.Data.DataColumn columninvtype;
private global::System.Data.DataColumn columnItemName;
private global::System.Data.DataColumn columnprojectName;
private global::System.Data.DataColumn columnExpr1;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public InventoryDataTable() {
@@ -2234,17 +2233,17 @@ namespace Project {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn ItemNameColumn {
public global::System.Data.DataColumn projectNameColumn {
get {
return this.columnItemName;
return this.columnprojectName;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn projectNameColumn {
public global::System.Data.DataColumn Expr1Column {
get {
return this.columnprojectName;
return this.columnExpr1;
}
}
@@ -2285,7 +2284,7 @@ namespace Project {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public InventoryRow AddInventoryRow(string pdate, string uid, int item, string serial, int dr_qty, decimal dr_amt, int cr_qty, decimal cr_amt, string memo, string wuid, System.DateTime wdate, int project, string invtype, string ItemName, string projectName) {
public InventoryRow AddInventoryRow(string pdate, string uid, int item, string serial, int dr_qty, decimal dr_amt, int cr_qty, decimal cr_amt, string memo, string wuid, System.DateTime wdate, int project, string invtype, string projectName, int Expr1) {
InventoryRow rowInventoryRow = ((InventoryRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -2302,8 +2301,8 @@ namespace Project {
wdate,
project,
invtype,
ItemName,
projectName};
projectName,
Expr1};
rowInventoryRow.ItemArray = columnValuesArray;
this.Rows.Add(rowInventoryRow);
return rowInventoryRow;
@@ -2347,8 +2346,8 @@ namespace Project {
this.columnwdate = base.Columns["wdate"];
this.columnproject = base.Columns["project"];
this.columninvtype = base.Columns["invtype"];
this.columnItemName = base.Columns["ItemName"];
this.columnprojectName = base.Columns["projectName"];
this.columnExpr1 = base.Columns["Expr1"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2382,10 +2381,10 @@ namespace Project {
base.Columns.Add(this.columnproject);
this.columninvtype = new global::System.Data.DataColumn("invtype", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columninvtype);
this.columnItemName = new global::System.Data.DataColumn("ItemName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnItemName);
this.columnprojectName = new global::System.Data.DataColumn("projectName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnprojectName);
this.columnExpr1 = new global::System.Data.DataColumn("Expr1", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnExpr1);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -2402,7 +2401,6 @@ namespace Project {
this.columnwuid.MaxLength = 20;
this.columnwdate.AllowDBNull = false;
this.columninvtype.MaxLength = 2;
this.columnItemName.MaxLength = 200;
this.columnprojectName.MaxLength = 200;
}
@@ -7333,7 +7331,12 @@ namespace Project {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string sid {
get {
return ((string)(this[this.tableItems.sidColumn]));
try {
return ((string)(this[this.tableItems.sidColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'sid\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableItems.sidColumn] = value;
@@ -7454,6 +7457,18 @@ namespace Project {
this[this.tableItems.nameColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IssidNull() {
return this.IsNull(this.tableItems.sidColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetsidNull() {
this[this.tableItems.sidColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsmodelNull() {
@@ -7738,22 +7753,6 @@ namespace Project {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string ItemName {
get {
try {
return ((string)(this[this.tableInventory.ItemNameColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'ItemName\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableInventory.ItemNameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string projectName {
@@ -7770,6 +7769,22 @@ namespace Project {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public int Expr1 {
get {
try {
return ((int)(this[this.tableInventory.Expr1Column]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'Expr1\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableInventory.Expr1Column] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IspdateNull() {
@@ -7902,18 +7917,6 @@ namespace Project {
this[this.tableInventory.invtypeColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsItemNameNull() {
return this.IsNull(this.tableInventory.ItemNameColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetItemNameNull() {
this[this.tableInventory.ItemNameColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsprojectNameNull() {
@@ -7925,6 +7928,18 @@ namespace Project {
public void SetprojectNameNull() {
this[this.tableInventory.projectNameColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsExpr1Null() {
return this.IsNull(this.tableInventory.Expr1Column);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetExpr1Null() {
this[this.tableInventory.Expr1Column] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -11785,7 +11800,7 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs, gcode
FROM Users
FROM Users WITH (nolock)
WHERE (ISNULL(dept, N'') LIKE @dept) AND (ISNULL(processs, N'') LIKE @process)
ORDER BY name";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
@@ -11793,14 +11808,15 @@ ORDER BY name";
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.NVarChar, 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 COUNT(*) FROM Users where id = @userid";
this._commandCollection[1].CommandText = "SELECT COUNT(*) AS Expr1\r\nFROM Users WITH (nolock)\r\nWHERE (id = @userid)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te" +
"l, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs," +
" gcode\r\nFROM Users\r\nWHERE (name = @username) AND (password = @encpw)";
" gcode\r\nFROM Users WITH (nolock)\r\nWHERE (name = @username) AND (password = " +
"@encpw)";
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@encpw", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -11808,13 +11824,13 @@ ORDER BY name";
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te" +
"l, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs," +
" gcode\r\nFROM Users\r\nWHERE (id = @id)\r\nORDER BY name";
" gcode\r\nFROM Users WITH (nolock)\r\nWHERE (id = @id)\r\nORDER BY name";
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = @"SELECT ads_created, ads_employNo, ads_title, dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, tel, wdate, wuid, processs, gcode
FROM Users
FROM Users WITH (nolock)
WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR
(password = @encpw) AND (level > 0) AND (id = @idkey) OR
(password = @encpw) AND (level > 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') })";
@@ -13455,7 +13471,7 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate FROM Items
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate\r\nFROM I" +
"tems";
"tems WITH (nolock)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
@@ -13983,8 +13999,8 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate FROM Items
tableMapping.ColumnMappings.Add("wdate", "wdate");
tableMapping.ColumnMappings.Add("project", "project");
tableMapping.ColumnMappings.Add("invtype", "invtype");
tableMapping.ColumnMappings.Add("ItemName", "ItemName");
tableMapping.ColumnMappings.Add("projectName", "projectName");
tableMapping.ColumnMappings.Add("Expr1", "Expr1");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
@@ -14124,14 +14140,14 @@ SELECT idx, pdate, uid, item, serial, dr_qty, dr_amt, cr_qty, cr_amt, memo, proj
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, pdate, uid, item, serial, dr_qty, dr_amt, cr_qty, cr_amt, memo, proj" +
"ect, wuid, wdate, invtype, ItemName, projectName\r\nFROM Inventory\r\nORDER BY p" +
"date";
"ect, wuid, wdate, invtype, item AS Expr1, projectName\r\nFROM Inventory WITH (" +
"nolock)\r\nORDER BY pdate";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "SELECT ItemName, cr_amt, cr_qty, dr_amt, dr_qty, idx, invtype, item, memo, pdate" +
", project, projectName, serial, uid, wdate, wuid\r\nFROM Inventory\r\nWHERE (pd" +
"ate BETWEEN @sd AND @ed) AND (uid = @uid)\r\nORDER BY pdate";
this._commandCollection[1].CommandText = "SELECT item, cr_amt, cr_qty, dr_amt, dr_qty, idx, invtype, item AS Expr1, memo, " +
"pdate, project, projectName, serial, uid, wdate, wuid\r\nFROM Inventory WITH (" +
"nolock)\r\nWHERE (pdate BETWEEN @sd AND @ed) AND (uid = @uid)\r\nORDER BY pdate";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -15012,7 +15028,7 @@ SELECT idx, code, team, part, [except], memo, wuid, wdate, plant, grp2 FROM Line
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, code, team, part, [except], memo, wuid, wdate, plant, grp2\r\nFROM " +
" LineCode";
" LineCode WITH (nolock)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
@@ -15613,8 +15629,8 @@ SELECT dept, gcode, path_kj, advpurchase, permission, advkisul, managerinfo, dev
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT dept, gcode, path_kj, advpurchase, permission, advkisul, managerinfo, dev" +
"info\r\nFROM UserGroup\r\nWHERE (ISNULL(gcode, \'\') <> \'\') AND (ISNULL(permissio" +
"n, 0) > 0)";
"info\r\nFROM UserGroup WITH (nolock)\r\nWHERE (ISNULL(gcode, \'\') <> \'\') AND (IS" +
"NULL(permission, 0) > 0)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
@@ -17344,20 +17360,22 @@ SELECT idx, gcode, uid, level, wuid, wdate, useJobReport, useUserState, state, P
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, gcode, uid, level, wuid, wdate, useJobReport, useUserState, state, P" +
"rocess, exceptHoly\r\nFROM EETGW_GroupUser\r\nWHERE (gcode = @gcode)";
"rocess, exceptHoly\r\nFROM EETGW_GroupUser WITH (nolock)\r\nWHERE (gcode = @gco" +
"de)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].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, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "SELECT COUNT(*) FROM EETGW_GroupUser\r\nwhere gcode =@gcode\r\nand uid = @uid";
this._commandCollection[1].CommandText = "SELECT COUNT(*) AS Expr1\r\nFROM EETGW_GroupUser WITH (nolock)\r\nWHERE (gcode " +
"= @gcode) AND (uid = @uid)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
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.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "SELECT idx, gcode, uid, level, wuid, wdate, useJobReport, useUserState, state, P" +
"rocess, exceptHoly\r\nFROM EETGW_GroupUser\r\nWHERE (gcode = @gcode) and uid=@u" +
"id";
"rocess, exceptHoly\r\nFROM EETGW_GroupUser WITH (nolock)\r\nWHERE (gcode = @gco" +
"de) AND (uid = @uid)";
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[2].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, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -18498,10 +18516,10 @@ SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status,
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, " +
"type, process, description, remark, hrs, ot, import, wuid, wdate, description2, " +
"tag, autoinput\r\nFROM JobReport\r\nWHERE (gcode = @GCODE) AND (uid = @UID)\r\nOR" +
"DER BY pdate";
this._commandCollection[0].CommandText = @"SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, import, wuid, wdate, description2, tag, autoinput
FROM JobReport WITH (nolock)
WHERE (gcode = @GCODE) AND (uid = @UID)
ORDER BY pdate";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].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, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UID", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -19511,8 +19529,8 @@ SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK,
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK," +
" SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData\r\nWHERE (ISNULL(" +
"SendOK, 0) = 0)";
" SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData WITH (nolock)\r\nW" +
"HERE (ISNULL(SendOK, 0) = 0)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -19526,8 +19544,8 @@ SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK,
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK," +
" SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData\r\nWHERE gcode = " +
"@gcode and cate = @cate and pdate = @pdate";
" SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData WITH (nolock)\r\nW" +
"HERE (gcode = @gcode) AND (cate = @cate) AND (pdate = @pdate)";
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[2].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, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -19535,8 +19553,9 @@ SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK,
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK," +
" SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData\r\nWHERE gcode = " +
"@gcode and wuid = @uid and pdate = @pdate and cate = @cate";
" SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData WITH (nolock)\r\nW" +
"HERE (gcode = @gcode) AND (wuid = @uid) AND (pdate = @pdate) AND (cate = @cate)" +
"";
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
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, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -19544,8 +19563,8 @@ SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK,
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "SELECT COUNT(*) AS cnt\r\nFROM MailData\r\nWHERE (aidx = @aidx) AND (atime = @a" +
"time) AND (pdate = @pdate) AND (cate = @cate)";
this._commandCollection[4].CommandText = "SELECT COUNT(*) AS cnt\r\nFROM MailData WITH (nolock)\r\nWHERE (aidx = @aidx) A" +
"ND (atime = @atime) AND (pdate = @pdate) AND (cate = @cate)";
this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@aidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@atime", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -20572,13 +20591,13 @@ SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime,
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime," +
" sday, wuid, wdate, subject, body\r\nFROM MailAuto";
" sday, wuid, wdate, subject, body\r\nFROM MailAuto WITH (nolock)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "SELECT bcc, body, cc, edate, enable, fidx, fromlist, gcode, idx, sdate, sday, sti" +
"me, subject, tolist, wdate, wuid FROM MailAuto WHERE (enable = 1) AND (ISNULL(fr" +
"omlist, \'\') <> \'\') AND (ISNULL(tolist, \'\') <> \'\') AND (ISNULL(stime, \'\') <> \'\')";
this._commandCollection[1].CommandText = @"SELECT bcc, body, cc, edate, enable, fidx, fromlist, gcode, idx, sdate, sday, stime, subject, tolist, wdate, wuid
FROM MailAuto WITH (nolock)
WHERE (enable = 1) AND (ISNULL(fromlist, '') <> '') AND (ISNULL(tolist, '') <> '') AND (ISNULL(stime, '') <> '')";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
}
@@ -21083,12 +21102,14 @@ SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime,
this._commandCollection = new global::System.Data.IDbCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::Project.Properties.Settings.Default.gwcs);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "SELECT ISNULL(name, \'\') AS itemName\r\nFROM Items\r\nWHERE (idx = @id)";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "SELECT ISNULL(name, \'\') AS itemName\r\nFROM Items WITH (nolock)\r\nWHERE (idx =" +
" @id)";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.Text;
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Connection = new global::System.Data.SqlClient.SqlConnection(global::Project.Properties.Settings.Default.gwcs);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandText = "SELECT ISNULL(name, \'\') AS ProjectName\r\nFROM Projects\r\nWHERE (idx = @idx)";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandText = "SELECT ISNULL(name, \'\') AS ProjectName\r\nFROM Projects WITH (nolock)\r\nWHERE " +
"(idx = @idx)";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandType = global::System.Data.CommandType.Text;
((global::System.Data.SqlClient.SqlCommand)(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, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();