Ejemplo n.º 1
0
 /// <summary>
 /// Lista la información de los cdp solicitados
 /// </summary>
 public ActionResult ListInfo(String txtPage, String selProjectFilter, String selStateFilter)
 {
     Paymaster_cdpDTO dto = new Paymaster_cdpDTO();
     Paymaster_cdpDTO objDTO = new Paymaster_cdpDTO(selProjectFilter, selStateFilter);
     IList<String> info = ContractService.ListInfo(txtPage, objDTO);
     return Json(new { d = info });
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Lista la información de las soolicitudes
 /// </summary>
 /// <param name="txtPage">The text page.</param>
 /// <param name="selRequestTypeFilter">The sel request type filter.</param>
 /// <param name="selProjectFilter">The sel project filter.</param>
 /// <param name="selRequestStateFilter">The sel request state filter.</param>
 /// <param name="txtNumberPaymentsFilter">The text number payments filter.</param>
 /// <param name="txtTimeFilter">The text time filter.</param>
 /// <param name="selUnitTimeFilter">The sel unit time filter.</param>
 /// <param name="selSupervisorFilter">The sel supervisor filter.</param>
 /// <returns></returns>
 public ActionResult ListInfo(String txtPage, String selProjectFilter, String txtNumeroFilter, String txtConceptoFilter, String txtJustificacionFilter)
 {
     String usuario = (String)Session["USER_ID"];
     Paymaster_cdpDTO objDTO = new Paymaster_cdpDTO(selProjectFilter, (txtNumeroFilter.Equals("") ? "0" : txtNumeroFilter), (txtConceptoFilter.Equals("") ? "" : txtConceptoFilter), (txtJustificacionFilter.Equals("") ? "" : txtJustificacionFilter));
     IList<String> info = ContractService.ListInfo(txtPage,objDTO,usuario);
     return Json(new { d = info });
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Actualiza la información del Contract_TypeDocument
 /// </summary>
 public ActionResult SaveInfo(String txtEnterprise, String selProject,String txtValue, String txtConcept, String txtJustification,String txtRecordId,String txtEstado)
 {
     String user = (String)(Session["USER_ID"]);
     Paymaster_cdpDTO objDTO = new Paymaster_cdpDTO(txtEnterprise, selProject, (txtValue.Equals("")?"0":txtValue), (txtConcept.Equals("")?"":txtConcept), (txtJustification.Equals("")?"":txtConcept), (txtRecordId.Equals("") ? "0" : txtRecordId));
     IList<String> info = ContractService.SaveInfo(objDTO, user,txtEstado);
     return Json(new { d = info });
 }
Ejemplo n.º 4
0
 public IList<String> ListInfo(String page, Paymaster_cdpDTO dto,String user)
 {
     String[] data = { "Project", dto.Project, "Value", dto.Value, "Concep", dto.Concept,"Justification",dto.Justification,"User",user,"Page", page };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_managementCDP");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }
Ejemplo n.º 5
0
 public IList<String> SaveInfo(Paymaster_cdpDTO obj, String user,String estado)
 {
     String[] data = { "ENTERPRISE", obj.Enterprise, "PROJECT", obj.Project, "VALUE", obj.Value, "CONCEPT", obj.Concept, "JUSTIFICATION", obj.Justification, "RecordID", obj.RecordID, "User", user, "State",estado };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_Paymaster_cdp");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Ejemplo n.º 6
0
 public IList<String> ListInfo(String page, Paymaster_cdpDTO dto,string user)
 {
     String[] data = { "PROJECT", dto.Project, "STATE", dto.State, "USER", user,"Page", page };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_Paymaster_cdp");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }