예제 #1
0
 public boolean save(CheckListMaster checkListMaster, int addbetween, String priorities) {
   String statusBetween[] = {};
   if ((!"".equals(priorities)) && priorities != null) {
     statusBetween = priorities.split(",");
     int betweenFrom = 0;
     int betweenTo = 0;
     if (statusBetween.length == 1) {
       if (addbetween == 1) {
         betweenFrom = 0;
         betweenTo = Integer.parseInt(statusBetween[0].trim());
       } else {
         betweenFrom = Integer.parseInt(statusBetween[0].trim());
         betweenTo = betweenFrom + 2000;
       }
     } else if (statusBetween.length == 2) {
       betweenFrom = Integer.parseInt(statusBetween[0].trim());
       betweenTo = Integer.parseInt(statusBetween[1].trim());
     } else if (statusBetween.length == 0) {
       betweenFrom = 0;
       betweenTo = 2000;
     }
     int priority = Math.round((betweenFrom + betweenTo) / 2);
     if (priority == betweenTo) {
       return false;
     }
     checkListMaster.setOrderNo(priority);
   } else {
     checkListMaster.setOrderNo(1000);
   }
   checkListDao.save(checkListMaster);
   return true;
 }
예제 #2
0
 public List<EnquiryCheckList> getAllEnquiryCheckList(int enquiryId) {
   return checkListDao.getAllEnquiryCheckList(enquiryId);
 }
예제 #3
0
 public List<CheckListMaster> viewPaginationCheckListSearch(
     String name, final int organizationId, final int pageNo, final int noOfRecods) {
   return checkListDao.viewPaginationCheckListSearch(name, organizationId, pageNo, noOfRecods);
 }
예제 #4
0
 public List<CheckListMaster> viewPaginationCheckList(
     final int organizationId, final int pageNo, final int noOfRecods) {
   return checkListDao.viewPaginationCheckList(organizationId, pageNo, noOfRecods);
 }
예제 #5
0
 public List<CheckListMaster> searchCheckList(String name, int organizationId) {
   return checkListDao.searchCheckList(name, organizationId);
 }
예제 #6
0
 public List<CheckListMaster> getAllCheckList(int orgId) {
   return checkListDao.getAllCheckList(orgId);
 }
예제 #7
0
 public CheckListMaster getCheckListById(int checkListId) {
   return checkListDao.getCheckListById(checkListId);
 }
예제 #8
0
 public boolean saveOrUpdateAll(List checkListMaster) {
   return checkListDao.saveOrUpdateAll(checkListMaster);
 }
예제 #9
0
 public boolean update(EnquiryCheckList enqCheckList) {
   return checkListDao.update(enqCheckList);
 }
예제 #10
0
 public boolean update(CheckListMaster checkListMaster) {
   checkListDao.update(checkListMaster);
   return true;
 }
예제 #11
0
 public boolean delete(CheckListMaster checkListMaster, int organizationId) {
   return checkListDao.delete(checkListMaster, organizationId);
 }