private void InitPage() { LoginName = WSC.GlobalDefinition.Cookie_LoginUser.Replace(" ", "."); if (LoginName.ToUpper() == "TYLER.LIU" || LoginName.ToUpper() == "STANLEY.LEE") { textboxUserName.Text = string.Empty; } else { textboxUserName.Text = LoginName; } textboxCrNo.Text = Request["CrNo"]; InitUserRole(""); BindDropDownListDoMain(); BindDropDownListType(); BindDropDownListSite(); BindDropDownListStage(); BindDropDownListPriority(); }
private void Form1_Load(object sender, EventArgs e) { UserName = LoginName.ToUpper(); }
private bool IsDuplicateLoginName() { int duplicate = Users.Where(x => x.LoginName.ToUpper() == LoginName.ToUpper() && (ID != x.ID || ID == 0)).Count(); return(duplicate > 0); }