Example #1
0
        private static int InsertUpdateDelete(NhapHangInfo nhapHangInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_NhapHang,
                "@" + TableNhapHang.MaPhieuNhap,
                nhapHangInfo.MaPhieuNhap, nhapHangInfo.MaNV, nhapHangInfo.TongSoLuong, nhapHangInfo.NgayNhap, nhapHangInfo.NhaCC, nhapHangInfo.DienThoaiNCC, nhapHangInfo.DiaChiNhaCC,
                (int)action);

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