Package com.pre.entity.base

Examples of com.pre.entity.base.BaseDescription


    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Warehouse w =new Warehouse();
        w.setName(nameBox.getText());
        BaseDescription odesc=new BaseDescription();
        w.setDescription(odesc);
        //Find  selected group
        OrganizationGroup comp=organizationGroupManager.findByName(groupsCombo.getText()).get(0);
        if(nameBox.getText().equals("")){
          Messagebox.show("Name is empty!", "Error", Messagebox.YES , null);
View Full Code Here


  private void fillFromView(Item item){
    item.setCode(codeBox.getText());
    item.setStatus(statusCombo.getSelectedItem().getLabel());
    if(item.getDescription()==null){
      BaseDescription description=new BaseDescription();
      item.setDescription(description);
    }
    item.getDescription().setShortDescription(shortDescBox.getText());
    item.getDescription().setLongDescription(descriptionBox.getText());
    item.getDescription().setComment(commentBox.getText());
View Full Code Here

  }

  protected void fillFromView(OrganizationGroup org) {
    org.setName(obox.getText());
    if(org.getDescription()==null){
      BaseDescription description=new BaseDescription();
      org.setDescription(description);
    }
    Organization organization=organizationManager.findByName(ccombo.getText()).get(0);
    if(obox.getText().equals("")){
      try {
View Full Code Here

 
 
  public void fillFromView(Company comp){
    comp.setName(codeText.getText());
    if(comp.getDescription()==null){
      BaseDescription description=new BaseDescription();
      comp.setDescription(description);
    }
    Division divi=dmanager.findByCode(divisionCombo.getText()).get(0);
    comp.setDivision(divi);
    comp.getDescription().setShortDescription(shortDescText.getText());
View Full Code Here

 
 
  private void fillFromView(Organization organization){
    organization.setName(organizationBox.getText());
    if(organization.getDescription()==null){
      BaseDescription description=new BaseDescription();
      organization.setDescription(description);
    }
    Company comp=companyManager.findByName(companiesCombo.getText()).get(0);
    if(organizationBox.getText().equals("")){
      try {
View Full Code Here

          return;
        }
        Location location =new Location();
        location.setName(nameBox.getText());
        //Setup description
        BaseDescription odesc=new BaseDescription();
        location.setDescription(odesc);
        //Find  selected warehouse
        Warehouse comp=manager.findByName(warehousesCombo.getText()).get(0);
        location.setWarehouse(comp);       
        location.getDescription().setShortDescription(sbox.getText());
View Full Code Here

  }
 
  private void fillFromView(Division d){
    d.setCode(codeText.getText());
    if(d.getDescription()==null){
      d.setDescription(new BaseDescription());
    }
    d.getDescription().setShortDescription(shortDescText.getText());
    d.getDescription().setLongDescription(descrioptionText.getText());
    d.getDescription().setComment(commentText.getText());
   
View Full Code Here

      public void onEvent(Event event) throws Exception {
        //init();
        UnitOfMeasure divi=new UnitOfMeasure();
        divi.setName(cbox.getText());
        BaseDescription description=new BaseDescription();
        divi.setDescription(description);
        divi.getDescription().setShortDescription(sbox.getText());
        divi.getDescription().setLongDescription(dbox.getText());
        divi.getDescription().setComment(cmbox.getText());
        manager.create(divi);
View Full Code Here

TOP

Related Classes of com.pre.entity.base.BaseDescription

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.