OffWorkRecordPane.java
上传用户:liming9091
上传日期:2014-10-27
资源大小:3376k
文件大小:1k
源码类别:

Java编程

开发平台:

Java

  1. package manpowersystem;
  2. /**
  3.  * <p>Title: </p>
  4.  * <p>Description: </p>
  5.  * <p>Copyright: Copyright (c) 2003</p>
  6.  * <p>Company: </p>
  7.  * @author not attributable
  8.  * @version 1.0
  9.  */
  10. public class OffWorkRecordPane extends RecordPane {
  11.     public OffWorkRecordPane() {
  12.     }
  13.     public void RestoreRecord() {
  14.         String strTmp = jEmployeeIDTextField.getText();
  15.         if ( strTmp.trim().length() == 0 ) {
  16.             this.dispose();
  17.             return;
  18.         }
  19.         item.SetOffworkItem( jEmployeeIDTextField.getText(),
  20.                              jEmployeeNameTextField.getText(),
  21.                              jDateTimeTextField.getText(),
  22.                              jReasonTextField.getText() );
  23.         try {
  24.             database.StoreData( item );
  25.         }
  26.         catch ( Exception e ) {
  27.             e.printStackTrace();
  28.         }
  29.         this.dispose();
  30.     }
  31. }