Package ek.rms.rtcAssignment

Examples of ek.rms.rtcAssignment.StaffDetailsType


   
    for (EntDbFltJobAssign dbAssignedJob : dbAssignedJobList) {
      if (_inputStaffDetailList.size() == 0) {
        LOG.debug("Empty Input Staff detail. Will remove the existing staffs.");
        //remove the existing..
        updateJobAndShift("X", dbAssignedJob, new StaffDetailsType(), _input);
      }else{
        for (int i = 0; i < _inputStaffDetailList.size(); i++) {
          StaffDetailsType _inputStaffDetail = _inputStaffDetailList.get(i);
          //StaffNumber is the same??
          if (dbAssignedJob.getStaffNumber().equalsIgnoreCase(_inputStaffDetail.getID())) {
            updateJobAndShift(" ", dbAssignedJob, _inputStaffDetail, _input); break;
           
          }else if(i == _inputStaffDetailList.size()-1){// existing Job_Assign is not in input list
            // remove the existing..
            updateJobAndShift("X", dbAssignedJob, _inputStaffDetail, _input);
          }
        }
      } 
    }
   
    /**- to INSERT newly added job and shift
     * - which does not exist in db
     **/
    String status = " ";
    for (StaffDetailsType _inputStaffDetail : _inputStaffDetailList) {
      if (dbAssignedJobList.size() == 0) {
        LOG.debug("Input Staff detail are not existing. Will insert as new.");
        // insert new input staff/shift..
        insertJobAndShift(_input, idJobTask, urno, _inputStaffDetail, status);
      }else{
        for (int i = 0; i < dbAssignedJobList.size(); i++) {
          EntDbFltJobAssign dbAssignedJob = dbAssignedJobList.get(i);
          if (dbAssignedJob.getStaffNumber().equalsIgnoreCase(_inputStaffDetail.getID()))
            break;
          if (i == dbAssignedJobList.size() - 1) {
            // reach max of existing record
            // new input record is not found in db
            // insert input record
View Full Code Here


   
    for (EntDbFltJobAssign dbAssignedJob : dbAssignedJobList) {
      if(_inputStaffDetailList.size() == 0){
        LOG.debug("Empty input Staff detail. Will remove the existing staffs.");
        //remove the existing..
        updateJobAndShift("X", dbAssignedJob, new StaffDetailsType(), _input);
      }else{
        for (int i = 0; i < _inputStaffDetailList.size(); i++) {
          StaffDetailsType _inputStaffDetail = _inputStaffDetailList.get(i);
          //StaffNumber is the same??
          if (dbAssignedJob.getStaffNumber().equalsIgnoreCase(_inputStaffDetail.getID())) {
            updateJobAndShift(" ", dbAssignedJob, _inputStaffDetail, _input);
            break;
          }else if(i == _inputStaffDetailList.size()-1){// existing Job_Assign is not in input list
            // remove the existing..
            updateJobAndShift("X", dbAssignedJob, _inputStaffDetail, _input);
          }
        }
      }
    }
   
    /**- to INSERT newly added job and shift
     * - which does not exist in db
     **/
    String status = " ";
    for (StaffDetailsType _inputStaffDetail : _inputStaffDetailList) {
      if (dbAssignedJobList.size() == 0) {
        LOG.debug("Input Staff detail are not existing. Will insert as new.");
        // insert new input staff/shift..
        insertJobAndShift(_input, idJobTask, urno, _inputStaffDetail, status);
      }else{
        for (int i = 0; i < dbAssignedJobList.size(); i++) {
          EntDbFltJobAssign dbAssignedJob = dbAssignedJobList.get(i);
          if(dbAssignedJob.getStaffNumber().equalsIgnoreCase(_inputStaffDetail.getID()))
            break;
          if(i == dbAssignedJobList.size()-1){//reach max of existing record
            // new input record is not found in db
            // insert input record
            //isUpdate = false;
View Full Code Here

TOP

Related Classes of ek.rms.rtcAssignment.StaffDetailsType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.