// 根据出库货品表里的id删除该表中一条记录,注意还要将出货数量加回去 public static void deleteById(int intId) { ModelCheckoutRecord modelCheckoutRecord = DalCheckoutRecord.getById(intId); int intGoodsId = modelCheckoutRecord.id_goods; decimal dcmAmountOut = modelCheckoutRecord.amount; // 将出货数量加回去 BllSalesGoods.addAmountStock(intGoodsId, dcmAmountOut); // 删除表里一条记录 DalCheckoutRecord.deleteById(intId); }
public static int add(ModelCheckoutRecord model) { return(DalCheckoutRecord.add(model)); }
public static decimal getAmountByGoodsId(int intGoodsId) { return(DalCheckoutRecord.getAmountByGoodsId(intGoodsId)); }
public static decimal getPriceTotal(int intContractId) { return(DalCheckoutRecord.getPriceTotal(intContractId)); }
public static int getRecordsAmount(int intContractId) { return(DalCheckoutRecord.getRecordsAmount(intContractId)); }
public static DataTable getPage(int intContractId, int intPage, int intPageSize) { return(DalCheckoutRecord.getPage(intContractId, intPage, intPageSize)); }
public static DataTable getAll(int intContractId) { return(DalCheckoutRecord.getAll(intContractId)); }
public static ModelCheckoutRecord getById(int intId) { return(DalCheckoutRecord.getById(intId)); }
public static int updateAmountById(decimal dcmAmount, int intId) { return(DalCheckoutRecord.updateAmountById(dcmAmount, intId)); }
public static int update(ModelCheckoutRecord model) { return(DalCheckoutRecord.update(model)); }