..
This commit is contained in:
161
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
161
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
@@ -34766,37 +34766,9 @@ WHERE (gcode = @gcode)";
|
||||
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 [EETGW_ProjectsSchedule] WHERE (([idx] = @Original_idx) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ((@IsNull_seq = 1 AND [seq] IS NULL) OR ([seq] = @Original_seq)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_sw = 1 AND [sw] IS NULL) OR ([sw] = @Original_sw)) AND ((@IsNull_ew = 1 AND [ew] IS NULL) OR ([ew] = @Original_ew)) AND ((@IsNull_swa = 1 AND [swa] IS NULL) OR ([swa] = @Original_swa)) AND ((@IsNull_ewa = 1 AND [ewa] IS NULL) OR ([ewa] = @Original_ewa)) AND ((@IsNull_progress = 1 AND [progress] IS NULL) OR ([progress] = @Original_progress)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_appoval = 1 AND [appoval] IS NULL) OR ([appoval] = @Original_appoval)) AND ((@IsNull_no = 1 AND [no] IS NULL) OR ([no] = @Original_no)) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)))";
|
||||
this._adapter.DeleteCommand.CommandText = "DELETE FROM EETGW_ProjectsSchedule\r\nWHERE (idx = @Original_idx)";
|
||||
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_gcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, true, 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_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_seq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "seq", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_seq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "seq", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sw", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ew", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ew", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_swa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "swa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ewa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ewa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_progress", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "progress", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_appoval", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "appoval", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_no", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "no", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.InsertCommand.Connection = this.Connection;
|
||||
this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_ProjectsSchedule] ([gcode], [project], [seq], [title], [sw], [ew], [swa], [ewa], [memo], [progress], [wuid], [wdate], [uid], [appoval], [no], [cate]) VALUES (@gcode, @project, @seq, @title, @sw, @ew, @swa, @ewa, @memo, @progress, @wuid, @wdate, @uid, @appoval, @no, @cate);
|
||||
@@ -35003,135 +34975,8 @@ SELECT idx, gcode, project, seq, title, sw, ew, swa, ewa, memo, progress, wuid,
|
||||
[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,
|
||||
string Original_gcode,
|
||||
global::System.Nullable<int> Original_project,
|
||||
global::System.Nullable<int> Original_seq,
|
||||
string Original_title,
|
||||
global::System.Nullable<int> Original_sw,
|
||||
global::System.Nullable<int> Original_ew,
|
||||
global::System.Nullable<int> Original_swa,
|
||||
global::System.Nullable<int> Original_ewa,
|
||||
global::System.Nullable<int> Original_progress,
|
||||
string Original_wuid,
|
||||
System.DateTime Original_wdate,
|
||||
string Original_uid,
|
||||
global::System.Nullable<int> Original_appoval,
|
||||
global::System.Nullable<int> Original_no,
|
||||
string Original_cate) {
|
||||
public virtual int Delete(int Original_idx) {
|
||||
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
||||
if ((Original_gcode == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_gcode));
|
||||
}
|
||||
if ((Original_project.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_project.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_seq.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_seq.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_title == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_title));
|
||||
}
|
||||
if ((Original_sw.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_sw.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_ew.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_ew.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_swa.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_swa.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_ewa.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_ewa.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_progress.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_progress.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_wuid == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_wuid");
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_wuid));
|
||||
}
|
||||
this.Adapter.DeleteCommand.Parameters[20].Value = ((System.DateTime)(Original_wdate));
|
||||
if ((Original_uid == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_uid));
|
||||
}
|
||||
if ((Original_appoval.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[24].Value = ((int)(Original_appoval.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_no.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_no.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_cate == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_cate));
|
||||
}
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user