Example #1
0
 public static void CreateDisbursementLists(List <DisbursementList> disbursementLists)
 {
     foreach (var disbursementList in disbursementLists)
     {
         disbursementList.Department = DepartmentDAO.GetDepartmentById(disbursementList.Department.DeptId);
         long listId = DisbursementListDAO.CreateDisbursementList(disbursementList);
         foreach (var item in disbursementList.DisbursementListDetails)
         {
             DisbursementListDetailsDAO.CreateDisbursementListDetails(listId, item);
         }
     }
 }
Example #2
0
 public static Department GetDepartmentById(long itemId)
 {
     return(DepartmentDAO.GetDepartmentById(itemId));
 }