Package org.jallinone.subjects.java

Examples of org.jallinone.subjects.java.SubjectPK


   * This method must be overridden by the subclass to retrieve data and return the valorized value object.
   * @param valueObjectClass value object class
   * @return a VOResponse object if data loading is successfully completed, or an ErrorResponse object if an error occours
   */
  public Response loadData(Class valueObjectClass) {
    return ClientUtils.getData("loadEmployee",new SubjectPK(companyCodeSys01SCH01,progressiveReg04SCH01));
  }
View Full Code Here


    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

      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

   * @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

   * @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 {
    GridEmployeeVO vo = (GridEmployeeVO)persistentObjects.get(0);
    return ClientUtils.getData("deleteEmployee",new SubjectPK(vo.getCompanyCodeSys01SCH01(),vo.getProgressiveReg04SCH01()));
  }
View Full Code Here

    return "deleteEmployee";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    SubjectPK vo = (SubjectPK)inputPar;
    try {

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      Response answer = bean.deleteEmployee(vo,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

    return "loadEmployee";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    SubjectPK pk = (SubjectPK)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(new BigDecimal(272));

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
View Full Code Here

   * @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 {
    OrganizationVO vo = (OrganizationVO)persistentObject;
    SubjectPK pk = new SubjectPK(vo.getCompanyCodeSys01REG04(),vo.getProgressiveREG04());
    Response response = ClientUtils.getData("deleteCompany",pk);
    if (!response.isError()) {
      gridFrame.reloadData();
    }
    return response;
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 {
    CompanyVO vo = (CompanyVO)persistentObjects.get(0);
    SubjectPK pk = new SubjectPK(vo.getCompanyCodeSYS01(),vo.getProgressiveREG04());

    Response response = ClientUtils.getData("deleteCompany",pk);
    return response;
  }
View Full Code Here

    return "deleteCompany";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    SubjectPK pk = (SubjectPK)inputPar;
    try {

      Companies bean = (Companies)JAIOBeanFactory.getInstance().getBean(Companies.class);
      Response answer = bean.deleteCompany(pk,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

TOP

Related Classes of org.jallinone.subjects.java.SubjectPK

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.