Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\iframe\js\iframe_checkRepeatBibCombinFrame.js
var _initdata;var _configData;$(function(){enterEvent("checkrepeatbibkey",checkRepeatBibCondtion);getMyStorageItemData(_type);initJson=[{code:"sysid",key:"sysid",condition:"type",value:_type},{code:"libcode",key:"libcode",condition:"code",value:vLibcode},];initJson.forEach(function(b,c,d){if(_initdata.rows[0][b.key]){_myPage.prototype.setData(_initdata.rows[0][b.key],b)}});$("#checkrepeatDataGridList").datagrid({onSelect:onSelectCheckRepeatDataGridList});$("#checkrepeatEditGrid").datagrid({onSelect:onSelectCheckRepeatEditGridByOnSelect});$(".easyui-panel").panel("resize");$(".easyui-tabs").tabs("resize");_callno=mystorage.get("check_repeat_callno");initCheckRepeatBibindexCommbox();setValue("libcode",vLibcode);if(_configData){var a=JSON.parse(_configData.rows[0].paramjson);setValue("sysid",a.sysid)}$("#checkrepeatbibindex").combobox({onChange:function(c,b){if(c=="ID"||c=="CTRLNO"||c=="CALLNO"||c=="BARCODE"){setValue("searchtype","0")}else{if(c=="TITLE"||c=="AUTHOR"||c=="SUBJECT"){setValue("searchtype","12")}else{setValue("searchtype","1")}}}});if(parseInt(_id)>0){checkRepeatBibCondtion(_id,_type,_callno)}});function initCheckRepeatBibindexCommbox(){var b={key:"bibindex"};var a=base_path+"par/common/getInitData.do";$.post(a,b,function(c){$("#checkrepeatbibindex").combobox({data:c.rows,valueField:"code",textField:"name",loadFilter:function(d){var e={};e={};e.code="CALLNO";e.name="?????";d.splice(0,0,e);e={};e.code="BARCODE";e.name="?????";d.splice(0,0,e);return d},onLoadSuccess:function(){if(_callno&&_callno!="null"){$(this).combobox("select","CALLNO")}else{$(this).combobox("select","ISBN")}}})},"json")}function colseParentDlg(){parent.colseIframeDlg("checkRepeatBibCombin_dlg",null,null)}function onOpenCheckRepeatBibDlg(){$("#checkrepeatbibkey").textbox("textbox").focus()}function onSelectCheckRepeatEditGridByOnSelect(b,f){var e=[{field:"010",code:"a",index:"ISBN"},{field:"001",index:"CTRLNO"},{field:"200",code:"a",index:"TITLE"},{field:"225",code:"a",index:"SERIESNAME"},{field:"701",code:"a",index:"AUTHOR"},{field:"702",code:"a",index:"AUTHOR"},{field:"690",code:"a",index:"CLASSNO"},{field:"606",code:"a",index:"SUBJECT"},{field:"690",code:"f",index:"CALLNO"}];var a=f.data;if(a.length>0){for(var d=0;d<e.length;d++){if(f.field==e[d].field){var g=e[d].index;var c=a;if(e[d].code){c=getDataDirect(a,e[d].code)}setValue("checkrepeatbibindex",e[d].index);setValue("checkrepeatbibkey",c);break}}}}function onSelectCheckRepeatDataGridList(a,b){if(b.id){showDataGridDetailById(b.id,"checkrepeatEditGrid");holdRepeatDataGridListByBibId(b.id);orderRepeatDataGridListByBibId(b.id);$("#checkrepeatDataGridList").datagrid("unselectRow",a)}}function showDataGridDetailById(a,c){var b=base_path+"lib/biblios/getMarcRecordForEdit.do";var d={};d.id=a;$.post(b,d,function(f){if(f.status=="0"){var e=f.rows;$("#"+c+"").datagrid("loadData",e)}else{openMessageDlg(f.message)}},"json")}function orderRepeatDataGridListByBibId(a){if(a>0){var b=base_path+"acq/order/page.do";var c={};c.bibid=a;c.rows=10;c.page=1;$("#orderRepeatDataGridList").datagrid({url:b,queryParams:c,onLoadSuccess:function(e){var f="??????"+addStyleHtml(e.total);var d=$("#tabsGrid").tabs("getTab",1);$("#tabsGrid").tabs("update",{tab:d,options:{title:f}})},method:"post"})}else{deleteGridData("orderRepeatDataGridList")}}function holdRepeatDataGridListByBibId(a){if(a>0){var b=base_path+"hld/holding/page.do";var c={};c.bibid=a;c.rows=10;c.page=1;$("#holdRepeatDataGridList").datagrid({url:b,queryParams:c,onLoadSuccess:function(e){var f="??????"+addStyleHtml(e.total);var d=$("#tabsGrid").tabs("getTab",2);$("#tabsGrid").tabs("update",{tab:d,options:{title:f}})},method:"post"})}else{deleteGridData("holdRepeatDataGridList")}}function checkRepeatBibCondtion(c,j,d,e){$("#checkrepeatEditGrid").datagrid("loadData",[]);$("#checkrepeatDataGridList").datagrid("loadData",[]);$("#holdRepeatDataGridList").datagrid("loadData",[]);$("#orderRepeatDataGridList").datagrid("loadData",[]);if(e){setValue("checkrepeatbibindex",e);setValue("checkrepeatbibkey",d)}getMyStorageItemData(_type);if(_configData){var k=JSON.parse(_configData.rows[0].paramjson);if(k.editmodel=="simple"){$("#checkrepeatEditGrid").datagrid("hideColumn","indicator")}else{if(k.editmodel=="marc"){$("#checkrepeatEditGrid").datagrid("showColumn","indicator")}}}var b=base_path+"lib/biblios/page.do";var f={};var i=0;if(c>0){_id=c;f.condition="ID";f.value=c;if(d&&d!="null"){setValue("checkrepeatbibindex","CALLNO");setValue("checkrepeatbibkey",d);f.condition=getValue("checkrepeatbibindex");f.value=getValue("checkrepeatbibkey");f.typeHandler=getValue("searchtype")}}else{if(d=="null"){return}if(getValue("checkrepeatbibkey").length==0){return openMessageDlg("????????????")}clearGridData("checkrepeatEditGrid,checkrepeatDataGridList");f.rows=10000;f.page=1;f.condition=getValue("checkrepeatbibindex");f.value=getValue("checkrepeatbibkey");f.typeHandler=getValue("searchtype")}var g=getValue("libcode");var a=getValue("libtype");if(g&&a=="hld"){f["limit["+i+"].condition"]="HLD.libcode";f["limit["+i+"].typeHandler"]="0";f["limit["+i+"].value"]=g;i++}else{if(g&&a=="bib"){f["limit["+i+"].condition"]="lib_bibliography.libcode";f["limit["+i+"].typeHandler"]="0";f["limit["+i+"].value"]=g;i++}}var h=getValue("sysid");if(h){f["limit["+i+"].condition"]="lib_bibliography.sysid";f["limit["+i+"].typeHandler"]="0";f["limit["+i+"].value"]=h;i++}if(getValue("sortfld").length>0){f.orderBy=" "+getValue("sortfld")+" "+getValue("sorttype");if(getValue("sortfld")=="callno"){f.orderBy=" F_CALLNO("+getValue("sortfld")+") "+getValue("sorttype")}}$("#checkrepeatDataGridList").datagrid("clearChecked");$("#checkrepeatDataGridList").datagrid({url:b,queryParams:f,onLoadSuccess:function(l){$("#checkrepeatDataGridList").datagrid("selectRow",0);$(".easyui-tabs").tabs("resize");if(l.total>0){updataGridCallnoFlag(l,"checkrepeatDataGridList")}},method:"post"})}function getMyStorageItemData(a){_configData=mystorage.get("per_config");_initdata=mystorage.get("per_init_data");if(a!="1"){_configData=mystorage.get("cat_config");_initdata=mystorage.get("cat_init_data")}}function dataCombin(){var a=$("#checkrepeatDataGridList").datagrid("getChecked");if(a.length>0&&_id>0){$.messager.confirm("??????","????????????"+a.length+"?????,??????????????????????"+_id+"????????,??????????????????",function(e){if(e){var b=base_path+"lib/biblios/combineBib.do";var f={};$.messager.progress({title:"??????",msg:"?????????,?????..."});f.id=_id;var d="";for(var c=0;c<a.length;c++){d+=a[c].id+","}f.ids=d.substr(0,d.length-1);$.post(b,f,function(g){$.messager.progress("close");if(g.status=="0"){checkRepeatBibCondtion();openMessageDlg("??????!")}else{openMessageDlg(g.message)}},"json")}})}else{openMessageDlg("????????????????")}}function copyFLdToEditScreen(){var a=$("#checkrepeatEditGrid").datagrid("getSelections");if(a){parent.copyFLdToLeftScreen(a)}else{return openMessageDlg("??????????????")}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de