Example #1
0
  @Override
  public void init() {
    super.init();
    type = vo.salary.getType();

    setTitle("制定薪资策略");
    addEditableItem("人员编号", vo.number, false, "id");
    addEditableItem("姓名", vo.name, false, InfoType.NAME, "name");
    addEditableItem("工资类型", vo.salary.getType().toString(), false, "salaryType");
    addEditableItem("基础工资", vo.salary.getSalaryByMonth() + "", true, InfoType.NUM, "basic");
    switch (type) {
      case ADDONCE:
        addEditableItem("按次金额", vo.salary.getAddOnce() + "", true, InfoType.NUM, "once");
        break;
      case ADDNUM:
        addEditableItem("提成", vo.salary.getAddNum() + "", true, InfoType.NUM, "num");
        break;
      default:
        break;
    }

    addConfirmAndCancelBtn();
    confirmBtn.setText("确认修改");
    cancelBtn.setText("取消修改");
    setBackPanel("add");
  }
Example #2
0
 @Override
 protected void confirm() throws RemoteException {
   super.confirm();
   if (isAllLegal()) {
     double basic = Double.valueOf(findItem("basic").toString());
     vo.salary.setSalaryByMonth(basic);
     switch (type) {
       case ADDNUM:
         double addnum = Double.valueOf(findItem("num").toString());
         vo.salary.setAddNum(addnum);
         break;
       case ADDONCE:
         double addonce = Double.valueOf(findItem("once").toString());
         vo.salary.setAddOnce(addonce);
         break;
       default:
         break;
     }
     if (personelbl.update(vo) == ResultMessage.SUCCESS) {
       LogUtil.addLog("制定薪资策略");
       ELSStateBar.showStateBar(GetPanelUtil.getFunctionPanel(this), "修改成功");
       back();
     } else {
       ELSStateBar.showStateBar(GetPanelUtil.getFunctionPanel(this), "修改失败");
     }
   }
 }
Example #3
0
 @Override
 protected void cancel() {
   // TODO Auto-generated method stub
   super.cancel();
   if (ELSComfirmDialog.showConfirmDlg(GetPanelUtil.getFunctionPanel(this), "取消添加", "确认退出新增界面?")) {
     back();
   }
 }
Example #4
0
 @Override
 public void init() {
   super.init();
   titlePanel.remove(titlePanel.backBtn);
   setTitle("新增派件单");
   number = ConstantVal.numberbl.getPostNumber(NumberType.RECEIPT);
   /* 0 */ addEditableItem("派件单编号", number, false, "number");
   addDateItem("派件时间", false, "time");
   addEditableItem("快件单编号", "", true, InfoType.RECEIPT, "goodsnum");
   addEditableItem("快递员工号", "", true, InfoType.PERSONNEL, "pernum");
   addEditableItem("快递员姓名", "", true, InfoType.NAME, "name");
   addConfirmAndCancelBtn();
   confirmBtn.setText("确认添加");
   cancelBtn.setText("查看单据");
   container.packHeight();
 }