Пример #1
0
        public void Insert(short IdNhanvien, long IdBenhnhan, string MaLuotkham, string TenBenhnhan, DateTime NgayHuy, decimal SotienHuy, byte LoaiphieuHuy, string LydoHuy, DateTime NgayTao, string NguoiTao)
        {
            KcbLoghuy item = new KcbLoghuy();

            item.IdNhanvien = IdNhanvien;

            item.IdBenhnhan = IdBenhnhan;

            item.MaLuotkham = MaLuotkham;

            item.TenBenhnhan = TenBenhnhan;

            item.NgayHuy = NgayHuy;

            item.SotienHuy = SotienHuy;

            item.LoaiphieuHuy = LoaiphieuHuy;

            item.LydoHuy = LydoHuy;

            item.NgayTao = NgayTao;

            item.NguoiTao = NguoiTao;


            item.Save(UserName);
        }
        public void Update(long Id, short IdNhanvien, long IdBenhnhan, string MaLuotkham, DateTime NgayHuy, decimal SotienHuy, byte LoaiphieuHuy, string LydoHuy, DateTime NgayTao, string NguoiTao)
        {
            KcbLoghuy item = new KcbLoghuy();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.IdNhanvien = IdNhanvien;

            item.IdBenhnhan = IdBenhnhan;

            item.MaLuotkham = MaLuotkham;

            item.NgayHuy = NgayHuy;

            item.SotienHuy = SotienHuy;

            item.LoaiphieuHuy = LoaiphieuHuy;

            item.LydoHuy = LydoHuy;

            item.NgayTao = NgayTao;

            item.NguoiTao = NguoiTao;

            item.Save(UserName);
        }
Пример #3
0
 public bool Destroy(object Id)
 {
     return(KcbLoghuy.Destroy(Id) == 1);
 }
Пример #4
0
 public bool Delete(object Id)
 {
     return(KcbLoghuy.Delete(Id) == 1);
 }