Edit D:\rfid\libsystem\page\acquisition\js\acq_orderimport.js
var jsonFormatDesign={code:"I_BIBIMPORTDATA"+vBibType,title:"????????????",gridtitle:"???????????????",othertitle:"???????????",perviewtitle:"????????????",width:"800",height:"600",top:80,left:180};var curPerviewIndex=1;var maxPerviewNum=undefined;$(function(){initBibImportDataPageElement();acceptShowData(true);perviewShowData(true);$("#checkhold").on("click",function(a){if($("#checkhold").get(0).checked){acceptShowData(false)}else{acceptShowData(true)}})});function acceptShowData(a){$("#bntFormatDesign").linkbutton({disabled:a});$("#acceptFormatDesignIndex").combobox({disabled:a})}function perviewShowData(a){$("#bntPerviewNextRecord").linkbutton({disabled:a});$("#bntPerviewPrevRecord").linkbutton({disabled:a})}function initBibImportDataPageElement(){setCurImportDataGridHeight(220)}function setCurImportDataGridHeight(b){var a=$(window).height();var c=a-b;$(".import-data-div").css("height",c+"px");$("#tabsGrid").tabs("resize");$(".easyui-panel").panel("resize")}function onPerviewData(c){$("#showPerviewOrgMarcData").html("");$("#showPerviewTagMarcData").html("");if(filelist){var a=getJsonData(null,"record");a.filename=filelist[0];if(c){curPerviewIndex=c}else{curPerviewIndex=1}a.index=curPerviewIndex;var b=base_path+"com/webuploader/perviewMarcData.do";$.post(b,a,function(d){if(d.status=="0"){setDataToPageShowPerview(d)}else{if(d.status=="9003"){maxPerviewNum="max";openMessageDlg(d.message)}else{openMessageDlg(d.message)}}},"json")}else{openMessageDlg("?????????????????")}}function onPerviewNextData(){if(maxPerviewNum){return openMessageDlg("??????????¤????")}if(curPerviewIndex<500){onPerviewData(curPerviewIndex+1)}else{openMessageDlg("????????500??")}}function onPerviewPrevData(){if(curPerviewIndex>1){onPerviewData(curPerviewIndex-1);maxPerviewNum=undefined}else{openMessageDlg("???????????")}}function onAcceptData(a){$(".error-msg-result").html("");if(!a){errorcount=0;handlecount=0;successcount=0;if(getValue("catacode").length==0){return openMessageDlg("????????????????????")}$.messager.progress({title:"??????",msg:"?????????,?????..."})}if(filelist){var c=getJsonData(null,"record");if(a){c=a}else{c.filename=filelist[0];c.page=1;c.rows=500}var b=base_path+"com/webuploader/insertMarcData.do";$.post(b,c,function(d){$.messager.progress("close");if(d.status=="0"){var e=d.rows[0];if(e){errorfile=e.errorfile;errorcount+=e.errorcount;handlecount+=e.handlecount;successcount+=e.successcount;if(e.nextfile){$.messager.progress({title:"??????",msg:"?????"+handlecount+"]?????,???["+successcount+"]??,???["+errorcount+"]??,??????????? ..."});c.errorfile=e.errorfile;c.filename=e.nextfile;onAcceptData(c)}else{$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open")}}}else{openMessageDlg(d.message)}},"json").error(function(){$(".error-msg-result").html("?????????????,???????????!");$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open");$.messager.progress("close")})}}function setDataToPageShowPerview(e){var f=e.rows[0];if(f){$("#importDataGridList").datagrid("loadData",[]);perviewShowData(false);var d=f.orgmarc.split(/[\n\r]/g);var c="<div>"+curPerviewIndex+"</div>";for(var b=0;b<d.length;b++){c+='<div style="word-break: break-all; word-wrap:break-word;width: 100%;white-space:normal;">'+d[b].replace(/[$]([A-Za-z0-9])/g,'<font color="#A60020">$$$1</font>')+"</div>"}$("#showPerviewOrgMarcData").html(c);if(f.tagmarc){var a=f.tagmarc.split(/[\n\r]/g);c="<div>"+curPerviewIndex+"</div>";for(var b=0;b<a.length;b++){c+='<div style="word-break: break-all; word-wrap:break-word;width: 100%;white-space:normal;">'+a[b].replace(/[$]([A-Za-z0-9])/g,'<font color="#A60020">$$$1</font>')+"</div>"}$("#showPerviewTagMarcData").html(c)}$("#importDataGridList").datagrid("loadData",f.hlds)}}function onResetAcceptFormatDesignPage(){$(".acceptTextTip").html("???????????????????");setCurImportDataGridHeight(260);perviewShowData(true);curPerviewIndex=1;maxPerviewNum=undefined;$("#showPerviewOrgMarcData").html("");$("#showPerviewTagMarcData").html("");$("#importDataGridList").datagrid("loadData",[])}function uploadSuccessHandler(a,b){if(b.status==0){filelist=b.rows[0].filelist}else{openMessageDlg(b.message)}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de