Exemplo n.º 1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                if (txtUserId.Text.Trim().Length == 0)
                {
                    CmnFunction.ShowMsgBox("User ID : " + RptMessages.GetMessage("STD999", GlobalVariable.gcLanguage));
                }
                if (txtPassword.Text.Trim().Length == 0)
                {
                    CmnFunction.ShowMsgBox("Password : "******"STD999", GlobalVariable.gcLanguage));
                }
                if (cdvSecGrpId.Text.Trim().Length == 0)
                {
                    CmnFunction.ShowMsgBox("Secutiry Group : " + RptMessages.GetMessage("STD999", GlobalVariable.gcLanguage));
                }
                if (CmnFunction.ShowMsgBox(RptMessages.GetMessage("INF003", GlobalVariable.gcLanguage), "Update", MessageBoxButtons.YesNo, 2) != System.Windows.Forms.DialogResult.Yes)
                {
                    return;
                }
                if (Update_Security_User(txtUserId.Text.Trim()) == true)
                {
                    CmnFunction.ShowMsgBox(RptMessages.GetMessage("INF001", GlobalVariable.gcLanguage));

                    CmnInitFunction.FieldClear(this, null, false);
                    CmnListFunction.ViewSecUserList(lisUser);
                }
            }
            catch (Exception ex)
            {
                CmnFunction.ShowMsgBox("SEC1101.btnUpdate_Click() : " + ex.ToString());
            }
        }
Exemplo n.º 2
0
 private void SEC1101_Load(object sender, EventArgs e)
 {
     lisUser.SmallImageList = ((System.Windows.Forms.TabControl)((System.Windows.Forms.TabPage) this.Parent).Parent).ImageList;
     CmnFunction.oComm.SetUrl();
     CmnInitFunction.InitListView(lisUser);
     CmnListFunction.ViewSecUserList(lisUser);
 }