Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. $(document).ready(function () {
  2. function ShowData(xMaterial, xDescription, xPGIDate, xAll, xPod, xLot) {
  3. $.ajax({
  4. type: 'POST',
  5. url: "/POD/Index",
  6. data: { Material: xMaterial, Description: xDescription, PGIDate: xPGIDate, All: xAll, cbPod: xPod, cbLot: xLot },
  7. dataType: "html",
  8. success: function (evt) {
  9. $('#PODList').html("");
  10. $('#PODList').html(evt);
  11. },
  12. error: function (err) {
  13. alert(err.statusText);
  14. }
  15. });
  16. }
  17. }
  18.  
  19. [HttpPost]
  20. public PartialViewResult Index(string Material = "", string Description = "", DateTime? PGIDate = null, bool All = true, bool cbPod = false, bool cbLot = false)
  21. {
  22. try
  23. {
  24. List<POD> Model = new List<POD>();
  25.  
  26. //Some code
  27.  
  28. return PartialView("_Index", Model);
  29. }
  30. catch (Exception ex)
  31. {
  32. throw ex;
  33. }
  34.  
  35. }
  36.  
  37. <div id="PODList"></div>
  38.  
  39. <script src="~/Scripts/customScript/POD.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement