示例#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);
   }
 }
示例#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);
 }
示例#3
0
  @Override
  public List<SellValue> search(int engineid) throws Exception {
    ISellDao sdo = DaoFactory.getSellDao();

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