Example #1
0
        public void Insert(string MaDvu, string TenDvu, string MaNhom, string TenNhom, string KieuDvu)
        {
            KetnoiHisDanhmucDvu item = new KetnoiHisDanhmucDvu();

            item.MaDvu = MaDvu;

            item.TenDvu = TenDvu;

            item.MaNhom = MaNhom;

            item.TenNhom = TenNhom;

            item.KieuDvu = KieuDvu;


            item.Save(UserName);
        }
Example #2
0
        public void Update(int Id, string MaDvu, string TenDvu, string MaNhom, string TenNhom, string KieuDvu)
        {
            KetnoiHisDanhmucDvu item = new KetnoiHisDanhmucDvu();

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

            item.Id = Id;

            item.MaDvu = MaDvu;

            item.TenDvu = TenDvu;

            item.MaNhom = MaNhom;

            item.TenNhom = TenNhom;

            item.KieuDvu = KieuDvu;

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