OnWorkRecordPane.java~24~
上传用户: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 OnWorkRecordPane extends RecordPane {
  11.     public OnWorkRecordPane() {
  12.     }
  13.     public void RestoreRecord() {
  14.         System.out.println(  "1");
  15.         String strTmp = jEmployeeIDTextField.getText();
  16.         if(strTmp.trim().length() == 0)
  17.         {
  18.             this.dispose();
  19.             return;
  20.         }
  21.         item.SetOnworkItem( jEmployeeIDTextField.getText(),
  22.                             jEmployeeNameTextField.getText(),
  23.                             jDateTimeTextField.getText(),
  24.                             jReasonTextField.getText() );
  25.         try {
  26.             database.StoreData( item );
  27.         }
  28.         catch ( Exception e ) {
  29.             e.printStackTrace();
  30.         }
  31.         this.dispose();
  32.     }
  33. }