Package org.jallinone.system.java

Examples of org.jallinone.system.java.CustomizedWindows


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    ArrayList oldVOs = ((ArrayList[])inputPar)[0];
    ArrayList newVOs = ((ArrayList[])inputPar)[1];
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(new BigDecimal(212));

      Payments bean = (Payments)JAIOBeanFactory.getInstance().getBean(Payments.class);
      Response answer = bean.updatePayments(((ArrayList[])inputPar)[0],((ArrayList[])inputPar)[1],((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),customizedFields);

      return answer;
View Full Code Here


      if (this.conn==null) conn = getConn(); else conn = this.conn;
      stmt = conn.createStatement(); // used for secondary query on SYS02...
      ResultSet rset = null;

      // retrieve windows customizations...
      CustomizedWindows cust = new CustomizedWindows();
      rset = stmt.executeQuery(
        "select SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS13,SYS12_WINDOW_CUSTOMIZATIONS.COLUMN_NAME,"+
        "SYS12_WINDOW_CUSTOMIZATIONS.COLUMN_TYPE,SYS12_WINDOW_CUSTOMIZATIONS.COLUMN_SIZE,"+
        "SYS12_WINDOW_CUSTOMIZATIONS.COLUMN_DEC,SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS10,"+
        "SYS12_WINDOW_CUSTOMIZATIONS.ATTRIBUTE_NAME,SYS10_TRANSLATIONS.DESCRIPTION,SYS13_WINDOWS.TABLE_NAME "+
        "from "+
        "SYS12_WINDOW_CUSTOMIZATIONS,SYS10_TRANSLATIONS,SYS13_WINDOWS where "+
        "SYS13_WINDOWS.PROGRESSIVE=SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS13 and "+
        "SYS10_TRANSLATIONS.LANGUAGE_CODE='"+langId+"' and "+
        "SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS10=SYS10_TRANSLATIONS.PROGRESSIVE "+
        "order by SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS13,SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS10"
      );
      WindowCustomizationVO vo = null;
      while(rset.next()) {
        vo = new WindowCustomizationVO();
        vo.setProgressiveSys13SYS12(rset.getBigDecimal(1));
        vo.setColumnNameSYS12(rset.getString(2));
        vo.setColumnTypeSYS12(rset.getString(3));
        vo.setColumnSizeSYS12(rset.getBigDecimal(4));
        vo.setColumnDecSYS12(rset.getBigDecimal(5));
        vo.setProgressiveSys10SYS12(rset.getBigDecimal(6));
        vo.setAttributeNameSYS12(rset.getString(7));
        vo.setDescriptionSYS10(rset.getString(8));
        vo.setTableNameSYS13(rset.getString(9));
        cust.addWindowCustomization(vo);
      }
      rset.close();

      return cust;
    } catch (Exception ex1) {
View Full Code Here


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    LookupValidationParams validationPars = (LookupValidationParams)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTING_MOTIVES);

      AccountingMotives bean = (AccountingMotives)JAIOBeanFactory.getInstance().getBean(AccountingMotives.class);
      Response answer = bean.validateAccountingMotiveCode(validationPars,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),customizedFields);

      return answer;
View Full Code Here

      HttpServletResponse response,
      HttpSession userSession,
      ServletContext context) {
    ArrayList rows = (ArrayList)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTING_MOTIVES);

      AccountingMotives bean = (AccountingMotives)JAIOBeanFactory.getInstance().getBean(AccountingMotives.class);
      Response answer = bean.insertAccountingMotives(rows,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),((JAIOUserSessionParameters)userSessionPars).getDefCompanyCodeSys01SYS03(),customizedFields);

      return answer;
View Full Code Here

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    ArrayList oldVOs = ((ArrayList[])inputPar)[0];
    ArrayList newVOs = ((ArrayList[])inputPar)[1];
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTING_MOTIVES);

      AccountingMotives bean = (AccountingMotives)JAIOBeanFactory.getInstance().getBean(AccountingMotives.class);
      Response answer = bean.updateAccountingMotives(((ArrayList[])inputPar)[0],((ArrayList[])inputPar)[1],((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),customizedFields);

      return answer;
View Full Code Here

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    ArrayList oldVOs = ((ArrayList[])inputPar)[0];
    ArrayList newVOs = ((ArrayList[])inputPar)[1];
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTS);

      Accounts bean = (Accounts)JAIOBeanFactory.getInstance().getBean(Accounts.class);
      Response answer = bean.updateAccounts(((ArrayList[])inputPar)[0],((ArrayList[])inputPar)[1],((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),customizedFields);

      return answer;
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 {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTS);

      Accounts bean = (Accounts)JAIOBeanFactory.getInstance().getBean(Accounts.class);
      ArrayList companiesList = ((JAIOUserSessionParameters)userSessionPars).getCompanyBa().getCompaniesList("ACC02");
      Response answer = bean.loadAccounts(gridParams,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),companiesList,customizedFields);
View Full Code Here

      HashMap userRoles = bean.getUserRoles(langId, username);

      HashMap gridPermissions = getGridPermissions(username, userRoles);
      HashMap lastGridPermissionsDigests = bean.getLastGridPermissionsDigests();
      DefaultTreeModel model = getMenu(langId, username);
      CustomizedWindows cust = bean.getWindowCustomizations(langId);

      // store user roles in user session...
      ((JAIOUserSessionParameters)userSessionPars).setUserRoles(userRoles);

      // store company authorizations in user session...
View Full Code Here


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    LookupValidationParams validationPars = (LookupValidationParams)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTS);

      Accounts bean = (Accounts)JAIOBeanFactory.getInstance().getBean(Accounts.class);
      ArrayList companiesList = ((JAIOUserSessionParameters)userSessionPars).getCompanyBa().getCompaniesList("ACC02");
      Response answer = bean.validateAccountCode(validationPars,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),companiesList,customizedFields);
View Full Code Here

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

      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_SUPPLIER_GRID);

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another organization with the same corporate name.");
View Full Code Here

TOP

Related Classes of org.jallinone.system.java.CustomizedWindows

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.