示例#1
0
        private string GetDepartmentSN(string departID)
        {
            IAccountHelper helper = AccountFactory.CreateInstance();
            Department     depart = helper.GetDepartment(departID, null);

            return(depart != null ? depart.Number : String.Empty);
        }
示例#2
0
 /// <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);
 }