..
This commit is contained in:
339
Project/dsMSSQL.Designer.cs
generated
339
Project/dsMSSQL.Designer.cs
generated
@@ -6332,43 +6332,9 @@ namespace Project.dsMSSQLTableAdapters {
|
||||
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 [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))";
|
||||
this._adapter.DeleteCommand.CommandText = "DELETE FROM Users\r\nWHERE (id = @Original_id)";
|
||||
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nameE", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nameE", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dept", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grade", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grade", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_indate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_indate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_outdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_outdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_place", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_place", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_employNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_employNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ads_created", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ads_created", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", 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.DateTime, 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("@Original_id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", 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 Users
|
||||
@@ -6400,13 +6366,12 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.UpdateCommand.Connection = this.Connection;
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE Users
|
||||
SET id = @id, password = @password, nameE = @nameE, name = @name, dept = @dept, grade = @grade, email = @email, level = @level, indate = @indate, outdate = @outdate, tel = @tel,
|
||||
hp = @hp, place = @place, ads_employNo = @ads_employNo, ads_title = @ads_title, ads_created = @ads_created, memo = @memo, wuid = @wuid, wdate = @wdate, processs = @process,
|
||||
SET password = @password, nameE = @nameE, name = @name, dept = @dept, grade = @grade, email = @email, level = @level, indate = @indate, outdate = @outdate, tel = @tel, hp = @hp,
|
||||
place = @place, ads_employNo = @ads_employNo, ads_title = @ads_title, ads_created = @ads_created, memo = @memo, wuid = @wuid, wdate = @wdate, processs = @process,
|
||||
gcode = @gcode
|
||||
WHERE (id = @Original_id);
|
||||
WHERE (id = @Original_id);
|
||||
SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.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._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -6428,6 +6393,7 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "processs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.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._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.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.Original, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -6720,167 +6686,13 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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(
|
||||
string Original_id,
|
||||
string Original_password,
|
||||
string Original_nameE,
|
||||
string Original_name,
|
||||
string Original_dept,
|
||||
string Original_grade,
|
||||
string Original_email,
|
||||
global::System.Nullable<short> Original_level,
|
||||
string Original_indate,
|
||||
string Original_outdate,
|
||||
string Original_tel,
|
||||
string Original_hp,
|
||||
string Original_place,
|
||||
string Original_ads_employNo,
|
||||
string Original_ads_title,
|
||||
string Original_ads_created,
|
||||
string Original_memo,
|
||||
string Original_wuid,
|
||||
System.DateTime Original_wdate) {
|
||||
public virtual int Delete(string Original_id) {
|
||||
if ((Original_id == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_id");
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_id));
|
||||
}
|
||||
if ((Original_password == 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_password));
|
||||
}
|
||||
if ((Original_nameE == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_nameE));
|
||||
}
|
||||
if ((Original_name == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_name));
|
||||
}
|
||||
if ((Original_dept == 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_dept));
|
||||
}
|
||||
if ((Original_grade == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_grade));
|
||||
}
|
||||
if ((Original_email == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_email));
|
||||
}
|
||||
if ((Original_level.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[14].Value = ((short)(Original_level.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_indate == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_indate));
|
||||
}
|
||||
if ((Original_outdate == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_outdate));
|
||||
}
|
||||
if ((Original_tel == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_tel));
|
||||
}
|
||||
if ((Original_hp == 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_hp));
|
||||
}
|
||||
if ((Original_place == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_place));
|
||||
}
|
||||
if ((Original_ads_employNo == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_ads_employNo));
|
||||
}
|
||||
if ((Original_ads_title == 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_ads_title));
|
||||
}
|
||||
if ((Original_ads_created == 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_ads_created));
|
||||
}
|
||||
if ((Original_memo == null)) {
|
||||
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_memo));
|
||||
}
|
||||
if ((Original_wuid == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_wuid");
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[33].Value = ((string)(Original_wuid));
|
||||
}
|
||||
this.Adapter.DeleteCommand.Parameters[34].Value = ((System.DateTime)(Original_wdate));
|
||||
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)) {
|
||||
@@ -7065,7 +6877,6 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(
|
||||
string id,
|
||||
string password,
|
||||
string nameE,
|
||||
string name,
|
||||
@@ -7086,133 +6897,134 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
System.DateTime wdate,
|
||||
string process,
|
||||
string gcode,
|
||||
string Original_id) {
|
||||
if ((id == null)) {
|
||||
throw new global::System.ArgumentNullException("id");
|
||||
string Original_id,
|
||||
string id) {
|
||||
if ((password == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(id));
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(password));
|
||||
}
|
||||
if ((password == null)) {
|
||||
if ((nameE == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(password));
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(nameE));
|
||||
}
|
||||
if ((nameE == null)) {
|
||||
if ((name == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(nameE));
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(name));
|
||||
}
|
||||
if ((name == null)) {
|
||||
if ((dept == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(name));
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(dept));
|
||||
}
|
||||
if ((dept == null)) {
|
||||
if ((grade == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(dept));
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(grade));
|
||||
}
|
||||
if ((grade == null)) {
|
||||
if ((email == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(grade));
|
||||
}
|
||||
if ((email == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(email));
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(email));
|
||||
}
|
||||
if ((level.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = ((short)(level.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = ((short)(level.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((indate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(indate));
|
||||
}
|
||||
if ((outdate == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(indate));
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(outdate));
|
||||
}
|
||||
if ((outdate == null)) {
|
||||
if ((tel == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(outdate));
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(tel));
|
||||
}
|
||||
if ((tel == null)) {
|
||||
if ((hp == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(tel));
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(hp));
|
||||
}
|
||||
if ((hp == null)) {
|
||||
if ((place == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(hp));
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(place));
|
||||
}
|
||||
if ((place == null)) {
|
||||
if ((ads_employNo == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(place));
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(ads_employNo));
|
||||
}
|
||||
if ((ads_employNo == null)) {
|
||||
if ((ads_title == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(ads_employNo));
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(ads_title));
|
||||
}
|
||||
if ((ads_title == null)) {
|
||||
if ((ads_created == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(ads_title));
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(ads_created));
|
||||
}
|
||||
if ((ads_created == null)) {
|
||||
if ((memo == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(ads_created));
|
||||
}
|
||||
if ((memo == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(memo));
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(memo));
|
||||
}
|
||||
if ((wuid == null)) {
|
||||
throw new global::System.ArgumentNullException("wuid");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(wuid));
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(wuid));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = ((System.DateTime)(wdate));
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(wdate));
|
||||
if ((process == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(process));
|
||||
}
|
||||
if ((gcode == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(process));
|
||||
}
|
||||
if ((gcode == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(gcode));
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(gcode));
|
||||
}
|
||||
if ((Original_id == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_id");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_id));
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_id));
|
||||
}
|
||||
if ((id == null)) {
|
||||
throw new global::System.ArgumentNullException("id");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(id));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
||||
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -7230,35 +7042,6 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(
|
||||
string password,
|
||||
string nameE,
|
||||
string name,
|
||||
string dept,
|
||||
string grade,
|
||||
string email,
|
||||
global::System.Nullable<short> level,
|
||||
string indate,
|
||||
string outdate,
|
||||
string tel,
|
||||
string hp,
|
||||
string place,
|
||||
string ads_employNo,
|
||||
string ads_title,
|
||||
string ads_created,
|
||||
string memo,
|
||||
string wuid,
|
||||
System.DateTime wdate,
|
||||
string process,
|
||||
string gcode,
|
||||
string Original_id) {
|
||||
return this.Update(Original_id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, process, gcode, Original_id);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
|
||||
Reference in New Issue
Block a user