Beispiel #1
0
 public ActionResult ListInfoContract(String txtPage, String selContractFilter)
 {
     String usuario = (String)Session["USER_ID"];
     FollowDTO objDTO = new FollowDTO(selContractFilter);
     IList<String> info = ContractService.ListInfoContract(txtPage, objDTO, usuario);
     return Json(new { d = info });
 }
Beispiel #2
0
 /// <summary>
 /// Actualiza la información del Area
 /// </summary>
 public ActionResult SaveInfo(String txtRecordId, String txtUnits, String txtName, String txtEntity, String txtRecordID2, String txtPayment, String txtDate)
 {
     String selApproved = "SI";
     String usuario = (String)Session["USER_ID"];
     FollowDTO objDTO = new FollowDTO(txtRecordId, txtName, selApproved, txtEntity,txtPayment,txtDate, txtRecordID2.Equals("") ? "0" : txtRecordID2);
     IList<String> info = ContractService.SaveInfo(objDTO, usuario, txtUnits);
     return Json(new { d = info });
 }
Beispiel #3
0
 public IList<String> SaveInfo(FollowDTO obj, String user, String units)
 {
     String[] data = { "Contract", obj.Contract, "Name", obj.Name, "Approved", obj.Approved,"Entity", obj.Entity, "RecordId", obj.RecorID, "User", user,"Payment",obj.Payment,"Date",obj.Date,"Units", units };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_follow");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Beispiel #4
0
 public IList<String> Remainder(FollowDTO obj)
 {
     String[] data = { "Contract", obj.Contract };
     _repository.SetData(data);
     _repository.SetProcedure("sp_search_remainder_request");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
Beispiel #5
0
 public IList<String> ListInfoContract(String page, FollowDTO obj, String user)
 {
     String[] data = { "Contract", obj.Contract, "Page", page, "User", user };
     _repository.SetData(data);
     _repository.SetProcedure("sp_list_Follow_Contract");
     _repository.IsPaginator(true);
     return _repository.Execute();
 }
Beispiel #6
0
 /// <summary>
 /// Lista la información de los Areaes
 /// </summary>
 public ActionResult ListInfo(String txtPage, String txtRecordId)
 {
     if (txtRecordId != "")
     {
         String usuario = (String)Session["USER_ID"];
         FollowDTO objDTO = new FollowDTO(txtRecordId);
         IList<String> info = ContractService.ListInfo(txtPage, objDTO, usuario);
         return Json(new { d = info });
     }
     else {
         return Json(new { d = "KO" });
     }
 }
Beispiel #7
0
 public ActionResult Remainder(String txtRecordId)
 {
     FollowDTO objDTO = new FollowDTO(txtRecordId);
     IList<String> info = ContractService.Remainder(objDTO);
     return Json(new { d = info });
 }