Package org.openswing.swing.internationalization.server

Examples of org.openswing.swing.internationalization.server.ServerResourcesFactory


        pstmt.close();
      }


      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String title = callOutType.getDescriptionSYS10();
      String y = resources.getResource("nr");
      String x = resources.getResource("months");
      String opened = resources.getResource("opened");
      String closed = resources.getResource("closed");
View Full Code Here


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

      // 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 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;
View Full Code Here

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

      // 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 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;
View Full Code Here

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

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String t1 = resources.getDateMask(Consts.TYPE_DATE);
      String t2 = resources.getResource("endorse vat from register");
      String t3 = resources.getResource("period");

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

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    OrganizationVO vo = (OrganizationVO)inputPar;
    try {
      // 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.");

      Companies bean = (Companies)JAIOBeanFactory.getInstance().getBean(Companies.class);
      Response answer = bean.insertCompany(vo,t1,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());

      VariantDescriptionsVO d = new VariantDescriptionsVO();
View Full Code Here

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    HashMap map = (HashMap)inputPar;
    try {
      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String t1 = resources.getResource("endorse loss/profit to econ. account");
      String t2 = resources.getResource("endorse profit to patrimonial account");
      String t3 = resources.getResource("endorse loss to patrimonial account");

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

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    HashMap map = (HashMap)inputPar;
    try {
      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String t1 = resources.getResource("open patrimonial accounts, using patrimonial settlements of year ");

      AccountingMovements bean = (AccountingMovements)JAIOBeanFactory.getInstance().getBean(AccountingMovements.class);

      Response answer = bean.openPAccounts(map,t1,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    OrganizationVO oldVO = (OrganizationVO)((ValueObject[])inputPar)[0];
    OrganizationVO newVO = (OrganizationVO)((ValueObject[])inputPar)[1];
    try {
      // 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 people with the same first and last name.");

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

      return answer;
View Full Code Here

    try {
      ValueObject oldVO = ((ValueObject[])inputPar)[0];
      ValueObject newVO = ((ValueObject[])inputPar)[1];

      // 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 people with the same first and last name.");
      String t2 = factory.getResources(serverLanguageId).getResource("there is already another organization with the same corporate name.");

      Subjects bean = (Subjects)JAIOBeanFactory.getInstance().getBean(Subjects.class);
      if (newVO instanceof PeopleVO)
        bean.updatePeople((PeopleVO)oldVO,(PeopleVO)newVO,t1,t2,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
      else
View Full Code Here

      ItemPK pk = new ItemPK(vo.getCompanyCodeSys01(),vo.getItemCodeItm01());
     
      LoadItem itembean = (LoadItem)JAIOBeanFactory.getInstance().getBean(LoadItem.class);
      BigDecimal progressiveHie02ITM01 = itembean.getProgressiveHie02ITM01(pk, userSessionPars.getUsername());
     
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String t1 = resources.getResource("barcode already assigned to another item");
      String imagePath = (String)((JAIOUserSessionParameters)userSessionPars).getAppParams().get(ApplicationConsts.IMAGE_PATH);
     
      UpdateItemVariants bean = (UpdateItemVariants)JAIOBeanFactory.getInstance().getBean(UpdateItemVariants.class);
      Response answer = bean.updateItemVariants(t1,((ArrayList[])inputPar)[0],((ArrayList[])inputPar)[1],((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),imagePath,progressiveHie02ITM01);
View Full Code Here

TOP

Related Classes of org.openswing.swing.internationalization.server.ServerResourcesFactory

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.