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); }
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); }
public bool Destroy(object IdLoaithuoc) { return(DmucLoaithuoc.Destroy(IdLoaithuoc) == 1); }
public bool Delete(object IdLoaithuoc) { return(DmucLoaithuoc.Delete(IdLoaithuoc) == 1); }