Edit D:\rfid\libsystem\js\common.js
var vLibcode=mystorage.get("libcode");var vAccount=mystorage.get("account");var vLibname=mystorage.get("libname");var vUsername=mystorage.get("username");var vCompletecode=mystorage.get("completecode");var vLowerlibcode=mystorage.get("lowerlibcode");var vPageNameFlag;var _fmtGridDataRows;var _fmtLibCodeGridDataRows;var _fmtGridDataAllValues;var _myOperatorData;var _myLocationData;var bindTableMenu;$(function(){_myPage.prototype.onLoadInitByFmtGridDataAllValues()});function getLibName(a){$(".use-lib-name").html(a);$(".account").html("["+vAccount+"]"+vUsername);$(".libname").html(vLibname)}function setGridHeight(){var b=$(window).height();var c=40;var d=b-40;var a=$('[item-type="search"]');if(a.length>0){d=d-40}$(".datagrid-div").css("height",d+"px");$("#datagrid-single").datagrid("resize");$(".easyui-panel").panel("resize")}function getValue(a){var g;if(!a){return}var b=$("#"+a);if(!b){return}var e=b.attr("class");if(!e||e.indexOf("easyui-validatebox")>=0){var f=b.attr("type");if(f=="checkbox"){if(b.prop("checked")){return"1"}else{return"0"}}g=b.val();if(!g){g=b.text()}if(!g){g=b.html()}return g}if(e.indexOf("easyui-textbox")>=0){g=b.textbox("getValue")}else{if(e.indexOf("easyui-datagrid")>=0){if(a=="editBibGrid"){return JSON.stringify(b.datagrid("getData"))}if(e.indexOf("edit-grid-data")>=0){return JSON.stringify(b.datagrid("getRows"))}g="";var j=b.datagrid("getChecked");for(var d=0;d<j.length;d++){if(j[d].code){g+=j[d].code+","}else{if(j[d].id){g+=j[d].id+","}}}}else{if(e.indexOf("easyui-combobox")>=0){g=b.combobox("getValue")}else{if(e.indexOf("easyui-numberbox")>=0){g=b.numberbox("getValue");if(!g){g="0"}}else{if(e!=undefined&&e.indexOf("easyui-datebox")>=0){g=b.datebox("getValue").replace(new RegExp("-","g"),"")}else{if(e.indexOf("easyui-timespinner")>=0){g=b.timespinner("getValue").replace(new RegExp(":","g"),"")}else{if(e.indexOf("my-html")>=0){g=b.html();var c=b[0].attributes["data-type"];var h=b[0].attributes["data-fld"];if(c&&c.value=="date"&&g){g=g.replace(new RegExp("-","g"),"")}if(c&&c.value=="select"&&g){if(h&&h.value&&_fmtGridDataRows&&_fmtGridDataRows.rows&&_fmtGridDataRows.rows[0][h.value]){var j=_fmtGridDataRows.rows[0][h.value];for(var d=0;d<j.length;d++){if(j[d].name==g){g=j[d].code;break}}}}if(g==undefined){g=""}}else{g=b.val();if(g==undefined){g=b.text()}}}}}}}}return g}function setValue(a,l){if(!a){return}var c=$("#"+a);if(!c){return}var j=c.attr("class");if(!j||j.indexOf("easyui-validatebox")>=0){var k=c.attr("type");if(k=="checkbox"){if(l=="1"){c.prop("checked",true)}else{c.prop("checked",false)}}else{c.val(l)}return}if(j.indexOf("easyui-textbox")>=0){c.textbox("setValue",l)}else{if(j.indexOf("easyui-datagrid")>=0){if(a=="editBibGrid"){var n={};try{n.data=JSON.parse(l)}catch(h){n.data=[]}c.datagrid(n);return}if(j.indexOf("edit-grid-data")>=0){var o=[];try{o=JSON.parse(l)}catch(h){o=[]}c.datagrid("loadData",o);return}c.datagrid("uncheckAll");if(!l||l.length<2){return}setTimeout(function(){var s=c.datagrid("getData").rows;try{var r=l.split(",");for(var q=0;q<s.length;q++){for(var p=0;p<r.length;p++){if(s[q].code){if(s[q].code==r[p]){c.datagrid("checkRow",q);r.splice(p,1);break}}else{if(s[q].id){if(s[q].id==r[p]){c.datagrid("checkRow",q);r.splice(p,1);break}}}}}}catch(t){}},10)}else{if(j.indexOf("easyui-combobox")>=0){if(!l){l=""}c.combobox("setValue",l)}else{if(j.indexOf("easyui-numberbox")>=0){c.numberbox("setValue",l)}else{if(j.indexOf("easyui-datebox")>=0){if(l){var b=l.toString();if(b.length==8){b=b.substr(0,4)+"-"+b.substr(4,2)+"-"+b.substr(6,2);c.datebox("setValue",b)}}else{c.datebox("setValue","")}}else{if(j.indexOf("easyui-timespinner")>=0){if(l){var g=l;if(g.length==4){g=g.substr(0,2)+":"+g.substr(2,2);c.timespinner("setValue",g)}}else{c.timespinner("setValue","")}}else{if(j.indexOf("my-html")>=0){var f=c[0].attributes["data-type"];var m=c[0].attributes["data-fld"];if(f&&f.value=="date"){l=fmtStringToDate(l)}if(f&&f.value=="select"){if(m&&m.value&&_fmtGridDataRows&&_fmtGridDataRows.rows&&_fmtGridDataRows.rows[0][m.value]){var o=_fmtGridDataRows.rows[0][m.value];for(var d=0;d<o.length;d++){if(o[d].code==l){l=o[d].name;break}}}}c.html(l)}else{c.val(l)}}}}}}}}function openMessageDlg(b,a){$("#global-message-dlg").dialog("open");$("#closedlgtip").focus();$(".global-message-body").html(b);if(a!=undefined&&a!=null&&a!=""){setTimeout(closeMessageDlg,a)}}function closeMessageDlg(){$("#global-message-dlg").dialog("close")}function onCloseMessageFun(){}var funOk=null;var funCancle=null;function openConfirmDlg(d,a,e,c,b){$("#global-confirm-dlg").dialog("open");$(".global-confirm-body").html(d);funOk=e;funCancle=c;if(a!=undefined&&a!=null&&a!=""){setTimeout(closeConfirmDlg,a)}bindOpenConfirmEvent(b)}function bindOpenConfirmEvent(a){}function closeConfirmDlg(){$("#global-confirm-dlg").dialog("close")}function confirmOk(){closeConfirmDlg();funOk()}function confirmCancle(){closeConfirmDlg();if(funCancle){funCancle()}}function ikownDlg(){$("#global-message-dlg").dialog("close")}function onShowDataValidator(b,c,a){if(b!=undefined){return b.replace(/[$]([A-Za-z0-9])/g,'<font color="#A60020">$$$1</font>')}return b}function focusItem(b){var a=$('[item-type="record"]');itemArrLength=a.length;a.each(function(c,d){var e=d.className;if(e!=undefined&&e.indexOf("easyui-textbox")>-1){$("#"+d.id).textbox("textbox").keydown(function(f){if(f.keyCode==13){a.each(function(g,h){if(c==g-1){$("#"+h.id).textbox("textbox").focus();return false}else{if(itemArrLength-1==c){b()}}})}})}})}function enterEvent(b,a){if(null!=a&&undefined!=a){var c=$("#"+b);if(c[0]&&c[0].className){var d=c[0].className;if(d!=undefined&&d.indexOf("easyui-textbox")>-1){c.textbox("textbox").keydown(function(f){if(f.keyCode==13){a()}})}else{if(d.indexOf("easyui-numberbox")>=0){c.numberbox().next("span").find("input").keydown(function(f){if(f.keyCode==13){a()}})}}}}}function common_init_param(e,d){if(d.element.className.indexOf("easyui-combobox")>=0){if(d.flagArr&&!d.initnum){for(var b=0;b<d.flagArr.length;b++){var c=$("#"+d.flagArr[b]+d.elementId);if(c.length>0){var a="auto";if(e.length>10){a="200px"}c.combobox({data:e,valueField:"code",textField:"name",groupField:"group",panelHeight:a,loadFilter:function(f){if(d.nolimit){var h="???";if(d.nolimit.value.length>0){h=d.nolimit.value}var g={};g.code="";g.name=h;f.splice(0,0,g)}return f},onLoadSuccess:function(){if(d.initselect){var h=$(this).combobox("getData");if(h.length>0){if(!d.initselect.value){var g=!h[0].code?h[0].text:h[0].code;$(this).combobox("select",g)}else{$(this).combobox("select",d.initselect.value)}}}else{if(d.elementId=="sysid"){var h=$(this).combobox("getData");if(h.length==1){var f={};f.key="template";f.condition="sysid";f.value=h[0].code;initPageDataSingleElement("page_template",f)}}}}})}}}else{$("#"+d.elementId).combobox({data:e,valueField:"code",textField:"name",groupField:"group",loadFilter:function(f){if(d.nolimit){var h="???";if(d.nolimit.value.length>0){h=d.nolimit.value}var g={};g.code="";g.name=h;f.splice(0,0,g)}return f},onLoadSuccess:function(){if(d.initselect){var f=$(this).combobox("getData");if(f.length>0){$(this).combobox("select",d.initselect.value)}}}})}}else{$("#"+d.elementId).datagrid({data:e,fitColumns:true,fit:true,columns:[[{field:"ck",checkbox:true,width:20},{field:"code",align:"center",width:80,title:"???"},{field:"name",align:"center",width:100,title:"???"}]]})}}function commonSetParaInit(b,h,g,d){var f=null;var a=null;if(b){a=b.split(",")}if(g){selector=$('[init-type="init-data"]')}else{selector=$('[item-type="'+h+'"]')}var c={};var e=[];selector.each(function(r,n){if(n.className.indexOf("easyui-combobox")<0&&n.className.indexOf("easyui-datagrid")<0){return true}var p=n.id;var v=n.attributes["init-num"];var w=n.attributes["no-limit"];var t=n.attributes["init-select"];var s=p;if(b&&!v){for(var o=0;o<a.length;o++){p=p.replace(a[o],"")}}var l={};l.key=p;var u=n.attributes["param-condtion"];if(u){l.condition=u.value}var x=n.attributes["param-value"];if(x){l.value=x.value}if(d){for(var m=0;m<d.length;m++){if(p==d[m].code||p==d[m].key){l=d[m];break}}}var j=n.attributes["item-no-init"];if(!j){var q={};q.element=n;q.flagArr=a;q.elementId=p.replace(".","\\.");q.nolimit=w;q.initselect=t;q.initnum=v;c[p]=q;e.push(l)}});get_init_datas(e,c,common_init_param)}function initPageDataSingleElement(d,e,c){var b=$("#"+d)[0];if(!b){return true}if(b.className.indexOf("easyui-combobox")<0&&b.className.indexOf("easyui-datagrid")<0){return true}var a=base_path+"par/common/getInitData.do";$.post(a,e,function(g){var f="auto";if(g.rows.length>10){f="200px"}if(b.className.indexOf("easyui-combobox")>-1){$("#"+d).combobox({data:g.rows,valueField:"code",textField:"name",groupField:"group",panelHeight:f,onLoadSuccess:function(){var h=$(this).combobox("getData");if(h.length>0){$(this).combobox("select",h[0].code)}if(c){c()}}})}else{$("#"+d).datagrid({data:g,fitColumns:true,fit:true,columns:[[{field:"ck",checkbox:true,width:20},{field:"code",align:"center",width:80,title:"???"},{field:"name",align:"center",width:100,title:"???"}]]})}},"json")}function initNextSelectCombobox(b,a){$("#"+b).combobox({onSelect:function(f){if(f!=null){for(var c=0;c<a.length;c++){var e={};var d=a[c].id;e.key=a[c].key;e.condition=a[c].condition;e.value=f.code;initPageDataSingleElement(d,e)}}}})}function savePageConfig(){var a=getJsonData("page_","record");if(!a){openMessageDlg("??????");return}var b=base_path+"lib/pageconfig/save.do";$.post(b,a,function(c){if(c.status=="0"){openMessageDlg(c.message);$("#pageconfig_setpara_dlg").dialog("close");savePageConfigCallBack()}else{openMessageDlg(c.message)}},"json")}function callSetParaResult(c){if(c.status=="0"){var b=c.rows[0];var a=JSON.parse(b.paramjson);setJsonData("page_",a)}}function savePageConfigCallBack(){getPageConfig("page_type",callSetParaResult)}function getPageConfig(b,e,c){var d={};d.pk=getValue(b);if(c){d.pk=c}var a=base_path+"lib/pageconfig/get.do";$.post(a,d,function(f){e(f)},"json")}var json_data_type="record,paramjson,indexfield,showfield,showrecord,checkper_record,orderbib_record,checkbib_record,checkdetail_record,bindper_record,formatdesign_record,hold_record,batch_,binddlg_,";function cleanJsonData(b){if(json_data_type.indexOf(b+",")<0){return null}var a=$('[item-type="'+b+'"]');a.each(function(d,f){var h=f.id;if(!h){return true}if(f.attributes["spe-field"]){try{cleanSpeFields(h);return true}catch(g){}}if(!f.attributes["keep-value"]){var c="";if(f.attributes["def-value"]){c=f.attributes["def-value"].value}setValue(h,c)}cleanJsonData(h)})}function setJsonData(a,b){$.each(b,function(f,h){if(json_data_type.indexOf(f+",")>=0){try{var d=JSON.parse(h);setJsonData(a,d)}catch(g){}}var c=$("#"+f);if(c.attr("spe-field")){try{setSpeFields(h,f);return true}catch(i){}}if(a!=undefined&&a.length>0&&a!=null){f=a+f}setValue(f,h)})}function setJsonDataByJs(f,i){for(var g in i){var a=g;var h=i[g];if(json_data_type.indexOf(a+",")>=0){try{var j=JSON.parse(h);setJsonData(f,j)}catch(c){}}var b=$("#"+a);if(b.attr("spe-field")){try{setSpeFields(h,a);return true}catch(d){}}if(f!=undefined&&f.length>0&&f!=null){a=f+a}setValue(a,h)}}function getJsonData(b,d){if(json_data_type.indexOf(d+",")<0){return null}if(b!=undefined&&b.length>0&&b!=null){d=b+d}var c={};var a=$('[item-type="'+d+'"]');a.each(function(f,h){var l=h.id;if(h.attributes["spe-field"]){try{c[h.id]=getSpeFields(l);return true}catch(k){}}if(!l){return true}var j=getValue(l);var g=h.id;if(b!=undefined&&b.length>0&&b!=null){g=g.replace(b,"")}var i=getJsonData(b,g);if(i!=null){j=JSON.stringify(i)}if(j==undefined||j==null){return true}c[g]=j});return c}function getCurDateYMD(){var a=new Date();var d=a.getFullYear();var e=a.getMonth()+1;var c=a.getDate();if(e>=1&&e<=9){e="0"+e}if(c>=0&&c<=9){c="0"+c}var b=d+""+e+""+c;return b}function getAddYMD(i,a,h){var b=new Date();if(i){b.setMonth(b.getFullYear()+i)}if(a){b.setMonth(b.getMonth()+a)}if(h){b.setMonth(b.getDate()+h)}var f=b.getFullYear();var g=b.getMonth()+1;var e=b.getDate();if(g>=1&&g<=9){g="0"+g}if(e>=0&&e<=9){e="0"+e}var c=f+""+g+""+e;return c}function showCurTime(){var d=new Date();var f=d.getFullYear();var g=d.getMonth()+1;var c=d.getDate();var a=d.getHours();var e=d.getMinutes();var h=d.getSeconds();var b=f+"??"+formatDigital(g)+"??"+formatDigital(c)+"?? "+formatDigital(a)+":"+formatDigital(e)+":"+formatDigital(h)+"";return b}function addDate(f,h){if(h==undefined||h==""){h=1}var c=new Date(f);c.setDate(c.getDate()+h);var e=c.getMonth()+1;var b=c.getDate();var g="'"+e+"'";var a="'"+b+"'";if(g.length==3){e="0"+e}if(a.length==3){b="0"+b}var d=c.getFullYear()+""+e+""+b;return d}function addOne(b){if(!b){return}var d=b.split(/[^0-9]/);var e=d[d.length-1];if(e!=null&&e.length>0){var f=e.length;var a=parseInt(e)+1;var c=a.toString();f=Math.min(f,c.length);return b.substring(0,b.length-f)+c}else{return null}}function getDataDirect(a,c){var d=a.split(/[$]([A-Za-z0-9])/g);for(var b=0;b<=d.length;b++){if(c==d[b]){return d[b+1]}}return""}function clearGridData(d){if(d.indexOf(",")>-1){var a=d.split(",");for(var c=0;c<a.length;c++){if($("#"+a[c]).length>0){var b=$("#"+a[c]).datagrid("getRows");if(b.length>0){$("#"+a[c]).datagrid("loadData",[])}}}}else{var b=$("#"+d).datagrid("getRows");if(b.length>0){$("#"+d).datagrid("loadData",[])}}}function deleteGridData(d){if(d.indexOf(",")>-1){var a=d.split(",");for(var c=0;c<a.length;c++){if($("#"+a[c]).length>0){var b=$("#"+a[c]).datagrid("getRows");if(b.length>0){for(var c=0;c<b.length;c++){$("#"+a[c]).datagrid("deleteRow",c)}}}}}else{var b=$("#"+d).datagrid("getRows");for(var c=b.length-1;c>=0;c--){$("#"+d).datagrid("deleteRow",c)}}}function onShowFmtDate(a,b){if(!a){return a}return fmtStringToDate(a)}function fmtStringToDate(a){if(!a){return a}a=a.toString();if(a!=undefined&&a.length==8){return a.substr(0,4)+"-"+a.substr(4,2)+"-"+a.substr(6,2)}return a}function onShowFmtTime(a,b){if(!a){return a}return fmtStringToTime(a)}function fmtStringToTime(a){a=a.toString();if(a.length==5){a="0"+a}if(a!=undefined&&a.length==6){return a.substr(0,2)+":"+a.substr(2,2)+":"+a.substr(4,2)}return a}function onShowDateStamp(b,c){if(b){var a=new Date();a.setTime(b);return a.getFullYear()+"-"+formatDigital((a.getMonth()+1))+"-"+formatDigital(a.getDate())+" "+formatDigital(a.getHours())+":"+formatDigital(a.getMinutes())+":"+formatDigital(a.getSeconds())}return b}function formatDigital(a){if(a<10){return"0"+a}return a}function AutoResizeImage(c,b,a){$(".rdr-image img").jqthumb({width:c,height:b})}function get_init_datas(d,a,e){var b=base_path+"par/common/getInitDatas.do";var c={};c.params=JSON.stringify(d);$.post(b,c,function(f){if(f.status=="0"){d.forEach(function(g,h,k){if(f.rows[0][g.key]){var j=a[g.key];if(!j&&g.code){j=a[g.code]}if(!j){return true}e(f.rows[0][g.key],j)}});if(getValue("page_type")){getPageConfig("page_type",callSetParaResult)}}},"json")}function getJsonDataByTypeHandler(){var d={};var a=$('[item-type="export_record"]');var f=0;a.each(function(o,n){var e=n.id;var p=$(this).attr("class");var l=n.attributes["link-combobox"];var j=n.attributes["handler-type"];var q=n.attributes["table-type"];if(j){if(getValue(e).length>0){if(p.indexOf("easyui-numberbox")>=0&&getValue(e)==0){}else{if(l){d["limit["+f+"].condition"]=getValue(l.value)}else{if(q){d["limit["+f+"].condition"]=q.value+"."+e.replace("export_beg_","").replace("export_end_","").replace("export_","")}else{d["limit["+f+"].condition"]=e.replace("export_beg_","").replace("export_end_","").replace("export_","")}}d["limit["+f+"].typeHandler"]=j.value;d["limit["+f+"].value"]=getValue(e);f++}}}var q=n.attributes["param-verify"];if(q){if(getValue(e).length==0){d["limit["+f+"].condition"]=e;d["limit["+f+"].typeHandler"]=j.value;var r=$("#"+e).datagrid("getRows");var k="";for(var m=0;m<r.length;m++){k+=r[m].code+","}d["limit["+f+"].value"]=k;f++}}});try{if(jsonFormatDesign.tableArr){var b=jsonFormatDesign.tableArr;var h=mystorage.get("lowerlibcode");for(var c=0;c<b.length;c++){d["limit["+f+"].condition"]=b[c].name+".libcode";d["limit["+f+"].typeHandler"]="3";d["limit["+f+"].value"]=h;f++}}}catch(g){}return d}function openPostWindow(b,c){var d=document.createElement("form");d.id="conditionForm";d.method="post";d.action=b;d.target="_blank";var a=document.createElement("input");a.type="hidden";a.name="jsondata";a.value=JSON.stringify(c);d.appendChild(a);document.body.appendChild(d);$("#conditionForm").trigger("sumbit");d.submit();document.body.removeChild(d)}function openPostWindowDownLoad(a,c){var d=document.createElement("form");d.id="conditionForm";d.method="post";d.action=a;d.target="_blank";var e=document.createElement("input");e.type="hidden";e.name="keycode";e.value=c.keycode;d.appendChild(e);for(var b=0;b<30;b++){if(c["limit["+b+"].condition"]){e=document.createElement("input");e.type="hidden";e.name="limit["+b+"].typeHandler";e.value=c["limit["+b+"].typeHandler"];d.appendChild(e);e=document.createElement("input");e.type="hidden";e.name="limit["+b+"].value";e.value=c["limit["+b+"].value"];d.appendChild(e);e=document.createElement("input");e.type="hidden";e.name="limit["+b+"].condition";e.value=c["limit["+b+"].condition"];d.appendChild(e)}}document.body.appendChild(d);$("#conditionForm").trigger("sumbit");d.submit();document.body.removeChild(d)}function mergeJsonObject(c,b){var d={};for(var a in c){d[a]=c[a]}for(var a in b){d[a]=b[a]}return d}function onHnadlerSvaeBntScreen(b,a){if(b){$("#"+b).linkbutton({disabled:a})}if(a){$.messager.progress({title:"??????",msg:"?????????,?????..."})}else{$.messager.progress("close")}}function isUpdateByLibcode(b){if(!b){return false}var a=mystorage.get("lowerlibcode")+",";if(a.indexOf(b+",")>-1){return true}return false}function getSqlConditionInByLibcode(){var a=mystorage.get("lowerlibcode");return getSqlConditionLimitIn(a)}function getSqlConditionLimitIn(d){var b="";var a=d.split(",");for(var c=0;c<a.length;c++){if(a[c]){b+="'"+a[c]+"',"}}b=b.substr(0,b.length-1);return b}function rowStylerIsUpdateByLibcode(a,b){if(!isUpdateByLibcode(b.libcode)){return"background-color:#aaa;"}}function createColumnMenu(b){bindTableMenu=$("<div/>").appendTo("body");bindTableMenu.menu({onClick:function(f){if(f.iconCls=="fa fa-check"){b.datagrid("hideColumn",f.name);bindTableMenu.menu("setIcon",{target:f.target,iconCls:"icon-empty"})}else{b.datagrid("showColumn",f.name);bindTableMenu.menu("setIcon",{target:f.target,iconCls:"fa fa-check"})}}});var a=b.datagrid("getColumnFields");for(var d=0;d<a.length;d++){var e=a[d];var c=b.datagrid("getColumnOption",e);bindTableMenu.menu("appendItem",{text:c.title,name:e,iconCls:"fa fa-check"})}}function getReaderFld(){var b={key:"rdrfld0",condition:"parentid",value:"0"};var a=base_path+"par/common/getInitData.do";$.post(a,b,function(e){var d=e.rows;for(var c=0;c<d.length;c++){if("1"==d[c].code){mystorage.set("rdr_fld1",d[c].name)}else{if("2"==d[c].code){mystorage.set("rdr_fld2",d[c].name)}else{if("3"==d[c].code){mystorage.set("rdr_fld3",d[c].name)}else{if("4"==d[c].code){mystorage.set("rdr_fld4",d[c].name)}}}}}getReaderFldResult()},"json")}function getReaderFldResult(){}function getNumPrice(d){var c=0;if(d){var b=/(\d{1,3})+(?:\.\d+)?/g;var a=d.match(b);if(a[0]){c=a[0]}}return c}function getCheckName(a){if(a=="1"){return"??"}return"??"}function openDataCenter(){var a={type:"sysconfig"};var b=base_path+"lib/config/page.do";$.post(b,a,function(d){if(d.status=="0"){var c=JSON.parse(d.rows[0].paramjson);openDataCenterResult(c[0])}else{openMessageDlg(d.message)}},"json")}function openDataCenterResult(d){var e="shrfid";var g="111";var c="http://192.168.0.198:8080";if(d){c=d}var b=c;var a="username="+encryptByDES(e,"20182018")+"&password="+encryptByDES(g,"20182018");var d=base_path+"sys/common/centerdata.do";var f={};f.username=encryptByDES(e,"20182018");f.password=encryptByDES(g,"20182018");f.url=c+"/au/up";$.post(d,f,function(j){var h=JSON.parse(j);var k=parseURL(h.intranetip);if(h.result){var i=(h.token).toString();if(c.substring(7,10)==k.host.substring(0,3)||c.substring(7,10)=="loc"||c.substring(7,10)=="127"){c=h.intranetip}else{c=h.internetip}window.localStorage.backServerUrl=c;window.localStorage.userManageUrl=h.usermanageip+"admin/";window.localStorage.et="Bearer "+i;window.location.href=b}else{alert("??????! "+h.error)}},"json")}function parseURL(c){var b=document.createElement("a");b.href=c;return{source:c,protocol:b.protocol.replace(":",""),host:b.hostname,port:b.port,query:b.search,params:(function(){var e={},d=b.search.replace(/^\?/,"").split("&"),a=d.length,f=0,g;for(;f<a;f++){if(!d[f]){continue}g=d[f].split("=");e[g[0]]=g[1]}return e})(),file:(b.pathname.match(/\/([^\/?#]+)$/i)||[,""])[1],hash:b.hash.replace("#",""),path:b.pathname.replace(/^([^\/])/,"/$1"),relative:(b.href.match(/tps?:\/\/[^\/]+(.+)/)||[,""])[1],segments:b.pathname.replace(/^\//,"").split("/")}}function formatNumber(c){var b="";c=c.toString();if(c.indexOf(".")!=-1){b="."+c.split(".")[1];c=parseInt(c.split(".")[0])}var d=c.toString().split("");var a=-3;while(d.length+a>0){d.splice(a,0,",");a-=4}return d.join("")+b};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de