Esempio n. 1
0
	    public void Insert(int? HisIdDvu,string HisTenDvu,string HisMaDvu,int? HisIdLoaiDvu,string HisMaLoaiDvu,string HisTenLoaiDvu,string HisMaKieuDvu)
	    {
		    KetnoiDichvu item = new KetnoiDichvu();
		    
            item.HisIdDvu = HisIdDvu;
            
            item.HisTenDvu = HisTenDvu;
            
            item.HisMaDvu = HisMaDvu;
            
            item.HisIdLoaiDvu = HisIdLoaiDvu;
            
            item.HisMaLoaiDvu = HisMaLoaiDvu;
            
            item.HisTenLoaiDvu = HisTenLoaiDvu;
            
            item.HisMaKieuDvu = HisMaKieuDvu;
            
	    
		    item.Save(UserName);
	    }
Esempio n. 2
0
	    public void Update(int Id,int? HisIdDvu,string HisTenDvu,string HisMaDvu,int? HisIdLoaiDvu,string HisMaLoaiDvu,string HisTenLoaiDvu,string HisMaKieuDvu)
	    {
		    KetnoiDichvu item = new KetnoiDichvu();
	        item.MarkOld();
	        item.IsLoaded = true;
		    
			item.Id = Id;
				
			item.HisIdDvu = HisIdDvu;
				
			item.HisTenDvu = HisTenDvu;
				
			item.HisMaDvu = HisMaDvu;
				
			item.HisIdLoaiDvu = HisIdLoaiDvu;
				
			item.HisMaLoaiDvu = HisMaLoaiDvu;
				
			item.HisTenLoaiDvu = HisTenLoaiDvu;
				
			item.HisMaKieuDvu = HisMaKieuDvu;
				
	        item.Save(UserName);
	    }