var specialRows;function searchRdrRecord(d,a){$("#tabsGrid").tabs("select",0);setValue("rdrid","");var b=base_path+"cir/speloan/checkReaderBeforeLoan.do";b=base_path+"cir/speloan/checkReaderBeforeLoanByLoc.do";var c={};if(getValue("keyword").length==0){return openCirMessageDlg("检索值不能为空",getFocusReader)}if(d){c.rdrno=d.rdrno}else{if(a){c[a]=getValue("keyword")}else{c[""+getValue("index")+""]=getValue("keyword")}}c.location=getValue("service");$.post(b,c,function(e){if(e.status=="0"){getFocusBarCode();searchRdrRecordResult(e)}else{if(e.status=="3100"){var f=e.rows[0];if(f.debt>0){if(vType=="loan"){$("#fin_debt_dlg").window("open");searchDepositGridList(f,"debt")}}searchRdrRecordResult(e)}else{if(e.total>0){searchRdrRecordResult(e)}if(vType=="loan"){openCirMessageDlg(e.message,getFocusReader)}}}getSpecialParamJson()},"json")}function initServiceSelect(b){var a=base_path+"par/special/list.do";var c={};c["limit[0].condition"]="spetype";c["limit[0].value"]=b;$.post(a,c,function(e){if(e.status=="0"){var d=e.rows;specialRows=d;initSelectLocationBySpeType(d,b)}else{openMessageDlg(e.message)}},"json")}function initSelectLocationBySpeType(e,c){var d=[];var g={};for(var b=0;b0){$(this).combobox("select",h[0].code)}}})}function insertCirResultDataGridListRow(h){var a="";if(h.debt_1>0){a+="有图书过期["+h.overdays+"]天,共产生罚款["+h.debt_1+"]元。"}if(h.stopdate&&h.stopdate>0){a+="有图书过期["+h.overdays+"]天,停借到["+h.stopdate+"]。"}if(h.debt_2>0){a+="污损处理,共产生罚款["+h.debt_2+"]元。"}if(h.debt_3>0){a+="丢失处理,共产生罚款["+h.debt_3+"]元。"}if(h.debt_1>0||h.debt_2>0||h.debt_3>0){h.id=h.rdrid;if(vType!="return"||(vType=="return"&&getValue("page_handlerfin")==0)){$("#fin_debt_dlg").window("open");searchDepositGridList(h,"debt")}}var d="";if(h.opertype.indexOf("借出")>-1){d="color: #ee7621;"}else{if(h.opertype.indexOf("还回")>-1){d="color: #00CD66;"}else{d="color: #ff66d5;"}}if($("#jifenchuli").length>0){if(h.bonus){a+="获得"+h.bonus+"分。"}if(h.over_bonus){a+="超期处罚"+h.over_bonus+"分。"}if(h.bonus_message){a+=bonus_message}}var c="";if(h.barcode){c=h.barcode}var b="";if(h.callno){b=h.callno}var g="";if(h.title!=null&&h.title!="null"){g=h.title}var f="";if(h.author!=null&&h.author!="null"){f=h.author}var e="["+h.opertype+"]—{"+h.returndate+"(还)}"+a+"—{"+h.rdrno+":"+h.name+"}—{"+c+":"+b+"—"+g+":"+f+"}";h.note='
'+e+"
";$("#cirResultDataGridList").datagrid("insertRow",{index:0,row:h})}function getSpecialParamJson(){var e=getValue("service");var c;for(var b=0;b