파트리스트 금액칸 9백에서 9조로 수정 함 (붙여넣기 값 오류 있었음)
This commit is contained in:
68
Project/Dialog/fLogin.Designer.cs
generated
68
Project/Dialog/fLogin.Designer.cs
generated
@@ -31,15 +31,13 @@
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fLogin));
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.cmbDept = new System.Windows.Forms.ComboBox();
|
||||
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
|
||||
this.tbID = new System.Windows.Forms.ComboBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tbPW = new System.Windows.Forms.TextBox();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.btLogin = new System.Windows.Forms.Button();
|
||||
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
@@ -59,8 +57,6 @@
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(244)))));
|
||||
this.panel1.Controls.Add(this.linkLabel2);
|
||||
this.panel1.Controls.Add(this.linkLabel1);
|
||||
this.panel1.Controls.Add(this.cmbDept);
|
||||
this.panel1.Controls.Add(this.tbID);
|
||||
this.panel1.Controls.Add(this.label2);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
@@ -69,36 +65,28 @@
|
||||
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(488, 366);
|
||||
this.panel1.Size = new System.Drawing.Size(488, 276);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// linkLabel1
|
||||
// linkLabel2
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.linkLabel1.Location = new System.Drawing.Point(12, 126);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(31, 15);
|
||||
this.linkLabel1.TabIndex = 0;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "부서";
|
||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||
//
|
||||
// cmbDept
|
||||
//
|
||||
this.cmbDept.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmbDept.Font = new System.Drawing.Font("Calibri", 20.25F);
|
||||
this.cmbDept.FormattingEnabled = true;
|
||||
this.cmbDept.Location = new System.Drawing.Point(15, 144);
|
||||
this.cmbDept.Name = "cmbDept";
|
||||
this.cmbDept.Size = new System.Drawing.Size(460, 41);
|
||||
this.cmbDept.TabIndex = 1;
|
||||
this.linkLabel2.AutoSize = true;
|
||||
this.linkLabel2.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.linkLabel2.ForeColor = System.Drawing.Color.DodgerBlue;
|
||||
this.linkLabel2.LinkColor = System.Drawing.Color.DodgerBlue;
|
||||
this.linkLabel2.Location = new System.Drawing.Point(13, 247);
|
||||
this.linkLabel2.Name = "linkLabel2";
|
||||
this.linkLabel2.Size = new System.Drawing.Size(243, 15);
|
||||
this.linkLabel2.TabIndex = 7;
|
||||
this.linkLabel2.TabStop = true;
|
||||
this.linkLabel2.Text = "문의 ) Chickyun.kim@amkor.co.kr, T.8567";
|
||||
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
|
||||
//
|
||||
// tbID
|
||||
//
|
||||
this.tbID.Font = new System.Drawing.Font("Calibri", 20.25F);
|
||||
this.tbID.FormattingEnabled = true;
|
||||
this.tbID.Location = new System.Drawing.Point(15, 217);
|
||||
this.tbID.Location = new System.Drawing.Point(16, 125);
|
||||
this.tbID.Name = "tbID";
|
||||
this.tbID.Size = new System.Drawing.Size(460, 41);
|
||||
this.tbID.TabIndex = 3;
|
||||
@@ -108,7 +96,7 @@
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.label2.ForeColor = System.Drawing.Color.Gray;
|
||||
this.label2.Location = new System.Drawing.Point(12, 272);
|
||||
this.label2.Location = new System.Drawing.Point(13, 181);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(31, 15);
|
||||
this.label2.TabIndex = 4;
|
||||
@@ -119,7 +107,7 @@
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.ForeColor = System.Drawing.Color.Gray;
|
||||
this.label1.Location = new System.Drawing.Point(12, 200);
|
||||
this.label1.Location = new System.Drawing.Point(13, 108);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(55, 15);
|
||||
this.label1.TabIndex = 2;
|
||||
@@ -128,7 +116,7 @@
|
||||
// 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(15, 291);
|
||||
this.tbPW.Location = new System.Drawing.Point(16, 199);
|
||||
this.tbPW.Name = "tbPW";
|
||||
this.tbPW.PasswordChar = '●';
|
||||
this.tbPW.Size = new System.Drawing.Size(460, 40);
|
||||
@@ -140,7 +128,7 @@
|
||||
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, 366);
|
||||
this.panel2.Location = new System.Drawing.Point(0, 276);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(488, 34);
|
||||
this.panel2.TabIndex = 6;
|
||||
@@ -156,25 +144,11 @@
|
||||
this.btLogin.UseVisualStyleBackColor = true;
|
||||
this.btLogin.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// linkLabel2
|
||||
//
|
||||
this.linkLabel2.AutoSize = true;
|
||||
this.linkLabel2.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.linkLabel2.ForeColor = System.Drawing.Color.DodgerBlue;
|
||||
this.linkLabel2.LinkColor = System.Drawing.Color.DodgerBlue;
|
||||
this.linkLabel2.Location = new System.Drawing.Point(12, 339);
|
||||
this.linkLabel2.Name = "linkLabel2";
|
||||
this.linkLabel2.Size = new System.Drawing.Size(243, 15);
|
||||
this.linkLabel2.TabIndex = 7;
|
||||
this.linkLabel2.TabStop = true;
|
||||
this.linkLabel2.Text = "문의 ) Chickyun.kim@amkor.co.kr, T.8567";
|
||||
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
|
||||
//
|
||||
// fLogin
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.OrangeRed;
|
||||
this.ClientSize = new System.Drawing.Size(488, 400);
|
||||
this.ClientSize = new System.Drawing.Size(488, 310);
|
||||
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)));
|
||||
@@ -202,8 +176,6 @@
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.ComboBox tbID;
|
||||
private System.Windows.Forms.ComboBox cmbDept;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.LinkLabel linkLabel2;
|
||||
}
|
||||
}
|
||||
@@ -28,10 +28,10 @@ namespace Project.Dialog
|
||||
if (item != "") tbID.Items.Add(item);
|
||||
if (tbID.Items.Count > 0) tbID.SelectedIndex = 0;
|
||||
|
||||
var dlist = Pub.setting.lastdept.Split(';');
|
||||
foreach (var item in dlist)
|
||||
if (item != "") this.cmbDept.Items.Add(item);
|
||||
if (cmbDept.Items.Count > 0) cmbDept.SelectedIndex = 0;
|
||||
//var dlist = Pub.setting.lastdept.Split(';');
|
||||
//foreach (var item in dlist)
|
||||
// if (item != "") this.cmbDept.Items.Add(item);
|
||||
//if (cmbDept.Items.Count > 0) cmbDept.SelectedIndex = 0;
|
||||
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
@@ -58,22 +58,22 @@ namespace Project.Dialog
|
||||
foreach (var item in this.tbID.Items)
|
||||
if (idlist.Contains(item) == false) idlist.Add(item.ToString());
|
||||
|
||||
List<string> deptlist = new List<string>();
|
||||
deptlist.Add(cmbDept.Text.Trim());
|
||||
foreach (var item in this.cmbDept.Items)
|
||||
if (deptlist.Contains(item) == false) deptlist.Add(item.ToString());
|
||||
//List<string> deptlist = new List<string>();
|
||||
//deptlist.Add(cmbDept.Text.Trim());
|
||||
//foreach (var item in this.cmbDept.Items)
|
||||
// if (deptlist.Contains(item) == false) deptlist.Add(item.ToString());
|
||||
|
||||
//180605
|
||||
var vuserlist = "";
|
||||
foreach (var item in idlist)
|
||||
vuserlist += ";" + item;
|
||||
|
||||
var vdeptlist = "";
|
||||
foreach(var item in deptlist)
|
||||
vdeptlist += ";" + item;
|
||||
//var vdeptlist = "";
|
||||
//foreach(var item in deptlist)
|
||||
// vdeptlist += ";" + item;
|
||||
|
||||
Pub.setting.lastid = vuserlist;// tbID.Text.Trim();
|
||||
Pub.setting.lastdept = vdeptlist;
|
||||
// Pub.setting.lastdept = vdeptlist;
|
||||
Pub.setting.Save();
|
||||
|
||||
var encpass = Pub.MakePasswordEnc(tbPW.Text.Trim());
|
||||
@@ -95,23 +95,23 @@ namespace Project.Dialog
|
||||
|
||||
//이사용자의 부서 코드확인
|
||||
var userdr = users.Rows[0] as dsMSSQL.UsersRow;
|
||||
if (userdr.level < 9 && userdr.dept != cmbDept.Text)
|
||||
{
|
||||
Util.MsgE("입력한 사용자는 지정한 부서에 접속할 권한이 없습니다");
|
||||
return;
|
||||
}
|
||||
//if (userdr.level < 9 && userdr.dept != cmbDept.Text)
|
||||
//{
|
||||
// Util.MsgE("입력한 사용자는 지정한 부서에 접속할 권한이 없습니다");
|
||||
// return;
|
||||
//}
|
||||
|
||||
FCOMMON.info.Login.no = userdr.id;
|
||||
FCOMMON.info.Login.nameK = userdr.name;
|
||||
FCOMMON.info.Login.dept = cmbDept.Text;
|
||||
FCOMMON.info.Login.dept = userdr.dept;// cmbDept.Text;
|
||||
FCOMMON.info.Login.level = userdr.level;
|
||||
FCOMMON.info.Login.email = userdr.email;
|
||||
FCOMMON.info.Login.nameE = userdr.nameE;
|
||||
FCOMMON.info.Login.hp = userdr.hp;
|
||||
FCOMMON.info.Login.tel = userdr.tel;
|
||||
FCOMMON.info.Login.title = userdr.ads_title;
|
||||
var gcode = FCOMMON.DBM.ExecuteScalar("select isnull(gcode,'NOGCODE') from UserGroup where dept ='" + cmbDept.Text + "'");
|
||||
var gperm = FCOMMON.DBM.ExecuteScalar("select isnull(permission,0) from UserGroup where dept ='" + cmbDept.Text + "'");
|
||||
var gcode = FCOMMON.DBM.ExecuteScalar("select isnull(gcode,'NOGCODE') from UserGroup where dept ='" + userdr.dept + "'");
|
||||
var gperm = FCOMMON.DBM.ExecuteScalar("select isnull(permission,0) from UserGroup where dept ='" + userdr.dept + "'");
|
||||
FCOMMON.info.Login.gcode = gcode;
|
||||
FCOMMON.info.Login.process = userdr.processs;
|
||||
FCOMMON.info.Login.permission = 0;
|
||||
@@ -133,13 +133,13 @@ namespace Project.Dialog
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
var f = new Dialog.fSelectDept();
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
if (cmbDept.Items.Contains(f.deptName) == false)
|
||||
cmbDept.Items.Add(f.deptName);
|
||||
cmbDept.Text = f.deptName;
|
||||
}
|
||||
//var f = new Dialog.fSelectDept();
|
||||
//if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
//{
|
||||
// if (cmbDept.Items.Contains(f.deptName) == false)
|
||||
// cmbDept.Items.Add(f.deptName);
|
||||
// cmbDept.Text = f.deptName;
|
||||
//}
|
||||
}
|
||||
|
||||
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user