var pinyinController=function(){};var _pyConvertListData=undefined;pinyinController.prototype.tagdata=function(d,a,k,b,f){if(a&&a!="save"){var e=cataConfigData.position;var j=cataConfigData.pyfld;for(var c=b;c0){e.tone=getValue("page_tone");$.post(a,e,function(f){if(f.status=="0"&&f){c=f.rows}d[b].rows=c;b+=1;pinyinController.prototype.getPy(d,b)},"json")}else{d[b].rows=c;b+=1;pinyinController.prototype.getPy(d,b)}}else{pinyinController.prototype.showPy(d)}};pinyinController.prototype.showPy=function(d){var g="";_pyConvertListData=d;for(var f=0;f1){var c=q+"_"+f+"_"+b;m=h[0];n=""+r[b].ch+"";e+='
';e+="";for(var a=0;a"+h[a]+""}e+="
"}}}k+=m;l+=n}if(e.length>0){g+="";g+=""+q+"";g+="";g+=l;g+="";g+=""+e+"";g+=""}}if(g.length>0){$(".py-body-list").html(g);$("#pyDlg").dialog("open")}else{pinyinController.prototype.savePy()}};pinyinController.prototype.savePy=function(){var b={};var e=_pyConvertListData;_pyConvertListData=undefined;var a=[];for(var f=0;f1){var d=m+"_"+f+"_"+c;var k=$('input:radio[name="'+d+'"]:checked').val()}}}h+=k+" "}var n={};n.field=e[f].field;n.code=e[f].code;n.subval=e[f].subval;n.pyval=h;a.push(n)}bibController.prototype.save(a);$("#pyDlg").dialog("close")};