Edit D:\rfid\libsystem\page\global\js\checkrepeatbib.js
$(function(){enterEvent("checkrepeatbibkey",checkRepeatBibCondtion);$("#checkrepeatDataGridList").datagrid({onSelect:onSelectCheckRepeatDataGridList});$("#checkrepeatEditGrid").datagrid({onSelect:onSelectCheckRepeatEditGrid})});function onOpenCheckRepeatBibDlg(){$("#checkrepeatbibkey").textbox("textbox").focus()}function onSelectCheckRepeatEditGrid(b,f){var e=[{field:"010",code:"a",index:"ISBN"},{field:"001",code:"a",index:"CTRLNO"},{field:"200",code:"a",index:"TITLE"},{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 c=getDataDirect(a,e[d].code);setValue("checkrepeatbibindex",e[d].index);setValue("checkrepeatbibkey",c);break}}}}function checkRepeatBib(){clearGridData("checkrepeatEditGrid,checkrepeatDataGridList");var c=null;if($("#bibindex").length>0){c=$("#bibindex").combobox("getData")}else{c=$("#perindex").combobox("getData")}var b=$("#checkrepeatbibindex");b.combobox({data:c,valueField:"code",textField:"name",onLoadSuccess:function(){var d=$(this).combobox("getData");if(d.length>0){$(this).combobox("select",d[0].code)}}});var a=$("#editBibGrid").datagrid("getRows");if(a.length>0){$("#checkrepeatEditGrid").datagrid("loadData",a)}$("#checkrepeatbib_dlg").dialog("open")}function onSelectCheckRepeatDataGridList(a,b){if(b.id){showDataGridDetailById(b.id,"checkrepeatEditGrid");holdRepeatDataGridListByBibId(b.id);orderRepeatDataGridListByBibId(b.id)}}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(d){},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(d){},method:"post"})}else{deleteGridData("holdRepeatDataGridList")}}function checkRepeatBibCondtion(){var a=base_path+"lib/biblios/page.do";if(vOrderUrl){a=base_path+vOrderUrl+"/page.do"}var b={};if(getValue("checkrepeatbibkey").length==0){return openMessageDlg("????????????")}clearGridData("checkrepeatEditGrid,checkrepeatDataGridList");b.rows=10;b.page=1;b.condition=getValue("checkrepeatbibindex");b.value=getValue("checkrepeatbibkey");$("#checkrepeatDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){$("#checkrepeatDataGridList").datagrid("selectRow",0)},method:"post"})};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de