Exemplo n.º 1
0
	    public void Insert(string MaDviDchinh,string TenDviDchinh,string MaCha,int SttHthi,string LoaiDviDchinh,int? TrangThai)
	    {
		    DDviDchinh item = new DDviDchinh();
		    
            item.MaDviDchinh = MaDviDchinh;
            
            item.TenDviDchinh = TenDviDchinh;
            
            item.MaCha = MaCha;
            
            item.SttHthi = SttHthi;
            
            item.LoaiDviDchinh = LoaiDviDchinh;
            
            item.TrangThai = TrangThai;
            
	    
		    item.Save(UserName);
	    }
Exemplo n.º 2
0
	    public void Update(string MaDviDchinh,string TenDviDchinh,string MaCha,int SttHthi,string LoaiDviDchinh,int? TrangThai)
	    {
		    DDviDchinh item = new DDviDchinh();
	        item.MarkOld();
	        item.IsLoaded = true;
		    
			item.MaDviDchinh = MaDviDchinh;
				
			item.TenDviDchinh = TenDviDchinh;
				
			item.MaCha = MaCha;
				
			item.SttHthi = SttHthi;
				
			item.LoaiDviDchinh = LoaiDviDchinh;
				
			item.TrangThai = TrangThai;
				
	        item.Save(UserName);
	    }