Exemplo n.º 1
0
 protected override void DataSourceReady()
 {
     if (EmployeeFieldPara.DepartmentTreeDataSource == null)
     {
         EmployeeFieldPara.DepartmentTreeDataSource = _IDepartmentBll.GetAllDepartmentTree();
     }
 }
Exemplo n.º 2
0
 protected override void DataSourceReady()
 {
     if (ContractFieldPara.DepartmentTreeDataSource == null)
     {
         ContractFieldPara.DepartmentTreeDataSource = _IDepartmentBll.GetAllDepartmentTree();
     }
 }
Exemplo n.º 3
0
 public void DepartmentDataBind()
 {
     try
     {
         DepartmentOrder = new List <Department>();
         List <Department> itsSource = _DepartmentBll.GetAllDepartmentTree(LoginUser);
         Order(itsSource, "");
         foreach (Department department in DepartmentOrder)
         {
             department.Members =
                 _AccountBll.GetAccountByCondition("", department.Id, null, null);
         }
         foreach (Department department in DepartmentOrder)
         {
             department.Leader = _AccountBll.GetAccountById(department.Leader.Id);
         }
         _ItsView.Departments = DepartmentOrder;
     }
     catch (ApplicationException ae)
     {
         _ItsView.Message = ae.Message;
     }
 }