Esempio n. 1
0
 /// <summary>
 /// Actualiza la información del Area
 /// </summary>
 public ActionResult SaveInfo(String txtIdentification, String txtName1, String txtName2, String txtLastName1, String txtLastName2, String selDependency, String txtEmail, String txtPhone, String selEntailmentType, String txtEnterprise, String selDocumentType, String selCity, String txtRecordId)
 {
     String usuario = (String)Session["USER_ID"];
     SupervisorDTO objDTO = new SupervisorDTO(txtIdentification, txtName1, txtName2, txtLastName1, txtLastName2, selDependency, txtEmail, txtPhone, selEntailmentType, txtEnterprise, selDocumentType, selCity, (txtRecordId.Equals("") ? "0" : txtRecordId));
     IList<String> info = ContractService.SaveInfo(objDTO, usuario);
     return Json(new { d = info });
 }
Esempio n. 2
0
 public IList<String> SaveInfo(SupervisorDTO obj ,String user)
 {
     String[] data = { "Identification", obj.Identification, "FirstName", obj.FirstName, "SecondName", obj.SecondName, "FirstLastName", obj.FirstLastName, "SecondLastName", obj.SecondLastName, "Dependency", obj.Dependency, "Email", obj.Email, "Phone", obj.Phone, "EntailmentType", obj.Typevinculation, "Enterprise", obj.Enterprise, "DocumentType", obj.DocumentType, "City", obj.City, "RecordID", obj.RecordID, "User", user };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_supervisor");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Esempio n. 3
0
 public IList<String> ListInfo(String page , SupervisorDTO  obj)
 {
     String[] data = { "Identification", obj.Identification, "FirstName", obj.FirstName, "SecondName", obj.SecondName, "FirstLastName", obj.FirstLastName, "SecondLastName", obj.SecondLastName, "Dependency", obj.Dependency, "Email", obj.Email, "Phone", obj.Phone, "EntailmentType", obj.Typevinculation, "Page", page };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_supervisor");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }
Esempio n. 4
0
 /// <summary>
 /// Lista la información de los Areaes
 /// </summary>
 public ActionResult ListInfo(String txtPage, String txtIdentificationFilter, String txtFirstNameFilter, String txtSecondNameFilter, String txtFLastNameFilter, String txtSLastNameFilter, String txtEmailFilter, String txtPhoneFilter, String selDependencyFilter, String selEntailmentTypeFilter)
 {
     SupervisorDTO objDTO = new SupervisorDTO(txtIdentificationFilter,txtFirstNameFilter, txtSecondNameFilter, txtFLastNameFilter, txtSLastNameFilter, selDependencyFilter, txtEmailFilter, txtPhoneFilter, selEntailmentTypeFilter);
     IList<String> info = ContractService.ListInfo(txtPage,objDTO);
     return Json(new { d = info });
 }