private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            string sysroleid = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "sysroleid"));
            int    memberkey = Convert.ToInt32(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "memberkey"));
            string rolename  = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "rolename"));
            int    code      = Convert.ToInt32(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "code"));
            string name      = Convert.ToString(this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "name"));

            if (e.Button.Index == 0)
            {
                MyForm.More.StaffManage.YuanGongEidtForm yuanGongEidt = new MyForm.More.StaffManage.YuanGongEidtForm(memberkey, Convert.ToInt32(sysroleid), rolename, code, name, 1);
                yuanGongEidt.StartPosition = FormStartPosition.CenterScreen;
                yuanGongEidt.ShowDialog();
            }
            else if (e.Button.Index == 1)
            {
                MyForm.More.StaffManage.PWForm pW = new MyForm.More.StaffManage.PWForm(code);
                pW.StartPosition = FormStartPosition.CenterScreen;
                pW.ShowDialog();
            }
            else
            {
                BizEmployee.DelEmployee(memberkey);
            }
            RefreshGridList();
        }
Exemplo n.º 2
0
 private void tileNavItem_pw_ElementClick(object sender, NavElementEventArgs e)
 {
     MyForm.More.StaffManage.PWForm pWForm = new MyForm.More.StaffManage.PWForm(1);
     pWForm.StartPosition = FormStartPosition.CenterScreen;
     pWForm.ShowDialog();
 }