Example #1
0
        public void Update(short IdLoaithuoc, string MaLoaithuoc, string TenLoaithuoc, short SttHthi, string MotaThem, string MaNhomthuoc, short?InRieng, string KieuThuocvattu)
        {
            DmucLoaithuoc item = new DmucLoaithuoc();

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

            item.IdLoaithuoc = IdLoaithuoc;

            item.MaLoaithuoc = MaLoaithuoc;

            item.TenLoaithuoc = TenLoaithuoc;

            item.SttHthi = SttHthi;

            item.MotaThem = MotaThem;

            item.MaNhomthuoc = MaNhomthuoc;

            item.InRieng = InRieng;

            item.KieuThuocvattu = KieuThuocvattu;

            item.Save(UserName);
        }
Example #2
0
        public void Insert(string MaLoaithuoc, string TenLoaithuoc, short SttHthi, string MotaThem, string MaNhomthuoc, short?InRieng, string KieuThuocvattu)
        {
            DmucLoaithuoc item = new DmucLoaithuoc();

            item.MaLoaithuoc = MaLoaithuoc;

            item.TenLoaithuoc = TenLoaithuoc;

            item.SttHthi = SttHthi;

            item.MotaThem = MotaThem;

            item.MaNhomthuoc = MaNhomthuoc;

            item.InRieng = InRieng;

            item.KieuThuocvattu = KieuThuocvattu;


            item.Save(UserName);
        }
Example #3
0
 public bool Destroy(object IdLoaithuoc)
 {
     return(DmucLoaithuoc.Destroy(IdLoaithuoc) == 1);
 }
Example #4
0
 public bool Delete(object IdLoaithuoc)
 {
     return(DmucLoaithuoc.Delete(IdLoaithuoc) == 1);
 }