public void Insert(long IdBenhnhan,string MaLuotkham,string MaLoaidvuTiemchung,DateTime NgayTao,string NguoiTao) { KcbPhieuhenTiemchung item = new KcbPhieuhenTiemchung(); item.IdBenhnhan = IdBenhnhan; item.MaLuotkham = MaLuotkham; item.MaLoaidvuTiemchung = MaLoaidvuTiemchung; item.NgayTao = NgayTao; item.NguoiTao = NguoiTao; item.Save(UserName); }
public void Update(long Id,long IdBenhnhan,string MaLuotkham,string MaLoaidvuTiemchung,DateTime NgayTao,string NguoiTao) { KcbPhieuhenTiemchung item = new KcbPhieuhenTiemchung(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.IdBenhnhan = IdBenhnhan; item.MaLuotkham = MaLuotkham; item.MaLoaidvuTiemchung = MaLoaidvuTiemchung; item.NgayTao = NgayTao; item.NguoiTao = NguoiTao; item.Save(UserName); }