/// <summary> /// ریشه درخت را برمیگرداند /// </summary> /// <returns></returns> public Department GetDepartmentRoot() { try { Charts.BDepartment bDep = new GTS.Clock.Business.Charts.BDepartment(); return(bDep.GetDepartmentsTree()); } catch (Exception ex) { LogException(ex, "BManager", "GetDepartmentRoot"); throw ex; } }
/// <summary> /// بچه های یک بخش را برمیگرداند /// </summary> /// <param name="nodeID"></param> /// <returns></returns> public IList <Department> GetDepartmentChilds(decimal nodeID) { try { Charts.BDepartment bDep = new GTS.Clock.Business.Charts.BDepartment(); return(bDep.GetDepartmentChilds(nodeID)); } catch (Exception ex) { LogException(ex, "BManager", "GetDepartmentChilds"); throw ex; } }
/// <summary> /// پرسنل یک بخش را برمیگرداند /// </summary> /// <param name="departmentID"></param> /// <returns></returns> public IList <Person> GetDepartmentPerson(decimal departmentID) { try { Charts.BDepartment bdep = new GTS.Clock.Business.Charts.BDepartment(); Department dep = bdep.GetByID(departmentID); return(dep.PersonList); } catch (Exception ex) { LogException(ex, "BManager", "GetDepartmentPerson"); throw ex; } }