Example #1
0
 public String queryOther_expenseInfor() {
   // TODO Auto-generated method stub
   other_expenses = apply_Reimburse.queryOther_expenseInfor(reimburse.getReimburse_id());
   HttpServletRequest request = ServletActionContext.getRequest();
   String s = request.getParameter("flag").toString();
   int flag = Integer.parseInt(s);
   if (flag == 1) {
     return "success1";
   } else if (flag == 2) {
     return "success2";
   }
   return s;
 }
Example #2
0
 public String queryReimburse() {
   // TODO Auto-generated method stub
   HttpServletRequest req = ServletActionContext.getRequest();
   String s = req.getParameter("flag").toString();
   int flag = Integer.parseInt(s);
   HttpSession session = req.getSession();
   if (flag == 1) {
     session.setAttribute("Reimburse_time", "");
     session.setAttribute("Reimburse_state", "");
     if (!(StringUtils.isBlank(reimburse.getReimburse_time()))) {
       session.setAttribute("Reimburse_time", reimburse.getReimburse_time());
     }
     if (!(StringUtils.isBlank(reimburse.getReimburse_state()))) {
       session.setAttribute("Reimburse_state", reimburse.getReimburse_state());
     }
   }
   if (pageNow < 0) {
     JOptionPane.showMessageDialog(null, "ÒÑÊÇÊ×Ò³!");
   } else {
     if (null
         != apply_Reimburse.queryReimburse(
             reimburse.getReimburse_time(),
             reimburse.getReimburse_state(),
             reimburse.getEmployee_id(),
             pageNow,
             pageSize)) {
       reimburses =
           apply_Reimburse.queryReimburse(
               reimburse.getReimburse_time(),
               reimburse.getReimburse_state(),
               reimburse.getEmployee_id(),
               pageNow,
               pageSize);
     }
   }
   return SUCCESS;
 }
Example #3
0
 public String queryTransInfor() {
   // TODO Auto-generated method stub
   transs = apply_Reimburse.queryTransInfor(reimburse.getReimburse_id());
   return queryOther_expenseInfor();
 }
Example #4
0
  public String UpdateReimburse() {
    apply_Reimburse.UpdateReimburse(reimburse, transs, other_expenses, reimburse.getReimburse_id());

    return SUCCESS;
  }
Example #5
0
 public String insertReimburse() {
   System.out.print("ok");
   apply_Reimburse.insertReimburse(reimburse, transs, other_expenses);
   return SUCCESS;
 }