Пример #1
0
        public void Update(long Id, short IdBacsi, int IdThuoc, int SoLuong, string SoluongDung, string SolanDung, string CachDung, string ChidanThem)
        {
            DmucChidanKedonthuoc item = new DmucChidanKedonthuoc();

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

            item.Id = Id;

            item.IdBacsi = IdBacsi;

            item.IdThuoc = IdThuoc;

            item.SoLuong = SoLuong;

            item.SoluongDung = SoluongDung;

            item.SolanDung = SolanDung;

            item.CachDung = CachDung;

            item.ChidanThem = ChidanThem;

            item.Save(UserName);
        }
Пример #2
0
        public void Insert(short IdBacsi, int IdThuoc, int SoLuong, string SoluongDung, string SolanDung, string CachDung, string ChidanThem)
        {
            DmucChidanKedonthuoc item = new DmucChidanKedonthuoc();

            item.IdBacsi = IdBacsi;

            item.IdThuoc = IdThuoc;

            item.SoLuong = SoLuong;

            item.SoluongDung = SoluongDung;

            item.SolanDung = SolanDung;

            item.CachDung = CachDung;

            item.ChidanThem = ChidanThem;


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