Beispiel #1
0
 @Override
 public void delete(int engineid) throws Exception {
   // 删除销售记录
   ISellDao sdo = DaoFactory.getSellDao();
   SellValue sv = sdo.get(engineid);
   if (sv != null) {
     sdo.delete(sv);
   }
 }
Beispiel #2
0
 @Override
 public void add(int engineid, String selldate, int carid, int userid) throws Exception {
   // 增加新销售记录
   SellValue sv = new SellValue();
   sv.setEngineid(engineid);
   sv.setSelldate(selldate);
   sv.setCarid(carid);
   sv.setUserid(userid);
   ISellDao sdo = DaoFactory.getSellDao();
   sdo.create(sv);
 }
Beispiel #3
0
  @Override
  public List<SellValue> search(int engineid) throws Exception {
    ISellDao sdo = DaoFactory.getSellDao();

    return sdo.search(engineid);
  }
Beispiel #4
0
 @Override
 public SellValue get(int engineid) throws Exception {
   // 返回单一销售信息
   ISellDao sdo = DaoFactory.getSellDao();
   return sdo.get(engineid);
 }
Beispiel #5
0
 @Override
 public List<SellValue> getList() throws Exception {
   // 返回销售列表
   ISellDao sdo = DaoFactory.getSellDao();
   return sdo.getList();
 }