From f71a02229c1ba00fbecaead19256593ffb052753 Mon Sep 17 00:00:00 2001 From: duan <dante@isaints.net> Date: 星期三, 21 八月 2024 17:18:40 +0800 Subject: [PATCH] 1 --- src/DIXWeb.Web/Scripts/Statement/InspectCheckedSelect.js | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/DIXWeb.Web/Scripts/Statement/InspectCheckedSelect.js b/src/DIXWeb.Web/Scripts/Statement/InspectCheckedSelect.js index bdb6b18..2b54ebd 100644 --- a/src/DIXWeb.Web/Scripts/Statement/InspectCheckedSelect.js +++ b/src/DIXWeb.Web/Scripts/Statement/InspectCheckedSelect.js @@ -20,10 +20,23 @@ function initICSCombobox() { var $option = $(''); + var $inspectOrgId = $('#searchICSInspectOrgId'); var $inspectObjectType = $('#searchICSInspectObjectType'); var $inspectType = $('#searchICSInspectType'); + $inspectOrgId.empty(); $inspectObjectType.empty(); $inspectType.empty(); + + var data = ajaxSame('../../GlobalM/Org/GetDropDownListOrg', null, 'post', 'json'); + if (typeof (data) == 'string') data = $.parseJSON(data); + for (var i in data) { + if (data[i].Id == -1) { + $option = $('<option value = "' + data[i].Id + '" selected = "selected">' + data[i].Text + '</option>'); + } else { + $option = $('<option value = "' + data[i].Id + '" >' + data[i].Text + '</option>'); + } + $inspectOrgId.append($option); + } var data = ajaxSame('../../GlobalM/Statement/GetInspectObjectType', null, 'post', 'json'); for (var i in data) { @@ -196,7 +209,8 @@ var timeEnd = $('#searchICStimeEnd').val(); var inspectObjectType = $('#searchICSInspectObjectType').val(); var inspectType = $('#searchICSInspectType').val(); - var param = { TimeBegin: timeBegin, TimeEnd: timeEnd, InspectObjectTypeId: inspectObjectType, InspectTypeId: inspectType } + var OrgId = $('#searchICSInspectOrgId').val(); + var param = { TimeBegin: timeBegin, TimeEnd: timeEnd, InspectObjectTypeId: inspectObjectType, InspectTypeId: inspectType, OrgId: OrgId } return param; } -- Gitblit v1.8.0