09-27
This commit is contained in:
20
Project/Dialog/fLogin.Designer.cs
generated
20
Project/Dialog/fLogin.Designer.cs
generated
@@ -43,16 +43,16 @@
|
||||
// tbID
|
||||
//
|
||||
this.tbID.Font = new System.Drawing.Font("Calibri", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tbID.Location = new System.Drawing.Point(34, 127);
|
||||
this.tbID.Location = new System.Drawing.Point(12, 126);
|
||||
this.tbID.Name = "tbID";
|
||||
this.tbID.Size = new System.Drawing.Size(235, 40);
|
||||
this.tbID.Size = new System.Drawing.Size(329, 40);
|
||||
this.tbID.TabIndex = 0;
|
||||
this.tbID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
|
||||
this.pictureBox1.Location = new System.Drawing.Point(108, 34);
|
||||
this.pictureBox1.Location = new System.Drawing.Point(136, 34);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(80, 80);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
@@ -68,16 +68,16 @@
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(295, 255);
|
||||
this.panel1.Size = new System.Drawing.Size(351, 228);
|
||||
this.panel1.TabIndex = 1;
|
||||
//
|
||||
// tbPW
|
||||
//
|
||||
this.tbPW.Font = new System.Drawing.Font("Calibri", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tbPW.Location = new System.Drawing.Point(34, 176);
|
||||
this.tbPW.Location = new System.Drawing.Point(12, 175);
|
||||
this.tbPW.Name = "tbPW";
|
||||
this.tbPW.PasswordChar = '●';
|
||||
this.tbPW.Size = new System.Drawing.Size(235, 40);
|
||||
this.tbPW.Size = new System.Drawing.Size(329, 40);
|
||||
this.tbPW.TabIndex = 4;
|
||||
this.tbPW.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
@@ -86,9 +86,9 @@
|
||||
this.panel2.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.panel2.Controls.Add(this.btLogin);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 255);
|
||||
this.panel2.Location = new System.Drawing.Point(0, 228);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(295, 34);
|
||||
this.panel2.Size = new System.Drawing.Size(351, 34);
|
||||
this.panel2.TabIndex = 6;
|
||||
//
|
||||
// btLogin
|
||||
@@ -96,7 +96,7 @@
|
||||
this.btLogin.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btLogin.Location = new System.Drawing.Point(0, 0);
|
||||
this.btLogin.Name = "btLogin";
|
||||
this.btLogin.Size = new System.Drawing.Size(295, 34);
|
||||
this.btLogin.Size = new System.Drawing.Size(351, 34);
|
||||
this.btLogin.TabIndex = 0;
|
||||
this.btLogin.Text = "OK";
|
||||
this.btLogin.UseVisualStyleBackColor = true;
|
||||
@@ -106,7 +106,7 @@
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.OrangeRed;
|
||||
this.ClientSize = new System.Drawing.Size(295, 289);
|
||||
this.ClientSize = new System.Drawing.Size(351, 262);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Font = new System.Drawing.Font("Calibri", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
|
||||
@@ -48,9 +48,9 @@ namespace Project.Dialog
|
||||
Pub.setting.lastid = tbID.Text.Trim();
|
||||
Pub.setting.Save();
|
||||
|
||||
var encpass = Pub.MakePasswordEnc(tbPW.Text);
|
||||
var encpass = Pub.MakePasswordEnc(tbPW.Text.Trim());
|
||||
var ta = new dsMSSQLTableAdapters.UsersTableAdapter();
|
||||
var users = ta.GetIDPW(tbID.Text, encpass);
|
||||
var users = ta.GetIDPW(tbID.Text.Trim(), encpass);
|
||||
if(users.Rows.Count < 1)
|
||||
{
|
||||
Util.MsgE("No user");
|
||||
@@ -60,10 +60,12 @@ namespace Project.Dialog
|
||||
{
|
||||
var userdr = users.Rows[0] as dsMSSQL.UsersRow ;
|
||||
FCOMMON.info.Login.no = userdr.id;
|
||||
FCOMMON.info.Login.name = userdr.name;
|
||||
FCOMMON.info.Login.nameK = userdr.name;
|
||||
FCOMMON.info.Login.dept = userdr.dept;
|
||||
FCOMMON.info.Login.level = userdr.level;
|
||||
FCOMMON.info.Login.email = userdr.email;
|
||||
FCOMMON.info.Login.email = userdr.email;
|
||||
FCOMMON.info.Login.nameE = userdr.nameE;
|
||||
FCOMMON.info.Login.hp = userdr.hp;
|
||||
}
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user