Example #1
0
 /// <summary>
 /// Actualiza la informaciĆ³n del Contrato
 /// </summary>
 public ActionResult SaveInfo(String selCity, String txtRecordId2, String selContractClass, String selRange, String selStatus, String selProvider, String txtValue, String txtEntity, String selContractType, String txtRecordId)
 {
     String usuario = (String)Session["USER_ID"];
     ContractDTO objDTO = new ContractDTO(selCity, txtRecordId2, selContractClass, selRange, selStatus, selProvider, txtValue, txtEntity, txtRecordId.Equals("") ? "0" : txtRecordId);
     IList<String> info = ContractService.SaveInfo(objDTO, selContractType, usuario);
     return Json(new { d = info });
 }
Example #2
0
 public IList<String> SaveInfo(ContractDTO obj,String contracttype, String user)
 {
     String[] data = { "City", obj.City, "Request", obj.Request, "ContractClass", obj.ContractClass, "Range", obj.Range, "Status", obj.Status, "provider", obj.Provider, "Value", obj.Value, "ContractType", contracttype, "Entity", obj.Entity, "RecordId", obj.RecorID, "User", user };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_contract");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Example #3
0
 public IList<String> ListInfo(String page,ContractDTO obj)
 {
     String[] data = { "Request", obj.Request, "ContractClass", obj.ContractClass, "Range", obj.Range, "Status", obj.Status, "Provider", obj.Provider, "Page", page, };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_contract");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }
Example #4
0
 public ActionResult SaveInfo_Project_Contract(String selCity, String txtRecordId, String selContractClass, String selRange, String selStatus, String selProvider, String txtValueContract, String selContractType, String txtEnterprise, String txtRecordIDCont)
 {
     String usuario = (String)Session["USER_ID"];
     ContractDTO objDTO = new ContractDTO(selCity, txtRecordId, selContractClass, selRange, selStatus, selProvider, txtValueContract, txtEnterprise, txtRecordIDCont.Equals("") ? "0" : txtRecordIDCont);
     System.Web.HttpContext.Current.Session["solicitud"] = txtRecordId;
     IList<String> info = ContractService.SaveInfo(objDTO,selContractType, usuario);
     return Json(new { d = info });
 }
Example #5
0
 /// <summary>
 /// Lista la informaciĆ³n de los Areaes
 /// </summary>
 public ActionResult ListInfo(String txtPage, String selRequestFilter, String selContractClassFilter, String selRangeFilter, String selStatusFilter, String selProviderFilter)
 {
     ContractDTO objDTO = new ContractDTO(selRequestFilter, selContractClassFilter, selRangeFilter, selStatusFilter, selProviderFilter);
     IList<String> info = ContractService.ListInfo(txtPage, objDTO);
     return Json(new { d = info });
 }