Exemple #1
0
 /// <summary>
 /// Actualiza la información del Contract_TypeDocument
 /// </summary>
 public ActionResult SaveInfo(String txtEnterprise, String txtNit,String selPersonType, String txtProvider, String txtAddress,  String selCity, String txtPhoneNumber, String txtState, String txtRecordId)
 {
     String user = (String)(Session["USER_ID"]);
     ProviderDTO objDTO = new ProviderDTO(txtEnterprise, txtNit, selPersonType, txtProvider, txtAddress, selCity, txtPhoneNumber, txtState, (txtRecordId.Equals("") ? "0" : txtRecordId));
     IList<String> info = ContractService.SaveInfo(objDTO, user);
     return Json(new { d = info });
 }
Exemple #2
0
 /// <summary>
 /// Lista la información de los Contract_TypeDocumentes
 /// </summary>
 public ActionResult ListInfo(String txtPage, String txtNitFilter,String selPersonTypeFilter, String txtProviderFilter, String txtAddressFilter, String selCityFilter, String txtStateFilter)
 {
     ProviderDTO dto = new ProviderDTO();
     ProviderDTO objDTO = new ProviderDTO(txtNitFilter, selPersonTypeFilter, txtProviderFilter, txtAddressFilter, selCityFilter, txtStateFilter);
     IList<String> info = ContractService.ListInfo(txtPage, objDTO);
     return Json(new { d = info });
 }
Exemple #3
0
 public IList<String> SaveInfo(ProviderDTO obj, String user)
 {
     String[] data = { "ENTERPRISE", obj.Enterprise, "NIT", obj.Nit, "PERSONTYPE", obj.PersonType, "PROVIDER", obj.Provider, "ADDRESS", obj.Address, "CITY", obj.City, "PHONENUMBER", obj.PhonNumber, "STATE", obj.State, "RecordID", obj.RecordID, "User", user };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_Provider");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Exemple #4
0
 public IList<String> ListInfo(String page, ProviderDTO dto)
 {
     String[] data = { "NIT", dto.Nit, "PERSONTYPE", dto.PersonType, "PROVIDER", dto.Provider, "ADDRESS", dto.Address, "CITY", dto.City, "STATE", dto.State, "Page", page };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_Provider");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }