var jsonFormatDesign={code:"I_CIRIMPORTDATA",title:"流通数据接收格式设计",gridtitle:"设置要接收的字段",othertitle:"缺省值填值提示",perviewtitle:"读者接收数据预览列表",width:"800",height:"600",top:80,left:180};var jsonGridColumns=[];var cirfilename;$(function(){setCurImportDataGridHeight(80)});function setCurImportDataGridHeight(a){}function onAcceptData(){$(".error-msg-result").html("");var a=base_path+"com/webuploader/insertCirData.do";var b={};$.messager.progress({title:"接收流通数据",msg:"正在处理数据,请稍等..."});if(cirfilename){b.filename=cirfilename;$.post(a,b,function(c){$.messager.progress("close");if(c.status=="0"){var d=c.rows[0];if(d){errorfile=d.errorfile;$(".handlecount").html("已处理["+d.handlecount+"]条数据");$(".successcount").html("成功["+d.successcount+"]条");$(".errorcount").html("失败["+d.errorcount+"]条");if(errorcount>0){$("#checkerrorfile").show()}else{$("#checkerrorfile").hide()}$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open")}}else{openMessageDlg(c.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 onResetAcceptFormatDesignPage(){$(".acceptTextTip").html("请选择接收流通借还数据,只能接收txt文本")}function uploadSuccessHandler(a,b){if(b.status==0){cirfilename=b.rows[0]}else{openMessageDlg(b.message)}};