Пример #1
0
        // 根据出库货品表里的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);
        }
Пример #2
0
 public static int add(ModelCheckoutRecord model)
 {
     return(DalCheckoutRecord.add(model));
 }
Пример #3
0
 public static decimal getAmountByGoodsId(int intGoodsId)
 {
     return(DalCheckoutRecord.getAmountByGoodsId(intGoodsId));
 }
Пример #4
0
 public static decimal getPriceTotal(int intContractId)
 {
     return(DalCheckoutRecord.getPriceTotal(intContractId));
 }
Пример #5
0
 public static int getRecordsAmount(int intContractId)
 {
     return(DalCheckoutRecord.getRecordsAmount(intContractId));
 }
Пример #6
0
 public static DataTable getPage(int intContractId, int intPage, int intPageSize)
 {
     return(DalCheckoutRecord.getPage(intContractId, intPage, intPageSize));
 }
Пример #7
0
 public static DataTable getAll(int intContractId)
 {
     return(DalCheckoutRecord.getAll(intContractId));
 }
Пример #8
0
 public static ModelCheckoutRecord getById(int intId)
 {
     return(DalCheckoutRecord.getById(intId));
 }
Пример #9
0
 public static int updateAmountById(decimal dcmAmount, int intId)
 {
     return(DalCheckoutRecord.updateAmountById(dcmAmount, intId));
 }
Пример #10
0
 public static int update(ModelCheckoutRecord model)
 {
     return(DalCheckoutRecord.update(model));
 }