OnWorkRecordPane.java~15~
上传用户: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.         if(jEmployeeIDTextField.getText().indexOf(" ") != -1)
  15.             return;
  16.         System.out.println(jEmployeeIDTextField.getText().trim());
  17.         System.out.println("here");
  18.         item.SetOnworkItem( jEmployeeIDTextField.getText(),
  19.                             jEmployeeNameTextField.getText(),
  20.                             jDateTimeTextField.getText(),
  21.                             jReasonTextField.getText() );
  22.         try {
  23.             database.StoreData( item );
  24.         }
  25.         catch ( Exception e ) {
  26.             e.printStackTrace();
  27.         }
  28.         this.dispose();
  29.     }
  30. }