Beispiel #1
0
 public IList<String> SaveInfo(UserDTO obj)
 {
     String[] data = { "DocumentType", obj.DocumentType, "Document", obj.Document, "City", obj.City, "Name1", obj.Name1, "Name2", obj.Name2, "LastName1", obj.LastName1, "LastName2", obj.LastName2, "StateID", obj.Status, "Email", obj.Email, "Phone", obj.Phone, "Dependency", obj.Dependency, "EntailmentType", obj.EntailmentType, "RecordID", obj.PersonID, "Password", obj.Password, "Rols", obj.Rols };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_user");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Beispiel #2
0
 public IList<String> ListInfo(UserDTO obj, String page)
 {
     String[] data = { "DocumentType", obj.DocumentType, "Name1", obj.Name1, "Name2", obj.Name2, "LastName1", obj.LastName1, "LastName2", obj.LastName2, "State", obj.Status, "Document", obj.Document, "Dependency", obj.Dependency, "EntailmentType", obj.EntailmentType, "Page", page };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_user");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }
Beispiel #3
0
 /// <summary>
 /// Se guarda o modifica un usuario
 /// </summary>
 /// <returns>respuesta</returns>
 public ActionResult SaveInfoAdmin(String txtUserName1, String txtUserName2, String txtUserLastName1, String txtUserLastName2, String txtDocument, String txtEmail, String selStatus, String txtPassword, String txtRolsUser, String txtRecordId)
 {
     UserDTO objDTO = new UserDTO(txtDocument, txtUserName1, txtUserName2, txtUserLastName1, txtUserLastName2, txtEmail, selStatus, txtPassword, txtRolsUser, (txtRecordId.Equals("") ? "0" : txtRecordId));
     IList<String> info = ContractService.SaveInfo(objDTO);
     return Json(new { d = info });
 }
Beispiel #4
0
 /// <summary>
 /// Alamacena la información de un usuario específico de una sesión
 /// </summary>
 public ActionResult SaveInfo(String selDocumentType, String txtDocument, String selCity, String txtUserName1, String txtUserName2, String txtUserLastName1, String txtUserLastName2, String txtEmail, String txtPhone, String selDependency, String selEntailmentType, String selStatus, String txtPassword, String txtRolsUser, String txtRecordId)
 {
     UserDTO objDTO = new UserDTO(selDocumentType,txtDocument,selCity, txtUserName1, txtUserName2, txtUserLastName1, txtUserLastName2, txtEmail,txtPhone,selDependency,selEntailmentType, selStatus, txtPassword, txtRolsUser, (txtRecordId.Equals("") ? "0" : txtRecordId));
     IList<String> info = ContractService.SaveInfo(objDTO);
     return Json(new { d = info });
 }
Beispiel #5
0
 /// <summary>
 /// Se lista la información de los usuarios
 /// </summary>
 /// <returns>Listado de usuarios</returns>
 public ActionResult ListInfo(String selDocumentTypeFilter, String txtDocumentFilter, String txtUserName1Filter, String txtUserName2Filter, String txtUserLastName1Filter, String txtUserLastName2Filter, String txtEmailFilter, String selDependencyFilter,String selEntailmentTypeFilter, String selStatusFilter, String txtPage)
 {
     UserDTO objDTO = new UserDTO(selDocumentTypeFilter, txtDocumentFilter, txtUserName1Filter, txtUserName2Filter, txtUserLastName1Filter, txtUserLastName2Filter, txtEmailFilter, selDependencyFilter, selEntailmentTypeFilter, selStatusFilter);
     IList<String> info = ContractService.ListInfo(objDTO, txtPage);
     return Json(new { d = info });
 }