diff --git a/dist/AXJ.all.js b/dist/AXJ.all.js index 735311cb..a543d895 100644 --- a/dist/AXJ.all.js +++ b/dist/AXJ.all.js @@ -24066,17 +24066,7 @@ jQuery.fn.setValueTab = function (value) { }); }; /* ---------------------------- */ -/* http://www.axisj.com, license : http://www.axisj.com/license */ - var AXTopDownMenu = Class.create(AXJ, { - version : "AXTopDownMenu v1.2", - author : "tom@axisj.com", - logs: [ - "2013-03-12 오후 8:21:23", - "2013-11-22 오후 6:03:35 - tom : parent item Addclass 추가", - "2013-12-31 오후 2:06:06 - root : setTree 시 child node count check 추가", - "2014-04-14 - tom : setTree 메소드 엘리먼트 준비전에 박스모델 가져오는 문제 딜레이로 해결" - ], initialize: function(AXJ_super){ AXJ_super(); @@ -24123,6 +24113,14 @@ var AXTopDownMenu = Class.create(AXJ, { }else if(cfg.targetID){ } + + axdom(window).bind("resize", this.windowResize.bind(this)); + }, + windowResizeApply: function(){ + var cfg = this.config; + axf.each(this.tree, function(){ + this.height = axdom("#" + this.id).outerHeight(); + }); }, setTree: function(tree){ var cfg = this.config; @@ -24236,6 +24234,12 @@ var AXTopDownMenu = Class.create(AXJ, { if(!this.tree[poi].divDim){ tgDiv.show(); this.tree[poi].divDim = {width:tgDiv.outerWidth(), height:tgDiv.outerHeight()}; + if(this.tree[poi].height == null){ + for(var index = 0;index < this.tree.length;index++){ + this.tree[index].height = axdom("#" + this.tree[index].id).outerHeight(); + } + //trace(poi, this.tree[poi]); + } var topDim = {width:this.tree[poi].width, height:this.tree[poi].height}; /* subMenu positioning */ @@ -24563,8 +24567,6 @@ var AXTopDownMenu = Class.create(AXJ, { } }); - - var AXMobileMenu = Class.create(AXJ, { version: "AXMobileMenu V0.4", author: "tom@axisj.com", diff --git a/dist/AXJ.min.js b/dist/AXJ.min.js index d711eec2..7d4a9256 100644 --- a/dist/AXJ.min.js +++ b/dist/AXJ.min.js @@ -16,7 +16,7 @@ var mycalendartimeChange1=this.bindTwinDateTimeChange.bind(this);obj.mycalendart },init:function(){var cfg=this.config;this.mask=jQuery('
')},setWidth:function(width){var cfg=this.config;width?(cfg.width=width,this.config.fixedWidth=!0):(cfg.width=void 0,this.config.fixedWidth=!1),jQuery("#"+cfg.windowID).css({width:width});var maskWidth=jQuery("#"+cfg.windowID).outerWidth(),maskLeft=jQuery(document.body).width()/2-maskWidth/2;0>maskLeft&&(maskLeft=0),jQuery("#"+cfg.windowID).css({left:maskLeft})},open:function(http){var cfg=this.config;if(!this._windowOpend){if(mask.open(),this.winID="mdw"+AXUtil.timekey(),this.frmID="frm"+AXUtil.timekey(),this.config.width){var maskWidth=this.config.width,maskLeft=jQuery(document.body).width()/2-this.config.width/2;this.config.fixedWidth=!0}else{var maskWidth=jQuery(document.body).width()-50,maskLeft=10;this.config.fixedWidth=!1}http.width&&(maskWidth=http.width,maskLeft=jQuery(document.body).width()/2-http.width/2,this.config.fixedWidth=!0);var maskTop=this.config.defaultTop;maskTop=void 0!=http.top?http.top:jQuery(window).scrollTop()+100,0>maskLeft&&(maskLeft=0);var po=[];po.push("
"),po.push("
"),cfg.displayLoading&&(po.push("
"),po.push('
'),po.push("

페이지를 로딩 중입니다. 잠시만 기다려 주세요.
")),po.push(" 닫기"),po.push("
"),po.push(" "),isNaN(http.pars.length)?jQuery.each(http.pars,function(key,val){po.push(" ")}):jQuery.each(http.pars,function(){jQuery.each(this,function(key,val){po.push(" ")})}),po.push("
"),po.push(" "),po.push("
"),po.push("
"),this.config.appendTargetID?jQuery("#"+this.config.appendTargetID).append(po.join("")):jQuery(document.body).append(po.join(""));var loadingID=this.config.windowID+"_loading",_winID=this.winID,_frmID=this.frmID;document[_frmID].submit();var keydown=this.keydown.bind(this);jQuery("#"+this.winID).bind("load",function(){var myIframe=window[_winID],bodyHeight=jQuery(myIframe.document).innerHeight();jQuery(myIframe.document.body).find("."+cfg.contentDivClass).get(0)&&(bodyHeight=jQuery(myIframe.document.body).find("."+cfg.contentDivClass).outerHeight()),jQuery(this).animate({height:bodyHeight},cfg.animateDuration,"cubicInOut"),jQuery("#"+_winID+"_box").animate({height:bodyHeight},cfg.animateDuration,"cubicInOut"),cfg.displayLoading&&jQuery("#"+loadingID).fadeOut("slow"),jQuery("#"+_winID).addClass("loaded"),http.closeByEscKey&&jQuery(myIframe.document.body).bind("keydown.AXModal",keydown)}),jQuery("#"+this.config.windowID+"_close").bind("click",this.close.bind(this)),http.closeByEscKey&&jQuery(document.body).bind("keydown.AXModal",keydown),this._windowOpend=!0,jQuery(window).unbind("resize.AXModal"),jQuery(window).bind("resize.AXModal",this.onDocResize.bind(this))}},openI:function(http){var cfg=this.config;if(!this._windowOpend){if(mask.open(),this.winID="mdw"+AXUtil.timekey(),this.frmID="frm"+AXUtil.timekey(),this.config.width){var maskWidth=this.config.width,maskLeft=jQuery(document.body).width()/2-this.config.width/2;this.config.fixedWidth=!0}else{var maskWidth=jQuery(document.body).width()-50,maskLeft=10;this.config.fixedWidth=!1}http.width&&(maskWidth=http.width,maskLeft=jQuery(document.body).width()/2-http.width/2,this.config.fixedWidth=!0);var maskTop=this.config.defaultTop;maskTop=void 0!=http.top?http.top:jQuery(window).scrollTop()+100,0>maskLeft&&(maskLeft=0);var po=[];po.push("
"),po.push("
"),po.push("
"),po.push('
'),po.push("

페이지를 로딩 중입니다. 잠시만 기다려 주세요.
"),po.push(" 닫기"),po.push("
"),po.push(" "),isNaN(http.pars.length)?jQuery.each(http.pars,function(key,val){po.push(" ")}):jQuery.each(http.pars,function(){jQuery.each(this,function(key,val){po.push(" ")})}),po.push("
"),po.push(http.maxHeight?" ":" "),po.push("
"),po.push("
"),this.config.appendTargetID?jQuery("#"+this.config.appendTargetID).append(po.join("")):jQuery(document.body).append(po.join(""));var loadingID=this.config.windowID+"_loading",_winID=this.winID,_frmID=this.frmID;document[_frmID].submit(),jQuery("#"+this.winID).bind("load",function(){var myIframe=window[_winID],bodyHeight=jQuery(myIframe.document).innerHeight();jQuery(myIframe.document.body).find("."+cfg.contentDivClass).get(0)&&(bodyHeight=jQuery(myIframe.document.body).find("."+cfg.contentDivClass).outerHeight()),http.maxHeight&&http.maxHeightmaskLeft&&(maskLeft=0);var po=[];po.push("
"),po.push("
"),po.push(" 닫기"),po.push("
"),po.push("
"),po.push("
"),jQuery(document.body).append(po.join("")),jQuery("#"+modalID+"_content").append(jQuery("#"+args.targetID));var closeBind=this.close.bind(this),closeModal=function(event){closeBind(event,modalID)};if(jQuery("#"+modalID+"_close").bind("click",closeModal),args.closeByEscKey){var keydown=this.keydown.bind(this),keydownBind=function(){keydown(event,modalID)};jQuery(document.body).bind("keydown.AXModal",keydownBind)}jQuery(window).unbind("resize.AXModal"),jQuery(window).bind("resize.AXModal",this.onDocResize.bind(this))}},openNew:function(http){this.winID="mdw"+AXUtil.timekey(),this.frmID="frm"+AXUtil.timekey(),this.openWindow&&this.openWindow.close(),this.openWindow=window.open("",http.name||this.winID,http.options),this.openWindow.focus(),AXgetId(this.config.windowID)&&jQuery("#"+this.config.windowID).remove();var po=[];po.push("
"),po.push("
"),po.push(" "),isNaN(http.pars.length)?jQuery.each(http.pars,function(key,val){po.push(" ")}):jQuery.each(http.pars,function(){jQuery.each(this,function(key,val){po.push(" ")})}),po.push("
"),po.push("
"),jQuery(document.body).append(po.join("")),document[this.frmID].submit(),jQuery("#"+this.config.windowID).remove()},keydown:function(event,modalID){event.keyCode==AXUtil.Event.KEY_ESC&&this.close(event,modalID)},close:function(event,modalID){if(this.openWindow&&this.openWindow.close(),event&&void 0==event.type&&(modalID=event),modalID)jQuery("#"+modalID).hide(),mask.close();else if(window[this.winID]){window[this.winID].location.href="about:blank";var windowID=this.config.windowID;setTimeout(function(){jQuery("#"+windowID).remove()},1),mask.close(),this._windowOpend=!1}jQuery(document.body).unbind("keydown.AXModal"),this.config.onclose&&this.config.onclose.call({winID:this.winID,windowID:this.config.windowID,modalID:modalID})},remove:function(){var windowID=this.config.windowID;setTimeout(function(){jQuery("#"+windowID).remove()},1),mask.close(),this._windowOpend=!1},resize:function(){var cfg=this.config,_winID=this.winID;setTimeout(function(){var myIframe=window[_winID],bodyHeight=jQuery(myIframe.document).innerHeight();jQuery(myIframe.document.body).find("."+cfg.contentDivClass).get(0)&&(bodyHeight=jQuery(myIframe.document.body).find("."+cfg.contentDivClass).outerHeight()),jQuery("#"+_winID).animate({height:bodyHeight},cfg.animateDuration,"cubicInOut"),jQuery("#"+_winID+"_box").animate({height:bodyHeight},cfg.animateDuration,"cubicInOut");try{parent.fcObj.contentResetHeight()}catch(e){}try{parent.fnObj.contentResetHeight(null,bodyHeight+100)}catch(e){}},50)},onDocResize:function(){var cfg=this.config;try{if(cfg.fixedWidth){var maskWidth=jQuery("#"+cfg.windowID).outerWidth(),maskLeft=jQuery(document.body).width()/2-maskWidth/2;0>maskLeft&&(maskLeft=0),jQuery("#"+cfg.windowID).css({left:maskLeft})}else{var maskWidth=jQuery(".container").width()-50;jQuery("#"+cfg.windowID).css({width:maskWidth})}}catch(e){}}}),AXModelControl=Class.create(AXJ,{version:"AXModelControl V0.1",author:"tom@axisj.com",logs:["2013-12-03 오후 5:27:18"],initialize:function(AXJ_super){AXJ_super(),this.config.theme="",this.config.collectSelector="",this.config.subModelDetectClassName="AXModelDetect",this.config.excludeClassName="",this.config.cursorFocus=!1,this.returnJSData={}},init:function(){var cfg=this.config;return Object.isUndefined(cfg.targetID)?void trace("need targetID - setConfig({targetID:''})"):void(this.target=jQuery("#"+cfg.targetID))},collectModelItem:function(){var cfg=this.config,finderCSS="";finderCSS=""!=cfg.collectSelector?cfg.collectSelector:"input[type=text], input[type=hidden], input[type=radio], input[type=checkbox], select, textarea";var getParentSubModel=function(ele){for(var result=!1,checkEle=ele,rooping=!0;rooping;){if(!checkEle.get(0)){rooping=!1;break}if(checkEle.get(0).id==cfg.targetID){rooping=!1;break}if(checkEle.parent().hasClass(cfg.subModelDetectClassName)){result=!0,rooping=!1;break}checkEle=checkEle.parent()}return{result:result,parents:ele.parentsUntil("#"+cfg.targetID)}},collectItem=[],oncursorKeyup=this.oncursorKeyup.bind(this);this.target.find(finderCSS).each(function(){var jQueryObj=axdom(this),getSubModel=getParentSubModel(axdom(this));if(getSubModel.result){jQueryObj.attr("data-axisjModelId",collectItem.length);var relationKey=[];jQuery.each(getSubModel.parents,function(){if(""!=this.id&&this.id.left(cfg.subModelDetectClassName.length)==cfg.subModelDetectClassName){var myKey=this.id.substr(this.id.lastIndexOf("_").number()+1);relationKey.push(myKey)}}),relationKey.push(this.name),collectItem.push({keys:relationKey,jQueryObj:jQueryObj,axisjModelId:collectItem.length,name:this.name,type:this.type})}else{var collectOk=!1;collectOk=""!=cfg.excludeClassName?!jQueryObj.hasClass(cfg.excludeClassName):!0,collectOk&&(jQueryObj.attr("data-axisjModelId",collectItem.length),collectItem.push({keys:[this.name],jQueryObj:jQueryObj,axisjModelId:collectItem.length,name:this.name,type:this.type}))}jQueryObj=null}),this.collectItem=collectItem;var returnJSData={};jQuery.each(this.collectItem,function(itemIndex,item){for(var key,keys=item.keys,targetJS=returnJSData,kidx=0;kidx1?[]:""}}),jQuery.each(this.collectItem,function(){for(var key,keys=this.keys,targetJS=returnJSData,kidx=0;kidx1?targetJS[key].push(nVal):targetJS[key]=nVal}}else"radio"==this.type?AXUtil.isEmpty(nVal)||(targetJS[key]=nVal):Object.isArray(targetJS[key])?targetJS[key][this.keySeq]=nVal:targetJS[key]=nVal}),this.returnJSData=returnJSData,Object.clone(this.returnJSData)},setData:function(jsPathObj,val){if(Object.isString(val)||Object.isArray(val)||Object.isNumber(val))this.applyValue(jsPathObj,val);else{var applyValue=this.applyValue.bind(this),fnApplyValue=function(prefixKey,_val,depth){depth>5||(""!=prefixKey&&(prefixKey+="."),axf.each(_val,function(k,v){Object.isString(v)||Object.isArray(v)||AXUtil.isEmpty(v)||Object.isNumber(v)?applyValue({key:prefixKey+k},v):fnApplyValue(prefixKey+k,v,depth+1)}))};fnApplyValue("",val,0)}return!0},applyValue:function(jsPathObj,val){var cfg=this.config;this.getData();var returnJSData=this.returnJSData;if(jsPathObj.key)try{eval("returnJSData = returnJSData."+jsPathObj.key)}catch(e){trace(e)}if(void 0!=returnJSData)if(Object.isString(val)||Object.isNumber(val)){var findedItem=!1;if(jQuery.each(this.collectItem,function(){if(this.keys.join(".")==jsPathObj.key)if(void 0!=jsPathObj.keySeq){if(jsPathObj.keySeq==this.keySeq)return this.jQueryObj.val(val),findedItem=!0,!1}else{if("radio"!=this.type&&"checkbox"!=this.type)return this.jQueryObj.val(val),findedItem=!0,!1;this.jQueryObj.get(0).value==val?(this.jQueryObj.get(0).checked=!0,findedItem=!0):(this.jQueryObj.get(0).checked=!1,findedItem=!0)}}),!findedItem)return{error:"not found keySeq"}}else if(Object.isArray(val)){var findedItem=!1;if(jQuery.each(this.collectItem,function(){if(this.keys.join(".")==jsPathObj.key)if(void 0!=jsPathObj.keySeq){if(jsPathObj.keySeq==this.keySeq)return this.jQueryObj.val(val.join(",")),findedItem=!0,!1}else if("checkbox"==this.type||"radio"==this.type){var jQueryObj=this.jQueryObj;0==val.length?jQueryObj.get(0).checked=!1:(jQueryObj.get(0).checked=!1,axf.each(val,function(){jQueryObj.get(0).value==this&&(jQueryObj.get(0).checked=!0)})),findedItem=!0}else void 0!=val[this.keySeq]&&(this.jQueryObj.val(val[this.keySeq]),findedItem=!0)}),!findedItem)return{error:"not found keySeq"}}return!0},oncursorKeyup:function(jQueryObj,event,itemIndex){var cfg=this.config;if(!event.ctrlKey&&cfg.oncursor){var axbind=jQueryObj.attr("data-axbind"),htmlTag=jQueryObj.get(0).type,direction="";if(event.keyCode==AXUtil.Event.KEY_UP?direction="U":event.keyCode==AXUtil.Event.KEY_DOWN?direction="D":event.keyCode==AXUtil.Event.KEY_LEFT?direction="L":event.keyCode==AXUtil.Event.KEY_RIGHT?direction="R":event.keyCode==AXUtil.Event.KEY_RETURN&&"select"!=axbind&&"textarea"!=htmlTag&&(direction="E"),cfg.oncursor.call({event:event,direction:direction,itemIndex:itemIndex,jQueryObj:jQueryObj})===!1)return!1;if(""==direction)return;if("U"==direction||"D"==direction||"L"==direction||"R"==direction)return;if("E"==direction&&(event.shiftKey||event.metaKey)){if(0==itemIndex)return void(cfg.oncursorEmpty&&cfg.oncursorEmpty({type:"indexOver",index:-1}));this.blurItem(jQueryObj);for(var nextItemIndex=itemIndex-1,ii=nextItemIndex;ii>-1;ii--)if(!this.collectItem[ii].jQueryObj.get(0).disabled){nextItemIndex=ii;break}this.focusItem(this.collectItem[nextItemIndex].jQueryObj)}else if("E"==direction){if(itemIndex>=this.collectItem.length-1)return void(cfg.oncursorEmpty&&cfg.oncursorEmpty({type:"indexOver",index:1}));this.blurItem(jQueryObj);for(var nextItemIndex=itemIndex+1,ii=nextItemIndex;iifocusIndex&&(focusIndex=0),focusIndex>=this.collectItem.length&&(focusIndex=this.collectItem.length-1)),this.focusItem(this.collectItem[focusIndex].jQueryObj)}}),AXModelControlGrid=Class.create(AXJ,{version:"AXModelControlGrid V1.0",author:"tom@axisj.com",logs:["2013-12-03 오후 5:27:18","2013-12-12 오전 10:25:03"],initialize:function(AXJ_super){AXJ_super(),this.config.theme="AXModelControlGrid"},init:function(){var cfg=this.config;if(Object.isUndefined(cfg.targetID))return void trace("need targetID - setConfig({targetID:''})");this.target=jQuery("#"+cfg.targetID);var theme=cfg.theme,ol=[];ol.push('
'),ol.push('
'),ol.push('
'),ol.push('
'),ol.push("
"),this.target.empty(),this.target.append(ol.join("")),this.gridBody=jQuery("#"+cfg.targetID+"_AX_grid"),this.scrollBody=jQuery("#"+cfg.targetID+"_AX_gridScrollBody"),this.colHead=jQuery("#"+cfg.targetID+"_AX_gridColHead"),this.body=jQuery("#"+cfg.targetID+"_AX_gridBody"),this.setColHead(),this.myUIScroll=new AXScroll,this.myUIScroll.setConfig({targetID:cfg.targetID+"_AX_grid",scrollID:cfg.targetID+"_AX_gridScrollBody",touchDirection:!1,yscroll:!1,xscroll:!0}),jQuery(window).bind("resize",this.windowResize.bind(this))},windowResizeApply:function(){var cfg=this.config,bodyWidth=this.gridBody.width()-2,colWidth=0,astricCount=0;jQuery.each(cfg.colGroup,function(cidx,CG){CG.widthAstric&&(CG.width=0,CG._owidth=CG.width,astricCount++),colWidth+=(CG._owidth||0).number()}),this.colWidth=colWidth;var newColWidth=0;if(bodyWidth>colWidth+100*astricCount){var remainsWidth=bodyWidth-colWidth;jQuery.each(cfg.colGroup,function(cidx,CG){CG.widthAstric&&(CG._owidth=remainsWidth/astricCount,CG.width=CG._owidth,colWidth+=(CG._owidth||0).number()),newColWidth+=CG.width.number()})}else jQuery.each(cfg.colGroup,function(cidx,CG){CG.widthAstric&&(CG._owidth=200,CG.width=200,colWidth+=(CG._owidth||0).number()),newColWidth+=CG.width.number()});this.colWidth=newColWidth,jQuery.each(cfg.colGroup,function(cidx){axdom("#"+cfg.targetID+"_AX_col_AX_"+cidx+"_AX_head").attr("width",this.width),axdom("#"+cfg.targetID+"_AX_col_AX_"+cidx+"_AX_body").attr("width",this.width)}),this.scrollBody.css({width:this.colWidth}),this.colHead.find("table").css({width:this.colWidth}),this.body.find("table").css({width:this.colWidth}),this.myUIScroll.resizeScroll(),this.myUIScroll.moveTo(0)},getColGroup:function(subfix){var cfg=this.config,po=[];return po.push(""),jQuery.each(cfg.colGroup,function(cidx,CG){po.push('')}),po.push(""),po.join("")},getHeadItem:function(arg){var po=(this.config,[]);if(po.push(''),po.push('
'),arg.html){var html=arg.html.call({rowIndex:arg.rowIndex,colIndex:arg.colIndex,data:arg.data});po.push(html)}else po.push(arg.label);return po.push("
"),po.push(""),po.join("")},setColHead:function(rewrite){var cfg=this.config,bodyWidth=this.gridBody.width()-2,colWidth=0,astricCount=0;jQuery.each(cfg.colGroup,function(cidx,CG){rewrite?CG.widthAstric&&(CG.width=0,CG._owidth=CG.width,astricCount++):("*"==CG.width&&(CG.width=0,CG.widthAstric=!0,astricCount++),CG._owidth=CG.width),colWidth+=(CG._owidth||0).number()}),this.colWidth=colWidth;var newColWidth=0;if(bodyWidth>colWidth+100*astricCount){var remainsWidth=bodyWidth-colWidth;jQuery.each(cfg.colGroup,function(cidx,CG){CG.widthAstric&&(CG._owidth=remainsWidth/astricCount,CG.width=CG._owidth,colWidth+=(CG._owidth||0).number()),newColWidth+=CG.width.number()})}else jQuery.each(cfg.colGroup,function(cidx,CG){CG.widthAstric&&(CG._owidth=200,CG.width=200,colWidth+=(CG._owidth||0).number()),newColWidth+=CG.width.number()});this.colWidth=newColWidth,this.scrollBody.css({width:this.colWidth});var getHeadItem=this.getHeadItem.bind(this),po=[];po.push(''),po.push(this.getColGroup("head")),po.push(""),po.push("");var colCount=0;jQuery.each(cfg.colGroup,function(CHidx,CH){po.push(getHeadItem({rowIndex:0,colIndex:CHidx,align:CH.align,label:CH.label,html:CH.html,data:CH.data})),colCount+=CH.colspan}),po.push(""),po.push(""),po.push("
"),this.colHead.empty(),this.colHead.append(po.join(""))},setList:function(list){this.config;this.list=list,this.printList(),this.myUIScroll.resizeScroll()},appendList:function(item){this.config;this.list.push(item);var lidx=this.list.length-1;this.printItem(lidx,this.list[lidx]),this.printFootItem(),this.myUIScroll.resizeScroll()},getItem:function(arg,update){var po=(this.config,[]);if(void 0==update&&po.push(''),po.push('
'),arg.html){var html=arg.html.call({rowIndex:arg.rowIndex,colIndex:arg.colIndex,data:arg.data,item:this.list[arg.rowIndex],list:this.list});po.push(html)}else po.push(" ");return po.push("
"),void 0==update&&po.push(""),po.join("")},printList:function(){var printItem=(this.config,this.printItem.bind(this)),po=[];po.push(''),po.push(this.getColGroup("body")),po.push(""),po.push(""),po.push(""),po.push(""),po.push("
"),this.body.empty(),this.body.append(po.join("")),jQuery.each(this.list,function(lidx,L){printItem(lidx,L)}),this.printFootItem()},printItem:function(lidx,L,update){var cfg=this.config,getItem=this.getItem.bind(this),AXbindOnchange=this.AXbindOnchange.bind(this),_body=this.body.find("tbody"),tr=[];void 0==update&&tr.push(""),jQuery.each(cfg.body.form,function(fidx,form){tr.push(getItem({rowIndex:lidx,colIndex:fidx,align:form.align,html:form.html,data:form.data}))}),void 0==update&&tr.push(""),void 0==update?_body.append(tr.join()):_body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).html(tr.join(""));var oncursorKeyup=this.oncursorKeyup.bind(this);jQuery.each(cfg.body.form,function(fidx,form){if(form.AXBind){var bindID=form.AXBind.id.replace(/@rowIndex/g,lidx),myConfig=AXUtil.copyObject(form.AXBind.config);jQuery.each(myConfig,function(k,v){Object.isString(v)&&(myConfig[k]=v.replace(/@rowIndex/g,lidx))}),myConfig.onchange=function(){AXbindOnchange(lidx,fidx,this)},"TwinDate"==form.AXBind.type?jQuery("#"+bindID).bindTwinDate(myConfig):"Date"==form.AXBind.type?jQuery("#"+bindID).bindDate(myConfig):"Select"==form.AXBind.type?(jQuery("#"+bindID).unbindSelect(),jQuery("#"+bindID).bindSelect(myConfig),cfg.cursorFocus&&jQuery("#"+bindID).bindSelectGetAnchorObject().bind("keydown.AXModelControlGrid",function(event){setTimeout(function(){oncursorKeyup(jQuery("#"+bindID),event,lidx)},10)})):"Selector"==form.AXBind.type?jQuery("#"+bindID).bindSelector(myConfig):"Money"==form.AXBind.type&&jQuery("#"+bindID).bindMoney(myConfig)}}),cfg.cursorFocus&&_body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea").unbind("keydown.AXModelControlGrid").bind("keydown.AXModelControlGrid",function(event){setTimeout(function(){oncursorKeyup(jQuery(event.target),event,lidx)},10)});var printFootItem=this.printFootItem.bind(this),_this=this;_body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea").unbind("change.AXModelControlGrid").bind("change.AXModelControlGrid",function(){_this.list[lidx][this.name]=axdom(this).val(),printFootItem()})},oncursorKeyup:function(jQueryObj,event,lidx){var cfg=this.config;if(event.target&&!(event.shiftKey||event.metaKey||event.ctrlKey)){var eventName=jQueryObj.get(0).name;if(cfg.oncursor){var axbind=jQueryObj.attr("data-axbind"),direction="";if(event.keyCode==AXUtil.Event.KEY_UP?direction="U":event.keyCode==AXUtil.Event.KEY_DOWN?direction="D":event.keyCode==AXUtil.Event.KEY_LEFT?direction="L":event.keyCode==AXUtil.Event.KEY_RIGHT?direction="R":event.keyCode==AXUtil.Event.KEY_RETURN&&"select"!=axbind&&(direction="R"),cfg.oncursor.call({event:event,direction:direction,listIndex:lidx,jQueryObj:jQueryObj})===!1)return!1;if(""==direction)return;if(axbind&&("U"==direction||"D"==direction))return;if(("U"==direction||"D"==direction)&&"SELECT"==jQueryObj.get(0).tagName)return;if("U"==direction){if(0==lidx)return;this.blurItem(jQueryObj);var findItem,nextItemList=this.body.find("#"+cfg.targetID+"_tbodyTR_"+(lidx-1)).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea");nextItemList.each(function(){this.name==eventName&&(findItem=this)}),this.focusItem(jQuery(findItem))}else if("D"==direction){if(lidx>=this.list.length-1)return;this.blurItem(jQueryObj);var findItem,nextItemList=this.body.find("#"+cfg.targetID+"_tbodyTR_"+(lidx+1)).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea");nextItemList.each(function(){this.name==eventName&&(findItem=this)}),this.focusItem(jQuery(findItem))}else if("L"==direction){var colIndex,itemList=this.body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea");if(itemList.each(function(cidx){this.name==eventName&&(colIndex=cidx)}),0==colIndex){if(0==lidx)return;this.blurItem(jQueryObj);var nextItemList=this.body.find("#"+cfg.targetID+"_tbodyTR_"+(lidx-1)).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea");this.focusItem(jQuery(nextItemList.last()))}else this.blurItem(jQueryObj),this.focusItem(jQuery(itemList[colIndex-1]))}else if("R"==direction){var colIndex,itemList=this.body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea");if(itemList.each(function(cidx){this.name==eventName&&(colIndex=cidx)}),colIndex>=itemList.length-1){if(lidx>=this.list.length-1)return;this.blurItem(jQueryObj);var nextItemList=this.body.find("#"+cfg.targetID+"_tbodyTR_"+(lidx+1)).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea");this.focusItem(jQuery(nextItemList.first()))}else this.blurItem(jQueryObj),this.focusItem(jQuery(itemList[colIndex+1]))}}}},blurItem:function(jQueryObj){var axbind=(this.config,jQueryObj.attr("data-axbind"));axbind&&("select"==axbind?jQueryObj.bindSelectBlur():"selector"==axbind&&jQueryObj.bindSelectorBlur())},focusItem:function(jQueryObj){var axbind=(this.config,jQueryObj.attr("data-axbind"));axbind?"select"==axbind?jQueryObj.bindSelectFocus():("selector"==axbind,jQueryObj.focus()):jQueryObj.focus()},focusIndex:function(rowIndex,colIndex){var cfg=this.config,myTd=this.body.find("tbody tr#"+cfg.targetID+"_tbodyTR_"+rowIndex+" td:nth-child("+(colIndex+1)+")"),item=myTd.find("input[type=text],input[type=checkbox],input[type=radio],select,textarea").get(0);item.focus()},AXbindOnchange:function(lidx,fidx,AXBindThis){var cfg=this.config;if(cfg.body.form[fidx].AXBind.onchange){var sendObj={rowIndex:lidx,colIndex:fidx,data:cfg.body.form[fidx].data,item:this.list[lidx],list:this.list};axf.each(AXBindThis,function(k,v){sendObj[k]=v}),cfg.body.form[fidx].AXBind.onchange.call(sendObj)}},printFootItem:function(){var cfg=this.config;if(cfg.foot&&cfg.foot.form){var _body=this.body.find("tfoot"),_list=this.list,foot=[];foot.push(""),jQuery.each(cfg.foot.form,function(fidx,arg){if(foot.push(''),foot.push('
'),arg.html){var html=arg.html.call({rowIndex:0,colIndex:fidx,data:arg.data,list:_list}); foot.push(html)}else foot.push(" ");foot.push("
"),foot.push("")}),foot.push(""),_body.empty(),_body.append(foot.join(""))}},updateItem:function(lidx,item,onlyDataChane,event){var cfg=this.config,getItem=this.getItem.bind(this);if(this.list[lidx]=AXUtil.overwriteObject(this.list[lidx],item,!0),onlyDataChane){var _body=this.body;jQuery.each(cfg.body.form,function(fidx,form){if(form.updateReload){var td=getItem({rowIndex:lidx,colIndex:fidx,align:form.align,html:form.html,data:form.data},"update"),myTD=jQuery(_body.find("tbody tr#"+cfg.targetID+"_tbodyTR_"+lidx+" td").get(fidx));myTD.html(td)}});var oncursorKeyup=this.oncursorKeyup.bind(this);cfg.cursorFocus&&_body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).find("input[type=text],input[type=checkbox],input[type=radio],select,textarea").unbind("keyup.AXModelControlGrid").bind("keyup.AXModelControlGrid",function(event){oncursorKeyup(jQuery(event.target),event,lidx)})}else this.printItem(lidx,this.list[lidx],"update",event);this.printFootItem()},removeItem:function(collectIdx){var newList=(this.config,[]);axf.each(this.list,function(lidx,L){if(Object.isArray(collectIdx)){var isOk=!0;axf.each(collectIdx,function(){this==lidx&&(isOk=!1)}),isOk&&newList.push(L)}else collectIdx!=lidx&&newList.push(L)}),this.setList(newList)},getValue:function(name){var returnValues=(this.config,[]);return this.body.find("input[type=checkbox][name="+name+"]").each(function(){returnValues.push(this.value)}),returnValues},getCheckedValue:function(name){var returnValues=(this.config,[]);return this.body.find("input[type=checkbox][name="+name+"]:checked").each(function(){returnValues.push(this.value)}),returnValues},getList:function(){var cfg=this.config,_body=this.body.find("tbody");return axf.each(this.list,function(lidx,L){var item={};_body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).find("input[type=text],select,textarea").each(function(){item[this.name]=axdom(this).val()});var checkNames={};_body.find("#"+cfg.targetID+"_tbodyTR_"+lidx).find("input[type=checkbox],input[type=radio]").each(function(){"checkbox"==this.type&&(checkNames[this.name]?checkNames[this.name].count+=1:(checkNames[this.name]={name:this.name,count:1},item[this.name]="")),this.checked&&("checkbox"==this.type?item[this.name]?item[this.name].push(this.value):item[this.name]=[this.value]:item[this.name]=this.value)}),jQuery.each(checkNames,function(k,v){1==v.count&&Object.isArray(item[v.name])&&(item[v.name]=item[v.name].join(","))}),L=AXUtil.overwriteObject(L,item,!0)}),this.list}}),AXMultiSelector=Class.create(AXJ,{version:"AXMultiSelector v1.21",author:"tom@axisj.com",logs:["2013-08-01 오후 3:08:07","2014-03-21 오후 2:19:52 : tom multiselect 기본값 설정 함수 추가"],initialize:function(AXJ_super){AXJ_super()},init:function(){var cfg=this.config;jQuery("#"+cfg.targetID).bind("click",this.expandOptionBox.bind(this))},expandOptionBox:function(){var cfg=this.config;jQuery.each(cfg.optionGroup,function(gidx,G){G.getOptionValue&&jQuery.each(cfg.optionGroup[gidx].options,function(oidx){cfg.optionGroup[gidx].options[oidx].selected=!1})});var po=[];po.push('
');var boxWidth=0;jQuery.each(cfg.optionGroup,function(gidx){po.push('
'),po.push('
'),jQuery.each(this.options,function(index,O){var selectedClass=O.selected?" on":"";po.push(''+O.optionText+"")}),po.push("
"),po.push("
"),boxWidth+=this.width+2}),po.push('
'),po.push('
'),po.push(' '),po.push(' '),po.push("
"),po.push("
"),axdom(document.body).append(po.join("")),boxWidth=boxWidth+5*cfg.optionGroup.length+5,jQuery("#"+cfg.targetID+"_AX_expandBox").css({width:boxWidth});var css={},offset=jQuery("#"+cfg.targetID).offset();css.top=offset.top,css.left=offset.left,jQuery("#"+cfg.targetID+"_AX_expandBox").css(css),jQuery.each(cfg.optionGroup,function(gidx,G){G.myUIScroll=new AXScroll,G.myUIScroll.setConfig({CT_className:"AXScrollSmall",targetID:cfg.targetID+"_AX_expandScrollBox_AX_"+gidx,scrollID:cfg.targetID+"_AX_expandScroll_AX_"+gidx,touchDirection:!1});var selectedValue="";G.getOptionValue&&(selectedValue=G.getOptionValue.call(G)),jQuery.each(cfg.optionGroup[gidx].options,function(oidx,O){G.getOptionValue?O.optionValue==selectedValue&&(O.selected=!0,axdom("#"+cfg.targetID+"_AX_"+gidx+"_AX_option_AX_"+oidx).addClass("on"),G.myUIScroll.focusElement(cfg.targetID+"_AX_"+gidx+"_AX_option_AX_"+oidx)):O.selected?(O.selected=!0,axdom("#"+cfg.targetID+"_AX_"+gidx+"_AX_option_AX_"+oidx).addClass("on"),G.myUIScroll.focusElement(cfg.targetID+"_AX_"+gidx+"_AX_option_AX_"+oidx)):cfg.optionGroup[gidx].options[oidx].selected=!1})}),jQuery("#"+cfg.targetID+"_AX_expandScrollBox_AX_confirm").bind("click",function(){if(cfg.onChange){var selectObj={};jQuery.each(cfg.optionGroup,function(gidx,G){selectObj[G.name]={},jQuery.each(cfg.optionGroup[gidx].options,function(oidx,O){O.selected&&(selectObj[G.name]=O)})}),cfg.onChange.call(selectObj)}jQuery("#"+cfg.targetID+"_AX_expandBox").remove()}),jQuery("#"+cfg.targetID+"_AX_expandScrollBox_AX_cancel").bind("click",function(){jQuery("#"+cfg.targetID+"_AX_expandBox").remove()}),jQuery("#"+cfg.targetID+"_AX_expandBox").find(".bindSelectorNodes").bind("click",function(event){var idx=event.target.id.split(/_AX_/g),gidx=idx[idx.length-3],index=idx[idx.length-1];jQuery("#"+cfg.targetID+"_AX_"+gidx+"_AX_option_AX_"+index).addClass("on"),jQuery.each(cfg.optionGroup[gidx].options,function(oidx,O){O.selected&&(jQuery("#"+cfg.targetID+"_AX_"+gidx+"_AX_option_AX_"+oidx).removeClass("on"),delete O.selected)}),cfg.optionGroup[gidx].options[index].selected=!0})},setValue:function(obj){var cfg=this.config;jQuery.each(cfg.optionGroup,function(gidx,G){jQuery.each(obj,function(k,v){G.name==k&&jQuery.each(G.options,function(){this.optionValue+""==v+""?this.selected=!0:delete this.selected})})})}}),AXProgress=Class.create(AXJ,{version:"AXProgress v1.1",author:"tom@axisj.com",logs:["2012-12-19 오후 5:47:58","2014-02-03 오후 9:29:34 : tom count 표시문제 해결"],initialize:function(AXJ_super){AXJ_super(),this.Observer=null,this.config.duration=50,this.config.theme="AXlineProgress"},init:function(){},start:function(callBack,options){var config=this.config;config.callBack=callBack,config.options=options;var totalCount=config.totalCount||100;this.loadedCount=0;var loadedCount=this.loadedCount,loadedRate=(loadedCount/totalCount*100).round(1),progressWidth=config.width||200,progressTitle=config.title||"",progressTop=config.top||0;this.progressID="progress_AX_"+AXUtil.timekey();var progressID=this.progressID;this.progressStop=!1;var theme=config.theme,hasCancel=!1;config.options&&(config.options.totalCount&&(totalCount=config.options.totalCount),config.options.width&&(progressWidth=config.options.width),config.options.top&&(progressTop=config.options.top),config.options.title&&(progressTitle=config.options.title),config.options.cancel&&(hasCancel=config.options.cancel),config.options.theme&&(theme=config.options.theme));var po=[];po.push('
'),""!=progressTitle&&po.push('
'+progressTitle+"
"),po.push('
'),po.push('
'),po.push("AXlineProgress"==theme?'
':'
'),po.push("
"),po.push('
'+loadedRate+"%
"),hasCancel&&po.push(' Cancel'),po.push("
"),po.push("
"),this.progress=jQuery(po.join("")),jQuery(document.body).append(this.progress),jQuery("#"+progressID+"_AX_cancel").bind("click",this.cancel.bind(this)),this.loadedCount=1,this.update()},update:function(){var config=this.config,theme=config.theme;if(!this.progressStop){var totalCount=config.totalCount||100;config.options&&(config.options.totalCount&&(totalCount=config.options.totalCount),config.options.theme&&(theme=config.options.theme));var loadedCount=this.loadedCount,progressID=this.progressID,loadedRate=((loadedCount-1)/totalCount.number()*100).round(1);loadedRate>100&&(loadedRate=100),jQuery("#"+progressID+"_AX_loadedText").html(loadedRate+"%"+(loadedCount-1).money()+"/"+totalCount.money()+""),"AXlineProgress"==theme?jQuery("#"+progressID+"_AX_bar").animate({width:loadedRate+"%"},config.duration,"",function(){config.callBack&&config.callBack.call({totalCount:totalCount,loadedCount:loadedCount,loadedRate:(loadedCount/(totalCount.number()+1)*100).round(1),isEnd:loadedCount-1==totalCount})}):setTimeout(function(){jQuery("#"+progressID+"_AX_bar").addClass("percent"+5*((loadedCount/totalCount.number()*100).round(0)/5).round()),config.callBack&&config.callBack.call({totalCount:totalCount,loadedCount:loadedCount-1,loadedRate:(loadedCount/(totalCount.number()+1)*100).round(1),isEnd:loadedCount-1==totalCount})},config.duration),this.loadedCount++}},cancel:function(){var config=this.config,cancelMSg=(this.progressID,AXConfig.AXProgress.cancelMsg);if(config.options){var cancel=config.options.cancel;if(cancel.confirmMsg&&(cancelMSg=cancel.confirmMsg),confirm(cancelMSg)){this.progressStop=!0;var totalCount=config.totalCount||100,loadedCount=this.loadedCount;cancel.oncancel.call({totalCount:totalCount,loadedCount:loadedCount,loadedRate:(loadedCount/totalCount*100).round(1),isEnd:loadedCount==totalCount})}}},restart:function(){this.progressStop=!1,this.update()},close:function(){var progressID=(this.config,this.progressID);jQuery("#"+progressID+"_AX_tray").remove()}}),AXSearch=Class.create(AXJ,{version:"AXSearch V1.21",author:"tom@axisj.com",logs:["2013-06-04 오후 2:00:44 - tom@axisj.com","2013-07-29 오전 9:35:19 - expandToggle 버그픽스 - tom","2013-09-16 오후 9:59:52 - inputBox 의 경우 엔터 작동 - tom","2013-11-12 오후 6:13:03 - tom : setItemValue bugFix","2013-12-27 오후 4:55:15 - tom : Checkbox, radio onchange 버그픽스"],initialize:function(AXJ_super){AXJ_super(),this.config.theme="AXSearch"},init:function(){var cfg=this.config;return Object.isUndefined(cfg.targetID)?void trace("need targetID - setConfig({targetID:''})"):void this.setBody()},getItem:function(gr,itemIndex,item){var cfg=this.config,po=[],itemAddClass=[],itemAddStyles=[];if(item.addClass&&itemAddClass.push(item.addClass),item.style&&itemAddStyles.push(item.style),"label"==item.type)po.push('
'),po.push(item.value),po.push("
");else if("link"==item.type)po.push('");else if("checkBox"==item.type){po.push('
'),po.push(''),po.push(" "),po.push(" "),item.label&&po.push(' "),po.push(' "),po.push(" "),po.push(" "),po.push("
',item.label,"');var values=item.value.split(/,/g);jQuery.each(item.options,function(idx,Opt){var isCheck=!1;jQuery.each(values,function(){return this==Opt.optionValue?(isCheck=!0,!1):void 0}),po.push('"),po.push('")}),po.push("
"),po.push("
")}else if("radioBox"==item.type){po.push('
'),po.push(''),po.push(" "),po.push(" "),item.label&&po.push(' "),po.push(' "),po.push(" "),po.push(" "),po.push("
',item.label,"');var values=item.value.split(/,/g);jQuery.each(item.options,function(idx,Opt){var isCheck=!1;jQuery.each(values,function(){return this==Opt.optionValue?(isCheck=!0,!1):void 0}),po.push('"),po.push('")}),po.push("
"),po.push("
")}else if("selectBox"==item.type){po.push('
'),po.push(''),po.push(" "),po.push(" "),item.label&&po.push(' "),po.push(' "),po.push(" "),po.push(" "),po.push("
',item.label,"');var selectWidth=item.width?item.width+"px":"auto";po.push(' "),po.push("
"),po.push("
")}else if("inputText"==item.type){po.push('
'),po.push(''),po.push(" "),po.push(" "),item.label?po.push(' "):item.labelWidth=0,po.push(' "),po.push(" "),po.push(" "),po.push("
',item.label,"');var inputWidth=(item.width||100).number();po.push(' '),po.push("
"),po.push("
")}else if("hidden"==item.type)po.push('');else if("button"==item.type||"submit"==item.type){po.push('
'),po.push(''),po.push(" "),po.push(" "),item.label?po.push(' "):item.labelWidth=0,po.push(' "),po.push(" "),po.push(" "),po.push("
',item.label,"');var inputWidth=(item.width||100).number();po.push(' '),po.push("
"),po.push("
")}return po.join("")},setBody:function(){var cfg=this.config,getItem=this.getItem.bind(this),po=[],AXBinds=[];po.push('
'),po.push('
');for(var gr=0,hasHide=!1;gr'),jQuery.each(cfg.rows[gr].list,function(itemIndex,item){po.push(getItem(gr,itemIndex,item)),item.AXBind&&AXBinds.push({display:cfg.rows[gr].display,gr:gr,itemIndex:itemIndex,item:item})}),po.push('
'),po.push("
"),gr++}hasHide&&(po.push(''),po.push("상세검색"),po.push("")),po.push(""),po.push("
"),jQuery("#"+cfg.targetID).html(po.join("")),cfg.onsubmit&&(document[cfg.targetID+"_AX_form"].onsubmit=function(){return cfg.onsubmit(),!1}),jQuery("#"+cfg.targetID+"_AX_expandHandle").bind("click",this.expandToggle.bind(this)),jQuery("#"+cfg.targetID).find(".searchLinkItem").bind("click",this.onclickLinkItem.bind(this)),jQuery("#"+cfg.targetID).find(".searchCheckboxItem").bind("click",this.onclickCheckboxItem.bind(this)),jQuery("#"+cfg.targetID).find(".searchSelectboxItem").bind("change",this.onChangeSelect.bind(this)),jQuery("#"+cfg.targetID).find(".searchInputTextItem").bind("change",this.onChangeInput.bind(this)),jQuery("#"+cfg.targetID).find(".searchButtonItem").bind("click",this.onclickButton.bind(this)),this.AXBinds=AXBinds;var _this=this;setTimeout(function(){_this.AXBindItems()},100)},AXBindItems:function(){var cfg=this.config;jQuery.each(this.AXBinds,function(){var gr=this.gr,itemIndex=this.itemIndex,item=this.item,display=this.display,itemID=cfg.targetID+"_AX_"+gr+"_AX_"+itemIndex+"_AX_"+item.key;if(display)if("selector"==item.AXBind.type)jQuery("#"+itemID).bindSelector(item.AXBind.config);else if("select"==item.AXBind.type)jQuery("#"+itemID).bindSelect(item.AXBind.config);else if("date"==item.AXBind.type)jQuery("#"+itemID).bindDate(item.AXBind.config);else if("twinDate"==item.AXBind.type){var startTargetID=item.AXBind.config.startTargetID,findItemID="";jQuery.each(cfg.rows,function(gidx){jQuery.each(this.list,function(itemIndex,item){item.key==startTargetID&&(findItemID=cfg.targetID+"_AX_"+gidx+"_AX_"+itemIndex+"_AX_"+item.key)})}),item.AXBind.config.startTargetID=findItemID,jQuery("#"+itemID).bindTwinDate(item.AXBind.config)}})},expandToggle:function(){var cfg=this.config;this.expanded?(jQuery("#"+cfg.targetID+"_AX_expandHandle").html("상세검색"),jQuery("#"+cfg.targetID).find(".expandGroup").hide(),this.expanded=!1):(jQuery("#"+cfg.targetID+"_AX_expandHandle").html("상세검색창 닫기"),jQuery("#"+cfg.targetID).find(".expandGroup").show(),this.expanded=!0,jQuery.each(this.AXBinds,function(){var gr=this.gr,itemIndex=this.itemIndex,item=this.item,display=this.display,itemID=cfg.targetID+"_AX_"+gr+"_AX_"+itemIndex+"_AX_"+item.key;if(!display)if("selector"==item.AXBind.type)jQuery("#"+itemID).bindSelector(item.AXBind.config);else if("select"==item.AXBind.type)jQuery("#"+itemID).bindSelect(item.AXBind.config);else if("date"==item.AXBind.type)jQuery("#"+itemID).bindDate(item.AXBind.config);else if("twinDate"==item.AXBind.type){var startTargetID=item.AXBind.config.startTargetID.split(/_AX_/g).last(),findItemID="";jQuery.each(cfg.rows,function(gidx){jQuery.each(this.list,function(itemIndex,item){item.key==startTargetID&&(findItemID=cfg.targetID+"_AX_"+gidx+"_AX_"+itemIndex+"_AX_"+item.key)})}),item.AXBind.config.startTargetID=findItemID,jQuery("#"+itemID).bindTwinDate(item.AXBind.config)}}))},onclickLinkItem:function(event){var cfg=this.config,ids=event.target.id.split(/_AX_/g),index=ids.pop(),gr=ids[ids.length-3],itemIndex=ids[ids.length-2],item=cfg.rows[gr].list[itemIndex],targetID="";jQuery.each(ids,function(ii){ii>0&&(targetID+="_AX_"),targetID+=this}),void 0!=item.selectedIndex&&jQuery("#"+targetID+"_AX_"+item.selectedIndex).removeClass("on"),item.selectedIndex=index,item.value=item.options[index].optionValue,jQuery("#"+targetID+"_AX_"+index).addClass("on"),jQuery("#"+targetID).val(item.options[index].optionValue),item.onChange&&item.onChange.call(item,item.options[index],item.options[index].optionValue)},onclickCheckboxItem:function(event){var cfg=this.config,ids=event.target.id.split(/_AX_/g),index=ids.pop(),gr=ids[ids.length-3],itemIndex=ids[ids.length-2],item=cfg.rows[gr].list[itemIndex],frm=document[cfg.targetID+"_AX_form"],selectedValue="";if(isNaN(frm[item.key].length))frm[item.key].checked&&(selectedValue=frm[item.key].value);else for(var i=0;i