Beispiel #1
0
        private static int InsertUpdateDelete(ChiTietNhapHangInfo chiTietNhapHangInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_ChiTietNhapHang,
                "",
                chiTietNhapHangInfo.MaPhieuNhap, chiTietNhapHangInfo.MaHH, chiTietNhapHangInfo.SoLuong, chiTietNhapHangInfo.DonGia, chiTietNhapHangInfo.ThanhTien,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Beispiel #2
0
 public static int Delete(ChiTietNhapHangInfo chiTietNhapHangInfo)
 {
     return(InsertUpdateDelete(chiTietNhapHangInfo, DataProviderAction.Delete));
 }