Package com.centraview.sale.helper

Examples of com.centraview.sale.helper.SaleHelperLocalHome


  public Vector getAllStatus()
  {
    Vector allStatus = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      SaleHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      allStatus = local.getAllStatus();
    } catch (Exception e) {
      System.out.println("Failed in getting All Sale Status");
      e.printStackTrace();
View Full Code Here


  public Vector getAllStage()
  {
    Vector allStage = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      SaleHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      allStage = local.getAllStage();
    } catch (Exception e) {
      System.out.println("Failed in getting All Sale Stage");
      e.printStackTrace();
View Full Code Here

  public Vector getAllType()
  {
    Vector allType = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      SaleHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      allType = local.getAllType();
    } catch (Exception e) {
      System.out.println("Failed in getting All sale type");
      e.printStackTrace();
View Full Code Here

  public Vector getAllProbability()
  {
    Vector allType = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      SaleHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      allType = local.getAllProbability();
    } catch (Exception e) {
      System.out.println("Failed in getting All Probability type");
      e.printStackTrace();
View Full Code Here

  public Vector getAllTerm()
  {
    Vector allType = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      SaleHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      allType = local.getAllTerm();
    } catch (Exception e) {
      System.out.println("Failed in getting All Terms");
      e.printStackTrace();
View Full Code Here

  public float getTax(int taxClassId, int taxJurisdictionId)
  {
    float tax = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      SaleHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      tax = local.getTax(taxClassId, taxJurisdictionId);
    } catch (Exception e) {
      System.out.println("Failed in getting tax");
      e.printStackTrace();
View Full Code Here

  {
    SaleHelperLocal local = null;

    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      local = home.create();
      local.setDataSource(this.dataSource);
      local.setTax(taxClassId, taxJurisdictionId, tax);
    } catch (Exception e) {
      System.out.println("Failed in getting tax");
      e.printStackTrace();
View Full Code Here

  public ProposalVO calculateProposalItems(int userId, ProposalVO proposalVO, String newItemID)
  {
    ProposalVO vo = new ProposalVO();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      SaleHelperLocalHome home = (SaleHelperLocalHome)ic.lookup("local/SaleHelper");
      SaleHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      vo = local.calculateProposalItems(userId, proposalVO, newItemID);
    } catch (Exception e) {
      System.out.println("Failed in getting tax");
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.centraview.sale.helper.SaleHelperLocalHome

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.