Package org.jallinone.scheduler.callouts.java

Examples of org.jallinone.scheduler.callouts.java.CallOutPK


   * @param persistentObject v.o. related to the selected row
   */
  public void doubleClick(int rowNumber,ValueObject persistentObject) {
    // create call-out detail frame in READONLY mode...
    CallOutVO vo = (CallOutVO)persistentObject;
    CallOutPK pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
    new CallOutController(frame,pk);
  }
View Full Code Here


   * @param persistentObjects value objects to delete (related to the currently selected rows)
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecords(ArrayList persistentObjects) throws Exception {
    ArrayList pks = new ArrayList();
    CallOutPK pk = null;
    CallOutVO vo = null;
    for(int i=0;i<persistentObjects.size();i++) {
      vo = (CallOutVO)persistentObjects.get(i);
      pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
      pks.add(pk);
    }
    return ClientUtils.getData("deleteCallOuts",pks);
  }
View Full Code Here

* @param newValueObjects list of new value objects to save
* @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
   */
  public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
    CallOutTaskVO vo = null;
    CallOutPK pk = (CallOutPK)grid.getOtherGridParams().get(ApplicationConsts.CALL_OUT_PK);

    for(int i=0;i<newValueObjects.size();i++) {
      vo = (CallOutTaskVO)newValueObjects.get(i);
      vo.setCompanyCodeSys01SCH12(pk.getCompanyCodeSys01SCH10());
      vo.setCallOutCodeSch10SCH12(pk.getCallOutCodeSCH10());
    }
    return ClientUtils.getData("insertCallOutTasks",newValueObjects);
  }
View Full Code Here

   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    Response res = ClientUtils.getData("insertCallOut",newPersistentObject);
    if (!res.isError()) {
      CallOutVO vo = (CallOutVO)((VOResponse)res).getVo();
      pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
      if (parentFrame!=null) {
        parentFrame.getGrid().reloadCurrentBlockOfData();
      }

      frame.getTasksGrid().getOtherGridParams().put(
View Full Code Here

   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecord(ValueObject persistentObject) throws Exception {
    ArrayList pks = new ArrayList();
    CallOutVO vo = (CallOutVO)persistentObject;
    CallOutPK pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
    pks.add(pk);
    Response res = ClientUtils.getData("deleteCallOuts",pks);
    if (!res.isError()) {
      if (parentFrame!=null) {
        parentFrame.getGrid().reloadCurrentBlockOfData();
View Full Code Here

   * @param newValueObjects list of new value objects to save
   * @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
   */
  public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
    CallOutItemVO vo = null;
    CallOutPK pk = (CallOutPK)grid.getOtherGridParams().get(ApplicationConsts.CALL_OUT_PK);

    for(int i=0;i<newValueObjects.size();i++) {
      vo = (CallOutItemVO)newValueObjects.get(i);
      vo.setCompanyCodeSys01SCH14(pk.getCompanyCodeSys01SCH10());
      vo.setCallOutCodeSch10SCH14(pk.getCallOutCodeSCH10());
    }
    return ClientUtils.getData("insertCallOutItems",newValueObjects);
  }
View Full Code Here

* @param newValueObjects list of new value objects to save
* @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
   */
  public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
    CallOutMachineryVO vo = null;
    CallOutPK pk = (CallOutPK)grid.getOtherGridParams().get(ApplicationConsts.CALL_OUT_PK);


    for(int i=0;i<newValueObjects.size();i++) {
      vo = (CallOutMachineryVO)newValueObjects.get(i);
      vo.setCompanyCodeSys01SCH13(pk.getCompanyCodeSys01SCH10());
      vo.setCallOutCodeSch10SCH13(pk.getCallOutCodeSCH10());
    }
    return ClientUtils.getData("insertCallOutMachineries",newValueObjects);
  }
View Full Code Here

TOP

Related Classes of org.jallinone.scheduler.callouts.java.CallOutPK

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.