protected override void OnLoad(EventArgs e) { base.OnLoad(e); SetEvent(); System.Configuration.AppSettingsReader temp = new System.Configuration.AppSettingsReader(); lblCrrUser.Text = CommonFuction.GetUserName(Program.CurrentUser); if (string.IsNullOrEmpty(Program.CurrentUser)) { BtnLogIn_Click(null, null); } //MMManagedReportControl = new MMManagedReportControl(); // MMManagedReportTabPage.Controls.Add(mMManagedReportControl); ResetRackStatus(true); this.txt_MaskNum.txtText.CharacterCasing = CharacterCasing.Upper; }
private void BtnLogIn_Click(object sender, EventArgs e) { MMCodeHelper CodeHelper = new MMCodeHelper("LOGIN"); CodeHelper.WindowState = FormWindowState.Normal; CodeHelper.ShowDialog(); Program.CurrentUser = CodeHelper.ReturnCodeValue; //2O19-05-15 황지희 관리자인 경우만 DB관리 버튼 VISIBLE 되도록수정 if (Program.CurrentUser.Equals("testadmin")) { lblCrrUser.Text = CodeHelper.ReturnNameValue; btnDB.Visible = true; } else { //2019-05-14 황지희 사용자 이름으로 보여주게 변경 lblCrrUser.Text = CommonFuction.GetUserName(Program.CurrentUser); btnDB.Visible = false; } }