Пример #1
0
  /** 查询 */
  private void search() {
    // 调用查询窗口
    Function function = new Function();
    Search search = new Search(this, staffInfo);
    function.setFunctionDialog(search);
    function.create();
    if (search.isUpdate()) {
      int searched = search.getSearched();

      switch (searched) {
        case 0:
          DMManage();
          break;
        case 1:
          break;
        case 3:
          break;
        case 4:
          break;
        case 5:
          break;
      }
      content = search.getResultContent();
      header = search.getResultHeader();
      displayPanel.setBorder(
          BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "查询结果"));
      setTable(content, header);
    }
  }
Пример #2
0
 /** 关于我们 */
 private void about() {
   Function function = new Function();
   function.setFunctionDialog(new About(TMFrame.this));
   function.create();
 }
Пример #3
0
 /** 备份数据库 */
 private void backup() {
   Function function = new Function();
   function.setFunctionDialog(new Backup(TMFrame.this));
   function.create();
 }
Пример #4
0
 /** 恢复数据库 */
 private void restore() {
   Function function = new Function();
   function.setFunctionDialog(new Restore(TMFrame.this));
   function.create();
 }
Пример #5
0
 /** 保存 */
 private void save() {
   Function function = new Function();
   function.setFunctionDialog(new Save(TMFrame.this));
   function.create();
 }