Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Visits = new Array();
- var Procedures = new Array();
- var Statuses = new Array();
- var CoreLabStatuses = new Array();
- $("#LstSelectedVisit option").each(function (index, ele) {
- Visits.push($(this).val());
- });
- $("#LstSelectedProcedure option").each(function (index, ele) {
- Procedures.push($(this).val());
- });
- $("#LstSelectedStatus option").each(function (index, ele) {
- Statuses.push($(this).val());
- });
- $("#LstSelectedCoreLabStatus option").each(function (index, ele) {
- CoreLabStatuses.push($(this).val());
- });
- /* ### Getting selected Visits, Procedures and Status(End) ### */
- //calling server side to blank temp data function
- $.ajax({
- url: '@Url.Action("BlankTempData")',
- type: 'POST',
- //contentType: 'application/json',
- //data: model.serialize(),
- success: function (result) {
- $('#CaseGridContainer').jtable('load', {
- Trial: $('#ddlTrial').val(),
- Received_Date: $('#txtReceivedDate').val(),
- Site_Id: $('#ddlSite').val(),
- Study_Date: $('#txtStudyDate').val(),
- ReceivedDateStart: $('#txtReceivedDateStart').val(),
- ReceivedDateEnd: $('#txtReceivedDateEnd').val(),
- StudyDateStart: $('#txtStudyDateStart').val(),
- StudyDateEnd: $('#txtStudyDateEnd').val(),
- Subject_id: $('#txtSubjectID').val(),
- Job_id: $('#txtJobID').val(),
- MDDX_id: $('#txtMDDXID').val(),
- Patient_Name_tag: $('#txtPatientsNameTAG').val(),
- CoreLab: $('#ddlCoreLab').val(),
- lstVisit: Visits.join(),
- lstProcedure: Procedures.join(),
- lstStatus: Statuses.join(),
- lstCoreLabStatus: CoreLabStatuses.join()
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement