var $date=undefined;var $year=undefined;var $data=undefined;$(function(){date=new Date();$year=date.getFullYear();$("#delayShowYear").numberspinner("setValue",$year);$(".year").hide();$(".date").hide();$("#type").combobox({onChange:function(b,a){if(b=="0"){$(".week-table").show();$(".year").hide();$(".date").hide()}else{if(b=="1"){$(".week-table").hide();$(".year").show();$(".date").hide()}else{if(b=="2"){$(".week-table").hide();$(".year").hide();$(".date").show()}}}}});setShowDelayGridHeight()});function loadGridData(){if(datagrid_selector.length==0){return}var a=datagrid_selector.datagrid("options");var c="list.do";if(a.pagination){c="page.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,onLoadSuccess:function(e){datagrid_selector.datagrid("selectRow",b);$data=e;setDelayFormatShow()},method:"post"})}function onOpenDialog(){setValue("libcode",vLibcode)}function setShowDelayGridHeight(){var a=$(window).height();var b=40;var c=a-340;$(".show-delay-date").css("height",c+"px");$("#showDelayGridData").datagrid("resize");$(".easyui-panel").panel("resize")}function setDelayFormatShow(){var d=[];for(var c=1;c<=12;c++){var a={};a.month=c;for(var b=1;b<=31;b++){a["day"+b]=b}d.push(a)}$("#showDelayGridData").datagrid("loadData",d)}function onShowFormatDelay(c,e,a){var d=$("#delayShowYear").numberspinner("getValue");var b=getDaysInMonth(d,e.month);if(c<=b){return showDelayGridDataHandler(c,e,a)}return""}function stylerFormatDelay(c,e,a){var d=$("#delayShowYear").numberspinner("getValue");var b=getDaysInMonth(d,e.month);if(c<=b){return}return"background-color:#aaa;"}function showDelayGridDataHandler(n,o,h){var e="";if($data){var l=$("#delayShowYear").numberspinner("getValue");var b=parseInt(h+1);var d=$data;var p=d.rows;for(var c=0;c