duan
2024-08-21 22bd5bc1ce2b49284cc2f042c7f4f48619fcf85b
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;
}