Package org.jallinone.employees.java

Examples of org.jallinone.employees.java.DetailEmployeeVO


  public void loadDataCompleted(boolean error) {
    detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,companyCodeSys01SCH01);
    detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,progressiveReg04SCH01);
    detailFrame.getGrid().reloadData();

    DetailEmployeeVO vo = (DetailEmployeeVO)detailFrame.getForm().getVOModel().getValueObject();
    detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH01());
    detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,vo.getProgressiveReg04SCH01());
    String actTypes = "'"+ApplicationConsts.ACT_ABSENCE+"','"+ApplicationConsts.ACT_HOLIDAY+"','"+ApplicationConsts.ACT_ILLNESS+"'";
    detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.ACTIVITY_TYPE,actTypes);
    detailFrame.getAbsGrid().reloadData();

    detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
        ApplicationConsts.SUBJECT_PK,
        new SubjectPK(vo.getCompanyCodeSys01SCH01(),vo.getProgressiveReg04SCH01())
    );
    detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
        ApplicationConsts.SUBJECT_TYPE,
        ApplicationConsts.SUBJECT_EMPLOYEE
    );
View Full Code Here


   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    Response response = ClientUtils.getData("insertEmployee",newPersistentObject);
    if (!response.isError()) {
      DetailEmployeeVO vo = (DetailEmployeeVO)((VOResponse)response).getVo();
      companyCodeSys01SCH01 = vo.getCompanyCodeSys01REG04();
      progressiveReg04SCH01 = vo.getProgressiveREG04();
      gridFrame.reloadData();

      detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,companyCodeSys01SCH01);
      detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,progressiveReg04SCH01);
      detailFrame.getGrid().reloadData();

      detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,companyCodeSys01SCH01);
      detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,progressiveReg04SCH01);
      detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH01());
      detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,vo.getProgressiveReg04SCH01());
      String actTypes = "'"+ApplicationConsts.ACT_ABSENCE+"','"+ApplicationConsts.ACT_HOLIDAY+"','"+ApplicationConsts.ACT_ILLNESS+"'";
      detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.ACTIVITY_TYPE,actTypes);

      detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
          ApplicationConsts.SUBJECT_PK,
          new SubjectPK(vo.getCompanyCodeSys01SCH01(),vo.getProgressiveReg04SCH01())
      );
      detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
          ApplicationConsts.SUBJECT_TYPE,
          ApplicationConsts.SUBJECT_EMPLOYEE
      );
View Full Code Here

   * Method called by the Form panel to delete existing data.
   * @param persistentObject value object to delete
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecord(ValueObject persistentObject) throws Exception {
    DetailEmployeeVO vo = (DetailEmployeeVO)persistentObject;
    Response response = ClientUtils.getData("deleteEmployee",new SubjectPK(vo.getCompanyCodeSys01REG04(),vo.getProgressiveReg04SCH01()));
    if (!response.isError()) {
      gridFrame.reloadData();
      detailFrame.getGrid().clearData();
      detailFrame.getAbsGrid().clearData();
      detailFrame.getHierarchiesPanel().getGrid().clearData();
View Full Code Here

          true,
          customizedFields
      );

      if (!res.isError()) {
        DetailEmployeeVO vo = (DetailEmployeeVO)((VOResponse)res).getVo();

        // retrieve first+last name of manager...
        if (vo.getManagerProgressiveReg04SCH01()!=null) {
          pstmt = conn.prepareStatement("select NAME_1,NAME_2 from REG04_SUBJECTS where COMPANY_CODE_SYS01=? and PROGRESSIVE=?");
          pstmt.setString(1,vo.getManagerCompanyCodeSys01SCH01());
          pstmt.setBigDecimal(2,vo.getManagerProgressiveReg04SCH01());
          ResultSet rset = pstmt.executeQuery();
          if (rset.next()) {
            vo.setManagerName_1REG04(rset.getString(1));
            vo.setManagerName_2REG04(rset.getString(2));
          }
          rset.close();
        }

        // retrieve first+last name of assistant...
        if (vo.getAssistantProgressiveReg04SCH01()!=null) {
          pstmt2 = conn.prepareStatement("select NAME_1,NAME_2 from REG04_SUBJECTS where COMPANY_CODE_SYS01=? and PROGRESSIVE=?");
          pstmt2.setString(1,vo.getAssistantCompanyCodeSys01SCH01());
          pstmt2.setBigDecimal(2,vo.getAssistantProgressiveReg04SCH01());
          ResultSet rset = pstmt2.executeQuery();
          if (rset.next()) {
            vo.setAssistantName_1REG04(rset.getString(1));
            vo.setAssistantName_2REG04(rset.getString(2));
          }
          rset.close();
        }
      }
View Full Code Here

  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    try {
      DetailEmployeeVO oldVO = (DetailEmployeeVO)((ValueObject[])inputPar)[0];
      DetailEmployeeVO newVO = (DetailEmployeeVO)((ValueObject[])inputPar)[1];

      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(new BigDecimal(662));

      // retrieve internationalization settings (Resources object)...
View Full Code Here

      UserSessionParameters userSessionPars,
      HttpServletRequest request,
      HttpServletResponse response,
      HttpSession userSession,
      ServletContext context) {
    DetailEmployeeVO vo = (DetailEmployeeVO)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(new BigDecimal(662));

      // retrieve internationalization settings (Resources object)...
View Full Code Here

TOP

Related Classes of org.jallinone.employees.java.DetailEmployeeVO

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.