Esempio n. 1
0
 private void sbtnEdit_Click(object sender, EventArgs e)
 {
     Program.eButton  = Program.Button.Edit;
     oAccountRoleInfo = frmAccountRoleList.oSelectedAccountRole;
     Enable(true);
     txt_Name.Focus();
 }
Esempio n. 2
0
 private void sbtnDel_Click(object sender, EventArgs e)
 {
     Program.eButton  = Program.Button.Del;
     oAccountRoleInfo = frmAccountRoleList.oSelectedAccountRole;
     Delete_AccountRole();
     this.Close();
 }
Esempio n. 3
0
 private void sbtnNew_Click(object sender, EventArgs e)
 {
     Program.eButton = Program.Button.New;
     Clear();
     Enable(true);
     oAccountRoleInfo      = new Account.Common.Entities.AccountRoles_Info();
     txt_UserCreate.Text   = Program.CurrentUser.User_ID;
     dtLastUpdate.DateTime = DateTime.Now;
     dtCreateDate.DateTime = DateTime.Now;
     txt_Name.Focus();
 }
Esempio n. 4
0
        private void sbtnDetail_Click(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }
            int ID = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gcolID).ToString());

            oSelectedAccountRole = Find_AccountRoles(ID);
            frmAccountRole ofrm = new frmAccountRole();

            ofrm.ShowDialog();
            SetDataSource();
        }
Esempio n. 5
0
        private void Detail_AccountRole(Account.Common.Entities.AccountRoles_Info oCurAccountRole)
        {
            txt_Name.Text       = oCurAccountRole.Name;
            txt_Account_ID.Text = oCurAccountRole.Account_ID;
            for (int i = 0; i < arrRoleType.Length; i++)
            {
                if (arrRoleType[i] == oCurAccountRole.Type)
                {
                    cbo_RoleType.SelectedIndex = i;
                    break;
                }
            }

            for (int i = 0; i < arrOperatorType.Length; i++)
            {
                if (arrOperatorType[i] == oCurAccountRole.Operator)
                {
                    cbo_Operator.SelectedIndex = i;
                    break;
                }
            }

            txt_Value.EditValue = oCurAccountRole.Value;
            txt_Seq.EditValue   = oCurAccountRole.Seq;
            if (oCurAccountRole.Active == true)
            {
                cbo_Active.SelectedIndex = 0;
            }
            else
            {
                cbo_Active.SelectedIndex = 1;
            }
            dtActive_Date.EditValue = oCurAccountRole.Active_Date;
            dtCreateDate.EditValue  = oCurAccountRole.CreateDate;
            dtLastUpdate.EditValue  = oCurAccountRole.Last_Update;
            txt_UserCreate.Text     = oCurAccountRole.UserCreated;
        }