private string GetDepartmentSN(string departID) { IAccountHelper helper = AccountFactory.CreateInstance(); Department depart = helper.GetDepartment(departID, null); return(depart != null ? depart.Number : String.Empty); }
/// <summary> /// 取得部门名称 /// </summary> /// <param name="fieldValue"></param> /// <returns></returns> protected string GetDepartName(object fieldValue) { if (fieldValue != null) { IAccountHelper helper = AccountFactory.CreateInstance(); Department depart = helper.GetDepartment(fieldValue.ToString(), new string[] { "Name" }); return(depart != null ? depart.Name : String.Empty); } return(String.Empty); }