..
This commit is contained in:
34
Project/dsMSSQL.Designer.cs
generated
34
Project/dsMSSQL.Designer.cs
generated
@@ -4469,12 +4469,14 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te
|
||||
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 dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, pa" +
|
||||
"ssword, tel, wdate, wuid\r\nFROM Users\r\nWHERE (id = @id) AND (password = @enc" +
|
||||
"pw) OR\r\n (password = @encpw) AND (email = @id)";
|
||||
this._commandCollection[1].CommandText = @"SELECT dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, tel, wdate, wuid
|
||||
FROM Users
|
||||
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') })";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].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[1].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, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idkey", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -4505,19 +4507,19 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
||||
public virtual int FillIDPW(dsMSSQL.UsersDataTable dataTable, string id, string encpw) {
|
||||
public virtual int FillIDPW(dsMSSQL.UsersDataTable dataTable, string encpw, string idkey) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((id == null)) {
|
||||
throw new global::System.ArgumentNullException("id");
|
||||
if ((encpw == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(id));
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(encpw));
|
||||
}
|
||||
if ((encpw == null)) {
|
||||
if ((idkey == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(encpw));
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idkey));
|
||||
}
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
@@ -4530,19 +4532,19 @@ SELECT id, password, name, nameE, dept, grade, email, level, indate, outdate, te
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual dsMSSQL.UsersDataTable GetIDPW(string id, string encpw) {
|
||||
public virtual dsMSSQL.UsersDataTable GetIDPW(string encpw, string idkey) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((id == null)) {
|
||||
throw new global::System.ArgumentNullException("id");
|
||||
if ((encpw == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(id));
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(encpw));
|
||||
}
|
||||
if ((encpw == null)) {
|
||||
if ((idkey == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(encpw));
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idkey));
|
||||
}
|
||||
dsMSSQL.UsersDataTable dataTable = new dsMSSQL.UsersDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
|
||||
Reference in New Issue
Block a user