| | |
| | | function RoadQuery(Where) { |
| | | var Value = Where; |
| | | if (Value == null) { |
| | | Value = ''; |
| | | Value = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + sessionStorage["OrganizationID"]; |
| | | } else { |
| | | Value = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + sessionStorage["OrganizationID"] + " and ( HNumber like '%" + Where + "%' or HName like '%" + Where + "%' ) " |
| | | } |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetDepartmentList_Json", |
| | | url: GetWEBURL() + "/Web/GetMaterialList_Json", |
| | | async: true, |
| | | data: { "Material": Value }, |
| | | data: { "sWhere": Value }, |
| | | //data: { "Value": Value }, |
| | | success: function (result) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(result)).data; |