Пример #1
0
        private static int InsertUpdateDelete(HoaDonInfo hoaDonInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_HoaDon,
                "@" + TableHoaDon.SoHoaDon,
                hoaDonInfo.SoHoaDon, hoaDonInfo.MaNV, hoaDonInfo.MaKH, hoaDonInfo.NgayLap, hoaDonInfo.TongTien,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Пример #2
0
 public static int Delete(HoaDonInfo hoaDonInfo)
 {
     return(InsertUpdateDelete(hoaDonInfo, DataProviderAction.Delete));
 }