Ejemplo n.º 1
0
        /// <summary>
        /// 添加岗位
        /// </summary>
        /// <returns>主键</returns>
        public string Add()
        {
            string             returnValue = string.Empty;
            FrmOrganizeRoleAdd frmOrganizeRoleAdd;

            if (this.parentEntityId.Length == 0)
            {
                frmOrganizeRoleAdd = new FrmOrganizeRoleAdd();
            }
            else
            {
                frmOrganizeRoleAdd = new FrmOrganizeRoleAdd(this.parentEntityId, this.tvOrganize.SelectedNode.Text);
            }
            if (frmOrganizeRoleAdd.ShowDialog(this) == DialogResult.OK)
            {
                returnValue = frmOrganizeRoleAdd.EntityId;
                // 获得岗位列表
                this.GetRoleList();
            }
            return(returnValue);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 添加岗位
 /// </summary>
 /// <returns>主键</returns>
 public string Add()
 {
     string returnValue = string.Empty;
     FrmOrganizeRoleAdd frmOrganizeRoleAdd;
     if (this.parentEntityId.Length == 0)
     {
         frmOrganizeRoleAdd = new FrmOrganizeRoleAdd();
     }
     else
     {
         frmOrganizeRoleAdd = new FrmOrganizeRoleAdd(this.parentEntityId, this.tvOrganize.SelectedNode.Text);
     }
     if (frmOrganizeRoleAdd.ShowDialog(this) == DialogResult.OK)
     {
         returnValue = frmOrganizeRoleAdd.EntityId;
         // 获得岗位列表
         this.GetRoleList();
     }
     return returnValue;
 }