| | |
| | | |
| | | 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) { |
| | |
| | | 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; |
| | | } |
| | | |