Package com.pre.entity.base

Examples of com.pre.entity.base.Division


  }

  private void show(ArrayList<String> ids) {
    setViewMode(SHOW_MODE)
    if(!ids.isEmpty()){
      Division division=manager.find(new Long(ids.get(0)));
      fillFromDB(division);
       
    }
  }
View Full Code Here


  private void create() {
    setViewMode(CREATE_MODE)
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Division divi=new Division();       
        fillFromView(divi);
        manager.create(divi);
        detach();           
      }
    });
View Full Code Here

    }
    item.getDescription().setShortDescription(shortDescBox.getText());
    item.getDescription().setLongDescription(descriptionBox.getText());
    item.getDescription().setComment(commentBox.getText());
    if(!item.isLocked()){
      Division divi=dmanager.findByCode(divisionCombo.getText()).get(0);
      item.setDivision(divi);
      UnitOfMeasure uom=uomManager.findByName(uomText.getText()).get(0);
      item.setBasicUnitOfMeasure(uom);
    }
  }
View Full Code Here

import com.pre.entity.base.Division;

public class DivisionRowRenderer implements RowRenderer{

  public void render(Row row, Object data) throws Exception {
    Division c=(Division)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(c.getId().toString()));
    row.appendChild(new Label(c.getCode()));
    row.appendChild(new Label(c.getDescription().getShortDescription()));
  }
View Full Code Here

    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());
    comp.getDescription().setLongDescription(descText.getText());
    comp.getDescription().setComment(commentText.getText());
  }
View Full Code Here

  private void edit(ArrayList<String> ids) {
    setViewMode(EDIT_MODE);
    codeText.setDisabled(true);
   
    if(!ids.isEmpty()){
      final Division division=manager.find(new Long(ids.get(0)));
      fillFromDB(division);
      Button okButton=new Button("OK");
      okButton.addEventListener("onClick", new EventListener(){
        public void onEvent(Event event) throws Exception {
          fillFromView(division);
View Full Code Here

  }

  @WebMethod
  public void create(@WebParam(name="code") String code) throws PREEJBServiceException{
    try{
      Division d=new Division();
      d.setCode(code);
      manager.create(d);
    }catch (Exception e) {
      throw new PREEJBServiceException(e.getMessage());
    }
  }
View Full Code Here

TOP

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

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.