var LODOP;$(function(){$("#holdDataGridList").datagrid({onDblClickRow:updateHoldings,onSelect:selectHoldings})});function updateHoldings(b,a){if(!isUpdateByLibcode(a.libcode)){return openMessageDlg("不能修改非本馆数据")}else{onHandlerHoldingsRecord(a)}}function selectHoldings(b,a){if(!isUpdateByLibcode(a.libcode)){$("#deleteHoldRecord").linkbutton({disabled:true})}else{$("#deleteHoldRecord").linkbutton({disabled:false})}}function cataHoldSaveResult(b,a){openMessageDlg(b.message);_comGridObj.prototype.loadData(a,"hold");$("#catahold_dlg").dialog("close");$("#tabsGrid").tabs("select",1)}function deleteHoldRecord(){var a=$("#holdDataGridList").datagrid("getSelected");if(isUpdateByLibcode(a.libcode)){if(!a){return openMessageDlg("请先选择一条馆藏信息,进行删除")}openConfirmDlg("您确定要删除记录号为["+a.id+"]的馆藏数据吗?",null,deleteHoldRecordResult,null)}else{return openMessageDlg("不能删除非本馆数据")}}function deleteHoldRecordResult(){var c=$("#holdDataGridList").datagrid("getSelected");var b={};b.pk=c.id;var a=base_path+"hld/holding/delete.do";$.post(a,b,function(d){if(d.status=="0"){openMessageDlg(d.message,5000);_comGridObj.prototype.loadData(c.bibid,"hold")}else{openMessageDlg(d.message)}},"json")};