..
This commit is contained in:
@@ -55,6 +55,11 @@ namespace Project.Dialog
|
||||
//마지막으로사용한 부서이름
|
||||
if (Pub.setting.lastdpt.isEmpty()) this.cmbDept.SelectedIndex = -1;
|
||||
else this.cmbDept.Text = Pub.setting.lastdpt;
|
||||
if(cmbDept.SelectedIndex == -1 && Pub.setting.lastgcode.isEmpty()==false)
|
||||
{
|
||||
var dr =grplist.Where(t => t.gcode.Equals(Pub.setting.lastgcode)).FirstOrDefault();
|
||||
if (dr != null) cmbDept.Text = dr.dept;
|
||||
}
|
||||
//foreach (var item in dlist)
|
||||
// if (item != "") this.cmbDept.Items.Add(item);
|
||||
//if (cmbDept.Items.Count > 0) cmbDept.SelectedIndex = 0;
|
||||
@@ -108,6 +113,7 @@ namespace Project.Dialog
|
||||
|
||||
Pub.setting.lastid = vuserlist;// tbID.Text.Trim();
|
||||
Pub.setting.lastdpt = cmbDept.Text; //부서저장 201006
|
||||
Pub.setting.lastgcode = gCode;
|
||||
Pub.setting.Save();
|
||||
|
||||
var encpass = Pub.MakePasswordEnc(tbPW.Text.Trim());
|
||||
|
||||
Reference in New Issue
Block a user