Package com.rakaizsys.eims.model.emp

Examples of com.rakaizsys.eims.model.emp.EmployeeAttachment


  protected void doBtnViewAttachmentActionPerformed(ActionEvent e) {
    if (seletedObject == null)
      return;
    try {
      EmployeeAttachment attachment = (EmployeeAttachment) seletedObject;
      File file = File.createTempFile("eims_", "." + attachment.getFileType());
      Process p = Runtime.getRuntime().exec(
          "rundll32 url.dll,FileProtocolHandler "
              + file.getAbsolutePath());
      p.waitFor();
      //FileUtils.forceDelete(file);
View Full Code Here


  }

  // passed object of type employee
  public EmployeeAtatchmentForm(Employee dbObject) {
    super(new EmployeeAttachment(dbObject));
  }
View Full Code Here

    updateAttachmentTypesList();
  }

  @Override
  protected void doNew() throws Exception {
    dbObject = new EmployeeAttachment((Employee) ((EmployeeAttachment)dbObject).getDbObject());

  }
View Full Code Here

  super(columns);
    }
   
    @Override
    public Object getValueAt(int row, int col) {
        EmployeeAttachment attachment = (EmployeeAttachment) dbObjects.get(row);
        switch (col) {
  case 0:
     return attachment.getId();
  case 1 : return attachment.getName();
  case 2 : return attachment.getType();
  case 3 : return attachment.getFileName();
  case 4 : return attachment.getFileType();
  case 5 : return FileUtils.byteCountToDisplaySize(attachment.getFileSize());
  case 6 : return attachment.getNotes();

  default:
     return null;
  }
    }
View Full Code Here

TOP

Related Classes of com.rakaizsys.eims.model.emp.EmployeeAttachment

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.