Exemplo n.º 1
0
	    public void Insert(int IdLoaiDvu,string MaDvu,string TenDvu,string TenDvuEn,int? SttHthi,int TrangThai,int IdVungKs,string MoTa)
	    {
		    DDichVu item = new DDichVu();
		    
            item.IdLoaiDvu = IdLoaiDvu;
            
            item.MaDvu = MaDvu;
            
            item.TenDvu = TenDvu;
            
            item.TenDvuEn = TenDvuEn;
            
            item.SttHthi = SttHthi;
            
            item.TrangThai = TrangThai;
            
            item.IdVungKs = IdVungKs;
            
            item.MoTa = MoTa;
            
	    
		    item.Save(UserName);
	    }
Exemplo n.º 2
0
	    public void Update(int IdDvu,int IdLoaiDvu,string MaDvu,string TenDvu,string TenDvuEn,int? SttHthi,int TrangThai,int IdVungKs,string MoTa)
	    {
		    DDichVu item = new DDichVu();
	        item.MarkOld();
	        item.IsLoaded = true;
		    
			item.IdDvu = IdDvu;
				
			item.IdLoaiDvu = IdLoaiDvu;
				
			item.MaDvu = MaDvu;
				
			item.TenDvu = TenDvu;
				
			item.TenDvuEn = TenDvuEn;
				
			item.SttHthi = SttHthi;
				
			item.TrangThai = TrangThai;
				
			item.IdVungKs = IdVungKs;
				
			item.MoTa = MoTa;
				
	        item.Save(UserName);
	    }