コード例 #1
0
 /** 合约计算结束处理 前端添加合约计算结束处理 */
 private void endHandle(List<CraftFlightView> flights) {
   logger.info("合约计算结束...");
   try {
     ClientMonitorDialog.ProgressBarClose(flights);
   } catch (Exception e) {
     OwnerLog.writeExceptionLog(e);
   }
 }
コード例 #2
0
 /** 合约计算开始处理 前端添加合约计算开始的处理 */
 private void beginHandle() {
   logger.info("合约计算开始...");
   try {
     ClientMonitorDialog.ProgressBarOpen("正在计算保障合约,更新航班数据。。。");
   } catch (Exception e) {
     OwnerLog.writeExceptionLog(e);
   }
 }
コード例 #3
0
 @Override
 protected void prepData() {
   super.prepData();
   try {
     list_Alldpt = AppContext.getInstance().getDepartmentService().getDepartments();
   } catch (Exception e) {
     OwnerLog.writeExceptionLog(e);
     MessageDialogManager.openDefultError(null, e);
   }
 }
コード例 #4
0
 protected void okPressed() {
   String str = txtCoastingTime.getText();
   if (str.matches("[0-9]+")) {
     try {
       if (!(Integer.valueOf(str)).equals(CoastingTime)) {
         //					AppContext.getInstance().getSystemService().saveSlideTime(
         //							Integer.valueOf(str));
         close();
       }
     } catch (Exception e) {
       MessageUtil.ShowErroMessage(
           this.getShell(), "保存数据时出现异常,请联系系统维护人员!\n异常信息:" + e.getMessage());
       OwnerLog.writeExceptionLog(e);
     }
   } else {
     MessageUtil.ShowErroMessage(this.getShell(), "请输入有效正整数!");
   }
 }
コード例 #5
0
  @Override
  protected Control createDialogArea(Composite parent) {
    Composite comp = (Composite) super.createDialogArea(parent);
    Composite topComp = new Composite(comp, SWT.NONE);
    GridLayout layout = new GridLayout(3, true);
    topComp.setLayout(layout);
    AdvancedWidgetCreator.createNewContentLabel(topComp, 1, 9).setText("滑行时间");
    txtCoastingTime = AdvancedWidgetCreator.createNewContentText(topComp, 1, 120, SWT.BORDER);

    AdvancedWidgetCreator.createNewContentLabel(topComp, 1, -1).setText("分钟");

    try {
      //			CoastingTime = AppContext.getInstance().getSystemService()
      //					.getSlideTime();
    } catch (Exception e) {
      MessageUtil.ShowErroMessage(this.getShell(), "数据获取出错,请联系系统维护人员!\n异常信息:" + e.getMessage());
      OwnerLog.writeExceptionLog(e);
    }
    txtCoastingTime.setText(CoastingTime + "");
    return topComp;
  }