Beispiel #1
0
        private void btnLikeAdd_Click(object sender, EventArgs e)
        {
            BaseRoleEntity entity = GetEntity();

            entity.Id = null;
            FrmRoleAdd frmRoleAdd = new FrmRoleAdd(entity);

            frmRoleAdd.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// 添加角色
        /// </summary>
        /// <returns>主键</returns>
        public string Add()
        {
            string     returnValue = string.Empty;
            FrmRoleAdd frmRoleAdd  = new FrmRoleAdd(this.cmbRoleCategory.SelectedValue.ToString());

            if (frmRoleAdd.ShowDialog(this) == DialogResult.OK || frmRoleAdd.Changed)
            {
                // 获得角色列表
                this.GetList();
                // 设置数据过滤
                this.SetRowFilter();
                // 设置按钮状态
                this.SetControlState();
            }
            return(returnValue);
        }
Beispiel #3
0
 private void btnLikeAdd_Click(object sender, EventArgs e)
 {
     BaseRoleEntity entity = GetEntity();
     entity.Id = null;
     FrmRoleAdd frmRoleAdd = new FrmRoleAdd(entity);
     frmRoleAdd.ShowDialog();
 }
 /// <summary>
 /// 添加角色
 /// </summary>
 /// <returns>主键</returns>
 public string Add()
 {
     string returnValue = string.Empty;
     FrmRoleAdd frmRoleAdd = new FrmRoleAdd(this.cmbRoleCategory.SelectedValue.ToString());
     if (frmRoleAdd.ShowDialog(this) == DialogResult.OK || frmRoleAdd.Changed)
     {
         // 获得角色列表
         this.GetList();
         // 设置数据过滤
         this.SetRowFilter();
         // 设置按钮状态
         this.SetControlState();
     }
     return returnValue;
 }