Ejemplo n.º 1
0
 // 添加总账单  绑定在项目上
 public String addFinance() {
   service = new FinanceService();
   System.out.println("inCom,a,asdfdf:" + finance.getInCome());
   finance.setPro_id(Integer.parseInt(pro_id));
   String flat = service.addFinance(finance);
   if (flat.equals("success")) {
     return "addFinance";
   } else return "fail";
 }
Ejemplo n.º 2
0
 // 添加总账单对应的子账单
 public String addItem() {
   service = new FinanceService();
   finance = service.listFinance(Integer.parseInt(pro_id));
   System.out.println("这是finance_id:" + finance.getFinance_id());
   item.setFinance_id(finance.getFinance_id());
   System.out.println("zheshi item :" + item);
   String flat = service.addItem(item);
   if (flat.equals("success")) {
     return "addItem";
   } else return "fail";
 }
Ejemplo n.º 3
0
 // 查询项目对应的账单
 public String listFinance() {
   service = new FinanceService();
   finance = service.listFinance(Integer.parseInt(pro_id));
   if (finance != null) {
     itemList = service.listItem(finance.getFinance_id());
   }
   System.out.println("finance:" + finance);
   System.out.println("list:" + itemList);
   return "listFinance";
 }