Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. var Visits = new Array();
  2. var Procedures = new Array();
  3. var Statuses = new Array();
  4. var CoreLabStatuses = new Array();
  5.  
  6. $("#LstSelectedVisit option").each(function (index, ele) {
  7. Visits.push($(this).val());
  8. });
  9.  
  10. $("#LstSelectedProcedure option").each(function (index, ele) {
  11. Procedures.push($(this).val());
  12. });
  13.  
  14. $("#LstSelectedStatus option").each(function (index, ele) {
  15. Statuses.push($(this).val());
  16. });
  17.  
  18. $("#LstSelectedCoreLabStatus option").each(function (index, ele) {
  19. CoreLabStatuses.push($(this).val());
  20. });
  21. /* ### Getting selected Visits, Procedures and Status(End) ### */
  22. //calling server side to blank temp data function
  23.  
  24. $.ajax({
  25. url: '@Url.Action("BlankTempData")',
  26. type: 'POST',
  27. //contentType: 'application/json',
  28. //data: model.serialize(),
  29. success: function (result) {
  30. $('#CaseGridContainer').jtable('load', {
  31. Trial: $('#ddlTrial').val(),
  32. Received_Date: $('#txtReceivedDate').val(),
  33. Site_Id: $('#ddlSite').val(),
  34. Study_Date: $('#txtStudyDate').val(),
  35. ReceivedDateStart: $('#txtReceivedDateStart').val(),
  36. ReceivedDateEnd: $('#txtReceivedDateEnd').val(),
  37. StudyDateStart: $('#txtStudyDateStart').val(),
  38. StudyDateEnd: $('#txtStudyDateEnd').val(),
  39. Subject_id: $('#txtSubjectID').val(),
  40. Job_id: $('#txtJobID').val(),
  41. MDDX_id: $('#txtMDDXID').val(),
  42. Patient_Name_tag: $('#txtPatientsNameTAG').val(),
  43. CoreLab: $('#ddlCoreLab').val(),
  44. lstVisit: Visits.join(),
  45. lstProcedure: Procedures.join(),
  46. lstStatus: Statuses.join(),
  47. lstCoreLabStatus: CoreLabStatuses.join()
  48. });
  49. }
  50. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement