Example #1
0
        public void Insert(string MaBenh, string MaLoaibenh, string TenBenh, string MotaThem, string Viettat)
        {
            DmucBenh item = new DmucBenh();

            item.MaBenh = MaBenh;

            item.MaLoaibenh = MaLoaibenh;

            item.TenBenh = TenBenh;

            item.MotaThem = MotaThem;

            item.Viettat = Viettat;


            item.Save(UserName);
        }
Example #2
0
        public void Update(short IdBenh, string MaBenh, string MaLoaibenh, string TenBenh, string MotaThem, string Viettat)
        {
            DmucBenh item = new DmucBenh();

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

            item.IdBenh = IdBenh;

            item.MaBenh = MaBenh;

            item.MaLoaibenh = MaLoaibenh;

            item.TenBenh = TenBenh;

            item.MotaThem = MotaThem;

            item.Viettat = Viettat;

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