Edit D:\rfid\libsystem\js\grideditfun.js
var isSaveFmtDesign=false;var eidtorGridObject=undefined;var eidtorGridIndex=undefined;var toolbar=[{text:"???",iconCls:"e-icon fa fa-plus",handler:function(){addFormatDesignGridRow()}},"-",{text:"???",iconCls:"e-icon fa fa-remove",handler:function(){removeitEidtorGridRow()}},"-",{text:"???",iconCls:"e-icon fa fa-arrow-up",handler:function(){moveUpEidtorGridRow()}},"-",{text:"???",iconCls:"e-icon fa fa-arrow-down",handler:function(){moveDownEidtorGridRow()}}];function moveUpEidtorGridRow(){myGridSortRow("up")}function moveDownEidtorGridRow(){myGridSortRow("down")}function myGridSortRow(c){if(endEidtorGridEditing()){eidtorGridObject.datagrid("acceptChanges")}var d=eidtorGridObject.datagrid("getRows");var a=d.length;var b=eidtorGridObject.datagrid("getSelected");var e=eidtorGridObject.datagrid("getRowIndex",b);if(c=="up"){if(e==0){$.messager.alert("???","?????????!","warning")}else{eidtorGridObject.datagrid("deleteRow",e);e--;eidtorGridObject.datagrid("insertRow",{index:e,row:b});eidtorGridObject.datagrid("selectRow",e)}}else{if(c=="down"){if(e==a-1){$.messager.alert("???","?????????!","warning")}else{eidtorGridObject.datagrid("deleteRow",e);e++;eidtorGridObject.datagrid("insertRow",{index:e,row:b});eidtorGridObject.datagrid("selectRow",e)}}}}function addFormatDesignGridRow(){var a={};appendEidtorGridRow(a)}function onClickEditorRow(a,b){isSaveFmtDesign=true;if(eidtorGridIndex!=a){if(endEidtorGridEditing()){eidtorGridObject.datagrid("selectRow",a).datagrid("beginEdit",a);eidtorGridIndex=a}else{eidtorGridObject.datagrid("selectRow",eidtorGridIndex)}}}function endEidtorGridEditing(){if(eidtorGridIndex==undefined){return true}if(eidtorGridObject.datagrid("validateRow",eidtorGridIndex)){handlerEidtorGrid();eidtorGridObject.datagrid("endEdit",eidtorGridIndex);eidtorGridIndex=undefined;return true}else{return false}}function acceptEidtorGrid(){isSaveFmtDesign=false;if(endEidtorGridEditing()){eidtorGridObject.datagrid("acceptChanges")}}function appendEidtorGridRow(b,a){isSaveFmtDesign=true;if(endEidtorGridEditing()){eidtorGridObject.datagrid("appendRow",b);eidtorGridIndex=eidtorGridObject.datagrid("getRows").length-1;eidtorGridObject.datagrid("selectRow",eidtorGridIndex).datagrid("beginEdit",eidtorGridIndex);if(!a){appendRestulFun()}}}function appendRestulFun(){var a=eidtorGridObject.datagrid("getRows")}function removeitEidtorGridRow(){if(eidtorGridIndex==undefined){return}eidtorGridObject.datagrid("cancelEdit",eidtorGridIndex).datagrid("deleteRow",eidtorGridIndex);eidtorGridIndex=undefined}function rejectEidtorGrid(){if(endEidtorGridEditing()){eidtorGridObject.datagrid("rejectChanges")}}function getEidtorGridChanges(){var a=eidtorGridObject.datagrid("getChanges");console.log(a)}function handlerEidtorGrid(){}function addFormatDesignMessage(){if(isSaveFmtDesign){$.messager.confirm("??????","?????????????????,??????????????????",function(a){if(a){addFormatDesignRecord();isSaveFmtDesign=false}})}else{addFormatDesignRecord()}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de