Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     UserName = LoginName.ToUpper();
 }
Esempio n. 3
0
        private bool IsDuplicateLoginName()
        {
            int duplicate = Users.Where(x => x.LoginName.ToUpper() == LoginName.ToUpper() && (ID != x.ID || ID == 0)).Count();

            return(duplicate > 0);
        }