Esempio n. 1
0
 /// <summary>
 /// Se busca la información
 /// </summary>
 public ActionResult Approved(String txtRecordId,String txtState,String txtNumero,String txtEnterprise)
 {
     String usuario = (String)Session["USER_ID"];
     CertificateDTO objDTO = new CertificateDTO(txtRecordId, txtState, txtNumero, txtEnterprise);
     IList<String> info = ContractService.Approved(objDTO, usuario);
     return Json(new { d = info });
 }
Esempio n. 2
0
 /// <summary>
 /// Actualiza la información del Area
 /// </summary>
 public ActionResult SaveInfo(String selTypeCertificate, String txtRese, String txtVigencia, String txtNumero, String txtActa, String txtFecha, String txtImputacion, String txtRecurso, String txtValor, String selRequest, String txtEntity, String txtRecordId)
 {
     String usuario = (String)Session["USER_ID"];
     CertificateDTO objDTO = new CertificateDTO(selTypeCertificate, txtRese, txtVigencia, txtNumero, txtActa,  txtFecha, txtImputacion, txtRecurso, txtValor, selRequest, txtEntity, txtRecordId.Equals("") ? "0" : txtRecordId);
     IList<String> info = ContractService.SaveInfo(objDTO, usuario);
     return Json(new { d = info });
 }
 /// <summary>
 /// Actualiza la información del de un cdp sin orden de solicitud
 /// </summary>
 public ActionResult SaveInfo(String txtReview, String txtValidity, String txtNumber, String txtRecord, String txtDate, String txtImputation, String txtResourse, String txtValue, String txtConcept, String txtEnterprise,String txtRecordId2, String txtRecordId)
 {
     String user = (String)Session["USER_ID"];
     CertificateDTO objDTO = new CertificateDTO(txtReview, txtValidity, txtNumber, txtRecord, txtDate, txtImputation, txtResourse, txtValue,txtRecordId, txtConcept, txtEnterprise, txtRecordId2.Equals("") ? "0" : txtRecordId2);
     IList<String> info = ContractService.SaveInfo(objDTO, user);
     return Json(new { d = info });
 }
Esempio n. 4
0
 /*Guarda la informacion de un cdp solicitado desde una solicitud*/
 public ActionResult SaveCDP(String txtVigencia, String txtNumero,  String txtFecha, String txtImputacion, String txtRecurso, String txtValor, String txtRecordId,String txtConcept,String txtDiscountValue, String txtEnterprise, String txtRecordIDCert)
 {
     String usuario = (String)Session["USER_ID"];
     CertificateDTO objDTO = new CertificateDTO(txtVigencia, txtNumero, txtFecha, txtImputacion, txtRecurso, txtValor, txtRecordId,txtConcept,txtDiscountValue, txtEnterprise, txtRecordIDCert.Equals("") ? "0" : txtRecordIDCert);
     IList<String> info = ContractService.SaveCDP(objDTO, usuario);
     return Json(new { d = info });
 }
Esempio n. 5
0
 public ActionResult SaveHasCDP(String txtRecordId, String txtDiscountValue, String txtEnterprise, String txtRecordIDCert)
 {
     String usuario = (String)Session["USER_ID"];
     CertificateDTO objDTO = new CertificateDTO(txtRecordId, txtEnterprise, txtRecordIDCert.Equals("") ? "0" : txtRecordIDCert);
     IList<String> info = ContractService.SaveHasCDP(objDTO,txtDiscountValue, usuario);
     return Json(new { d = info });
 }
Esempio n. 6
0
 public IList<String> ListInfoHasCDP(String page, CertificateDTO obj)
 {
     String[] data = { "Review", obj.Review, "Number", obj.Number, "Record", obj.Record, "Date", obj.Date, "Request", obj.Requets, "Page", page, };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_HasCDP");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }
Esempio n. 7
0
 public IList<String> Approved(CertificateDTO obj, String user)
 {
     String[] data = { "RecordID", obj.RecorID,"Status",obj.Status,"Number",obj.Number,"Enterprise",obj.Entity,"User",user};
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_approved_cdp");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Esempio n. 8
0
 /// <summary>
 /// Lista la información de los CDP que necesita revisar el ordenador de gasto
 /// </summary>
 public ActionResult ListCDP(String txtPage, String txtReseFilter, String txtNumeroFilter, String txtActaFilter, String txtFechaFilter, String selStatusFilter, String selRequestFilter)
 {
     CertificateDTO objDTO = new CertificateDTO(txtReseFilter, txtNumeroFilter, txtActaFilter, txtFechaFilter, selStatusFilter, selRequestFilter);
     IList<String> info = ContractService.ListCDP(txtPage, objDTO);
     return Json(new { d = info });
 }
Esempio n. 9
0
 public ActionResult ListInfoHasCDP(String txtPage, String txtReseFilter, String txtNumeroFilter, String txtActaFilter, String txtFechaFilter, String txtRecordId)
 {
     CertificateDTO objDTO = new CertificateDTO(txtReseFilter, txtNumeroFilter, txtActaFilter, txtFechaFilter, txtRecordId);
     IList<String> info = ContractService.ListInfoHasCDP(txtPage, objDTO);
     return Json(new { d = info });
 }
Esempio n. 10
0
 public IList<String> SaveCDP(CertificateDTO obj, String user)
 {
     String[] data = { "Validity", obj.Validity, "Number", obj.Number, "Date", obj.Date, "Imputation", obj.Imputation, "Resource", obj.Resource, "Value", obj.Value, "Request", obj.Requets, "Concept", obj.Concept, "Discount", obj.Discount, "Entity", obj.Entity, "RecordId", obj.RecorID, "User", user };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_cdp");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Esempio n. 11
0
 public IList<String> SaveHasCDP(CertificateDTO obj,String discountvalue, String user)
 {
     String[] data = { "Request", obj.Requets,"DiscountValue",discountvalue, "Entity", obj.Entity, "RecordId", obj.RecorID, "User", user };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_Hascdp");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }