/// <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); }
/// <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; }