Edit D:\rfid\libsystem\page\catalogue\js\com_orderbib.js
$(function(){$("#orderDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode,onDblClickRow:updateOrderBib,onSelect:selectOrderBib})});function selectOrderBib(b,a){if(!isUpdateByLibcode(a.libcode)){$("#cancelOrderBibRecord").linkbutton({disabled:true});$("#deleteOrderBib").linkbutton({disabled:true})}else{$("#cancelOrderBibRecord").linkbutton({disabled:false});$("#deleteOrderBib").linkbutton({disabled:false})}}function updateOrderBib(c,b){if(!isUpdateByLibcode(b.libcode)){return openMessageDlg("??????????????")}else{var a=0;if(tabGrid_title=="(???)"){a=1}orderBibRecord(b,a)}}function ordreSaveResult(b,a){openMessageDlg(b.message,5000);_comGridObj.prototype.loadData(a,"order");$("#orderbib_dlg").dialog("close");$("#tabsGrid").tabs("select",2)}function cancelOrderBibRecord(){var a=$("#orderDataGridList").datagrid("getSelected");if(isUpdateByLibcode(a.libcode)){if(!a){return openMessageDlg("?????????¤??????,??????????")}if(a.ordstatus=="1"){return openMessageDlg("????????????????????????!")}openConfirmDlg("??????????????"+a.id+"]??????????????????",null,cancelOrderBibRecordResult,null)}else{return openMessageDlg("??????????????")}}function cancelOrderBibRecordResult(){var c=$("#orderDataGridList").datagrid("getSelected");var b={};b.id=c.id;var a=base_path+"acq/order/cancelOrder.do";$.post(a,b,function(d){if(d.status=="0"){openMessageDlg(d.message,5000);_comGridObj.prototype.loadData(c.bibid,"order")}else{openMessageDlg(d.message)}},"json")}function deleteOrderBib(){var a=$("#orderDataGridList").datagrid("getSelected");if(isUpdateByLibcode(a.libcode)){if(!a){return openMessageDlg("?????????¤??????,??????")}openConfirmDlg("???????????????["+a.id+"]???????????",null,deleteOrderBibResult,null)}else{return openMessageDlg("??????????????")}}function deleteOrderBibResult(){var c=$("#orderDataGridList").datagrid("getSelected");var b={};b.pk=c.id;var a=base_path+"acq/order/delete.do";$.post(a,b,function(d){if(d.status=="0"){openMessageDlg(d.message,5000);_comGridObj.prototype.loadData(c.bibid,"order")}else{openMessageDlg(d.message)}},"json")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de