var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); $.ajaxjson = function (url, dataMap, fnSuccess) { $.ajax({ type: "POST", url: url, data: dataMap, dataType: "json", beforeSend: function () { top.$.hLoading.show(); }, complete: function () { top.$.hLoading.hide(); }, success: fnSuccess }); } $.ajaxtext = function (url, dataMap, fnSuccess) { $.ajax({ type: "POST", url: url, data: dataMap, beforeSend: function () { top.$.hLoading.show(); }, complete: function () { top.$.hLoading.hide(); }, success: fnSuccess }); } function autoResize(options) { var defaults = { width: 16, height: 168, gridType: 'jqgrid' }; options = $.extend(defaults, options); // 绗竴娆¤皟鐢? var wsize = getWidthAndHeigh(); if ($.isFunction(options.callback)) { options.callback(wsize); } // 绐楀彛澶у皬鏀瑰彉鐨勬椂鍊? $(window).resize(function () { var size = getWidthAndHeigh(true); switch (options.gridType) { case "datagrid": $(options.dataGrid).datagrid('resize', { width: size.width, height: size.height }); break; case "treegrid": $(options.dataGrid).treegrid('resize', { width: size.width, height: size.height }); break; case "jqgrid": $(options.dataGrid).jqGrid('setGridHeight', size.height).jqGrid('setGridWidth', wsize.width); break; } }); // 鑾峰彇iframe澶у皬 function getWidthAndHeigh(resize) { var windowHeight = 0; var widowWidth = 0; if (typeof (window.innerHeight) == 'number') { windowHeight = window.innerHeight; widowWidth = window.innerWidth; } else { if (document.documentElement && document.documentElement.clientHeight) { windowHeight = document.documentElement.clientHeight; widowWidth = document.documentElement.clientWidth; } else { if (document.body && document.body.clientHeight) { windowHeight = document.body.clientHeight; widowWidth = document.body.clientWidth; } } } widowWidth -= options.width; windowHeight -= options.height; windowHeight -= 15; // windowHeight = 'auto'; return { width: widowWidth, height: windowHeight }; } } function _StringFormatInline() { var txt = this; for (var i = 0; i < arguments.length; i++) { var exp = new RegExp('\\{' + (i) + '\\}', 'gm'); txt = txt.replace(exp, arguments[i]); } return txt; } function _StringFormatStatic() { for (var i = 1; i < arguments.length; i++) { var exp = new RegExp('\\{' + (i - 1) + '\\}', 'gm'); arguments[0] = arguments[0].replace(exp, arguments[i]); } return arguments[0]; } if (!String.prototype.format) { String.prototype.format = _StringFormatInline; } if (!String.format) { String.format = _StringFormatStatic; } //涓昏鏄帹鑽愯繖涓嚱鏁般€傚畠灏唈query绯诲垪鍖栧悗鐨勫€艰浆涓簄ame:value鐨勫舰寮忋€?function convertArray(o) { var v = {}; for (var i in o) { if (o[i].name != '__VIEWSTATE') { //涓篶heckbox 绛夐€夋嫨妗嗚浆涓烘暟瀛楀瀷鏈嶅姟锛屽搴旂殑鏄暟鎹簱 added by jwang 20130426 if (o[i].value == "true") { o[i].value = 1; } else if (o[i].value == "false") { o[i].value = 0; } if (typeof (v[o[i].name]) == 'undefined') v[o[i].name] = o[i].value; else v[o[i].name] += "," + o[i].value; } } return v; } //涓昏鏄帹鑽愯繖涓嚱鏁般€傚畠灏唈query绯诲垪鍖栧悗鐨勫€艰浆涓簄ame:value鐨勫舰寮忋€?function convertQueryArray(o) { var ruleArr = []; for (var i in o) { var v = {}; if (o[i].name != '__VIEWSTATE') { //涓篶heckbox 绛夐€夋嫨妗嗚浆涓烘暟瀛楀瀷鏈嶅姟锛屽搴旂殑鏄暟鎹簱 added by jwang 20130426 if (o[i].value == "true") { o[i].value = 1; } else if (o[i].value == "false") { o[i].value = 0; } if (typeof(v[o[i].name]) == 'undefined') { // v[o[i].name] = o[i].value; v["field"] = o[i].name; v["data"] = o[i].value; v["op"] = $('#' + o[i].name).attr("op"); } else { //v[o[i].name] += "," + o[i].value; v["field"] += "," +o[i].name; v["data"] += "," + o[i].value; v["op"] += "," + $('#' + o[i].name).attr("op"); } if (v["data"].Trim() != '') { ruleArr.push(v); } } } return ruleArr; } /* 闅忔満瀛楃涓? length : 瀛楃涓查暱搴?*/ function randomString(length) { var chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; var size = length || 8; var i = 1; var ret = ""; while (i <= size) { var max = chars.length - 1; var num = Math.floor(Math.random() * max); var temp = chars.substr(num, 1); ret += temp; i++; } return ret; } function MessageOrRedirect(d) { if (d) { if (d.Data == "-99") top.$.hLoading.show({ type: 'hits', msg: d.Message, onAfterHide: function() { top.location.href = "/login.html"; }, timeout: 1000 }); else { top.$.messager.alert('绯荤粺鎻愮ず', d.Message, 'warning'); } } } } /* FILE ARCHIVED ON 04:44:14 Dec 03, 2018 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:03:04 Jul 29, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.636 exclusion.robots: 0.035 exclusion.robots.policy: 0.021 esindex: 0.012 cdx.remote: 1121.083 LoadShardBlock: 180.97 (3) PetaboxLoader3.datanode: 135.833 (5) PetaboxLoader3.resolve: 486.107 (3) load_resource: 503.577 (2) */