Edit D:\rfid\libsystem\page\parameter\js\sys_operator.js
var autoSelect=true;var _locationRows;$(function(){initSysOperatorParamEnum();initRdrTypeAndLocationGrid();$("#libcode").combobox({onChange:function(b,a){if(b){authoritygroup(b,autoSelect);reSetLocation(b)}},onClick:function(b,a){autoSelect=false}})});function openWin(a){if(a){$("#resetPassword").linkbutton({disabled:false})}else{$("#resetPassword").linkbutton({disabled:true})}autoSelect=false;cleanJsonData("record");$("#win").window("open")}function resetPassword(){var c=getRowPK();if(!c){return}var d={id:c};var a="resetPassword.do";var b=controller_url+a;$.post(b,d,function(e){openMessageDlg(e.message)},"json")}function initRdrTypeAndLocationGrid(){var b={};b.orderBy=" libcode desc ";$("#showrdrtype").datagrid({url:base_path+"par/readertype/list.do",queryParams:b,onLoadSuccess:function(c){$("#showacqloccode").datagrid({url:base_path+"par/location/list.do",queryParams:b,onLoadSuccess:function(d){},method:"post"})},method:"post"});var a={};a.orderBy=" id asc ";$("#showsysid").datagrid({url:base_path+"par/subsystem/list.do",queryParams:a,onLoadSuccess:function(c){},method:"post"})}function initSysOperatorParamEnum(){var a=base_path+"par/common/getInitData.do";var b={};b.key="sysoperatorparam";b.fmt="entity";$.post(a,b,function(g){var f=g.rows;var d="";var e=0;for(var c=0;c<f.length;c++){if(e++%2==0){d+="<tr>";d+=getRetrunTd(f[c].code,f[c].otherinfo,f[c].name)}else{d+=getRetrunTd(f[c].code,f[c].otherinfo,f[c].name);d+="</tr>";if(e%2==1){d+="</tr>"}}}$(".initSysOperatorParamEnum").html(d);$.parser.parse(".initSysOperatorParamEnum");getEnumByType("mo_ren_di_dian","curlocation");repeatBindClickFun()},"json")}function getEnumByType(d,c){var b="";var a=base_path+"par/common/getInitData.do";var e={key:"location",condition:"libcode",value:vLibcode};$.post(a,e,function(g){var f=g.rows;_locationRows=f;$("#"+d).combobox({data:g.rows,valueField:"code",groupField:"group",textField:"name",panelHeight:"200px",})},"json")}function reSetLocation(c){if(!autoSelect){var b=[];var d=$("#libcode").combobox("getText");for(var a=0;a<_locationRows.length;a++){if(_locationRows[a].group==d){b.push(_locationRows[a])}}$("#mo_ren_di_dian").combobox("loadData",b);autoSelect=true}}function authoritygroup(c,a){if(!a){var b=base_path+"par/library/get.do";var d={pk:c};$.post(b,d,function(f){var g=f.rows[0];var e=JSON.parse(g.paramjson);setValue("authoritygroup",e.authoritygroup)},"json")}}function getRetrunTd(c,b,a){var e="";var d="width:236px;height: 28px;";e+="<td>"+a+"</td>";e+="<td>"+getTextClassByType(c,b,d)+"</td>";return e}function getTextClassByType(c,a,e){var d="";if(a=="easyui-combobox"){d+='<select id="'+c+'" item-type="paramjson" class="easyui-combobox" style="'+e+'" editable="false" data-options="panelHeight:\'auto\',">';d+=" </select>"}else{if(a.indexOf("|")>-1){var b=a.split("|");d='<input id="'+c+'" item-type="paramjson" class="'+b[0]+'" data-options="'+b[1]+'" style="'+e+'">'}else{d='<input id="'+c+'" item-type="paramjson" class="'+a+'" style="'+e+'">'}}return d}function onShowSysidTypeName(a,b){if(a=="0"){return"????????"}return"????????"};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de