This commit is contained in:
chi
2023-01-16 22:53:29 +09:00
parent 913ae6b261
commit e487cdb3e3
20 changed files with 1527 additions and 2218 deletions

View File

@@ -1632,6 +1632,12 @@ namespace FCM0000 {
private global::System.Data.DataColumn columngcode;
private global::System.Data.DataColumn columnclose;
private global::System.Data.DataColumn columnremark;
private global::System.Data.DataColumn columnwuid_name;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public BoardDataTable() {
@@ -1777,6 +1783,30 @@ namespace FCM0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn closeColumn {
get {
return this.columnclose;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn remarkColumn {
get {
return this.columnremark;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn wuid_nameColumn {
get {
return this.columnwuid_name;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1814,7 +1844,23 @@ namespace FCM0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public BoardRow AddBoardRow(int bidx, bool header, string cate, string title, string contents, string file, string guid, string url, string wuid, System.DateTime wdate, int project, int pidx, string gcode) {
public BoardRow AddBoardRow(
int bidx,
bool header,
string cate,
string title,
string contents,
string file,
string guid,
string url,
string wuid,
System.DateTime wdate,
int project,
int pidx,
string gcode,
bool close,
string remark,
string wuid_name) {
BoardRow rowBoardRow = ((BoardRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1830,7 +1876,10 @@ namespace FCM0000 {
wdate,
project,
pidx,
gcode};
gcode,
close,
remark,
wuid_name};
rowBoardRow.ItemArray = columnValuesArray;
this.Rows.Add(rowBoardRow);
return rowBoardRow;
@@ -1874,6 +1923,9 @@ namespace FCM0000 {
this.columnproject = base.Columns["project"];
this.columnpidx = base.Columns["pidx"];
this.columngcode = base.Columns["gcode"];
this.columnclose = base.Columns["close"];
this.columnremark = base.Columns["remark"];
this.columnwuid_name = base.Columns["wuid_name"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1907,6 +1959,12 @@ namespace FCM0000 {
base.Columns.Add(this.columnpidx);
this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columngcode);
this.columnclose = new global::System.Data.DataColumn("close", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnclose);
this.columnremark = new global::System.Data.DataColumn("remark", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnremark);
this.columnwuid_name = new global::System.Data.DataColumn("wuid_name", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnwuid_name);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -1926,6 +1984,9 @@ namespace FCM0000 {
this.columnwdate.AllowDBNull = false;
this.columngcode.AllowDBNull = false;
this.columngcode.MaxLength = 20;
this.columnremark.MaxLength = 1000;
this.columnwuid_name.ReadOnly = true;
this.columnwuid_name.MaxLength = 200;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6925,6 +6986,54 @@ namespace FCM0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool close {
get {
if (this.IscloseNull()) {
return false;
}
else {
return ((bool)(this[this.tableBoard.closeColumn]));
}
}
set {
this[this.tableBoard.closeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string remark {
get {
if (this.IsremarkNull()) {
return string.Empty;
}
else {
return ((string)(this[this.tableBoard.remarkColumn]));
}
}
set {
this[this.tableBoard.remarkColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string wuid_name {
get {
if (this.Iswuid_nameNull()) {
return string.Empty;
}
else {
return ((string)(this[this.tableBoard.wuid_nameColumn]));
}
}
set {
this[this.tableBoard.wuid_nameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsbidxNull() {
@@ -7044,6 +7153,42 @@ namespace FCM0000 {
public void SetpidxNull() {
this[this.tableBoard.pidxColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IscloseNull() {
return this.IsNull(this.tableBoard.closeColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetcloseNull() {
this[this.tableBoard.closeColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsremarkNull() {
return this.IsNull(this.tableBoard.remarkColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetremarkNull() {
this[this.tableBoard.remarkColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iswuid_nameNull() {
return this.IsNull(this.tableBoard.wuid_nameColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setwuid_nameNull() {
this[this.tableBoard.wuid_nameColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -12873,10 +13018,13 @@ SELECT idx, grp, code, svalue, ivalue, fvalue, memo, wuid, wdate, gcode FROM Com
tableMapping.ColumnMappings.Add("project", "project");
tableMapping.ColumnMappings.Add("pidx", "pidx");
tableMapping.ColumnMappings.Add("gcode", "gcode");
tableMapping.ColumnMappings.Add("close", "close");
tableMapping.ColumnMappings.Add("remark", "remark");
tableMapping.ColumnMappings.Add("wuid_name", "wuid_name");
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 [Board] WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode))";
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Board] WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode) AND ((@IsNull_close = 1 AND [close] IS NULL) OR ([close] = @Original_close)) AND ((@IsNull_remark = 1 AND [remark] IS NULL) OR ([remark] = @Original_remark)))";
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_bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -12898,10 +13046,14 @@ SELECT idx, grp, code, svalue, ivalue, fvalue, memo, wuid, wdate, gcode FROM Com
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("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_close", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "close", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_close", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "close", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", 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 [Board] ([bidx], [header], [cate], [title], [contents], [file], [guid], [url], [wuid], [wdate], [project], [pidx], [gcode]) VALUES (@bidx, @header, @cate, @title, @contents, @file, @guid, @url, @wuid, @wdate, @project, @pidx, @gcode);
SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode FROM Board WHERE (idx = SCOPE_IDENTITY()) ORDER BY wdate";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Board] ([bidx], [header], [cate], [title], [contents], [file], [guid], [url], [wuid], [wdate], [project], [pidx], [gcode], [close], [remark]) VALUES (@bidx, @header, @cate, @title, @contents, @file, @guid, @url, @wuid, @wdate, @project, @pidx, @gcode, @close, @remark);
SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode, [close], remark, dbo.getUserName(wuid) AS wuid_name FROM Board WHERE (idx = SCOPE_IDENTITY()) ORDER BY wdate";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -12916,10 +13068,12 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", 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("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@close", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "close", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", 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 [Board] SET [bidx] = @bidx, [header] = @header, [cate] = @cate, [title] = @title, [contents] = @contents, [file] = @file, [guid] = @guid, [url] = @url, [wuid] = @wuid, [wdate] = @wdate, [project] = @project, [pidx] = @pidx, [gcode] = @gcode WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode));
SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode FROM Board WHERE (idx = @idx) ORDER BY wdate";
this._adapter.UpdateCommand.CommandText = @"UPDATE [Board] SET [bidx] = @bidx, [header] = @header, [cate] = @cate, [title] = @title, [contents] = @contents, [file] = @file, [guid] = @guid, [url] = @url, [wuid] = @wuid, [wdate] = @wdate, [project] = @project, [pidx] = @pidx, [gcode] = @gcode, [close] = @close, [remark] = @remark WHERE (([idx] = @Original_idx) AND ((@IsNull_bidx = 1 AND [bidx] IS NULL) OR ([bidx] = @Original_bidx)) AND ((@IsNull_header = 1 AND [header] IS NULL) OR ([header] = @Original_header)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_file = 1 AND [file] IS NULL) OR ([file] = @Original_file)) AND ((@IsNull_guid = 1 AND [guid] IS NULL) OR ([guid] = @Original_guid)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ([gcode] = @Original_gcode) AND ((@IsNull_close = 1 AND [close] IS NULL) OR ([close] = @Original_close)) AND ((@IsNull_remark = 1 AND [remark] IS NULL) OR ([remark] = @Original_remark)));
SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode, [close], remark, dbo.getUserName(wuid) AS wuid_name FROM Board WHERE (idx = @idx) ORDER BY wdate";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@header", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "header", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -12934,6 +13088,8 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", 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("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@close", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "close", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", 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_bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_bidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -12954,6 +13110,10 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
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("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_close", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "close", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_close", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "close", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", 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, "", "", ""));
}
@@ -12970,9 +13130,10 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
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, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate," +
" project, pidx, gcode\r\nFROM Board\r\nWHERE (bidx = @bidx) AND (ISNULL(header," +
" 0) = 0) AND (gcode LIKE @gcode)\r\nORDER BY wdate";
this._commandCollection[0].CommandText = @"SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate, project, pidx, gcode, [close], remark, dbo.getUserName(wuid) AS wuid_name
FROM Board
WHERE (bidx = @bidx) AND (ISNULL(header, 0) = 0) AND (gcode LIKE @gcode)
ORDER BY wdate";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "bidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -13059,7 +13220,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(int Original_idx, global::System.Nullable<int> Original_bidx, global::System.Nullable<bool> Original_header, string Original_cate, string Original_title, string Original_file, string Original_guid, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable<int> Original_project, global::System.Nullable<int> Original_pidx, string Original_gcode) {
public virtual int Delete(int Original_idx, global::System.Nullable<int> Original_bidx, global::System.Nullable<bool> Original_header, string Original_cate, string Original_title, string Original_file, string Original_guid, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable<int> Original_project, global::System.Nullable<int> Original_pidx, string Original_gcode, global::System.Nullable<bool> Original_close, string Original_remark) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_bidx.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
@@ -13138,6 +13299,22 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
else {
this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_gcode));
}
if ((Original_close.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[21].Value = ((bool)(Original_close.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
}
if ((Original_remark == null)) {
this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_remark));
}
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)) {
@@ -13158,7 +13335,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(global::System.Nullable<int> bidx, global::System.Nullable<bool> header, string cate, string title, string contents, string file, string guid, string url, string wuid, System.DateTime wdate, global::System.Nullable<int> project, global::System.Nullable<int> pidx, string gcode) {
public virtual int Insert(global::System.Nullable<int> bidx, global::System.Nullable<bool> header, string cate, string title, string contents, string file, string guid, string url, string wuid, System.DateTime wdate, global::System.Nullable<int> project, global::System.Nullable<int> pidx, string gcode, global::System.Nullable<bool> close, string remark) {
if ((bidx.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(bidx.Value));
}
@@ -13232,6 +13409,18 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
else {
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(gcode));
}
if ((close.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[13].Value = ((bool)(close.Value));
}
else {
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
}
if ((remark == null)) {
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[14].Value = ((string)(remark));
}
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)) {
@@ -13266,6 +13455,8 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
global::System.Nullable<int> project,
global::System.Nullable<int> pidx,
string gcode,
global::System.Nullable<bool> close,
string remark,
int Original_idx,
global::System.Nullable<int> Original_bidx,
global::System.Nullable<bool> Original_header,
@@ -13278,6 +13469,8 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
global::System.Nullable<int> Original_project,
global::System.Nullable<int> Original_pidx,
string Original_gcode,
global::System.Nullable<bool> Original_close,
string Original_remark,
int idx) {
if ((bidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(bidx.Value));
@@ -13352,85 +13545,113 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
else {
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(gcode));
}
this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_idx));
if ((Original_bidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_bidx.Value));
if ((close.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(close.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
}
if ((Original_header.HasValue == true)) {
if ((remark == null)) {
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(remark));
}
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx));
if ((Original_bidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_header.Value));
this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_bidx.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
}
if ((Original_cate == null)) {
if ((Original_header.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[19].Value = ((bool)(Original_header.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_cate));
}
if ((Original_title == null)) {
if ((Original_cate == null)) {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_title));
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_cate));
}
if ((Original_file == null)) {
if ((Original_title == null)) {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_file));
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_title));
}
if ((Original_guid == null)) {
if ((Original_file == null)) {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_guid));
this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_file));
}
if ((Original_guid == null)) {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_guid));
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_wuid));
this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_wuid));
}
this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_wdate));
this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_wdate));
if ((Original_project.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_project.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
if ((Original_pidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_pidx.Value));
this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_project.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
if ((Original_pidx.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_pidx.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
if ((Original_gcode == null)) {
throw new global::System.ArgumentNullException("Original_gcode");
}
else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_gcode));
this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_gcode));
}
this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(idx));
if ((Original_close.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[36].Value = ((bool)(Original_close.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
}
if ((Original_remark == null)) {
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_remark));
}
this.Adapter.UpdateCommand.Parameters[39].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)) {
@@ -13465,6 +13686,8 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
global::System.Nullable<int> project,
global::System.Nullable<int> pidx,
string gcode,
global::System.Nullable<bool> close,
string remark,
int Original_idx,
global::System.Nullable<int> Original_bidx,
global::System.Nullable<bool> Original_header,
@@ -13476,8 +13699,10 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, url, wuid, wdate,
System.DateTime Original_wdate,
global::System.Nullable<int> Original_project,
global::System.Nullable<int> Original_pidx,
string Original_gcode) {
return this.Update(bidx, header, cate, title, contents, file, guid, url, wuid, wdate, project, pidx, gcode, Original_idx, Original_bidx, Original_header, Original_cate, Original_title, Original_file, Original_guid, Original_wuid, Original_wdate, Original_project, Original_pidx, Original_gcode, Original_idx);
string Original_gcode,
global::System.Nullable<bool> Original_close,
string Original_remark) {
return this.Update(bidx, header, cate, title, contents, file, guid, url, wuid, wdate, project, pidx, gcode, close, remark, Original_idx, Original_bidx, Original_header, Original_cate, Original_title, Original_file, Original_guid, Original_wuid, Original_wdate, Original_project, Original_pidx, Original_gcode, Original_close, Original_remark, Original_idx);
}
}