Package org.openswing.swing.message.receive.java

Examples of org.openswing.swing.message.receive.java.Response


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

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      ArrayList companiesList = ((JAIOUserSessionParameters)userSessionPars).getCompanyBa().getCompaniesList("SCH01");
      Response answer = bean.loadEmployees(gridParams,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),companiesList,customizedFields);

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here


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

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      Response answer = bean.loadEmployeeCalendar(gridParams,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another people with the same first and last name.");

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      Response answer = bean.updateEmployee(oldVO,newVO,t1,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),customizedFields);

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    java.util.ArrayList list = (ArrayList)inputPar;
    try {

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      Response answer = bean.deleteEmployeeCalendars(list,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

  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());

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

      ServletContext context) {
    java.util.ArrayList list = (ArrayList)inputPar;
    try {

      InsertEmployeeCalendars bean = (InsertEmployeeCalendars)JAIOBeanFactory.getInstance().getBean(InsertEmployeeCalendars.class);
      Response answer = bean.insertEmployeeCalendars(list,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(new BigDecimal(272));

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      Response answer = bean.loadEmployee(pk,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),customizedFields);

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another employee with the same employee code.");
      String t2 = factory.getResources(serverLanguageId).getResource("there is already another people with the same first and last name.");
      ArrayList companiesList = ((JAIOUserSessionParameters)userSessionPars).getCompanyBa().getCompaniesList("SCH01");
      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      Response answer = bean.insertEmployee(vo,t1,t2,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),companiesList,customizedFields);

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

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

      Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
      ArrayList companiesList = ((JAIOUserSessionParameters)userSessionPars).getCompanyBa().getCompaniesList("SCH01");
      Response answer = bean.validateEmployeeCode(validationPars,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),companiesList,customizedFields);

      return answer;
    }
    catch (Throwable ex) {
      Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
View Full Code Here

        attribute2dbField.put("dayOfWeekSCH02","DAY_OF_WEEK");
        attribute2dbField.put("morningStartHourSCH02","MORNING_START_HOUR");
        attribute2dbField.put("morningEndHourSCH02","MORNING_END_HOUR");
        attribute2dbField.put("afternoonStartHourSCH02","AFTERNOON_START_HOUR");
        attribute2dbField.put("afternoonEndHourSCH02","AFTERNOON_END_HOUR");
        Response res = null;

        for(int i=0;i<list.size();i++) {
          vo = (EmployeeCalendarVO)list.get(i);

          vo.setMorningStartHourSCH02(DateUtils.setTime(vo.getMorningStartHourSCH02()));
          vo.setMorningEndHourSCH02(DateUtils.setTime(vo.getMorningEndHourSCH02()));
          vo.setAfternoonStartHourSCH02(DateUtils.setTime(vo.getAfternoonStartHourSCH02()));
          vo.setAfternoonEndHourSCH02(DateUtils.setTime(vo.getAfternoonEndHourSCH02()));

          // insert into SCH02...
          res = org.jallinone.commons.server.QueryUtilExtension.insertTable(
              conn,
              new UserSessionParameters(username),
              vo,
              "SCH02_EMPLOYEE_CALENDAR",
              attribute2dbField,
              "Y",
              "N",
              null,
              true
          );
          if (res.isError()) {
            throw new Exception(res.getErrorMessage());
          }
        }

        return new VOListResponse(list,false,list.size());
      }
View Full Code Here

TOP

Related Classes of org.openswing.swing.message.receive.java.Response

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.