public void Save() throws Exception {
    try {
      for (final CoyCustShareInfo shareinfo : this.lstshareinfo) {
        shareinfo.setCustomer(this.getCustomer());
        shareinfo.setName(this.getName());
        shareinfo.setIdnumber(this.getIdnumber());
        shareinfo.setJobPositionId(this.getJobpositionid());
        shareinfo.setAddress(this.getAddress());
        shareinfo.setPhone(this.getPhone());
        shareinfo.setSharePercentage(this.getSharepercentage());
      }

      this.customermaintservice.SaveCompanyCustomerShare(sesLoginName(), this.lstshareinfo);
    } catch (final Exception exp) {

      this.setMessage(BaseAction.ErrorMessage());
      final ExceptionEntities lEntExp = new ExceptionEntities();
      lEntExp.setJavaClass(Thread.currentThread().getStackTrace()[1].getClassName());
      lEntExp.setMethodName(Thread.currentThread().getStackTrace()[1].getMethodName());
      ExceptionHelper.WriteException(lEntExp, exp);
    }
  }
  public void Add() throws Exception {
    try {
      final CoyCustShareInfo shareinfo = new CoyCustShareInfo();

      shareinfo.setName(this.getName());
      shareinfo.setIdnumber(this.getIdnumber());
      shareinfo.setJobPositionId(this.getJobpositionid());
      shareinfo.setAddress(this.getAddress());
      shareinfo.setPhone(this.getPhone());
      shareinfo.setSharePercentage(this.getSharepercentage());

      this.lstshareinfo.add(shareinfo);
      this.session.put("lstShareInfoSession", this.lstshareinfo);
    } catch (final Exception exp) {

      this.setMessage(BaseAction.ErrorMessage());
      final ExceptionEntities lEntExp = new ExceptionEntities();
      lEntExp.setJavaClass(Thread.currentThread().getStackTrace()[1].getClassName());
      lEntExp.setMethodName(Thread.currentThread().getStackTrace()[1].getMethodName());
      ExceptionHelper.WriteException(lEntExp, exp);
    }
  }