var onLoadParamNum=0;var filterParam=[{code:"search_libcode",key:"libcode",condition:"code",value:vLibcode},{code:"search_bookseller",key:"bookseller"}];function overLoadInitData(){var d=getInitJsonArray(getInitCodeArray("record"));d.push({code:"search_sysid,sysid",key:"sysid",condition:"type",value:vBibType});_myPage.prototype.initData(d);var c=[{code:"search_sysid"},{code:"search_status"},{code:"search_libcode"},{code:"search_bookseller"}];for(var a=0;a0){e.combobox({onChange:function(g,f){if(g||f){searchRecord()}}})}}}_myPage.prototype.onLoadSuccess=function(a,b){if(onLoadParamNum==0){_myPage.prototype.initData(filterParam);_fmtGridDataRows=a;searchRecord()}onLoadParamNum=1};function searchRecord(){setDatagridParam();loadGridData()}function setDatagridParam(){var a=$('[item-type="search"]');datagrid_param_limit={};var c;var b=0;a.each(function(d,e){c=getValue(e.id);if(!c){return true}datagrid_param_limit["limit["+b+"].condition"]=e.id.replace("search_","");var f=e.attributes["handler-type"];if(f){datagrid_param_limit["limit["+b+"].typeHandler"]=f.value}datagrid_param_limit["limit["+b+"].value"]=c;b++})}function loadGridData(){if(datagrid_selector.length==0){return}var a=datagrid_selector.datagrid("options");var c="list.do";var b=0;var d=datagrid_selector.datagrid("getSelected");if(d){b=datagrid_selector.datagrid("getRowIndex",d)}datagrid_selector.datagrid({url:controller_url+c+datagrid_param,queryParams:datagrid_param_limit,onLoadSuccess:function(e){datagrid_selector.datagrid("selectRow",b)},method:"post"})}function openWin(a){cleanJsonData("record");if(!a){setValue("status","1");var b=$("#sysid").combobox("getData");if(b.length>0){$("#sysid").combobox("select",b[0].code)}setValue("libcode",mystorage.get("libcode"));setValue("year",getCurDateYMD().toString().substr(0,4))}else{setValue("search_sysid",a.sysid)}$("#win").window("open")}function onOpenWin(){$("#code").textbox("textbox").attr("disabled",false);$("#code").textbox("textbox").focus()}function closeWin(a){if(a){setValue("search_sysid",getValue("sysid"))}$("#win").window("close")};