$(function(){$("#orderDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode,onDblClickRow:updateSubOrderBib})});function updateSubOrderBib(b,a){subscribeOrderBibRecord(a)}function subOrderSaveResult(b,a){openMessageDlg(b.message,5000);_myComBib.prototype.serach();$("#subscribeorder_dlg").dialog("close");$("#tabsGrid").tabs("select",1)}function cancelSubOrderBibRecord(){var a=$("#orderDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("请先选择一条订购信息,进行退订处理")}if(a.ordstatus=="1"){return openMessageDlg("已经处于退订状态,无需重复退订!")}openConfirmDlg("您确定要对记录号为["+a.id+"]的数据进行退订处理吗?",null,cancelSubOrderBibRecordResult,null)}function cancelSubOrderBibRecordResult(){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 deleteSubOrderBib(){var a=$("#orderDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("请先选择一条订购信息,进行删除")}openConfirmDlg("您确定要删除记录号为["+a.id+"]的订购数据吗?",null,deleteSubOrderBibResult,null)}function deleteSubOrderBibResult(){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")};