if(!nexacro.GridFormat){nexacro.Grid_Style=function(_a){nexacro.Style.call(this,_a);this.line=null;this.selectline=null;this.linetype=null;this.selectlinetype=null;this.focusborder=null;this.treeclosebuttonimage=null;this.treecollapseimage=null;this.treeexpandimage=null;this.treeitemimage=null;this.treeitemmargin=null;this.treelinetype=null;this.treeopenbuttonimage=null;this.accessibility=null;this.selectpointimage=null;};var _pGridStyle=nexacro._createPrototype(nexacro.Style,nexacro.Grid_Style);nexacro.Grid_Style.prototype=_pGridStyle;eval(nexacro._createBorderAttributeEvalStr("_pGridStyle","line"));eval(nexacro._createBorderAttributeEvalStr("_pGridStyle","selectline"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","linetype"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","selectlinetype"));eval(nexacro._createBorderAttributeEvalStr("_pGridStyle","focusborder"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","treeclosebuttonimage"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","treecollapseimage"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","treeexpandimage"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","treeitemimage"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","treeitemmargin"));eval(nexacro._createLineAttributeEvalStr("_pGridStyle","treelinetype"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","treeopenbuttonimage"));eval(nexacro._createAccessibilityAttributeEvalStr("_pGridStyle","accessibility"));eval(nexacro._createValueAttributeEvalStr("_pGridStyle","selectpointimage"));_pGridStyle.__custom_emptyObject=function(){this.line=null;this.selectline=null;this.linetype=null;this.selectlinetype=null;this.focusborder=null;this.treeclosebuttonimage=null;this.treecollapseimage=null;this.treeexpandimage=null;this.treeitemimage=null;this.treeitemmargin=null;this.treelinetype=null;this.treeopenbuttonimage=null;this.selectpointimage=null;};_pGridStyle.__get_custom_style_value=function(){var _a="";if(this.line&&!this.line._is_empty){_a+="line:"+this.line._value+"; ";}if(this.selectline&&!this.selectline._is_empty){_a+="selectline:"+this.selectline._value+"; ";}if(this.linetype&&!this.linetype._is_empty){_a+="linetype:"+this.linetype._value+"; ";}if(this.selectlinetype&&!this.selectlinetype._is_empty){_a+="selectlinetype:"+this.selectlinetype._value+"; ";}if(this.focusborder&&!this.focusborder._is_empty){_a+="focusborder:"+this.focusborder._value+"; ";}if(this.treeclosebuttonimage&&!this.treeclosebuttonimage._is_empty){_a+="treeclosebuttonimage:"+this.treeclosebuttonimage._value+"; ";}if(this.treecollapseimage&&!this.treecollapseimage._is_empty){_a+="treecollapseimage:"+this.treecollapseimage._value+"; ";}if(this.treeexpandimage&&!this.treeexpandimage._is_empty){_a+="treeexpandimage:"+this.treeexpandimage._value+"; ";}if(this.treeitemimage&&!this.treeitemimage._is_empty){_a+="treeitemimage:"+this.treeitemimage._value+"; ";}if(this.treeitemmargin&&!this.treeitemmargin._is_empty){_a+="treeitemmargin:"+this.treeitemmargin._value+"; ";}if(this.treelinetype&&!this.treelinetype._is_empty){_a+="treelinetype:"+this.treelinetype._value+"; ";}if(this.treeopenbuttonimage&&!this.treeopenbuttonimage._is_empty){_a+="treeopenbuttonimage:"+this.treeopenbuttonimage._value+"; ";}if(this.accessibility&&!this.accessibility._is_empty){_a+="accessibility:"+this.accessibility._value+"; ";}if(this.selectpointimage&&!this.selectpointimage._is_empty){_a+="selectpointimage:"+this.selectpointimage._value+"; ";}return _a;};nexacro.Grid_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.line=null;this.selectline=null;this.linetype=null;this.selectlinetype=null;this.focusborder=null;this.treeclosebuttonimage=null;this.treecollapseimage=null;this.treeexpandimage=null;this.treeitemimage=null;this.treeitemmargin=null;this.treelinetype=null;this.treeopenbuttonimage=null;this.accessibility=null;this.selectpointimage=null;};var _pGridCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.Grid_CurrentStyle);nexacro.Grid_CurrentStyle.prototype=_pGridCurrentStyle;_pGridCurrentStyle.__custom_emptyObject=_pGridStyle.__custom_emptyObject;_pGridCurrentStyle.__get_custom_style_value=_pGridStyle.__get_custom_style_value;delete _pGridCurrentStyle;delete _pGridStyle;nexacro.GridBand_Style=function(_a){nexacro.Style.call(this,_a);this.cellalign=null;this.cellbackground=null;this.cellbackground2=null;this.cellcolor=null;this.cellcolor2=null;this.cellfont=null;this.cellgradation=null;this.cellgradation2=null;this.cellline=null;this.celllinetype=null;this.cellpadding=null;this.selectborder=null;this.selectbackground=null;this.selectcolor=null;this.selectfont=null;this.selectgradation=null;this.selectline=null;this.selectlinetype=null;this.accessibility=null;};var _pGridBandStyle=nexacro._createPrototype(nexacro.Style,nexacro.GridBand_Style);nexacro.GridBand_Style.prototype=_pGridBandStyle;eval(nexacro._createAlignAttributeEvalStr("_pGridBandStyle","cellalign"));eval(nexacro._createBackgroundAttributeEvalStr("_pGridBandStyle","cellbackground"));eval(nexacro._createBackgroundAttributeEvalStr("_pGridBandStyle","cellbackground2"));eval(nexacro._createColorAttributeEvalStr("_pGridBandStyle","cellcolor"));eval(nexacro._createColorAttributeEvalStr("_pGridBandStyle","cellcolor2"));eval(nexacro._createFontAttributeEvalStr("_pGridBandStyle","cellfont"));eval(nexacro._createGradationAttributeEvalStr("_pGridBandStyle","cellgradation"));eval(nexacro._createGradationAttributeEvalStr("_pGridBandStyle","cellgradation2"));eval(nexacro._createBorderAttributeEvalStr("_pGridBandStyle","cellline"));eval(nexacro._createValueAttributeEvalStr("_pGridBandStyle","celllinetype"));eval(nexacro._createPaddingAttributeEvalStr("_pGridBandStyle","cellpadding"));eval(nexacro._createBorderAttributeEvalStr("_pGridBandStyle","selectborder"));eval(nexacro._createBackgroundAttributeEvalStr("_pGridBandStyle","selectbackground"));eval(nexacro._createColorAttributeEvalStr("_pGridBandStyle","selectcolor"));eval(nexacro._createFontAttributeEvalStr("_pGridBandStyle","selectfont"));eval(nexacro._createGradationAttributeEvalStr("_pGridBandStyle","selectgradation"));eval(nexacro._createBorderAttributeEvalStr("_pGridBandStyle","selectline"));eval(nexacro._createValueAttributeEvalStr("_pGridBandStyle","selectlinetype"));eval(nexacro._createAccessibilityAttributeEvalStr("_pGridBandStyle","accessibility"));_pGridBandStyle.__custom_emptyObject=function(){this.cellalign=null;this.cellbackground=null;this.cellbackground2=null;this.cellcolor=null;this.cellcolor2=null;this.cellfont=null;this.cellgradation=null;this.cellgradation2=null;this.cellline=null;this.celllinetype=null;this.cellpadding=null;this.selectborder=null;this.selectbackground=null;this.selectcolor=null;this.selectfont=null;this.selectgradation=null;this.selectline=null;this.selectlinetype=null;};_pGridBandStyle.__get_custom_style_value=function(){var _a="";if(this.cellalign&&!this.cellalign._is_empty){_a+="cellalign:"+this.cellalign._value+"; ";}if(this.cellbackground&&!this.cellbackground._is_empty){_a+="cellbackground:"+this.cellbackground._value+"; ";}if(this.cellbackground2&&!this.cellbackground2._is_empty){_a+="cellbackground2:"+this.cellbackground2._value+"; ";}if(this.cellcolor&&!this.cellcolor._is_empty){_a+="cellcolor:"+this.cellcolor._value+"; ";}if(this.cellcolor2&&!this.cellcolor2._is_empty){_a+="cellcolor2:"+this.cellcolor2._value+"; ";}if(this.cellfont&&!this.cellfont._is_empty){_a+="cellfont:"+this.cellfont._value+"; ";}if(this.cellgradation&&!this.cellgradation._is_empty){_a+="cellgradation:"+this.cellgradation._value+"; ";}if(this.cellgradation2&&!this.cellgradation2._is_empty){_a+="cellgradation2:"+this.cellgradation2._value+"; ";}if(this.cellline&&!this.cellline._is_empty){_a+="cellline:"+this.cellline._value+"; ";}if(this.celllinetype&&!this.celllinetype._is_empty){_a+="celllinetype:"+this.celllinetype._value+"; ";}if(this.selectborder&&!this.selectborder._is_empty){_a+="selectborder:"+this.selectborder._value+"; ";}if(this.selectbackground&&!this.selectbackground._is_empty){_a+="selectbackground:"+this.selectbackground._value+"; ";}if(this.selectcolor&&!this.selectcolor._is_empty){_a+="selectcolor:"+this.selectcolor._value+"; ";}if(this.selectfont&&!this.selectfont._is_empty){_a+="selectfont:"+this.selectfont._value+"; ";}if(this.selectgradation&&!this.selectgradation._is_empty){_a+="selectgradation:"+this.selectgradation._value+"; ";}if(this.selectLine&&!this.selectline._is_empty){_a+="selectline:"+this.selectline._value+"; ";}if(this.selectlinetype&&!this.selectlinetype._is_empty){_a+="selectlinetype:"+this.selectlinetype._value+"; ";}if(this.accessibility&&!this.accessibility._is_empty){_a+="accessibility:"+this.accessibility._value+"; ";}return _a;};nexacro.GridBand_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.cellalign=null;this.cellbackground=null;this.cellbackground2=null;this.cellcolor=null;this.cellcolor2=null;this.cellfont=null;this.cellgradation=null;this.cellgradation2=null;this.cellline=null;this.celllinetype=null;this.cellpadding=null;this.selectborder=null;this.selectbackground=null;this.selectcolor=null;this.selectfont=null;this.selectgradation=null;this.selectline=null;this.selectlinetype=null;this.accessibility=null;};var _pGridBandCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.GridBand_CurrentStyle);nexacro.GridBand_CurrentStyle.prototype=_pGridBandCurrentStyle;_pGridBandCurrentStyle.__custom_emptyObject=_pGridBandStyle.__custom_emptyObject;_pGridBandCurrentStyle.__get_custom_style_value=_pGridBandStyle.__get_custom_style_value;delete _pGridBandCurrentStyle;delete _pGridBandStyle;nexacro.GridCell_Style=function(_a){nexacro.Style.call(this,_a);this.background2=null;this.backgroundimage=null;this.color2=null;this.gradation2=null;this.line=null;this.linetype=null;this.barcolor=null;this.bardirection=null;this.bargradation=null;this.checkboxsize=null;this.controlaccessibility=null;this.controlbackground=null;this.controlbackgroundimagemode=null;this.controlcolor=null;this.controlfont=null;this.controlalign=null;this.controlimage=null;this.controlborder=null;this.controlbordertype=null;this.controlbuttonsize=null;this.controlgradation=null;this.selectbackground=null;this.selectcolor=null;this.selectfont=null;this.selectgradation=null;this.selectline=null;this.selectlinetype=null;this.accessibility=null;};var _pGridCellStyle=nexacro._createPrototype(nexacro.Style,nexacro.GridCell_Style);nexacro.GridCell_Style.prototype=_pGridCellStyle;eval(nexacro._createBackgroundAttributeEvalStr("_pGridCellStyle","background2"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","backgroundimage"));eval(nexacro._createColorAttributeEvalStr("_pGridCellStyle","color2"));eval(nexacro._createGradationAttributeEvalStr("_pGridCellStyle","gradation2"));eval(nexacro._createBorderAttributeEvalStr("_pGridCellStyle","line"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","linetype"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","barcolor"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","bardirection"));eval(nexacro._createGradationAttributeEvalStr("_pGridCellStyle","bargradation"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","checkboxsize"));eval(nexacro._createAccessibilityAttributeEvalStr("_pGridCellStyle","controlaccessibility"));eval(nexacro._createBackgroundAttributeEvalStr("_pGridCellStyle","controlbackground"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","controlbackgroundimagemode"));eval(nexacro._createColorAttributeEvalStr("_pGridCellStyle","controlcolor"));eval(nexacro._createFontAttributeEvalStr("_pGridCellStyle","controlfont"));eval(nexacro._createAlignAttributeEvalStr("_pGridCellStyle","controlalign"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","controlimage"));eval(nexacro._createBorderAttributeEvalStr("_pGridCellStyle","controlborder"));eval(nexacro._createBordertypeAttributeEvalStr("_pGridCellStyle","controlbordertype"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","controlbuttonsize"));eval(nexacro._createGradationAttributeEvalStr("_pGridCellStyle","controlgradation"));eval(nexacro._createBackgroundAttributeEvalStr("_pGridCellStyle","selectbackground"));eval(nexacro._createColorAttributeEvalStr("_pGridCellStyle","selectcolor"));eval(nexacro._createFontAttributeEvalStr("_pGridCellStyle","selectfont"));eval(nexacro._createGradationAttributeEvalStr("_pGridCellStyle","selectgradation"));eval(nexacro._createBorderAttributeEvalStr("_pGridCellStyle","selectline"));eval(nexacro._createValueAttributeEvalStr("_pGridCellStyle","selectlinetype"));eval(nexacro._createAccessibilityAttributeEvalStr("_pGridCellStyle","accessibility"));_pGridCellStyle.__custom_emptyObject=function(){this.background2=null;this.backgroundimage=null;this.color2=null;this.gradation2=null;this.line=null;this.linetype=null;this.barcolor=null;this.bardirection=null;this.bargradation=null;this.checkboxsize=null;this.controlaccessibility=null;this.controlbackground=null;this.controlbackgroundimagemode=null;this.controlcolor=null;this.controlfont=null;this.controlalign=null;this.controlimage=null;this.controlborder=null;this.controlbordertype=null;this.controlbuttonsize=null;this.controlgradation=null;this.selectbackground=null;this.selectcolor=null;this.selectfont=null;this.selectgradation=null;this.selectline=null;this.selectlinetype=null;};_pGridCellStyle.__get_custom_style_value=function(){var _a="";if(this.background2&&!this.background2._is_empty){_a+="background2:"+this.background2._value+"; ";}if(this.backgroundimage&&!this.backgroundimage._is_empty){_a+="backgroundimage:"+this.backgroundimage._value+"; ";}if(this.color2&&!this.color2._is_empty){_a+="color2:"+this.color2._value+"; ";}if(this.gradation2&&!this.gradation2._is_empty){_a+="gradation2:"+this.gradation2._value+"; ";}if(this.line&&!this.line._is_empty){_a+="line:"+this.line._value+"; ";}if(this.linetype&&!this.linetype._is_empty){_a+="linetype:"+this.linetype._value+"; ";}if(this.barcolor&&!this.barcolor._is_empty){_a+="barcolor:"+this.barcolor._value+"; ";}if(this.bardirection&&!this.bardirection._is_empty){_a+="bardirection:"+this.bardirection._value+"; ";}if(this.bargradation&&!this.bargradation._is_empty){_a+="bargradation:"+this.bargradation._value+"; ";}if(this.checkboxsize&&!this.checkboxsize._is_empty){_a+="checkboxsize:"+this.checkboxsize._value+"; ";}if(this.controlaccessibility&&!this.controlaccessibility._is_empty){_a+="controlaccessibility:"+this.controlaccessibility._value+"; ";}if(this.controlbackground&&!this.controlbackground._is_empty){_a+="controlbackground:"+this.controlbackground._value+"; ";}if(this.controlbackgroundimagemode&&!this.controlbackgroundimagemode._is_empty){_a+="controlbackgroundimagemode:"+this.controlbackgroundimagemode._value+"; ";}if(this.controlcolor&&!this.controlcolor._is_empty){_a+="controlcolor:"+this.controlcolor._value+"; ";}if(this.controlfont&&!this.controlfont._is_empty){_a+="controlfont:"+this.controlfont._value+"; ";}if(this.controlalign&&!this.controlalign._is_empty){_a+="controlalign:"+this.controlalign._value+"; ";}if(this.controlimage&&!this.controlimage._is_empty){_a+="controlimage:"+this.controlimage._value+"; ";}if(this.controlborder&&!this.controlborder._is_empty){_a+="controlborder:"+this.controlborder._value+"; ";}if(this.controlbordertype&&!this.controlbordertype._is_empty){_a+="controlbordertype:"+this.controlbordertype._value+"; ";}if(this.controlbuttonsize&&!this.controlbuttonsize._is_empty){_a+="controlbuttonsize:"+this.controlbuttonsize._value+"; ";}if(this.controlgradation&&!this.controlgradation._is_empty){_a+="controlgradation:"+this.controlgradation._value+"; ";}if(this.selectbackground&&!this.selectbackground._is_empty){_a+="selectbackground:"+this.selectbackground._value+"; ";}if(this.selectcolor&&!this.selectcolor._is_empty){_a+="selectcolor:"+this.selectcolor._value+"; ";}if(this.selectfont&&!this.selectfont._is_empty){_a+="selectfont:"+this.selectfont._value+"; ";}if(this.selectgradation&&!this.selectgradation._is_empty){_a+="selectgradation:"+this.selectgradation._value+"; ";}if(this.accessibility&&!this.accessibility._is_empty){_a+="accessibility:"+this.accessibility._value+"; ";}return _a;};nexacro.GridCell_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.background2=null;this.backgroundimage=null;this.color2=null;this.gradation2=null;this.line=null;this.linetype=null;this.barcolor=null;this.bardirection=null;this.bargradation=null;this.checkboxsize=null;this.controlaccessibility=null;this.controlbackground=null;this.controlbackgroundimagemode=null;this.controlcolor=null;this.controlfont=null;this.controlalign=null;this.controlimage=null;this.controlborder=null;this.controlbordertype=null;this.controlbuttonsize=null;this.controlgradation=null;this.selectbackground=null;this.selectcolor=null;this.selectfont=null;this.selectgradation=null;this.selectline=null;this.selectlinetype=null;this.accessibility=null;};var _pGridCellCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.GridCell_CurrentStyle);nexacro.GridCell_CurrentStyle.prototype=_pGridCellCurrentStyle;_pGridCellCurrentStyle.__custom_emptyObject=_pGridCellStyle.__custom_emptyObject;_pGridCellCurrentStyle.__get_custom_style_value=_pGridCellStyle.__get_custom_style_value;delete _pGridCellCurrentStyle;delete _pGridCellStyle;nexacro.GridCellInfo=function(_a,_b,_c,_d,_e){this.id=this.name=_a;this.parent=_b;this.grid=_c;this.celltype=_d;this._cellidx=_e;this._col=0;this._colspan=0;this._row=0;this._rowspan=0;this._area="";this._endcol=false;this._subcells=[];this._isSubCell=false;this.classname="";this._hasEditor=false;this._control_element=true;this._editingRow= -9;this._default_expandsize=16;this._is_use_bind_expr_style=false;this._findcss_ctrl=new nexacro.Component("cssfind","absolute",0,0,0,0,null,null,this);this._findcss_ctrl._is_subcontrol=true;this.style=new nexacro.GridCell_Style(this);this._styles={};this._stylecache={};this._imgWidthTemp={};this._imgHeightTemp={};this._suppress_infos=[];this._fakemerge_infos=null;this._cur1font_size=null;this._cur1selectfont_size=null;this._curfont=undefined;this._curselfont=undefined;this._curborder=undefined;this._curpadding=undefined;this.displaytype=new nexacro.BindableValue("normal");this.edittype=new nexacro.BindableValue("none");this.tooltiptype="none";this.tooltiptext=new nexacro.BindableValue("");this.autosizecol="default";this.autosizerow="default";this.displayexpdec=new nexacro.BindableValue( -1);this.locale=new nexacro.BindableValue("");this.mask=new nexacro.BindableValue("");this.maskchar="_";this.suppress=new nexacro.BindableValue(0);this.suppressalign="first";this.suppressedit=false;this.wordwrap=new nexacro.BindableValue("none");this.text=new nexacro.BindableValue("");this.expr=new nexacro.BindableValue("");this.subsumtext=new nexacro.BindableValue("");this.combodataset=new nexacro.BindableValue("");this.combocodecol=new nexacro.BindableValue("");this.combodatacol=new nexacro.BindableValue("");this.combodisplay=new nexacro.BindableValue("edit");this.combodisplaynulltext=new nexacro.BindableValue("");this.combodisplaynulltype=new nexacro.BindableValue("none");this.combodisplayrowcount=new nexacro.BindableValue( -1);this.combotype=new nexacro.BindableValue("dropdown");this.calendardisplay=new nexacro.BindableValue("edit");this.calendardisplaynulltext=new nexacro.BindableValue("");this.calendardisplaynulltype=new nexacro.BindableValue("default");this.calendarinnerdataset=new nexacro.BindableValue("");this.calendarbackgroundcolumn=new nexacro.BindableValue("");this.calendarbordercolumn=new nexacro.BindableValue("");this.calendardatecolumn=new nexacro.BindableValue("");this.calendartextcolorcolumn=new nexacro.BindableValue("");this.editacceptsenter=new nexacro.BindableValue(false);this.editacceptstab=new nexacro.BindableValue(false);this.editautoselect=new nexacro.BindableValue(false);this.editautoskip=new nexacro.BindableValue(false);this.editclipmode=new nexacro.BindableValue("includespace");this.editdisplay=new nexacro.BindableValue("edit");this.editfilter=new nexacro.BindableValue("none");this.editimemode=new nexacro.BindableValue("none");this.editlimit=new nexacro.BindableValue( -1);this.editlengthunit=new nexacro.BindableValue("utf16");this.editlimitbymask=new nexacro.BindableValue("decimal");this.editscrollbar=new nexacro.BindableValue("none");this.edittrimtype=new nexacro.BindableValue("none");this.edituseime=new nexacro.BindableValue("global");this.expandchar=new nexacro.BindableValue("");this.expandimage=new nexacro.BindableValue("");this.expandshow=new nexacro.BindableValue("hide");this.expandsize=new nexacro.BindableValue(this._default_expandsize);this.treecheck=new nexacro.BindableValue("");this.treecollapseimage=new nexacro.BindableValue("");this.treeexpandimage=new nexacro.BindableValue("");this.treeitemimage=new nexacro.BindableValue("");this.treelevel=new nexacro.BindableValue("");this.treestartlevel=new nexacro.BindableValue(0);this.treestate=new nexacro.BindableValue("");this._tempinnerds=new nexacro.Dataset();};var _pGridCellInfo=nexacro._createPrototype(nexacro.Object,nexacro.GridCellInfo);nexacro.GridCellInfo.prototype=_pGridCellInfo;_pGridCellInfo._type_name="GridCellInfo";_pGridCellInfo.destroy=function(){this.parent=null;this.grid=null;this._subcells=null;if(this.style){delete this.style;this.style=null;}if(this._styles){var _a=this._styles;for(var _b in _a){var _c=_a[_b];if(_c.destroy){_c.destroy();_c=null;}}this._styles=null;}this._imgWidthTemp=null;this._imgHeightTemp=null;this._suppress_infos=null;this._fakemerge_infos=null;this.displaytype=null;this.edittype=null;this.tooltiptext=null;this.displayexpdec=null;this.locale=null;this.mask=null;this.suppress=null;this.wordwrap=null;this.text=null;this.expr=null;this.subsumtext=null;this.combodataset=null;this.combocodecol=null;this.combodatacol=null;this.combodisplay=null;this.combodisplaynulltext=null;this.combodisplaynulltype=null;this.combodisplayrowcount=null;this.combotype=null;this.calendardisplay=null;this.calendardisplaynulltext=null;this.calendardisplaynulltype=null;this.calendarinnerdataset=null;this.calendarbackgroundcolumn=null;this.calendarbordercolumn=null;this.calendardatecolumn=null;this.calendartextcolorcolumn=null;this.editacceptsenter=null;this.editacceptstab=null;this.editautoselect=null;this.editautoskip=null;this.editclipmode=null;this.editdisplay=null;this.editfilter=null;this.editimemode=null;this.editlimit=null;this.editlengthunit=null;this.editlimitbymask=null;this.editscrollbar=null;this.edittrimtype=null;this.edituseime=null;this._findcss_ctrl=null;this._stylecache=null;this.expandchar=null;this.expandimage=null;this.expandshow=null;this.expandsize=null;this.treecheck=null;this.treecollapseimage=null;this.treeexpandimage=null;this.treeitemimage=null;this.treelevel=null;this.treestartlevel=null;this.treestate=null;this._tempinnerds=null;this._cur1font_size=null;this._cur1selectfont_size=null;this._curfont=null;this._curselfont=null;this._curborder=null;this._curpadding=null;};_pGridCellInfo._getValue=function(_a){return this._getAttrValue(this.text,_a);};_pGridCellInfo._setValue=function(_a,_b){this._setAttrValue(this.text,_a,_b);};_pGridCellInfo.on_update_style_blur=function(){};_pGridCellInfo.on_update_style_glow=function(){};_pGridCellInfo.on_update_style_align=function(){};_pGridCellInfo.on_update_style_cursor=function(){};_pGridCellInfo.on_update_style_shadow=function(){};_pGridCellInfo.on_update_style_opacity=function(){};_pGridCellInfo.on_update_style_margin=function(){};_pGridCellInfo.on_update_style_background=function(){};_pGridCellInfo.on_update_style_background2=function(){};_pGridCellInfo.on_update_style_backgroundimage=function(){};_pGridCellInfo.on_update_style_color=function(){};_pGridCellInfo.on_update_style_color2=function(){};_pGridCellInfo.on_update_style_gradation=function(){};_pGridCellInfo.on_update_style_gradation2=function(){};_pGridCellInfo.on_update_style_line=function(){};_pGridCellInfo.on_update_style_linetype=function(){};_pGridCellInfo.on_update_style_barcolor=function(){};_pGridCellInfo.on_update_style_bardirection=function(){};_pGridCellInfo.on_update_style_bargradation=function(){};_pGridCellInfo.on_update_style_checkboxsize=function(){};_pGridCellInfo.on_update_style_controlaccessibility=function(){};_pGridCellInfo.on_update_style_controlbackground=function(){};_pGridCellInfo.on_update_style_controlbackgroundimagemode=function(){};_pGridCellInfo.on_update_style_controlcolor=function(){};_pGridCellInfo.on_update_style_controlfont=function(){};_pGridCellInfo.on_update_style_controlalign=function(){};_pGridCellInfo.on_update_style_controlimage=function(){};_pGridCellInfo.on_update_style_controlborder=function(){};_pGridCellInfo.on_update_style_controlbordertype=function(){};_pGridCellInfo.on_update_style_controlbuttonsize=function(){};_pGridCellInfo.on_update_style_controlgradation=function(){};_pGridCellInfo.on_update_style_selectbackground=function(){};_pGridCellInfo.on_update_style_selectcolor=function(){};_pGridCellInfo.on_update_style_selectfont=function(){};_pGridCellInfo.on_update_style_selectgradation=function(){};_pGridCellInfo.on_update_style_selectline=function(){};_pGridCellInfo.on_update_style_selectlinetype=function(){};_pGridCellInfo.on_update_style_accessibility=function(){};_pGridCellInfo.on_update_style_bordertype=function(){};_pGridCellInfo.on_update_style_border=function(){};_pGridCellInfo.on_update_style_font=function(){};_pGridCellInfo.on_update_style_padding=function(){};_pGridCellInfo._getSuppressInfo=function(_a){if(_a<0){_a=0;}if(!this._suppress_infos[_a]){var _b={text_proc:0,border_proc:0,middle:false,last:true};this._suppress_infos[_a]=_b;}return this._suppress_infos[_a];};_pGridCellInfo._clearSuppressInfo=function(){this._suppress_infos=[];};_pGridCellInfo._getDisplaytype=function(_a){var _b=this.displaytype;var _c=this._getAttrValue(_b,_a);if(_c=="normal"){var _d=this.text;if(_d._bindtype==1){var _e=this.grid._binddataset;if(!_e){return "text";}var _f=_d._bindexpr;var _g=_e._getColumnType(_f);switch(_g){case 1:return "text";case 2:case 3:case 4:return "number";case 5:return "date2";case 6:return "time";case 7:return "datetime";default:return "none";}}else{return "text";}}return _c;};_pGridCellInfo._getEdittype=function(_a){var _b=this.edittype;var _c=this._getAttrValue(_b,_a);if(_c=="normal"){var _d=this.text;if(_d._bindtype==1){var _e=this.grid._binddataset;if(!_e){return "text";}var _f=_d._bindexpr;var _g=_e._getColumnType(_f);if(!_g){return "text";}var _h=_g;switch(_h){case 1:case 2:case 3:case 4:return "text";case 5:case 6:case 7:return "date";case 8:return "none";}}else{return "text";}}return _c;};_pGridCellInfo._getWordwrap=function(_a){var _b=this._getAttrValue(this.wordwrap,_a);if(!_b||_b=="none"||_b=="false"){_b=this._getAttrValue(this.parent.cellwordwrap,_a);}if(!_b){_b="none";}return _b;};_pGridCellInfo._getAttrValue=function(_a,_b){return this.parent._getAttrValue(_a,_b,this);};_pGridCellInfo._setAttrValue=function(_a,_b,_c){if(_a._bindtype==1){var _d=this.grid;var _e=_d._binddataset;if(_e){_e.setColumn(_b,_a._bindexpr,_c);}}};_pGridCellInfo._exeExprStyle=function(_a,_b,_c){if(_a&&_a._bindtype!=0){var _d=this.grid;var _e=_d._binddataset;if(_e==null){_a=null;}else{var _f;if(_a._bindtype==1){_f=_e.getColumn(_c,_a._bindexpr);}else{var _g=_a._value;var _h=_g.toLowerCase().indexOf("bind:");if(_h>=0){var _i=_a._bindexpr;_i=_i.substring(_h,_i.length);_f=_e.getColumn(_c,_i);}var _j=_d._exprcache[_a._bindexpr];if(_j==null){_j=_e._createExprFunc(_a._bindexpr);_d._exprcache[_a._bindexpr]=_j;}if((typeof _j)=="function"){_f=_j.call(this,_c,_c,_d,_e);if(_f){_f=_f.toString();}}else{_f=_a._bindexpr;}if(_f=="default"){_f="";}}if(_f!=null&&_f!=""){_a=nexacro._getCachedStyleObj(_b,_f);}else{_a=null;}}}return _a;};_pGridCellInfo._resultStyleProc=function(_a,_b,_c,_d,_e,_f,_g){if(_f&&(_c||_g)){this._addStyleCache(_a,_c);}if(_c&&_d&&_d.type==0){_d.type=_c._bindtype;}if(_c&&_c._bindtype>0){var _h=this.grid;var _i="body";if(_e== -1){_i="head";}if(_e== -2){_i="summ";}_h._is_use_bind_expr_style[_i]=true;this._is_use_bind_expr_style=true;switch(_b){case "background":case "backgroundimage":case "border":case "linetype":case "gradation":case "cursor":case "padding":_h._is_use_bind_expr_outerstyle[_i]=true;break;};}return this._exeExprStyle(_c,_b,_e);};_pGridCellInfo._searchStyleValue=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){var _j=this._stylecache[_b];if(_j!==undefined){if(_j===null){return null;}if(_j&&_h){_h.type=_j._bindtype;}if(_r=this._exeExprStyle(_j,_a,_c)){return _r;}}var _k=this.style;var _l=this.style;var _m=this._styles;var _n=this.parent;var _o=_n.style;var _p=_n._styles;var _q=_n.style;var _r=null;if(_g==undefined){_g=true;}if(_m[_f]&&!_e){_k=_m[_f];}if(_p[_f]&&!_e){_o=_p[_f];}if(_a=="background"){var _s;if(_e){_s=_k.selectbackground;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_s=_l.selectbackground;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_s=_o.selectbackground;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_s=_q.selectbackground;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_s=this._findcss_ctrl._find_pseudo_obj("selectbackground",_f,"background");_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_s=_n._find_gridpseudo_obj("selectbackground",_f,this.celltype,null,true,"background");_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}}if(_d&&this.isStyleEmpty(_r)){_s=_k.background2;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_s=_l.background2;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_s=_o.cellbackground2;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_s=_q.cellbackground2;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_s=this._findcss_ctrl._find_pseudo_obj("background2",_f,"background");_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_s=_n._find_gridpseudo_obj("cellbackground2",_f,this.celltype,null,true,"background");_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}}if(this.isStyleEmpty(_r)){_s=_k.background;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_s=_l.background;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_s=_o.cellbackground;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_s=_q.cellbackground;_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_s=this._findcss_ctrl._find_pseudo_obj("background",_f,"background");_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_s=_n._find_gridpseudo_obj("cellbackground",_f,this.celltype,"background",false,"background");_r=this._resultStyleProc(_b,_a,_s,_h,_c,_g,_i);}else{return _r;}}}else if(_a=="backgroundimage"){var _t=_k.backgroundimage;_r=this._resultStyleProc(_b,_a,_t,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_t=_l.backgroundimage;_r=this._resultStyleProc(_b,_a,_t,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_t=this._findcss_ctrl._find_pseudo_obj("backgroundimage",_t);_r=this._resultStyleProc(_b,_a,_t,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_t=_n._find_gridpseudo_obj("backgroundimage",_f,this.celltype);_r=this._resultStyleProc(_b,_a,_t,_h,_c,_g,_i);}else{return _r;}}else if(_a=="font"){var _u;if(_e){_u=_k.selectfont;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_u=_l.selectfont;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_u=_o.selectfont;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_u=_q.selectfont;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_u=this._findcss_ctrl._find_pseudo_obj("selectfont",_f,"font");_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_u=_n._find_gridpseudo_obj("selectfont",_f,this.celltype,null,true,"font");_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}else{return _r;}}if(this.isStyleEmpty(_r)){_u=_k.font;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_u=_l.font;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_u=_o.cellfont;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_u=_q.cellfont;_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_u=this._findcss_ctrl._find_pseudo_obj("font",_f,"font");_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_u=_n._find_gridpseudo_obj("cellfont",_f,this.celltype,"font",false,"font");_r=this._resultStyleProc(_b,_a,_u,_h,_c,_g,_i);}else{return _r;}}}else if(_a=="color"){var _v;if(_e){_v=_k.selectcolor;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_v=_l.selectcolor;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_v=_o.selectcolor;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_v=_q.selectcolor;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_v=this._findcss_ctrl._find_pseudo_obj("selectcolor",_f,"color");_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_v=_n._find_gridpseudo_obj("selectcolor",_f,this.celltype,null,true,"color");_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}}if(_d&&this.isStyleEmpty(_r)){_v=_k.color2;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_v=_l.color2;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_v=_o.cellcolor2;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_v=_q.cellcolor2;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_v=this._findcss_ctrl._find_pseudo_obj("color2",_f,"color");_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_v=_n._find_gridpseudo_obj("cellcolor2",_f,this.celltype,null,true,"color");_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}}if(this.isStyleEmpty(_r)){_v=_k.color;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_v=_l.color;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_v=_o.cellcolor;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_v=_q.cellcolor;_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_v=this._findcss_ctrl._find_pseudo_obj("color",_f,"color");_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_v=_n._find_gridpseudo_obj("cellcolor",_f,this.celltype,"color",false,"color");_r=this._resultStyleProc(_b,_a,_v,_h,_c,_g,_i);}else{return _r;}}}else if(_a=="align"){var _w=_k.align;_r=this._resultStyleProc(_b,_a,_w,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_w=_l.align;_r=this._resultStyleProc(_b,_a,_w,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_w=_o.cellalign;_r=this._resultStyleProc(_b,_a,_w,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_w=_q.cellalign;_r=this._resultStyleProc(_b,_a,_w,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_w=this._findcss_ctrl._find_pseudo_obj("align",_f,"align");_r=this._resultStyleProc(_b,_a,_w,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_w=_n._find_gridpseudo_obj("cellalign",_f,this.celltype,"align",false,"align");_r=this._resultStyleProc(_b,_a,_w,_h,_c,_g,_i);}else{return _r;}}else if(_a=="border"){var _x;if(_e){_x=_k.selectline;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_x=_l.selectline;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_x=_o.selectline;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_x=_q.selectline;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_x=this._findcss_ctrl._find_pseudo_obj("selectline",_f,"border");_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_x=_n._find_gridpseudo_obj("selectline",_f,this.celltype,"selectline",false,"border");_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}else{return _r;}}if(this.isStyleEmpty(_r)){_x=_k.line;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_x=_l.line;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_x=_o.cellline;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_x=_q.cellline;_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_x=this._findcss_ctrl._find_pseudo_obj("line",_f,"border");_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_x=_n._find_gridpseudo_obj("cellline",_f,this.celltype,"line",false,"border");_r=this._resultStyleProc(_b,_a,_x,_h,_c,_g,_i);}else{return _r;}}}else if(_a=="linetype"){var _y;if(_e){_y=_k.selectlinetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_y=_l.selectlinetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_y=_o.selectlinetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_y=_q.selectlinetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_y=this._findcss_ctrl._find_pseudo_obj("selectlinetype",_f,"linetype");_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_y=_n._find_gridpseudo_obj("selectlinetype",_f,this.celltype);_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}else{return _r;}}if(this.isStyleEmpty(_r)){_y=_k.linetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_y=_l.linetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_y=_o.celllinetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_y=_q.celllinetype;_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_y=this._findcss_ctrl._find_pseudo_obj("linetype",_f,"linetype");_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_y=_n._find_gridpseudo_obj("celllinetype",_f,this.celltype,"linetype");_r=this._resultStyleProc(_b,_a,_y,_h,_c,_g,_i);}else{return _r;}}}else if(_a=="gradation"){var _z;if(_e){_z=_k.selectgradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_z=_l.selectgradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_z=_o.selectgradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_z=_q.selectgradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_z=this._findcss_ctrl._find_pseudo_obj("selectgradation",_f,"gradation");_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_z=_n._find_gridpseudo_obj("selectgradation",_f,this.celltype,null,true,"gradation");_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}}if(_d&&this.isStyleEmpty(_r)){_z=_k.gradation2;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_z=_l.gradation2;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_z=_o.cellgradation2;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_z=_q.cellgradation2;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_z=this._findcss_ctrl._find_pseudo_obj("gradation2",_f,"gradation");_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_z=_n._find_gridpseudo_obj("cellgradation2",_f,this.celltype,null,true,"gradation");_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}}if(this.isStyleEmpty(_r)){_z=_k.gradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_z=_l.gradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_z=_o.cellgradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_z=_q.cellgradation;_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_z=this._findcss_ctrl._find_pseudo_obj("gradation",_f,"gradation");_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_z=_n._find_gridpseudo_obj("cellgradation",_f,this.celltype,"gradation",false,"gradation");_r=this._resultStyleProc(_b,_a,_z,_h,_c,_g,_i);}else{return _r;}}}else if(_a=="cursor"){var _aa=_k.cursor;_r=this._resultStyleProc(_b,_a,_aa,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_aa=_l.cursor;_r=this._resultStyleProc(_b,_a,_aa,_h,_c,_g,_i);}}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_aa=this._findcss_ctrl._find_pseudo_obj("cursor",_f,"cursor");_r=this._resultStyleProc(_b,_a,_aa,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_aa=_n._find_gridpseudo_obj("cursor",_f,this.celltype);_r=this._resultStyleProc(_b,_a,_aa,_h,_c,_g,_i);}else{return _r;}}else if(_a=="padding"){var _ab=_k.padding;_r=this._resultStyleProc(_b,_a,_ab,_h,_c,_g);if(this.isStyleEmpty(_r)){if(_k!=_l){_ab=_l.padding;_r=this._resultStyleProc(_b,_a,_ab,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_ab=_o.cellpadding;_r=this._resultStyleProc(_b,_a,_ab,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){_ab=_q.cellpadding;_r=this._resultStyleProc(_b,_a,_ab,_h,_c,_g);}else{return _r;}if(this.isStyleEmpty(_r)){if(this.cssclass){_ab=this._findcss_ctrl._find_pseudo_obj("padding",_f,"padding");_r=this._resultStyleProc(_b,_a,_ab,_h,_c,_g);}}else{return _r;}if(this.isStyleEmpty(_r)){_ab=_n._find_gridpseudo_obj("cellpadding",_f,this.celltype,null,true,"padding");_r=this._resultStyleProc(_b,_a,_ab,_h,_c,_g,_i);}else{return _r;}}return _r;};_pGridCellInfo._addStyleCache=function(_a,_b){if(!this._stylecache[_a]&&_b!==undefined){this._stylecache[_a]=_b;}};_pGridCellInfo._bkground=null;_pGridCellInfo._query_pseudo_background=function(_a,_b,_c,_d){_c=(this.grid.useselcolor&&_c);if(_d=="selected"){_d="normal";}var _e=[(_b!=0),_c,_d].join("");var _f="background"+_e;var _g="backgroundimage"+_e;var _h=this._stylecache[_f];var _i=this._stylecache[_g];if(!_h||_h._bindtype>0){_h=this._searchStyleValue("background",_f,_a,_b,_c,_d,true,null,true);}if(!_i||_i._bindtype>0){_i=this._searchStyleValue("backgroundimage",_g,_a,_b,_c,_d,true,null,true);}if(_i&&!_i._is_empty){var _j="";if(_h){_j=_h._value;}var _k=_h.position_x;var _l=_h.position_y;if(this._bkground){delete this._bkground;}_h=this._bkground=new nexacro.Style_background(_j);_h=this.parent._set_backgroundimage(_h,_i._value.toString());_h.position_x=_k;_h.position_y=_l;}return _h;};_pGridCellInfo._query_pseudo_treecontrol=function(_a,_b,_c){var _d="";if(_b=="treecollapseimage"){_d=this._getTreeCollapseImage(_a);}else if(_b=="treeexpandimage"){_d=this._getTreeExpandImage(_a);}else if(_b=="treeitemimage"){_d=this._getTreeItemImage(_a);}if(!_d){var _e=this.grid._find_comp_pseudo_obj(_b,_c);_d=(_e)?_e._value:"";}return _d;};_pGridCellInfo._query_pseudo_control=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){var _j=this.style;var _k=this.style;var _l=this._styles;var _m=this.grid;var _n=_m.style;var _o;var _p=_d;if(_a._getStyleProp){_p=_a._getStyleProp(_d);}var _q=null;if(_e=="selected"&&!(_a instanceof nexacro.GridControlCombo)){_e="normal";}var _r=[_a._type_name,_c,_d,_e,(_h!=0),(_i==true),(_g!=null)].join("");_o=this._stylecache[_r];if(_o!==undefined){if(_o===null){return null;}if(_q=this._exeExprStyle(_o,_p,_b)){return _q;}}if(_l[_e]){_j=_l[_e];}if(_c==_d){if(_i){_o=_j["select"+_d];if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_p,_b);}if(this.isStyleEmpty(_q)){if(_h!=undefined&&_h){_o=_j[_d+"2"];}if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_p,_b);}else{return _q;}}if(this.isStyleEmpty(_q)){_o=_j[_c];if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_p,_b);}else{return _q;}if(this.isStyleEmpty(_q)){if(_j!=_k){_o=_k[_c];if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_c,_b);}}else{return _q;}if(this.isStyleEmpty(_q)){if(this.cssclass){_o=this._findcss_ctrl._find_pseudo_obj(_c,_e,_f);if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_p,_b);}}else{return _q;}if(this.isStyleEmpty(_q)){if(_c=="controlalign"){_o=_j.align;if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_p,_b);}}else{return _q;}if(this.isStyleEmpty(_q)){if(_g){_o=_g._find_pseudo_obj(_d,_e,_f);if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_p,_b);}}else{return _q;}if(this.isStyleEmpty(_q)){_o=_a._find_typedctrl_pseudo_obj(_d,_e,_f);if(_o){this._addStyleCache(_r,_o);}_q=this._exeExprStyle(_o,_p,_b);}return _q;};_pGridCellInfo.isStyleEmpty=function(_a){if(!_a||(_a._bindtype==0&&_a._is_empty)){return true;}return false;};_pGridCellInfo._query_pseudo_border=function(_a,_b,_c,_d,_e,_f){var _g=this.grid;_b=(_g.useselcolor&&_b);var _h="both";if(this._endcol&&(_g.hideendline=="col"||_g.hideendline=="both")){_h="horz";}if(_a>=0&&((_a+1)==_g._rowcount)&&(_g.hideendline=="col"||_g.hideendline=="row")){if(_h=="horz"){_h="none";}else{_h="vert";}}if(_h=="none"){return null;}if(_d==undefined){_d=0;}var _i="n";if(_d>0){_i="r";}else if(_d<0){_i="c";}if(_c=="selected"){_c="normal";}var _j=[_b,_h,_c,_i,_e,_f].join("");var _k="linetype"+_j;var _l="line"+_j;var _m="calcborder"+_j;var _n=this._stylecache[_m];if(_n!==undefined){return _n;}var _o={type:0};var _p=this._stylecache[_k];var _q=this._stylecache[_l];if(!_p||_p._bindtype>0){_p=this._searchStyleValue("linetype",_k,_a,false,_b,_c,true,_o,true);}var _r=(_o.type==0)?false:true;if(!_q||_q._bindtype>0){_q=this._searchStyleValue("border",_l,_a,false,_b,_c,true,_o,true);}if(!_r){_r=(_o.type==0)?false:true;}var _s=this.parent;var _t="exvert";if(_p&&!_p._is_empty){if(_p._value=="exhorz"||_p._value=="nocross"){_t="exvert";}else if(_p._value=="onlyhorz"||_p._value=="onlyvert"){_t=_p._value;}}var _u="none";if(_q&&!_q._is_empty){var _v,_w,_x,_y,_z,_aa="0px none transparent";_v=_q._top_width+"px "+((_q.top_style)?_q.top_style:"none")+" "+((_q.top_color)?_q.top_color:"transparent")+" "+_q.top_color2;_w=_q._right_width+"px "+((_q.right_style)?_q.right_style:"none")+" "+((_q.right_color)?_q.right_color:"transparent")+" "+_q.right_color2;_x=_q._bottom_width+"px "+((_q.bottom_style)?_q.bottom_style:"none")+" "+((_q.bottom_color)?_q.bottom_color:"transparent")+" "+_q.bottom_color2;_y=_q._left_width+"px "+((_q.left_style)?_q.left_style:"none")+" "+((_q.left_color)?_q.left_color:"transparent")+" "+_q.left_color2;_v=_v.trim();_w=_w.trim();_x=_x.trim();_y=_y.trim();var _ab=false;if(_g.summarytype=="top"||_g.summarytype=="lefttop"){_ab=true;}if(_e!=null&&_f!=null){if(this._area=="right"){if(_e>1&&this._col>0){_y=_aa;}}else{if(_e-1>this._col){_w=_aa;}}if(_s.id=="summary"&&!_ab){if(_f>1&&this._row>0){_v=_aa;}}else{if(_f-1>this._row){_x=_aa;}}}var _ac=[];if(this._area=="right"){if(_s.id=="summary"&&!_ab){if(_t=="onlyhorz"){_ac=[_v,_aa,_aa,_aa];}else if(_t=="onlyvert"){_ac=[_aa,_aa,_aa,_y];}else{if(_d<0){_ac=[_v,_aa,_aa,_aa];}else{_ac=[_v,_aa,_aa,_y];}}}else{if(_t=="onlyhorz"){if(_d>0){_ac=[_aa,_aa,_aa,_aa];}else{_ac=[_aa,_aa,_x,_aa];}}else if(_t=="onlyvert"){if(_d<0){_ac=[_aa,_aa,_aa,_aa];}else{_ac=[_aa,_aa,_aa,_y];}}else{if(_d>0){_ac=[_aa,_aa,_aa,_y];}else if(_d<0){_ac=[_aa,_aa,_x,_aa];}else{_ac=[_aa,_aa,_x,_y];}}}}else{if(_s.id=="summary"&&!_ab){if(_t=="onlyhorz"){_ac=[_v,_aa,_aa,_aa];}else if(_t=="onlyvert"){_ac=[_aa,_w,_aa,_aa];}else{if(_d<0){_ac=[_v,_aa,_aa,_aa];}else{_ac=[_v,_w,_aa,_aa];}}}else{if(_t=="onlyhorz"){if(_d>0){_ac=[_aa,_aa,_aa,_aa];}else{_ac=[_aa,_aa,_x,_aa];}}else if(_t=="onlyvert"){if(_d<0){_ac=[_aa,_aa,_aa,_aa];}else{_ac=[_aa,_w,_aa,_aa];}}else{if(_d>0){_ac=[_aa,_w,_aa,_aa];}else if(_d<0){_ac=[_aa,_aa,_x,_aa];}else{_ac=[_aa,_w,_x,_aa];}}}}_u=_ac.join(",");}_n=nexacro._getCachedStyleObj("border",_u);if(_r==false){this._addStyleCache(_m,_n);}if((!_p||_p._bindtype==0)&&(!_q||_q._bindtype==0)){if(!_b){this._curborder=_n;}else{this._curselborder=_n;}}else{if(!_b){this._curborder="bindexpr";}else{this._curselborder="bindexpr";}}return _n;};_pGridCellInfo._query_pseudo_gradation=function(_a,_b,_c,_d){_c=(this.grid.useselcolor&&_c);if(_d=="selected"){_d="normal";}var _e=["gradation",(_b!=0),_c,_d].join("");var _f=this._stylecache[_e];if(!_f||_f._bindtype>0){_f=this._searchStyleValue("gradation",_e,_a,_b,_c,_d,true,null,true);}return _f;};_pGridCellInfo._query_pseudo_cursor=function(_a,_b){if(_b=="selected"){_b="normal";}var _c=["cursor",_b].join("");var _d=this._stylecache[_c];if(!_d||_d._bindtype>0){_d=this._searchStyleValue("cursor",_c,_a,false,false,_b,true,null,false);}if(!_d||_d._is_empty){_d=nexacro._getCachedStyleObj("cursor","default");this._addStyleCache(_c,_d);}return _d;};_pGridCellInfo._query_pseudo_padding=function(_a,_b){if(_b=="selected"){_b="normal";}var _c=["padding",_b].join("");var _d=this._stylecache[_c];if(!_d||_d._bindtype>0){_d=this._searchStyleValue("padding",_c,_a,false,false,_b,true,null,false);}if(!_d||_d._is_empty){_d=this.grid.on_find_CurrentStyle_padding(_b);this._addStyleCache(_c,_d);}if(!_d||_d._bindtype==0){this._curpadding=_d;}else{this._curpadding="bindexpr";}return _d;};_pGridCellInfo._query_pseudo_font=function(_a,_b,_c){_b=(this.grid.useselcolor&&_b);if(_c=="selected"){_c="normal";}var _d=["font",_b,_c].join("");var _e=this._stylecache[_d];if(!_e||_e._bindtype>0){_e=this._searchStyleValue("font",_d,_a,false,_b,_c,true,null,false);}if(!_e||_e._is_empty){_e=this.grid.on_find_CurrentStyle_font(_c);this._addStyleCache(_d,_e);}if(!_e||_e._bindtype==0){if(!_b){this._curfont=_e;}else{this._curselfont=_e;}}else{if(!_b){this._curfont="bindexpr";}else{this._curselfont="bindexpr";}}return _e;};_pGridCellInfo._query_pseudo_color=function(_a,_b,_c,_d){_c=(this.grid.useselcolor&&_c);if(_d=="selected"){_d="normal";}var _e=["color",(_b!=0),_c,_d].join("");var _f=this._stylecache[_e];if(!_f||_f._bindtype>0){_f=this._searchStyleValue("color",_e,_a,_b,_c,_d,true,null,false);}if(!_f||_f._is_empty){_f=this.grid.on_find_CurrentStyle_color(_d);this._addStyleCache(_e,_f);}return _f;};_pGridCellInfo._query_pseudo_accessibility=function(_a,_b){if(_b=="selected"){_b="normal";}var _c=this.style;var _d=this._styles;var _e=this.style;var _f=null;var _g=_c.accessibility;var _h=["accessibility",_b].join("");var _i;_i=this._stylecache[_h];_f=this._resultStyleProc(_h,"accessibility",_g,null,_a,true);if(this.isStyleEmpty(_f)){if(_c!=_e){_g=_e.accessibility;_f=this._resultStyleProc(_h,"accessibility",_g,exprbind,_a,usecache);}}else{return _f;}if(this.isStyleEmpty(_f)){if(this.cssclass){_g=this._findcss_ctrl._find_pseudo_obj("accessibility",_b,"accessibility");_f=this._resultStyleProc(_h,"accessibility",_g,null,_a,true);}}else{return _f;}if(this.isStyleEmpty(_f)){_f=nexacro.Component._default_accessibility;}return _f;};_pGridCellInfo._query_pseudo_align=function(_a,_b,_c){if(_c=="selected"){_c="normal";}var _d=["align",_c,_b].join("");var _e=this._stylecache[_d];if(!_e||_e._bindtype>0){_e=this._searchStyleValue("align",_d,_a,false,false,_c,true,null,false);}if(!_e||_e._is_empty){_e=this.grid.on_find_CurrentStyle_align(_c);if(!_e||_e._is_empty){if(this.celltype=="head"){_e=nexacro._getCachedStyleObj("align","center middle");}else{_e=this._getDefaultAlign(_a,_b);}}this._addStyleCache(_d,_e);}else if(!_e.halign||!_e.valign){var _f=this.grid.on_find_CurrentStyle_align(_c);if(!_f||_f._is_empty){if(this.celltype=="head"){_f=nexacro._getCachedStyleObj("align","center middle");}else{_f=this._getDefaultAlign(_a,_b);}}if(!_e.halign){_e.set_halign(_f.halign);}if(!_e.valign){_e.set_valign(_f.valign);}this._addStyleCache(_d,_e);}return _e;};_pGridCellInfo._getDefaultAlign=function(_a,_b){var _c=null;switch(_b){case "bar":case "normal":var _b=this._getDisplaytype(_a);if(_b=="number"){_c=nexacro._getCachedStyleObj("align","right middle");}else if(_b=="date"||_b=="time"||_b=="datetime"){_c=nexacro._getCachedStyleObj("align","center middle");}else{_c=nexacro._getCachedStyleObj("align","left middle");}break;case "number":case "exponent":case "currency":_c=nexacro._getCachedStyleObj("align","right middle");break;default:_c=nexacro._getCachedStyleObj("align","center middle");break;}return _c;};_pGridCellInfo.set_class=function(_a){if(_a!=this.cssclass){this.cssclass=_a;this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_cssclass=function(_a){if(_a!=this.cssclass){this.cssclass=_a;this.grid._clearBindTypeFlag();this._findcss_ctrl.set_cssclass(_a);this._findcss_ctrl._css_finder=null;this._findcss_ctrl._ref_css_finder=null;var _b=this.parent;var _c=_b.bandctrl;var _d=_b.parent;if(_b.bandctrl){_d._clearCellStyleCache(_c.id);_c._refresh_contents(true);}}};_pGridCellInfo.set_style=function(_a){this.grid._clearBindTypeFlag();_a=nexacro._decodeXml(_a);var _b=_a.split("}");var _c=_b[0].trim();var _d=this._styles={};_b.pop();var _e,_f=_b.length;var _g,_h,_i;var _j=this.style;_g=_c.split("{");_i=_g[0].substring(0,_g[0].lastIndexOf(";")+1).trim();if(_i.length==0){_i=_g[0].substring(0,_g[0].length).trim();}_j._setValue(_i);_d["normal"]=_j;var _k=(this.style._value!=_i);if(_k){this.style._setValue(_i);}if(_f>0){for(_e=0;_e<_f;_e++ ){_g=_b[_e].split("{");_h=_g[0].substring(_g[0].lastIndexOf(":")+1).trim();var _l=new nexacro.GridCell_Style(this);_l._setValue(_g[1]);_d[_h]=_l;}}return this.style._value;};_pGridCellInfo.set_displaytype=function(_a){if(_a!=this.displaytype){var _b=this.displaytype._value;this.displaytype._set(_a);this.grid._clearBindTypeFlag();if(_b=="tree"){this.grid._removeTreeCellinfo(this);}if(_a=="tree"){this.grid._setTreeCellinfo(this);}}};_pGridCellInfo.set_edittype=function(_a){if(_a!=this.edittype){this.edittype._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_tooltiptype=function(_a){if(_a!=this.tooltiptype){this.tooltiptype=_a;this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_tooltiptext=function(_a){if(_a!=this.tooltiptext._value){this.tooltiptext._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo._getTooltipText=function(_a){var _b=this._getAttrValue(this.tooltiptext,_a);if(!_b||_b==""){var _c=this.parent;_b=_c._getTooltipText(_a);}return _b;};_pGridCellInfo.set_autosizecol=function(_a){var _b="default";switch(_a){case "none":case "limitmin":case "limitmax":_b=_a;}if(_b!=this.autosizecol){this.autosizecol=_b;this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_autosizerow=function(_a){var _b="default";switch(_a){case "none":case "limitmin":case "limitmax":case "default":_b=_a;}if(_b!=this.autosizerow){this.autosizerow=_b;this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_celltype=function(_a){var _b="none";switch(_a){case "head":case "body":case "summary":_b=_a;}if(_b!=this.celltype){this.celltype=_b;this.grid._clearBindTypeFlag();var _c=this.parent;var _d=_c.bandctrl;var _e=_c.parent;if(_c.bandctrl){_e._clearCellStyleCache(_d.id);_d._refresh_contents(true);}}};_pGridCellInfo.set_displayexpdec=function(_a){if(_a!=this.displayexpdec._value){this.displayexpdec._set_intval(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_locale=function(_a){if(_a!=this.locale._value){this.locale._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_mask=function(_a){if(_a!=this.mask._value){this.mask._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_maskchar=function(_a){if(!_a){_a="_";}var _b=_a.toString().charAt(0);if(_b!=this.maskchar){this.maskchar=_b;this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_suppress=function(_a){if(_a!=this.suppress._value){this.suppress._set_intval(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_suppressalign=function(_a){if(_a){_a=_a.toString().toLowerCase();}var _b="first";switch(_a){case "first":case "last":case "middle":case "first,over":case "middle,over":case "last,over":_b=_a;}if(_b!=this.suppressalign){this.suppressalign=_b;this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_suppressedit=function(_a){_a=_a?true:false;if(_a!=this.suppressedit){this.suppressedit=_a;this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_wordwrap=function(_a){var _b=0;if(typeof (_a)=="string"){var _c=_a.toLowerCase();if(_c.indexOf("bind:")>=0||_c.indexOf("bind(")>=0){_b=1;}else if(_c.indexOf("expr:")>=0||_c.indexOf("expr(")>=0){_b=2;}else{_a=_a.toLowerCase();}}if(_b==0&&typeof (_a)!="string"){return;}if(_a!=this.wordwrap._value){this.wordwrap._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_text=function(_a){if(_a!=this.text._value){this.text._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_expr=function(_a){if(_a!=this.expr._value){var _b=_a.toString();var _c=_b.substr(0,4).toUpperCase();if(_c!="EXPR"){_a="EXPR:"+_a;}this.expr._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_subsumtext=function(_a){if(_a!=this.subsumtext._value){this.subsumtext._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combodataset=function(_a){if(_a!=this.combodataset._value){this.combodataset._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combocodecol=function(_a){if(_a!=this.combocodecol._value){this.combocodecol._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combodatacol=function(_a){if(_a!=this.combodatacol._value){this.combodatacol._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combodisplay=function(_a){if(_a!=this.combodisplay._value){this.combodisplay._set_enumval(_a,["edit","display"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combodisplaynulltext=function(_a){if(_a!=this.combodisplaynulltext._value){this.combodisplaynulltext._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combodisplaynulltype=function(_a){if(_a!=this.combodisplaynulltype._value){this.combodisplaynulltype._set_enumval(_a,["none","nulltext"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combodisplayrowcount=function(_a){if(_a!=this.combodisplayrowcount._value){this.combodisplayrowcount._set_intval(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_combotype=function(_a){if(_a!=this.combotype._value){this.combotype._set_enumval(_a,["dropdown","search","filter"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendardisplay=function(_a){if(_a!=this.calendardisplay._value){this.calendardisplay._set_enumval(_a,["edit","display"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendardisplaynulltext=function(_a){if(_a!=this.calendardisplaynulltext._value){this.calendardisplaynulltext._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendardisplaynulltype=function(_a){if(_a!=this.calendardisplaynulltype._value){this.calendardisplaynulltype._set_enumval(_a,["default","none","nulltext","nullmask"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendarinnerdataset=function(_a){if(_a!=this.calendarinnerdataset._value){this.calendarinnerdataset._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendarbackgroundcolumn=function(_a){if(_a!=this.calendarbackgroundcolumn._value){this.calendarbackgroundcolumn._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendarbordercolumn=function(_a){if(_a!=this.calendarbordercolumn._value){this.calendarbordercolumn._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendardatecolumn=function(_a){if(_a!=this.calendardatecolumn._value){this.calendardatecolumn._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_calendartextcolorcolumn=function(_a){if(_a!=this.calendartextcolorcolumn._value){this.calendartextcolorcolumn._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editacceptsenter=function(_a){if(_a!=this.editacceptsenter._value){this.editacceptsenter._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editacceptstab=function(_a){if(_a!=this.editacceptstab._value){this.editacceptstab._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editautoselect=function(_a){if(_a!=this.editautoselect._value){this.editautoselect._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editautoskip=function(_a){if(_a!=this.editautoskip._value){this.editautoskip._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editclipmode=function(_a){if(_a!=this.editclipmode._value){this.editclipmode._set_enumval(_a,["includespace","excludespace"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editdisplay=function(_a){if(_a!=this.editdisplay._value){this.editdisplay._set_enumval(_a,["edit","display"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editfilter=function(_a){if(!_a){return;}var _b=["alpha","upper,number,nosign","alpha,number","alpha,number,nosign","char","digit","integer","lower","lower,char","lower,digit","lower,digit,char","lower,number","lower,number,char","lower,number,nosign","none","number","number,char","upper","upper,char","upper,digit","upper,digit,char","upper,number","upper,number,char","alpha,digit"];var _c=_a.trim().split(",");for(var _d=0;_d<_b.length;_d++ ){var _e=true;var _f=_b[_d].split(",");if(_c.length!=_f.length){continue;}for(var _g=0;_g<_c.length;_g++ ){if(nexacro._indexOf(_b[_d],_c[_g])<0){_e=false;break;}}if(_e==true){_a=_b[_d];break;}}if(_a!=this.editfilter._value){this.editfilter._set_enumval(_a,["alpha","upper,number,nosign","alpha,number","alpha,number,nosign","char","digit","integer","lower","lower,char","lower,digit","lower,digit,char","lower,number","lower,number,char","lower,number,nosign","none","number","number,char","upper","upper,char","upper,digit","upper,digit,char","upper,number","upper,number,char","alpha,digit"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editimemode=function(_a){if(_a!=this.editimemode._value){this.editimemode._set_enumval(_a,["none","alpha","alpha,full","hangul","hangul,full","katakana","katakana,full","hiragana","direct"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editlimit=function(_a){if(_a!=this.editlimit._value){this.editlimit._set_intval(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editlengthunit=function(_a){if(_a!=this.editlengthunit._value){this.editlengthunit._set_enumval(_a,["utf16","utf8","ascii"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editlimitbymask=function(_a){if(_a!=this.editlimitbymask._value){this.editlimitbymask._set_enumval(_a,["none","integer","decimal","both"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_editscrollbar=function(_a){if(_a!=this.editscrollbar._value){this.editscrollbar._set_enumval(_a,["none","autovert","autohorz","autoboth","fixedvert","fixedhorz","fixedboth","alwaysvert","alwayshorz","alwaysboth"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_edittrimtype=function(_a){if(_a!=this.edittrimtype._value){this.edittrimtype._set_enumval(_a,["none","left","right","both"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_edituseime=function(_a){if(_a!=this.edituseime._value){this.edituseime._set_enumval(_a,["global","local","local,keep","none"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_expandchar=function(_a){if(_a!=this.expandchar._value){this.expandchar._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_expandimage=function(_a){if(_a!=this.expandimage._value){this.expandimage._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_expandshow=function(_a){if(_a!=this.expandshow._value){this.expandshow._set_enumval(_a,["hide","show"]);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_expandsize=function(_a){if(_a!=this.expandsize._value){this.expandsize._set_intval(_a);this.grid._clearBindTypeFlag();if(this.celltype=="head"){this.grid._refreshHead();}else if(this.celltype=="body"){this.grid._refreshBody();}else if(this.celltype=="summ"){this.grid._refreshSumm();}}};_pGridCellInfo.set_treecheck=function(_a){if(_a!=this.treecheck._value){this.treecheck._set(_a);this.grid._clearBindTypeFlag();this.grid._initTreeStates();if(this.grid._bodyBand){this.grid._bodyBand._recreate_contents();}}};_pGridCellInfo.set_treecollapseimage=function(_a){if(_a!=this.treecollapseimage._value){this.treecollapseimage._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_treeexpandimage=function(_a){if(_a!=this.treeexpandimage._value){this.treeexpandimage._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_treeitemimage=function(_a){if(_a!=this.treeitemimage._value){this.treeitemimage._set(_a);this.grid._clearBindTypeFlag();}};_pGridCellInfo.set_treeitemmargin=function(_a){};_pGridCellInfo.set_treelevel=function(_a){if(_a!=this.treelevel._value){this.treelevel._set(_a);this.grid._clearBindTypeFlag();this.grid._initTreeStates();if(this.grid._bodyBand){this.grid._bodyBand._recreate_contents();}}};_pGridCellInfo.set_treestartlevel=function(_a){if(_a!=this.treestartlevel._value){this.treestartlevel._set_intval(_a);this.grid._clearBindTypeFlag();if(this.grid._bodyBand){this.grid._bodyBand._recreate_contents();}}};_pGridCellInfo.set_treestate=function(_a){if(_a!=this.treestate._value){this.treestate._set(_a);}this.grid._clearBindTypeFlag();this.grid._initTreeStates();var _b=this.grid._getDataRow(this.grid.currentrow);if(this._getEdittype(_b)=="tree"){if(this.grid._bodyBand){this.grid._bodyBand._recreate_contents();}}else{this.grid._refreshBody();}};_pGridCellInfo._getTreeCheck=function(_a){return this._getAttrValue(this.treecheck,_a);};_pGridCellInfo._getTreeCollapseImage=function(_a){return this._getAttrValue(this.treecollapseimage,_a);};_pGridCellInfo._getTreeExpandImage=function(_a){return this._getAttrValue(this.treeexpandimage,_a);};_pGridCellInfo._getTreeItemImage=function(_a){return this._getAttrValue(this.treeitemimage,_a);};_pGridCellInfo._getTreeLevel=function(_a){var _b=this._getAttrValue(this.treelevel,_a);_b=parseInt(_b)|0;return _b;};_pGridCellInfo._getTreeStartLevel=function(_a){var _b=this._getAttrValue(this.treestartlevel,_a);_b=parseInt(_b)|0;return _b;};_pGridCellInfo._getTreeState=function(_a){return this._getAttrValue(this.treestate,_a);};_pGridCellInfo._setTreeCheck=function(_a,_b){return this._setTreeBindValue(this.treecheck,_a,_b);};_pGridCellInfo._setTreeCollapseImage=function(_a,_b){return this._setTreeBindValue(this.treecollapseimage,_a,_b);};_pGridCellInfo._setTreeExpandImage=function(_a,_b){return this._setTreeBindValue(this.treeexpandimage,_a,_b);};_pGridCellInfo._setTreeItemImage=function(_a,_b){return this._setTreeBindValue(this.treeitemimage,_a,_b);};_pGridCellInfo._setTreeLevel=function(_a,_b){return this._setTreeBindValue(this.treelevel,_a,_b);};_pGridCellInfo._setTreeStartLevel=function(_a,_b){return this._setTreeBindValue(this.treestartlevel,_a,_b);};_pGridCellInfo._setTreeState=function(_a,_b){return this._setTreeBindValue(this.treestate,_a,_b);};_pGridCellInfo._setTreeBindValue=function(_a,_b,_c){if(_a._bindtype==1){var _d=this.grid;var _e=_d._binddataset;if(_e){_d._binddataset._treeBindChanged=true;_e.setColumn(_b,_c);}}};_pGridCellInfo._getSuppress=function(_a){return this._getAttrValue(this.suppress,_a);};_pGridCellInfo._getDisplayText=function(_a){var _b=this.displaytype;var _c=this._getAttrValue(_b,_a);if(_c=="normal"){var _d=this.text;if(_d._bindtype==1){var _e=this.grid._binddataset;if(!_e){return "text";}var _f=_d._bindexpr;var _g=_e._getColumnType(_f);switch(_g){case 1:return this._getDisplayText_text(_a);case 2:case 3:case 4:return this._getDisplayText_number(_a);case 5:return this._getDisplayText_date2(_a);case 6:return this._getDisplayText_time(_a);case 7:return this._getDisplayText_datetime(_a);default:return this._getDisplayText_none(_a);}}else{return this._getDisplayText_text(_a);}}else{if(_c=="text"){return this._getDisplayText_text(_a);}else if(_c=="exponent"){return this._getDisplayText_exponent(_a);}else if(_c=="number"){return this._getDisplayText_number(_a);}else if(_c=="currency"){return this._getDisplayText_currency(_a);}else if(_c=="image"){return this._getDisplayText_image(_a);}else if(_c=="date"){return this._getDisplayText_date(_a);}else if(_c=="combo"){return this._getDisplayText_combo(_a);}else if(_c=="button"){return this._getDisplayText_button(_a);}else if(_c=="bar"){return this._getDisplayText_bar(_a);}else if(_c=="checkbox"){return this._getDisplayText_checkbox(_a);}else if(_c=="tree"){return this._getDisplayText_tree(_a);}else if(_c=="none"){return this._getDisplayText_none(_a);}}return this._getDisplayText_text(_a);};_pGridCellInfo._getTextValueForDisp=function(_a){if(this.expr._value!=""){return this._getAttrValue(this.expr,_a);}return this._getAttrValue(this.text,_a);};_pGridCellInfo._getDisplayText_text=function(_a){var _b=this._getTextValueForDisp(_a);if(_b==undefined){_b="";}else{_b=_b.toString();}var _c=this._getAttrValue(this.mask,_a);if(_c&&_c.length){this._org_val="";_b=this.__applyMask(_b,_c,this.maskchar);_b=this.__remove_apostrophe(_b,_c);}return _b;};_pGridCellInfo.__find_idx_dot=function(_a,_b){this._idx_dot= -1;var _c=_a.length;for(var _d=0;_d<_b;_d++ ){var _e=_a.charAt(_d);if(_e=="."){this._idx_dot=_d;break;}}if(this._idx_dot== -1&&_b<_c){for(var _d=_b;_d<_c;_d++ ){var _e=_a.charAt(_d);if(_e=='.'){this._idx_dot=_d;break;}}}};_pGridCellInfo._m_idx_dot= -1;_pGridCellInfo._m_idx_decimal= -1;_pGridCellInfo._m_hascomma=false;_pGridCellInfo._m_haszero=false;_pGridCellInfo.__get_info_mask=function(_a){var _b=_a;var _c=_b.length;this._m_idx_dot= -1;this._m_idx_decimal= -1;this._m_hascomma=false;this._m_haszero=false;for(var _d=0;_d<_c;_d++ ){var _e=_b.charAt(_d);if(_e=="."){if(this._m_idx_dot!= -1){break;}this._m_idx_dot=_d;}else if(_e=="0"||_e=="9"||_e=="#"){this._m_idx_decimal=_d;if(_e=="0"){this._m_haszero=true;}}else if(_e==","){this._m_hascomma=true;}}};_pGridCellInfo.__get_view_zeromask=function(_a){var _b=_a.length;var _c= -1;var _d=0;var _e=0;var _f=0;var _g= -1;for(var _k=0;_k<_b;_k++ ){var _l=_a.charAt(_k);if(_l=="0"||(_e>0&&_l=="#")){_e++ ;}else if(_l=="."){_c=_k;break;}else if(_l=="9"){_e=0;}}var _h=_b;if(_c>=0){_h=_c;}var _i=0;for(_k=_h-1;_k>=0;_k-- ,_i++ ){var _l=_a.charAt(_k);if(_l=="9"){_g=_i;break;}}var _j="";for(_k=_b-1;_k>_c,_c!= -1;_k-- ){var _l=_a.charAt(_k);if((_k==_c)&&(_l==".")){break;}if(_l=="0"||(_f>0&&(_l=="#"||_l=="9"))){_f++ ;}_j=_l;}return {integer:_e,decimal:_f,nineidx:_g};};_pGridCellInfo.__make_text_zeromask=function(_a,_b){var _c=_a=_a.toString();var _d=_b.length;var _e=_a.length;this.__get_info_mask(_b);this.__find_idx_dot(_a,_e);var _f=_b.trim();var _g=_f.indexOf("%");var _h="";if(_g>=0){_b=_b.replace("%","");_h="%";}var _i=this.__get_view_zeromask(_b);var _j=0;var _k=0;if(this._org_val==undefined){_c="";_e=0;}var _l=this._idx_dot;_j=(_l== -1)?_e:_l;var _m="";if(this._org_val!=undefined){var _o=false;var _p=false;var _q=(this._m_idx_dot>=0)?this._m_idx_dot:_d;for(var _r=_q-1;_r>=0;_r-- ){var _s=_b.charAt(_r);if(_s=="#"){_o=true;break;}}if(this._org_val==0){_p=true;}if(_o){var _t=false;for(var _r=0;_r<_j;_r++ ){var _u=_a.charAt(_r);if(_u=="0"&&!_t){_m+="";_t=false;}else{_m+=_u;_t=true;}}}else{_m=_a.substring(0,_j);}var _v=_m.length;if(_p){var _w=_e;for(var _r=_e-1;_r>=_l;_r-- ){var _u=_a.charAt(_r);if(_u!="0"){_w=_r;break;}}_m+=_a.substring(_l,_w+1);}else{_m+=_a.substring(_j);}_c=_m;_j=_v;}var _n=_j;for(_r=0;_r<_i.integer-_j;_r++ ){_c="0"+_c;_n++ ;}if(this._m_idx_dot!= -1){if(this._idx_dot== -1&&_i.decimal>0&&(this._m_idx_dot!=undefined&&this._m_idx_dot!= -1)){_c+=".";}_e=_c.length;this.__find_idx_dot(_c,_e);_k=0;if(this._idx_dot!= -1){_k=_e-this._idx_dot-1;}for(_r=0;_r<_i.decimal-_k;_r++ ){_c=_c+"0";}}if(_i.nineidx> -1){if(_i.nineidx>=_n){var _x=_i.nineidx-_n+1;_c=_c.padLeft(_x+_c.length,"0");}}_a=_c;if(_g==0){_a=_h+_a;}else{_a+=_h;}return _a;};_pGridCellInfo.__remove_apostrophe=function(_a,_b){var _c=_b.length;var _d=_a.length;var _e="";var _f=0;for(var _g=0;_g<_c;_g++ ,_f++ ){var _h=_b.charAt(_g);var _i=_a.charAt(_f);if(_h=="'"){for(var _j=_g+1;_j<_c;_j++ ,_f++ ){_h=_b.charAt(_j);if(_h=="'"){_g=_j;_f=_j;break;}else{_e+=_h;}}}else if(_h=="\\"){_h=_b.charAt(_g+1);if(_h=="\'"){_e+=_h;_g++ ;}else{_e+=_i;}}else{_e+=_i;}}return _e;};_pGridCellInfo.__update_dot_display=function(_a,_b){var _c=_a;this.__get_info_mask(_b);this.__find_idx_dot(_a,0);var _d=_a.length;if(this._m_idx_dot!=undefined&&this._m_idx_dot!= -1&&this._idx_dot!= -1){var _e=_b.length-this._m_idx_dot-1;var _f=_d-this._idx_dot-1;if(_e!=_f){if(_f==0){_c=_a.substring(0,this._idx_dot);}else{_c=_a.substring(0,this._idx_dot+_e+1);}}}return _c;};_pGridCellInfo.__update_empty_decimal=function(_a){this.__find_idx_dot(_a,0);var _b=_a;var _c=_a.length;if(this._m_idx_dot!=undefined&&this._m_idx_dot!= -1&&this._idx_dot!= -1){var _d=_c-this._idx_dot-1;if(_d==0){_b=_a.substring(0,this._idx_dot);}}else if(this._m_idx_dot!=undefined&&this._m_idx_dot== -1&&this._idx_dot!= -1){_b=_a.substring(0,this._idx_dot);}return _b;};_pGridCellInfo.__applyMask=function(_a,_b,_c){var _d="";var _e=_a.length;var _f=_b.length;var _g=0;var _h=0;var _i=true;var _j=false;var _k=false;var _l=false;for(var _m=0;_m<_f;_m++ ){var _n=_b.charAt(_m);if(this.__isMask(_n)||_n=="\\"||_n=="\""||_n=="\'"){if(_n=="{"){_j=true;continue;}else if(_n=="}"){_j=false;continue;}else if(_n=="\\"&&_k==false){_k=true;continue;}if(_k){_k=false;_d+=_n;continue;}if(_n=="\'"&&_l==false){_l=true;_d+=_c;continue;}if(_l){if(_n=="\'"){_d+=_c;_l=false;}else{_d+=_n;}continue;}if(_h<_e){var _o=_a.charAt(_h++ );_i=this.__testMask(_o,_n);if(_i){if(_o==" "){if(this.editclipmode._value=="excludespace"){if(_j){_d+="*";}else{_d+=_o;}}else{_d+=_c;}}else{if(_j){_d+="*";}else{_d+=_o;}}}else{_g++ ;}}else{_d+=_c;}}else{if(_i&&_h<_e){var _o=_a.charAt(_h);if(_o==_n){_h++ ;}}_d+=_n;}}for(_m=0;_m<_g;_m++ ){_d+=_c;}return _d;};_pGridCellInfo.__isMask=function(_a){return (_a=="@"||_a=="#"||_a=="*"||_a=="9"||_a=="A"||_a=="a"||_a=="Z"||_a=="z"||_a=="}"||_a=="{");};_pGridCellInfo._maskRegexMap={"@":/[\u0020-\u00ff]/,"#":/[0-9]/,"*":/[a-zA-Z]/,"9":/[a-zA-Z0-9]/,"A":/[A-Z]/,"a":/[a-z]/,"Z":/[A-Z0-9]/,"z":/[a-z0-9]/};_pGridCellInfo.__testMask=function(_a,_b){var _c=this._maskRegexMap[_b];return (_c)?_c.test(_a):(_a==_b);};_pGridCellInfo._getDisplayText_exponent=function(_a){var _b=this._getTextValueForDisp(_a);return (_b)?_b.toString():"";};_pGridCellInfo._org_val=null;_pGridCellInfo._getDisplayText_number=function(_a){var _b=this._getTextValueForDisp(_a);var _c=this._getAttrValue(this.locale,_a);var _d=this._getAttrValue(this.mask,_a);var _e=this._getPureNumberMask(_d);var _f=_e.pure_mask;if(!_c&&this.grid){_c=this.grid._getLocale();}if(_f==undefined){_f="";}this._org_val=_b;if(_b==undefined){var _j=this.__get_view_zeromask(_f);var _k=_f;if(_j.nineidx> -1){_f=_k.replace('9','#');}_b="";}var _g=this.grid._masknumber_api;if(!_g){_g=this.grid._masknumber_api=new nexacro.EditMaskNumber(null);}_g._setLocale(_c);_g.setDisplayMask(_f);var _h=_g.normalizeValue(_b.toString(),true);if(!_f&&isNaN(_h)){_g._dispComma=false;}var _i=_g.makeDisplayText(_h);_i=_e.pre_str+_i+_e.post_str;return _i;};_pGridCellInfo._getPureNumberMask=function(_a){var _b=_a.length,_c,_d= -1,_e="",_f="",_g="";for(var _h=0;_h<_b;_h++ ){_c=_a.charAt(_h);switch(_a.charAt(_h)){case "+":case "-":case "0":case "9":case "#":case "!":case ",":if(_g==""){_f+=_c;}else{_g+=_c;}break;case ".":if(_g==""){if(_d<0){_d=_h;_f+=_c;}}else{_g+=_c;}break;default:if(_f==""){_e+=_c;}else{_g+=_c;}break;}}return {"pre_str":_e,"pure_mask":_f,"post_str":_g};};_pGridCellInfo._getDisplayText_currency=function(_a){var _b=this._getTextValueForDisp(_a);var _c=this._getAttrValue(this.locale,_a);if(!_c&&this.grid){_c=this.grid._getLocale();}if(!isNaN(_b)){var _d=new nexacro.Number(_b);_b=_d.toLocaleCurrencyString(_c);}return _b;};_pGridCellInfo._getDisplayText_image=function(_a){var _b=this.grid._binddataset;if(_b&&_b.getRowCount()<=_a){return "";}var _c=this._getTextValueForDisp(_a);return (_c)?_c.toString():"";};_pGridCellInfo._getDisplayText_date=function(_a,_b){var _c=this.grid._binddataset;if(_c&&_c.getRowCount()<=_a){return "";}var _d=this._getTextValueForDisp(_a);var _e=undefined;var _f=0;var _g=false;var _h=false;_d=(_d)?_d:"";if(_d.constructor==Date){_e=_d;}else{var _k=_d.toString();for(var _l=0;_l<_k.length;_l++ ){if(_k.charAt(_l)!=" "){_f=1;break;}}if(_f==1){if(_b==undefined){if(_k.length<=6){_b=0;}else if(_k.length<=8){_b=2;}else{_b=1;}}if(_b==1){_d._timecheck=true;}_e=this.__parseDate(_k,_b);}else{if(_b==1){_d._timecheck=true;}if(this.calendardisplaynulltype._value=="nulltext"){return this._getAttrValue(this.calendardisplaynulltext,_a);}else if(this.calendardisplaynulltype._value=="nullmask"){_g=true;}else if(this.calendardisplaynulltype._value=="default"){}else{return "";}}}if(_e==null){_h=true;_e=new nexacro.Date();_e.setFullYear(0);_e.setMonth(0);_e.setDate(1);}var _i;var _j=this._getAttrValue(this.locale,_a);if(!_j&&this.grid){_j=this.grid._getLocale();}if(this.mask=="SHORTDATE"||this.mask=="LONGDATE"){var _m=nexacro.Locale.getLocaleInfo(_j);var _n="";if(this.mask=="SHORTDATE"){_n=_m.shortdate_format;}else{_n=_m.longdate_format;}if(_n==""){_n=nexacro.Locale._default_shortdate_format;}var _o=(!this.grid._isRtl()&&_m.direction=="rtl")?true:false;_i=_e.getLocaleFormatString(_j,_n,_o);}else{var _p=_e.getFullYear();if(_p==0){_p="0000";}var _q=_e.getMonth()+1;_q=(_q<10?"0":"")+_q;var _r=this.grid._getDisplayCalendarCtrl();var _m=nexacro.Locale.getLocaleInfo(_j);_r._datelistL=_m.weekday_names_long;var _s=_r._datelistL[_e.getDay()];var _t=_e.getDate();_t=(_t<10?"0":"")+_t;var _u=_e.getYear()%100;var _v= +_q;var _w= +_t;var _x=_e.getHours();_x=(_x<10?"0":"")+_x;var _y= +_x;var _z=_e.getMinutes();_z=(_z<10?"0":"")+_z;var _aa= +_z;var _ab=_e.getSeconds();_ab=(_ab<10?"0":"")+_ab;var _ac= +_ab;if(_h){_x=_y="00";_z=_aa="00";_ab=_ac="00";}var _n=this._getAttrValue(this.mask,_a);if(_n==null||_n.length==0||!_n.match(/[yMdHhms]/)){_n="yyyy-MM-dd";}if(_g){var _ad=this.maskchar;var _ae=_ad+_ad;var _af=_ae+_ad;var _ag=_af+_ad;_i=_n.replace("yyyy",_ag);_i=_i.replace("MM",_ae);_i=_i.replace("ddd","week");_i=_i.replace("dd",_ae);_i=_i.replace("yy",_ae);_i=_i.replace("M",_ad);_i=_i.replace("d",_ad);_i=_i.replace("week",_af);_i=_i.replace("tt",_ae);_i=_i.replace("HH",_ae);_i=_i.replace("hh",_ae);_i=_i.replace("H",_ad);_i=_i.replace("h",_ad);_i=_i.replace("mm",_ae);_i=_i.replace("m",_ad);_i=_i.replace("ss",_ae);_i=_i.replace("s",_ad);}else{_i=_n.replace("yyyy",_p);_i=_i.replace("MM",_q);_i=_i.replace("ddd","week");_i=_i.replace("dd",_t);_i=_i.replace("yy",_u);_i=_i.replace("M",_v);_i=_i.replace("d",_w);_i=_i.replace("week",_s);var _ah=_x;var _ai="오전";if(_x>12&&_x<25){_ah=_x<22?"0"+(_x-12):_x-12;_ai="오후";}_i=_i.replace("tt",_ai);_i=_i.replace("HH",_x);_i=_i.replace("hh",_ah);_i=_i.replace("H",_y);_i=_i.replace("h",_y);_i=_i.replace("mm",_z);_i=_i.replace("m",_aa);_i=_i.replace("ss",_ab);_i=_i.replace("s",_ac);}}return _i;};_pGridCellInfo._getDisplayText_date2=function(_a){return this._getDisplayText_date(_a,2);};_pGridCellInfo._getDisplayText_datetime=function(_a){return this._getDisplayText_date(_a,1);};_pGridCellInfo._getDisplayText_time=function(_a){return this._getDisplayText_date(_a,0);};_pGridCellInfo.__parseDate=function(_a,_b){var _c;switch(_b){case 0:_c=/(\d{6})/;break;case 1:_c=/(\d{14})/;break;default:_c=/(\d{8})/;break;}if(_c.test(_a)==false){return undefined;}var _d=new nexacro.Date();if(_b>0){var _e= +_a.substring(0,4);var _f= +_a.substring(4,6);var _g= +_a.substring(6,8);if(_f<1||_f>12){return undefined;}if(_g<1){return undefined;}if(_b==1){var _h= +_a.substring(8,10);var _i= +_a.substring(10,12);var _j= +_a.substring(12,14);}else{var _h=0;var _i=0;var _j=0;}}else{var _e=1900;var _f=1;var _g=1;var _h= +_a.substring(0,2);var _i= +_a.substring(2,4);var _j= +_a.substring(4,6);}_d.setHours(_h,_i,_j);_d.setFullYear(_e,_f-1,_g);return _d;};_pGridCellInfo._getDisplayText_combo=function(_a){var _b=this.grid._binddataset;if(_b&&_b.getRowCount()<=_a){return "";}var _c=this._getAttrValue(this.combodataset,_a);var _d=this._getAttrValue(this.combocodecol,_a);var _e=this._getAttrValue(this.combodatacol,_a);if(_c&&_c.length&&_d&&_d.length&&_e&&_e.length){var _f=this.grid;var _g=_f._findDataset(_c);var _h=this._getTextValueForDisp(_a);var _i;this._tempinnerds.copyData(_g,false);if(_g&&this._editingRow==_a){_i=_g.lookup(_d,_h,_e);}else{_i=this._tempinnerds.lookup(_d,_h,_e);}if(_i){return _i.toString();}}if(this.combodisplaynulltype._value=="nulltext"){var _h=this._getAttrValue(this.combodisplaynulltext,_a);return _h;}return "";};_pGridCellInfo._getDisplayText_button=function(_a){var _b=this.grid._binddataset;if(_b&&_b.getRowCount()<=_a){return "";}var _c=this._getTextValueForDisp(_a);return (_c)?_c.toString():"";};_pGridCellInfo._getDisplayText_bar=function(_a){var _b=this.grid._binddataset;if(_b&&_b.getRowCount()<=_a){return "";}var _c=this._getTextValueForDisp(_a);return (_c)?_c.toString():"";};_pGridCellInfo._getDisplayText_checkbox=function(_a){var _b=this.grid._binddataset;if(_b&&_b.getRowCount()<=_a){return "";}var _c=this._getTextValueForDisp(_a);return (_c)?_c.toString():"";};_pGridCellInfo._getDisplayText_tree=function(_a){var _b=this.grid._binddataset;if(_b&&_b.getRowCount()<=_a){return "";}var _c=this._getTextValueForDisp(_a);return (_c)?_c.toString():"";};_pGridCellInfo._getDisplayText_none=function(_a){return "";};delete _pGridCellInfo;nexacro.GridBandInfo=function(_a,_b,_c,_d){this.id=this.name=_a;this.parent=_c;this.grid=_d;this.bandtype=_b;this.style=new nexacro.GridBand_Style(this);this._styles={};this.tooltiptext=new nexacro.BindableValue("");this.cellwordwrap=new nexacro.BindableValue("none");this.bandctrl=null;this._noborder=false;this._add_style_pseudo=[];};var _pGridBandInfo=nexacro._createPrototype(nexacro.Object,nexacro.GridBandInfo);nexacro.GridBandInfo.prototype=_pGridBandInfo;_pGridBandInfo._type_name="GridBandInfo";_pGridBandInfo.classname="";_pGridBandInfo.grid=null;_pGridBandInfo.bandtype="";_pGridBandInfo.tooltiptext="";_pGridBandInfo.tooltiptype="none";_pGridBandInfo.destroy=function(){this.parent=null;this.grid=null;this.bandctrl=null;if(this.style){delete this.style;this.style=null;}if(this._styles){var _a=this._styles;for(var _b in _a){var _c=_a[_b];if(_c.destroy){_c.destroy();_c=null;}}this._styles=null;}this.tooltiptext=null;this.cellwordwrap=null;this._add_style_pseudo=null;};_pGridBandInfo._find_gridpseudo_obj=function(_a,_b,_c,_d,_e,_f){if(this.bandctrl){obj=this.bandctrl._find_pseudo_obj(_a,_b,_f,_c);if(obj==null&&!_e){obj=this.grid._find_pseudo_obj(_a,_b,_f);}}else{obj=this.grid._find_pseudo_obj(_a,_b,_f);}if(_d&&(obj==null||obj._is_empty)&&!_e){obj=this.grid._find_pseudo_obj(_d,_b,_f);}return obj;};_pGridBandInfo._query_pseudo_background=function(_a){var _b=this.style;if(_b.background&&!_b.background._is_empty){return _b.background;}if(this.grid){return this._find_gridpseudo_obj("background",_a,null,null,true,"background");}return null;};_pGridBandInfo._query_pseudo_border=function(_a){var _b=this.style;if(_b.border&&!_b.border._is_empty){if(_b.border.top.width==0){this._noborder=true;}return _b.border;}var _c=this._find_gridpseudo_obj("border",_a,null,null,true,"border");if(_c==null||_c.top.width==0){this._noborder=true;}return _c;};_pGridBandInfo._query_pseudo_bordertype=function(_a){var _b=this.style;if(_b.bordertype&&!_b.bordertype._is_empty){return _b.bordertype;}if(this.grid){return this._find_gridpseudo_obj("bordertype",_a,null,null,true,"bordertype");}return null;};_pGridBandInfo._query_pseudo_gradation=function(_a,_b,_c,_d){var _e=this.style;if(_e.gradation&&!_e.gradation._is_empty){return _e.gradation;}if(this.grid){return this._find_gridpseudo_obj("gradation",_d,null,null,true,"gradation");}return null;};_pGridBandInfo._set_backgroundimage=function(_a,_b){_b=_b.toString();if(_b.length>=5){if(_b.substring(0,3).toLowerCase()=="url"){var _c=_b.substr(4,1);if(_c=='\''||_c=='\"'){_b=_b.substring(5,_b.length-2);}else{_b=_b.substring(4,_b.length-1);}}else if(_b.substring(0,5).toLowerCase()!="theme"){var _d=nexacro._checkBase64String(_b);if(_d){if(_b.substring(0,10).toLowerCase()!="data:image"){_b="data:image;base64,"+_b;}else if(_b.substring(0,17).toLowerCase()!="data:image;base64"){var _e=_b.indexOf(",");if(_e> -1){var _f=_b.slice(_e+1,_b.legnth);_b="data:image;base64,"+_f;}}}}}if(_b!=_a.image){_a.set_image(_b);}return _a;};_pGridBandInfo.set_class=function(_a){if(_a!=this.cssclass){this.cssclass=_a;if(this.bandctrl){this.bandctrl.set_class(_a);this.grid._clearBindTypeFlag();}}};_pGridBandInfo.set_id=function(_a){};_pGridBandInfo.set_cssclass=function(_a){if(_a!=this.cssclass){this.cssclass=_a;if(this.bandctrl){this.bandctrl.set_cssclass(_a);this.grid._clearBindTypeFlag();}}};_pGridBandInfo.set_style=function(_a){this.grid._clearBindTypeFlag();_a=nexacro._decodeXml(_a);var _b=_a.split("}");var _c=_b[0].trim();var _d=this._styles={};this._add_style_pseudo=[];_b.pop();var _e,_f=_b.length;var _g,_h,_i;var _j=this.style;_g=_c.split("{");_i=_g[0].substring(0,_g[0].lastIndexOf(";")+1).trim();if(_i.length==0){_i=_g[0].substring(0,_g[0].length).trim();}_j._setValue(_i);_d["normal"]=_j;if(this.bandctrl){_d["normal"]._target=this.bandctrl;}this._add_style_pseudo.push("normal");var _k=(this.style._value!=_i);if(_k){this.style._setValue(_i);}if(_f>0){for(_e=0;_e<_f;_e++ ){_g=_b[_e].split("{");_h=_g[0].substring(_g[0].lastIndexOf(":")+1).trim();var _l=new nexacro.GridBand_Style(this);_l._setValue(_g[1]);_d[_h]=_l;if(this.bandctrl){_d[_h]._target=this.bandctrl;}this._add_style_pseudo.push(_h);}}return this.style._value;};_pGridBandInfo._changeStyleTarget=function(_a){var _b=this.style;var _c=this._styles;var _d=this._add_style_pseudo;var _e=_d.length;_b._target=_a;for(var _f=0;_f<_e;_f++ ){_b=_c[_d[_f]];_b._target=_a;}};_pGridBandInfo.set_tooltiptype=function(_a){if(_a!=this.tooltiptype){this.tooltiptype=_a;this.grid._clearBindTypeFlag();}};_pGridBandInfo.set_tooltiptext=function(_a){if(_a!=this.tooltiptext._value){this.tooltiptext._set(_a);this.grid._clearBindTypeFlag();if(this.bandctrl){this.bandctrl.on_apply_prop_tooltip();}}};_pGridBandInfo._getTooltipText=function(_a){var _b=this._getAttrValue(this.tooltiptext,_a);if(!_b&&_b==""){_b=this.grid.tooltiptext;if(!_b){_b="";}}return _b;};_pGridBandInfo.set_cellwordwrap=function(_a){var _b=0;if(typeof (_a)=="string"){var _c=_a.toLowerCase();if(_c.indexOf("bind:")>=0||_c.indexOf("bind(")>=0){_b=1;}else if(_c.indexOf("expr:")>=0||_c.indexOf("expr(")>=0){_b=2;}else{_a=_a.toLowerCase();}}if(_b==0&&typeof (_a)!="string"){return;}if(_a!=this.cellwordwrap._value){this.cellwordwrap._set(_a);this.grid._clearBindTypeFlag();if(this.bandctrl){this.bandctrl.on_apply_wordwrap();}}};_pGridBandInfo._getAttrValue=function(_a,_b,_c){if(_a==undefined){return undefined;}if(_a._bindtype==undefined){return _a;}else if(_a._bindtype==0){return _a._value;}else{var _d=this.grid;var _e=_d._binddataset;if(_e==null){return undefined;}if(_a._bindtype==1){return _e.getColumn(_b,_a._bindexpr);}else{var _f=_a._value;var _g=_f.toLowerCase().indexOf("bind:");if(_g>=0){var _h=_a._bindexpr;_h=_h.substring(_g,_h.length);return _e.getColumn(_b,_h);}var _i=_d._exprcache[_a._bindexpr];if(_i==null){_i=_e._createExprFunc(_a._bindexpr);_d._exprcache[_a._bindexpr]=_i;}if((typeof _i)=="function"){if(_c){_c.col=_c._col;_c.row=_c._row;return _i.call(_c,_b,_b,_d,_e);}else{return _i.call(this,_b,_b,_d,_e);}}}}return undefined;};_pGridBandInfo._setAttrValue=function(_a,_b,_c){if(_a._bindtype==1){var _d=this.grid;var _e=_d._binddataset;if(_e){_e.setColumn(_b,_a._bindexpr,_c);}}};delete _pGridBandInfo;nexacro.GridFormat=function(_a,_b){this.id=_a;this.grid=this.parent=_b;this._cols=[];this._headrows=null;this._bodyrows=null;this._summrows=null;this._headband=null;this._summband=null;this._bodyband=null;this._headcells=null;this._summcells=null;this._bodycells=null;this.leftWidth=0;this.rightWidth=0;this.bodyWidth=0;this._orgleftWidth=0;this._orgrightWidth=0;this._orgbodyWidth=0;this.endbodycol=0;this.startrightcol= -1;this.headHeight=0;this.summHeight=0;this.bodyHeight=0;this._formatElem=null;this._formatElemOrg=null;};var _pGridFormat=nexacro._createPrototype(nexacro.Object,nexacro.GridFormat);nexacro.GridFormat.prototype=_pGridFormat;_pGridFormat._type_name="GridFormat";_pGridFormat.destroy=function(){if(this._headband){this._headband.destroy();this._headband=null;}if(this._summband){this._summband.destroy();this._summband=null;}if(this._bodyband){this._bodyband.destroy();this._bodyband=null;}if(this._headcells){var _a=this._headcells;var _b=_a.length;for(var _c=0;_c<_b;_c++ ){_a[_c].destroy();}this._headcells=null;}if(this._summcells){var _a=this._summcells;var _b=_a.length;for(var _c=0;_c<_b;_c++ ){_a[_c].destroy();}this._summcells=null;}if(this._bodycells){var _a=this._bodycells;var _b=_a.length;for(var _c=0;_c<_b;_c++ ){_a[_c].destroy();}this._bodycells=null;}this._headrows=null;this._bodyrows=null;this._summrows=null;this._formatElem=null;this._formatElemOrg=null;this._cols=null;this.grid=null;this.parent=null;};_pGridFormat._clearCellStyleCache=function(_a,_b){var _c=this.grid;_c._clearBindTypeFlag();_a=_a.toLowerCase();var _d;if(_a=="head"){_d=this._headcells;_c._is_use_bind_expr_style["head"]=false;_c._is_use_bind_expr_outerstyle["head"]=false;}else if(_a=="summ"||_a=="summary"){_d=this._summcells;_c._is_use_bind_expr_style["summ"]=false;_c._is_use_bind_expr_outerstyle["summ"]=false;}else{_d=this._bodycells;_c._is_use_bind_expr_style["body"]=false;_c._is_use_bind_expr_outerstyle["body"]=false;}if(_d){if(_b>0){_d[_b]._stylecache={};_d[_b]._is_use_bind_expr_style=false;var _e=_d[_b]._subcells;for(var _f=0;_f<_e.length;_f++ ){_e[_f]._stylecache={};_e[_f]._is_use_bind_expr_style=false;}}else{for(var _f=0;_f<_d.length;_f++ ){_d[_f]._stylecache={};_d[_f]._is_use_bind_expr_style=false;var _e=_d[_f]._subcells;for(var _g=0;_g<_e.length;_g++ ){_e[_g]._stylecache={};_e[_g]._is_use_bind_expr_style=false;}}}}};_pGridFormat._resetOrgColSize=function(_a){if(this._cols){var _b=this._cols;var _c=this._cols.length;var _d,_e,_f;_d=_e=_f=0;for(var _g=0;_g<_c;_g++ ){_b[_g].size=_b[_g].orgsize;_b[_g].left=_b[_g].orgleft;_b[_g].right=_b[_g].orgright;if(_b[_g]._area=="left"){_d+=_b[_g].size;}else if(_b[_g]._area=="right"){_f+=_b[_g].size;}else{_e+=_b[_g].size;}}}if(_a){this.leftWidth=_d;this.rightWidth=_f;this._bodyWidth=this.bodyWidth=_e;}else{this.leftWidth=this._orgleftWidth;this.rightWidth=this._orgrightWidth;this._bodyWidth=this.bodyWidth=this._orgbodyWidth;}};_pGridFormat._rearrangeCols=function(){var _a=this._cols;var _b=_a.length;for(var _c=0;_c<_b;_c++ ){_a[_c].orgidx=_c;}};_pGridFormat._addLeftColumn=function(_a){var _b=this.leftWidth+_a;var _c=this._orgleftWidth+_a;var _d={size:_a,left:this.leftWidth,right:_b,_area:"left",orgsize:_a,orgleft:this._orgleftWidth,orgright:_c};var _e=this._getColFixCnt("left");this._cols.splice(_e,0,_d);this.leftWidth=_b;this._orgleftWidth=_c;return _d;};_pGridFormat._addRightColumn=function(_a){var _b=this.rightWidth+_a;var _c=this._orgrightWidth+_a;var _d={size:_a,left:this.rightWidth,right:_b,_area:"right",orgsize:_a,orgleft:this._orgrightWidth,orgright:_c};this._cols.push(_d);this.rightWidth=_b;this._orgrightWidth=_c;return _d;};_pGridFormat._addBodyColumn=function(_a){var _b=this.bodyWidth+_a;var _c=this._orgbodyWidth+_a;var _d={size:_a,left:this.bodyWidth,right:_b,_area:"body",orgsize:_a,orgleft:this._orgbodyWidth,orgright:_c};var _e=this._getColFixCnt("left");var _f=this._getColFixCnt("body");this._cols.splice(_e+_f,0,_d);this.endbodycol=this._cols.length;this._bodyWidth=this.bodyWidth=_b;this._orgbodyWidth=_c;return _d;};_pGridFormat._insertLeftColumn=function(_a,_b){var _c=this.leftWidth+_a;var _d=this._orgleftWidth+_a;if(_b>=this._cols.length){return this._addLeftColumn(_a);}var _e=this._cols[_b];var _f=0;var _g=0;if(_e){_f=_e.left;_g=_e.orgleft;}var _h=_f+_a;var _i=_g+_a;var _j={size:_a,left:_f,right:_h,_area:"left",orgsize:_a,orgleft:_g,orgright:_i};this._cols.splice(_b,0,_j);this.leftWidth=_c;this._orgleftWidth=_d;this._adjustFormatColSize();return _j;};_pGridFormat._insertRightColumn=function(_a,_b){var _c=this.rightWidth+_a;var _d=this._orgrightWidth+_a;if(_b>=this._cols.length){return this._addRightColumn(_a);}var _e=this._cols[_b];var _f=0;var _g=0;if(_e){_f=_e.left;_g=_e.orgleft;}var _h=_f+_a;var _i=_g+_a;var _j={size:_a,left:_f,right:_h,_area:"right",orgsize:_a,orgleft:_g,orgright:_i};this._cols.splice(_b,0,_j);this.rightWidth=_c;this._orgrightWidth=_d;this._adjustFormatColSize();return _j;};_pGridFormat._insertBodyColumn=function(_a,_b){var _c=this.bodyWidth+_a;var _d=this._orgbodyWidth+_a;if(_b>=this._cols.length){return this._addBodyColumn(_a);}var _e=this._cols[_b];var _f=0;var _g=0;if(_e){_f=_e.left;_g=_e.orgleft;}var _h=_f+_a;var _i=_g+_a;var _j={size:_a,left:_f,right:_h,_area:"body",orgsize:_a,orgleft:_g,orgright:_i};this._cols.splice(_b,0,_j);this.endbodycol=this._cols.length;this._bodyWidth=this.bodyWidth=_c;this._orgbodyWidth=_d;this._adjustFormatColSize();return _j;};_pGridFormat._moveColumn=function(_a,_b,_c,_d,_e){var _f=this._cols[_a];var _g=_f._area;var _h=_f.left;var _i=_f.right;;if(!_f||_a==_b){return false;}if(_a<_b){_b+=(_d-1);}var _j=this._cols[_b];switch(_e){case "col":break;case "col,band":if(_f._area!=_j._area){return false;}break;case "col,merge":case "col,line":default:return false;}_f._area=_j._area;this._cols.splice(_a,1);this._cols.splice(_b,0,_f);if(_a>_b){for(var _k=_b;_k<_a;_k++ ){this._cols[_k].left=this._cols[_k+1].left;this._cols[_k].right=this._cols[_k+1].right;}}else{for(var _k=_b;_k>_a;_k-- ){this._cols[_k].left=this._cols[_k-1].left;this._cols[_k].right=this._cols[_k-1].right;}}this._cols[_a].left=_h;this._cols[_a].right=_i;this._adjustFormatColSize();this._moveContentsCol("body",this._bodycells,_a,_b);this._moveContentsCol("head",this._headcells,_a,_b);this._moveContentsCol("summ",this._summcells,_a,_b);this._bodycells=this._reIndexCells(this._bodycells,this._bodyrows);this._headcells=this._reIndexCells(this._headcells,this._headrows);this._summcells=this._reIndexCells(this._summcells,this._summrows);return true;};_pGridFormat._addHeadRow=function(_a){if(this._headrows==null){this._headrows=[];}var _b=this.headHeight+_a;var _c={size:_a,top:this.headHeight,bottom:_b,_area:"head",orgsize:_a,orgtop:this.headHeight,orgbottom:_b};this._headrows.push(_c);this.headHeight=_b;return _c;};_pGridFormat._addSummRow=function(_a){if(this._summrows==null){this._summrows=[];}var _b=this.summHeight+_a;var _c={size:_a,top:this.summHeight,bottom:_b,_area:"summ",orgsize:_a,orgtop:this.summHeight,orgbottom:_b};this._summrows.push(_c);this.summHeight=_b;return _c;};_pGridFormat._addBodyRow=function(_a){if(this._bodyrows==null){this._bodyrows=[];}var _b=this.bodyHeight+_a;var _c={size:_a,top:this.bodyHeight,bottom:_b,_area:"body",orgsize:_a,orgtop:this.bodyHeight,orgbottom:_b};this._bodyrows.push(_c);this._body_height=this.bodyHeight=_b;return _c;};_pGridFormat._insertHeadRow=function(_a,_b){var _c={size:_b,top:0,bottom:_b,_area:"head",orgsize:_b,orgtop:0,orgbottom:_b};if(this._headrows==null||this._headrows.length==0){this._headrows=[];this._headrows.push(_c);}else{if(_a>0){if(this._headrows.length<_a){_a=this._headrows.length;}_c.top=this._headrows[_a-1].bottom;_c.bottom=_c.top+_b;}this._headrows.splice(_a,0,_c);}this.headHeight+=_b;this._adjustFormatRowSize(this._headrows);return _c;};_pGridFormat._insertSummRow=function(_a,_b){var _c={size:_b,top:0,bottom:_b,_area:"summ",orgsize:_b,orgtop:0,orgbottom:_b};if(this._summrows==null||this._summrows.length==0){this._summrows=[];this._summrows.push(_c);}else{if(_a>0){if(this._summrows.length<_a){_a=this._summrows.length;}_c.top=this._summrows[_a-1].bottom;_c.bottom=_c.top+_b;}this._summrows.splice(_a,0,_c);}this.summHeight+=_b;this._adjustFormatRowSize(this._summrows);return _c;};_pGridFormat._insertBodyRow=function(_a,_b){var _c={size:_b,top:0,bottom:_b,_area:"body",orgsize:_b,orgtop:0,orgbottom:_b};if(this._bodyrows==null||this._bodyrows.length==0){this._bodyrows=[];this._bodyrows.push(_c);}else{if(_a>0){if(this._bodyrows.length<_a){_a=this._bodyrows.length;}_c.top=this._bodyrows[_a-1].bottom;_c.bottom=_c.top+_b;}else{_a=0;}this._bodyrows.splice(_a,0,_c);}this.bodyHeight+=_b;this._body_height=this.bodyHeight;this._adjustFormatRowSize(this._bodyrows);return _c;};_pGridFormat._addHeadCell=function(_a){if(this._headcells==null){this._headcells=[];}return this._addCell(this._headcells,_a);};_pGridFormat._addSummCell=function(_a){if(this._summcells==null){this._summcells=[];}return this._addCell(this._summcells,_a);};_pGridFormat._addBodyCell=function(_a){if(this._bodycells==null){this._bodycells=[];}return this._addCell(this._bodycells,_a);};_pGridFormat._addCell=function(_a,_b){var _c=this._cols[_b._col];if(_c){_b._area=_c._area;_a.push(_b);return _b;}return undefined;};_pGridFormat._insertHeadCell=function(_a,_b,_c){if(this._headcells==null){this._headcells=[];}return this._insertCell(this._headcells,_a,_b,_c);};_pGridFormat._insertSummCell=function(_a,_b,_c){if(this._summcells==null){this._summcells=[];}return this._insertCell(this._summcells,_a,_b,_c);};_pGridFormat._insertBodyCell=function(_a,_b,_c){if(this._bodycells==null){this._bodycells=[];}return this._insertCell(this._bodycells,_a,_b,_c);};_pGridFormat._insertCell=function(_a,_b,_c,_d){var _e=this._cols[_b._col];if(_e){var _f=_a.length;var _g;var _h;for(var _i=0;_i<_f;_i++ ){_g=_a[_i];if(_g._col==_c&&_g._row==_d){_h=_i;}if(_g._col>=_c&&_g._row==_d){_g._col++ ;}}_b._area=_e._area;_a.splice(_h,0,_b);return _b;}return undefined;};_pGridFormat._arrayCopy=function(_a){function cloneObj(_c){var _d={};for(var _e in _c){if(_c.hasOwnProperty(_e)){_d[_e]=_c[_e];}}return _d;};var _b=[];for(var _c=0;_c<_a.length;_c++ ){_b[_c]=cloneObj(_a[_c]);}return _b;};_pGridFormat._getFormatStr=function(){return nexacro._documentToXml(this._formatElem);};_pGridFormat._getOrgFormatStr=function(){return nexacro._documentToXml(this._formatElemOrg);};_pGridFormat._updateFormatStr=function(){if(!this.grid.enableredraw){return;}var _a=0;var _b=0;var _c=0;var _d=0;var _e=this._cols;var _f=this._headrows;var _g=this._bodyrows;var _h=this._summrows;var _i=this._headcells;var _j=this._bodycells;var _k=this._summcells;var _l=this._headband;var _m=this._bodyband;var _n=this._summband;if(_e&&_e.length){_c=_e.length;}var _o;if(_c>0){_o="\n";_o+="\n";{for(_b=0;_b<_c;_b++ ){if(_e[_b]._area!="body"){_o+="\n";}else{_o+="\n";}}}_o+="\n";_o+="\n";{if(_f){var _r=_f.length;for(var _b=0;_b<_r;_b++ ){_o+="\n";}}if(_g){var _s=_g.length;for(var _b=0;_b<_s;_b++ ){_o+="\n";}}if(_h){var _t=_h.length;for(var _b=0;_b<_t;_b++ ){_o+="\n";}}}_o+="\n";function _makeCellstr(_u){var _v=_u.length;for(var _b=0;_b<_v;_b++ ){_o+="1){_o+="\" colspan=\""+_u[_b]._colspan;}if(_u[_b]._rowspan>1){_o+="\" rowspan=\""+_u[_b]._rowspan;}if(_u[_b].displaytype._value&&_u[_b].displaytype._value.length){_o+="\" displaytype=\""+nexacro._encodeXml(_u[_b].displaytype._value);}if(_u[_b].edittype._value&&_u[_b].edittype._value.length&&_u[_b].edittype._value!="none"){_o+="\" edittype=\""+nexacro._encodeXml(_u[_b].edittype._value);}if(_u[_b].text._value&&_u[_b].text._value.length){_o+="\" text=\""+nexacro._encodeXml(_u[_b].text._value);}if(_u[_b].style._value&&_u[_b].style._value.length){_o+="\" style=\""+nexacro._encodeXml(_u[_b].style._value);}if(_u[_b].tooltiptext._value&&_u[_b].tooltiptext._value.length){_o+="\" tooltiptext=\""+nexacro._encodeXml(_u[_b].tooltiptext._value);}if(_u[_b].tooltiptype&&_u[_b].tooltiptype.length&&_u[_b].tooltiptype!="none"){_o+="\" tooltiptype=\""+nexacro._encodeXml(_u[_b].tooltiptype);}if(_u[_b].displayexpdec._value>=0){_o+="\" displayexpdec=\""+_u[_b].displayexpdec._value;}if(_u[_b].locale._value&&_u[_b].locale._value.length){_o+="\" locale=\""+nexacro._encodeXml(_u[_b].locale._value);}if(_u[_b].mask._value&&_u[_b].mask._value.length){_o+="\" mask=\""+nexacro._encodeXml(_u[_b].mask._value);}if(_u[_b].maskchar&&_u[_b].maskchar.length&&_u[_b].maskchar!="_"){_o+="\" maskchar=\""+nexacro._encodeXml(_u[_b].maskchar);}if(_u[_b].suppress._value!=0){_o+="\" suppress=\""+_u[_b].suppress._value;}if(_u[_b].suppressalign&&_u[_b].suppressalign.length&&_u[_b].suppressalign!="first"){_o+="\" suppressalign=\""+nexacro._encodeXml(_u[_b].suppressalign);}if(_u[_b].suppressedit==true){_o+="\" suppressedit=\""+_u[_b].suppressedit;}if(_u[_b].wordwrap!="none"&&_u[_b].wordwrap!="false"&&_u[_b].wordwrap!=false){_o+="\" wordwrap=\""+nexacro._encodeXml(_u[_b].wordwrap._value);}if(_u[_b].expr._value&&_u[_b].expr._value.length){_o+="\" expr=\""+nexacro._encodeXml(_u[_b].expr._value);}if(_u[_b].subsumtext._value&&_u[_b].subsumtext._value.length){_o+="\" subsumtext=\""+nexacro._encodeXml(_u[_b].subsumtext._value);}if(_u[_b].calendardisplay._value&&_u[_b].calendardisplay._value.length&&_u[_b].calendardisplay._value!="edit"){_o+="\" calendardisplay=\""+nexacro._encodeXml(_u[_b].calendardisplay._value);}if(_u[_b].calendardisplaynulltext._value&&_u[_b].calendardisplaynulltext._value.length){_o+="\" calendardisplaynulltext=\""+nexacro._encodeXml(_u[_b].calendardisplaynulltext._value);}if(_u[_b].calendardisplaynulltype._value&&_u[_b].calendardisplaynulltype._value.length&&_u[_b].calendardisplaynulltype._value!="default"){_o+="\" calendardisplaynulltype=\""+nexacro._encodeXml(_u[_b].calendardisplaynulltype._value);}if(_u[_b].combodataset._value&&_u[_b].combodataset._value.length){_o+="\" combodataset=\""+nexacro._encodeXml(_u[_b].combodataset._value);}if(_u[_b].combocodecol._value&&_u[_b].combocodecol._value.length){_o+="\" combocodecol=\""+nexacro._encodeXml(_u[_b].combocodecol._value);}if(_u[_b].combodatacol._value&&_u[_b].combodatacol._value.length){_o+="\" combodatacol=\""+nexacro._encodeXml(_u[_b].combodatacol._value);}if(_u[_b].combodisplay._value&&_u[_b].combodisplay._value.length&&_u[_b].combodisplay._value!="edit"){_o+="\" combodisplay=\""+nexacro._encodeXml(_u[_b].combodisplay._value);}if(_u[_b].combodisplaynulltext._value&&_u[_b].combodisplaynulltext._value.length){_o+="\" combodisplaynulltext=\""+nexacro._encodeXml(_u[_b].combodisplaynulltext._value);}if(_u[_b].combodisplaynulltype._value&&_u[_b].combodisplaynulltype._value.length&&_u[_b].combodisplaynulltype._value!="none"){_o+="\" combodisplaynulltype=\""+nexacro._encodeXml(_u[_b].combodisplaynulltype._value);}if(_u[_b].combodisplayrowcount._value>=0&&_u[_b].combodisplayrowcount._value!=5){_o+="\" combodisplayrowcount=\""+_u[_b].combodisplayrowcount._value;}if(_u[_b].combotype._value&&_u[_b].combotype._value.length&&_u[_b].combotype._value!="dropdown"){_o+="\" combotype=\""+nexacro._encodeXml(_u[_b].combotype._value);}if(_u[_b].editacceptsenter._value==true){_o+="\" editacceptsenter=\""+_u[_b].editacceptsenter._value;}if(_u[_b].editacceptstab._value==true){_o+="\" editacceptstab=\""+_u[_b].editacceptstab._value;}if(_u[_b].editautoselect._value==true){_o+="\" editautoselect=\""+_u[_b].editautoselect._value;}if(_u[_b].editautoskip._value==true){_o+="\" editautoskip=\""+_u[_b].editautoskip._value;}if(_u[_b].editclipmode._value&&_u[_b].editclipmode._value.length&&_u[_b].editclipmode._value!="includespace"){_o+="\" editclipmode=\""+nexacro._encodeXml(_u[_b].editclipmode._value);}if(_u[_b].editdisplay._value&&_u[_b].editdisplay._value.length&&_u[_b].editdisplay._value!="edit"){_o+="\" editdisplay=\""+nexacro._encodeXml(_u[_b].editdisplay._value);}if(_u[_b].editfilter._value&&_u[_b].editfilter._value.length&&_u[_b].editfilter._value!="none"){_o+="\" editfilter=\""+nexacro._encodeXml(_u[_b].editfilter._value);}if(_u[_b].editimemode._value&&_u[_b].editimemode._value.length&&_u[_b].editimemode._value!="none"){_o+="\" editimemode=\""+nexacro._encodeXml(_u[_b].editimemode._value);}if(_u[_b].editlimit._value>=0){_o+="\" editlimit=\""+_u[_b].editlimit._value;}if(_u[_b].editlimitbymask._value&&_u[_b].editlimitbymask._value.length&&_u[_b].editlimitbymask._value!="decimal"){_o+="\" editlimitbymask=\""+nexacro._encodeXml(_u[_b].editlimitbymask._value);}if(_u[_b].editscrollbar._value&&_u[_b].editscrollbar._value.length&&_u[_b].editscrollbar._value!="none"){_o+="\" editscrollbar=\""+nexacro._encodeXml(_u[_b].editscrollbar._value);}if(_u[_b].edittrimtype._value&&_u[_b].edittrimtype._value.length&&_u[_b].edittrimtype._value!="none"){_o+="\" edittrimtype=\""+nexacro._encodeXml(_u[_b].edittrimtype._value);}if(_u[_b].edituseime._value&&_u[_b].edituseime._value.length&&_u[_b].edituseime._value!="global"){_o+="\" edituseime=\""+nexacro._encodeXml(_u[_b].edituseime._value);}if(_u[_b].treecheck._value&&_u[_b].treecheck._value.length){_o+="\" treecheck=\""+nexacro._encodeXml(_u[_b].treecheck._value);}if(_u[_b].treecollapseimage._value&&_u[_b].treecollapseimage._value.length){_o+="\" treecollapseimage=\""+nexacro._encodeXml(_u[_b].treecollapseimage._value);}if(_u[_b].treeexpandimage._value&&_u[_b].treeexpandimage._value.length){_o+="\" treeexpandimage=\""+nexacro._encodeXml(_u[_b].treeexpandimage._value);}if(_u[_b].treeitemimage._value&&_u[_b].treeitemimage._value.length){_o+="\" treeitemimage=\""+nexacro._encodeXml(_u[_b].treeitemimage._value);}if(_u[_b].treelevel._value&&_u[_b].treelevel._value.length){_o+="\" treelevel=\""+nexacro._encodeXml(_u[_b].treelevel._value);}if(_u[_b].treestartlevel._value>0){_o+="\" treestartlevel=\""+_u[_b].treestartlevel._value;}if(_u[_b].treestate._value&&_u[_b].treestate._value.length){_o+="\" treestate=\""+nexacro._encodeXml(_u[_b].treestate._value);}if(_u[_b].expandchar._value&&_u[_b].expandchar._value.length){_o+="\" expandchar=\""+nexacro._encodeXml(_u[_b].expandchar._value);}if(_u[_b].expandimage._value&&_u[_b].expandimage._value.length){_o+="\" expandimage=\""+nexacro._encodeXml(_u[_b].expandimage._value);}if(_u[_b].expandshow._value&&_u[_b].expandshow._value.length&&_u[_b].expandshow._value!="hide"){_o+="\" expandshow=\""+nexacro._encodeXml(_u[_b].expandshow._value);}if(_u[_b].expandsize>=0&&_u[_b].expandsize!=_u[_b]._default_expandsize){_o+="\" expandsize=\""+_u[_b].expandsize._value;}if(_u[_b].autosizecol&&_u[_b].autosizecol.length&&_u[_b].autosizecol!="default"){_o+="\" autosizecol=\""+nexacro._encodeXml(_u[_b].autosizecol);}if(_u[_b].autosizerow&&_u[_b].autosizerow.length&&_u[_b].autosizerow!="default"){_o+="\" autosizerow=\""+nexacro._encodeXml(_u[_b].autosizerow);}if(_u[_b].celltype._value&&_u[_b].celltype._value.length&&_u[_b].celltype._value!="none"){_o+="\" celltype=\""+nexacro._encodeXml(_u[_b].celltype._value);}if(_u[_b].cssclass&&_u[_b].cssclass.length){_o+="\" cssclass=\""+nexacro._encodeXml(_u[_b].cssclass);}_o+="\"/>\n";var _w=_u[_b]._subcells;var _x=_w.length;if(_x>0){_o+=" ";_makeCellstr(_w);}}}if(_f){_o+="\n";_makeCellstr(_i);_o+="\n";}if(_g){_o+="\n";_makeCellstr(_j);_o+="\n";}if(_h){_o+="\n";_makeCellstr(_k);_o+="\n";}_o+="\n";}else{_o="\n";}var _p=nexacro._parseXMLDocument(_o);var _q=_p.getElementsByTagName("Format");if(_q){this._formatElem=_q[0];}return _o;};_pGridFormat._loadFromDOM=function(_a){var _b,_c,_d,_e,_f,_g,_h;var _i,_j,_k,_l,_m,_n,_o,_p,_q;var _r,_s,_t,_u;this._formatElemOrg=_a.cloneNode(true);var _v=_a.getElementsByTagName("Column");_d=_v.length;if(_d==0){_v=_a.getElementsByTagName("Col");_d=_v.length;}var _w=0;this._formatElem=_a;for(_b=0;_b<_d;_b++ ){var _z=_v[_b];_f=_z.getAttribute("band");_g=_z.getAttribute("size");if(_w==0&&_f=="left"){this._addLeftColumn(parseInt(_g,10));}else if(_w==2||_f=="right"){this._addRightColumn(parseInt(_g,10));_w=2;}else{this._addBodyColumn(parseInt(_g,10));_w=1;}}this._bodyWidth=this.bodyWidth;this._rearrangeCols();var _x=_a.getElementsByTagName("Row");_d=_x.length;for(_b=0;_b<_d;_b++ ){var _aa=_x[_b];_f=_aa.getAttribute("band");_g=_aa.getAttribute("size");if(_f=="head"){this._addHeadRow((parseInt(_g)|0));}else if(_f=="summ"){this._addSummRow((parseInt(_g)|0));}else{this._addBodyRow((parseInt(_g)|0));}}this._body_height=this.bodyHeight;var _y=_a.getElementsByTagName("Band");_d=_y.length;for(_b=0;_b<_d;_b++ ){_t=_y[_b];_h=_t.getAttribute("id");if(_h=="head"){if(this._headband==null){this._headband=new nexacro.GridBandInfo("head","head",this,this.parent);}_r=this._headband;}else if(_h=="summary"){if(this._summband==null){this._summband=new nexacro.GridBandInfo("summary","summ",this,this.parent);}_r=this._summband;}else{_h="body";if(this._bodyband==null){this._bodyband=new nexacro.GridBandInfo("body","body",this,this.parent);}_r=this._bodyband;}_q=_t.getAttribute("style");if(_q){_r.set_style(_q);}_q=_t.getAttribute("tooltiptext");if(_q){_r.set_tooltiptext(_q);}_q=_t.getAttribute("tooltiptype");if(_q){_r.set_tooltiptype(_q);}_q=_t.getAttribute("cellwordwrap");if(_q){_r.set_cellwordwrap(_q);}var _ab=_t.getElementsByTagName("Cell");_e=_ab.length;var _ac=null;var _ad=0;var _ae= -1;var _af=0;for(_c=0;_c<_e;_c++ ){if(_ad>0){_s=new nexacro.GridCellInfo(_h+_ae+"_sub"+_af,_r,this.parent,_h,_af);}else{_ae++ ;_s=new nexacro.GridCellInfo(_h+_ae,_r,this.parent,_h,_ae);}_u=_ab[_c];_i=_u.getAttribute("col");_m=_u.getAttribute("row");_k=_u.getAttribute("colspan");_o=_u.getAttribute("rowspan");_j=(_i==null?0:parseInt(_i));_n=(_m==null?0:parseInt(_m));var _ag=_u.getElementsByTagName("Cell");var _ah=0;if(_h=="head"&&this._headrows){_ah=this._headrows.length;}else if(_h=="summary"&&this._summrows){_ah=this._summrows.length;}else if(_h=="body"&&this._bodyrows){_ah=this._bodyrows.length;}if(_n>=_ah){delete _s;continue;}_l=(_k==null?1:parseInt(_k));_p=(_o==null?1:parseInt(_o));_s._col=_j;_s._colspan=_l;_s._row=_n;_s._rowspan=_p;_s._endcol=((_j+_l)==this.endbodycol);_q=_u.getAttribute("displaytype");if(_q){_s.set_displaytype(_q);}_q=_u.getAttribute("edittype");if(_q){_s.set_edittype(_q);}_q=_u.getAttribute("style");if(_q){_s.set_style(_q);}_q=_u.getAttribute("tooltiptext");if(_q){_s.set_tooltiptext(_q);}_q=_u.getAttribute("tooltiptype");if(_q){_s.set_tooltiptype(_q);}_q=_u.getAttribute("displayexpdec");if(_q){_s.set_displayexpdec(_q);}_q=_u.getAttribute("locale");if(_q){_s.set_locale(_q);}_q=_u.getAttribute("mask");if(_q){_s.set_mask(_q);}_q=_u.getAttribute("maskchar");if(_q){_s.set_maskchar(_q);}_q=_u.getAttribute("suppress");if(_q){_s.set_suppress(_q);}_q=_u.getAttribute("suppressalign");if(_q){_s.set_suppressalign(_q);}_q=_u.getAttribute("suppressedit");if(_q){_s.set_suppressedit(_q);}_q=_u.getAttribute("wordwrap");if(_q){_s.set_wordwrap(_q);}_q=_u.getAttribute("expr");if(_q){_s.set_expr(_q);}_q=_u.getAttribute("text");if(_q){_s.set_text(_q);}_q=_u.getAttribute("subsumtext");if(_q){_s.set_subsumtext(_q);}_q=_u.getAttribute("calendardisplay");if(_q){_s.set_calendardisplay(_q);}_q=_u.getAttribute("calendardisplaynulltext");if(_q){_s.set_calendardisplaynulltext(_q);}_q=_u.getAttribute("calendardisplaynulltype");if(_q){_s.set_calendardisplaynulltype(_q);}_q=_u.getAttribute("combodataset");if(_q){_s.set_combodataset(_q);}_q=_u.getAttribute("combocodecol");if(_q){_s.set_combocodecol(_q);}_q=_u.getAttribute("combodatacol");if(_q){_s.set_combodatacol(_q);}_q=_u.getAttribute("combodisplay");if(_q){_s.set_combodisplay(_q);}_q=_u.getAttribute("combodisplaynulltext");if(_q){_s.set_combodisplaynulltext(_q);}_q=_u.getAttribute("combodisplaynulltype");if(_q){_s.set_combodisplaynulltype(_q);}_q=_u.getAttribute("combodisplayrowcount");if(_q){_s.set_combodisplayrowcount(_q);}_q=_u.getAttribute("combotype");if(_q){_s.set_combotype(_q);}_q=_u.getAttribute("editacceptsenter");if(_q){_s.set_editacceptsenter(_q);}_q=_u.getAttribute("editacceptstab");if(_q){_s.set_editacceptstab(_q);}_q=_u.getAttribute("editautoselect");if(_q){_s.set_editautoselect(_q);}_q=_u.getAttribute("editautoskip");if(_q){_s.set_editautoskip(_q);}_q=_u.getAttribute("editclipmode");if(_q){_s.set_editclipmode(_q);}_q=_u.getAttribute("editdisplay");if(_q){_s.set_editdisplay(_q);}_q=_u.getAttribute("editfilter");if(_q){_s.set_editfilter(_q);}_q=_u.getAttribute("editimemode");if(_q){_s.set_editimemode(_q);}_q=_u.getAttribute("editlimit");if(_q){_s.set_editlimit(_q);}_q=_u.getAttribute("editlengthunit");if(_q){_s.set_editlengthunit(_q);}_q=_u.getAttribute("editlimitbymask");if(_q){_s.set_editlimitbymask(_q);}_q=_u.getAttribute("editscrollbar");if(_q){_s.set_editscrollbar(_q);}_q=_u.getAttribute("edittrimtype");if(_q){_s.set_edittrimtype(_q);}_q=_u.getAttribute("edituseime");if(_q){_s.set_edituseime(_q);}_q=_u.getAttribute("treecheck");if(_q){_s.set_treecheck(_q);}_q=_u.getAttribute("treecollapseimage");if(_q){_s.set_treecollapseimage(_q);}_q=_u.getAttribute("treeexpandimage");if(_q){_s.set_treeexpandimage(_q);}_q=_u.getAttribute("treeitemimage");if(_q){_s.set_treeitemimage(_q);}_q=_u.getAttribute("treeitemmargin");if(_q){_s.set_treeitemmargin(_q);}_q=_u.getAttribute("treelevel");if(_q){_s.set_treelevel(_q);}_q=_u.getAttribute("treestartlevel");if(_q){_s.set_treestartlevel(_q);}_q=_u.getAttribute("treestate");if(_q){_s.set_treestate(_q);}_q=_u.getAttribute("expandchar");if(_q){_s.set_expandchar(_q);}_q=_u.getAttribute("expandimage");if(_q){_s.set_expandimage(_q);}_q=_u.getAttribute("expandshow");if(_q){_s.set_expandshow(_q);}_q=_u.getAttribute("expandsize");if(_q){_s.set_expandsize(_q);}_q=_u.getAttribute("autosizecol");if(_q){_s.set_autosizecol(_q);}_q=_u.getAttribute("autosizerow");if(_q){_s.set_autosizerow(_q);}_q=_u.getAttribute("celltype");if(_q){_s.set_celltype(_q);}_q=_u.getAttribute("cssclass");if(_q){_s.set_cssclass(_q);}if(_ad>0){_s._isSubCell=true;_ac._subcells.push(_s);_ad-- ;_af++ ;}else{_af=0;if(_ag.length>0){_ad=_ag.length;_ac=_s;}else{_ac=null;}if(_h=="head"){this._addHeadCell(_s);}else if(_h=="summary"){this._addSummCell(_s);}else{this._addBodyCell(_s);}}}}this._bodycells=this._sortCellIdx(this._bodycells,this._bodyrows);this._headcells=this._sortCellIdx(this._headcells,this._headrows);this._summcells=this._sortCellIdx(this._summcells,this._summrows);};_pGridFormat._sortCellIdx=function(_a,_b){if(!_a||!_b){return null;}var _c=[];var _d=_a.length;var _e=_b.length;var _f=0;for(var _g=0;_g<_e;_g++ ){for(var _h=0;_h<_d;_h++ ){if(_a[_h]._row==_g){_a[_h]._cellidx=_f++ ;_c.push(_a[_h]);}}}return _c;};_pGridFormat._adjustColSizing=function(_a,_b){if(_b!=0){var _c=this._cols.length;if(_c==0&&!this._cols[_a]){return false;}var _d=this._cols[_a]._area;if(_d=="body"){this.bodyWidth=this._bodyWidth=this._bodyWidth+_b;}else if(_d=="left"){this.leftWidth+=_b;}else{this.rightWidth+=_b;}var _e;var _f=0;for(var _g=0;_g<_c;_g++ ){if(_g<_a){continue;}else if(_g==_a){_e=this._cols[_g];if(_e._area!=_d){continue;}_e.right+=_b;_e.size+=_b;}else{_e=this._cols[_g];if(_e._area!=_d){continue;}_e.left+=_b;_e.right+=_b;}}this._updateFormatStr();return true;}return false;};_pGridFormat._adjustColWidth=function(_a){if(_a==0){return false;}if(this._bodyWidth!=_a){this._bodyWidth=_a;var _b=_a/this.bodyWidth;this.bodyWidth=this._bodyWidth;var _c=this._cols.length;var _d;var _e=0;var _f=0;for(var _g=0;_g<_c;_g++ ){_d=this._cols[_g];if(_d._area!="body"){continue;}_d.left=_e;_f+=_d.size;_d.size=Math.round(_f*_b)-_e;if(_d.size<=0&&_d.orgsize>0){_d.size=0.2;}_e=_e+_d.size;_d.right=_e;}return true;}return false;};_pGridFormat._adjustRowHeight=function(_a){if(_a==0){_a=0.1;}if(this._body_height!=_a){this._body_height=_a;var _b=_a/this.bodyHeight;this.bodyHeight=this._body_height;if(!this._rows){return true;}var _c=this._rows.length;var _d;var _e=0;for(var _f=0;_f<_c;_f++ ){_d=this._rows[_f];if(_d._area!="body"){continue;}_d.top=_e;_d.size=(_d.size*_b);_e=_e+_d.size;_d.bottom=_e;}return true;}return false;};_pGridFormat._defaultColSize=40;_pGridFormat._appendContentsCol=function(_a,_b,_c,_d,_e,_f){var _g=(_c)?_c.length:0;var _h=(_d)?_d.length:0;var _i=null;for(var _j=0;_j<_g;_j++ ){_c[_j]._endcol=false;if(_c[_j]._col>=_f){_c[_j]._col++ ;}}for(var _j=0;_j<_h;_j++ ){_i=new nexacro.GridCellInfo(_a+_g,_b,this.parent,_a,_g);_i.celltype=_a;_i._col=_f;_i._colspan=1;_i._row=_j;_i._rowspan=1;this[_e](_i);_g++ ;}_c[_c.length-1]._endcol=true;this._arrangeCellIdx(_a);this._updateFormatStr();};_pGridFormat._arrangeCellIdx2=function(_a,_b){var _c=0;var _d;var _e=[];for(var _f=0;_f<_b;_f++ ){for(var _g=0;_g<_a.length;_g++ ){_d=_a[_g];if(_f==_d._row){_d._cellidx=_c;_e[_c++ ]=_d;_a.splice(_g,1);_g-- ;}}}return _e;};_pGridFormat._arrangeCellIdx=function(_a){var _b=this._bodycells;var _c=this._bodyrows;if(_a=="body"){_b=this._bodycells;_c=this._bodyrows;}else if(_a=="summ"||_a=="summary"){_b=this._summcells;_c=this._summrows;}else if(_a=="head"){_b=this._headcells;_c=this._headrows;}var _d=(_c)?_c.length:0;var _e=this._arrangeCellIdx2(_b,_d);if(_a=="body"){this._bodycells=_e;}else if(_a=="summ"||_a=="summary"){this._summcells=_e;}else if(_a=="head"){this._headcells=_e;}};_pGridFormat.appendContentsCol=function(_a,_b){var _c="body";if(_b==undefined){_b=true;}_b=nexacro._toBoolean(_b);if(_b==false){var _f=this._getColFixCnt("right");if(_f){_c="right";}else{_c="body";}}else{if(_a){var _g=parseInt(_a,10);if(isFinite(_g)){if(_g== -1){_c="left";}else if(_g== -2){_c="right";}else{_c="body";}}else if(_a.length){_c=_a.toLowerCase();}}}var _d=this._cols.length;var _e=this._defaultColSize;if(_c=="left"){_d=this._getColFixCnt("left");this._addLeftColumn(_e);}else if(_c=="right"){_d=this._cols.length;this._addRightColumn(_e);}else{_d=this._getColFixCnt("left");_d+=this._getColFixCnt("body");this._addBodyColumn(_e);this.endbodycol=this._cols.length;}if(this._bodyband){var _h="body";var _i=this._bodyband;var _j=this._bodycells;var _k=this._bodyrows;var _l="_addBodyCell";this._appendContentsCol(_h,_i,_j,_k,_l,_d);}if(this._headband){_h="head";_i=this._headband;_j=this._headcells;_k=this._headrows;_l="_addHeadCell";this._appendContentsCol(_h,_i,_j,_k,_l,_d);}if(this._summband){_h="summary";_i=this._summband;_j=this._summcells;_k=this._summrows;_l="_addSummCell";this._appendContentsCol(_h,_i,_j,_k,_l,_d);}this._rearrangeCols();return _d;};_pGridFormat._moveContentsCol=function(_a,_b,_c,_d,_e,_f){if(!_b){return;}var _g=_b.length;var _h=(this._cols)?(this._cols.length-1): -1;var _i,_j;var _k={};var _l,_m,_n;for(var _o=0;_o<_g;_o++ ){_i=_b[_o];_l=_i._col;if(_l==_c){_m=_l;}if(_l==_d){_n=_l;}_k[_l]=_i._area;}for(var _o=0;_o<_g;_o++ ){_i=_b[_o];_j=_i._col;if(_i._orgcol==undefined){_i._orgcol=_j;}if(_j==_c){_i._area=_k[_d];_i._col=_d;}else{if(_c<_d){if(_j>_c&&_j<=_d){_i._col-- ;}}else{if(_j<_c&&_j>=_d){_i._col++ ;}}}if(_i._col==_h){_i._endcol=true;}else{_i._endcol=false;}}this._arrangeCellIdx(_a);this._updateFormatStr();};_pGridFormat._reIndexCells=function(_a,_b){if(!_a||!_b){return;}var _c=_b.length;var _d=_a.length;var _e=0,_f=0,_g=0;var _h=[],_i=[];for(_e=0;_e<_c;_e++ ){_h=[];_g=0;for(_f=0;_f<_d;_f++ ){if(_a[_f]._row==_e){_h[_g++ ]=_a[_f];}}_h.sort(function(_j,_k){return _j._col-_k._col;});_i=_i.concat(_h);}for(_e=0;_e<_d;_e++ ){_i[_e]._cellidx=_e;}return _i;};_pGridFormat._insertContentsCol=function(_a,_b,_c,_d,_e,_f){var _g=_f;var _h=_c.length;var _i=_d.length;var _j=null;var _k=[];for(var _n=0;_n<_h;_n++ ){_j=_c[_n];if(_j._col<_f&&(_j._col+_j._colspan-1)>=_f){_k.push(_j);}}var _l;if(_k.length>0){for(var _n=0;_n<_k.length;_n++ ){_l=_k[_n];_l._colspan++ ;if(_l._subcells.length>0){var _o=_g-_l._col;_j=new nexacro.GridCellInfo(_a+_h+"_sub"+_o,_b,this.parent,_a,_l._subcells.length);_j.celltype=_a;_j._col=_o;_j._colspan=1;_j._row=0;_j._rowspan=1;_j._isSubCell=true;this._insertCell(_l._subcells,_j,_o,0);}for(var _p=0;_p<_h;_p++ ){_j=_c[_p];if(_j._col>=_f&&_j._row==_l._row){_j._col++ ;}}}}for(var _n=0;_n<_i;_n++ ){for(var _p=0;_p<_k.length;_p++ ){_l=_k[_p];if(_l._row==_n){break;}}if(_l&&_l._row==_n){continue;}_j=new nexacro.GridCellInfo(_a+_h,_b,this.parent,_a,_h);_j.celltype=_a;_j._col=_g;_j._colspan=1;_j._row=_n;_j._rowspan=1;this[_e](_j,_g,_n);_h++ ;}var _m=(this._cols)?(this._cols.length-1): -1;_h=_c.length;for(var _n=0;_n<_h;_n++ ){_j=_c[_n];if(_j._col==_m){_j._endcol=true;}else{_j._endcol=false;}}this._arrangeCellIdx(_a);this._updateFormatStr();};_pGridFormat.insertContentsCol=function(_a,_b,_c){var _d="body";if(_c==undefined){_c=true;}_c=nexacro._toBoolean(_c);var _e=this._getColFixCnt("left");var _f=this._getColFixCnt("body");var _g=this._getColFixCnt("right");if(_a!=undefined){var _i=parseInt(_a,10);if(isFinite(_i)){if(_b!=undefined){if(_i== -1){_d="left";}else if(_i== -2){_d="right";}else{_d="body";}if(_b<0){_b=0;}if(_c){if(_d=="body"){_b+=_e;}else if(_d=="right"){_b+=_e;_b+=_f;}if(_d=="left"){if(_b>_e){_b=_e;}}else if(_d=="body"){if(_b>_e+_f){_b=_e+_f;}}else{if(_b>_e+_f+_g){_b=_e+_f+_g;}}}else{if(_b>this._cols.length){_b=this._cols.length;}if(_b<_e){_d="left";}else if(_b>=_e+_f&&_b<_e+_f+_g){_d="right";}else{_d="body";}}}else{if(_i<0){_i=0;}else if(_i>this._cols.length){_i=this._cols.length;}_b=_i;}}else if(_a.length){_d=_a.toLowerCase();if(_b==undefined){return -1;}else if(_b<0){_b=0;}if(_c){if(_d=="body"){_b+=_e;}else if(_d=="right"){_b+=_e;_b+=_f;}if(_d=="left"){if(_b>_e){_b=_e;}}else if(_d=="body"){if(_b>_e+_f){_b=_e+_f;}}else{if(_b>_e+_f+_g){_b=_e+_f+_g;}}}else{if(_b>this._cols.length){_b=this._cols.length;}if(_b<_e){_d="left";}else if(_b>=_e+_f&&_b<_e+_f+_g){_d="right";}else{_d="body";}}}}var _h=this._defaultColSize;if(_d=="left"){this._insertLeftColumn(_h,_b);}else if(_d=="right"){this._insertRightColumn(_h,_b);}else{this._insertBodyColumn(_h,_b);this.endbodycol=this._cols.length;}if(this._bodyband){var _j="body";var _k=this._bodyband;var _l=this._bodycells;var _m=this._bodyrows;var _n="_insertBodyCell";this._insertContentsCol(_j,_k,_l,_m,_n,_b);}if(this._headband){_j="head";_k=this._headband;_l=this._headcells;_m=this._headrows;_n="_insertHeadCell";this._insertContentsCol(_j,_k,_l,_m,_n,_b);}if(this._summband){_j="summary";_k=this._summband;_l=this._summcells;_m=this._summrows;_n="_insertSummCell";this._insertContentsCol(_j,_k,_l,_m,_n,_b);}this._rearrangeCols();return _b;};_pGridFormat._defaultRowSize=24;_pGridFormat._appendContentsRow=function(_a,_b,_c,_d,_e,_f){var _g=(_d)?_d.length:0;var _h=this._defaultRowSize;this[_e](_h);var _i=(_c)?_c.length:0;var _j=this._cols.length;var _k=null;if(_j==0){this._addBodyColumn(this._defaultColSize);_j=this._cols.length;}for(var _l=0;_l<_j;_l++ ){_k=new nexacro.GridCellInfo(_a+_i,_b,this.parent,_a,_i);_k.celltype=_a;_k._col=_l;_k._colspan=1;_k._row=_g;_k._rowspan=1;_k._endcol=((_l+1)==this.endbodycol);this[_f](_k);_i++ ;}this._updateFormatStr();return _g;};_pGridFormat.appendContentsRow=function(_a,_b){var _c="";if(_a!=undefined){var _e=parseInt(_a,10);if(isFinite(_e)){if(_e== -1){_c="head";}else if(_e== -2){_c="summ";}else if(_e>=0){_c="body";}}else if(_a.length){_c=_a.toLowerCase();}if(_c==""){return -1;}}var _d= -1;if(_c=="head"){if(this._headband==null){this._headband=new nexacro.GridBandInfo("head","head",this,this.parent);}var _f=this._headband;var _g=this._headcells;var _h=this._headrows;var _i="_addHeadRow";var _j="_addHeadCell";_d=this._appendContentsRow("head",_f,_g,_h,_i,_j);}else if(_c=="summ"||_c=="summary"){if(this._summband==null){this._summband=new nexacro.GridBandInfo("summary","summ",this,this.parent);}var _f=this._summband;var _g=this._summcells;var _h=this._summrows;var _i="_addSummRow";var _j="_addSummCell";_d=this._appendContentsRow("summary",_f,_g,_h,_i,_j);}else if(_c=="body"){if(this._bodyband==null){this._bodyband=new nexacro.GridBandInfo("body","body",this,this.parent);}var _f=this._bodyband;var _g=this._bodycells;var _h=this._bodyrows;var _i="_addBodyRow";var _j="_addBodyCell";_d=this._appendContentsRow("body",_f,_g,_h,_i,_j);}return _d;};_pGridFormat._deleteRowCell=function(_a,_b){var _c=this._bodycells;if(_a=="head"){_c=this._headcells;}else if(_a=="summ"){_c=this._summcells;}if(_c==null||_c.length==0){return undefined;}var _d,_e;for(var _f=0;_f<_c.length;_f++ ){if(_c[_f]._row==_b){_d=_c[_f]._colspan;_e=_c[_f]._rowspan;if(_e==1){delete _c[_f];_c.splice(_f,1);_f-- ;}else{var _g=_c[_f]._subcells;var _h;for(var _i=0;_i<_g.length;_i++ ){_h=_g[_i];if(_h._row+_c[_f]._row==_b){delete _h;_g.splice(_i,1);for(var _j=_i;_j<_g.length;_j++ ){_g[_j]._cellidx-- ;}_i-- ;}else if(_h._row+_c[_f]._row>_b){_h._row-- ;}else if(_h._row+_c[_f]._row<_b&&(_h._row+_c[_f]._row+_h._rowspan-1)>=_b){_h._rowspan-- ;}}_c[_f]._rowspan-- ;}}else if(_c[_f]._row>_b){_c[_f]._row-- ;}else{if((_c[_f]._row+_c[_f]._rowspan-1)>=_b){var _g=_c[_f]._subcells;var _h;for(var _i=0;_i<_g.length;_i++ ){_h=_g[_i];if(_h._row+_c[_f]._row==_b){delete _h;_g.splice(_i,1);for(var _j=_i;_j<_g.length;_j++ ){_g[_j]._cellidx-- ;}_i-- ;}else if(_h._row+_c[_f]._row>_b){_h._row-- ;}else if(_h._row+_c[_f]._row<_b&&(_h._row+_c[_f]._row+_h._rowspan-1)>=_b){_h._rowspan-- ;}}_c[_f]._rowspan-- ;}}}this._arrangeCellIdx(_a);this._updateFormatStr();};_pGridFormat._deleteRow=function(_a,_b){_a=_a.toLowerCase();this._deleteRowCell(_a,_b);var _c=this._bodyrows;if(_a=="head"){_c=this._headrows;}else if(_a=="summ"){_c=this._summrows;}if(_c==null||_c.length==0||_c.length<=_b){return -1;}var _d=_c[_b].size;_c.splice(_b,1);var _e=_c.length;for(var _f=_b;_f<_e;_f++ ){_c[_f].top-=_d;_c[_f].bottom-=_d;}if(_a=="head"){this.headHeight-=_d;}else if(_a=="summ"){this.summHeight-=_d;}else{this._body_height=this.bodyHeight-=_d;}return _b;};_pGridFormat.deleteContentsRow=function(_a,_b,_c){var _d="";if(_c==undefined){_c=true;}if(_a!=undefined){var _e=parseInt(_a,10);if(isFinite(_e)){if(_e== -1){_d="head";}else if(_e== -2){_d="summ";}else if(_e>=0){_d="body";}}else if(_a.length){_d=_a.toLowerCase();}if(_d==""){return -1;}}return this._deleteRow(_d,_b);};_pGridFormat._insertContentsRow=function(_a,_b,_c,_d,_e,_f,_g){var _h=this._defaultRowSize;this[_e](_g,_h);var _i=(_c)?_c.length:0;var _j=this._cols.length;var _k=null;if(_j==0){this._addBodyColumn(this._defaultColSize);_j=this._cols.length;}var _l=[];for(var _m=0;_m<_i;_m++ ){_k=_c[_m];if(_k._row<_g){if((_k._row+_k._rowspan-1)>=_g){_l.push(_k);}}else{_k._row++ ;}}if(_l.length>0){var _n,_o;for(var _m=0;_m<_l.length;_m++ ){_n=_l[_m];_o=_n._subcells;_n._rowspan++ ;if(_o.length){for(var _p=0;_p<_o.length;_p++ ){if(_o[_p]._row>=_g-_n._row){_o[_p]._row++ ;}}for(var _p=_n._col;_p<_n._col+_n._colspan;_p++ ){_k=new nexacro.GridCellInfo(_a+_n._cellidx+"_sub"+_o.length,_b,this.parent,_a,_o.length);_k.celltype=_a;_k._col=_p;_k._colspan=1;_k._row=_g-_n._row;_k._rowspan=1;_k._endcol=((_p+1)==this.endbodycol);this._addCell(_o,_k);}_n._subcells=this._arrangeCellIdx2(_o,_n._rowspan);}}for(var _m=(_n._col+_n._colspan);_m<_j;_m++ ){_k=new nexacro.GridCellInfo(_a+_i,_b,this.parent,_a,_i);_k.celltype=_a;_k._col=_m;_k._colspan=1;_k._row=_g;_k._rowspan=1;_k._endcol=((_m+1)==this.endbodycol);this[_f](_k);_i++ ;}}else{for(var _m=0;_m<_j;_m++ ){_k=new nexacro.GridCellInfo(_a+_i,_b,this.parent,_a,_i);_k.celltype=_a;_k._col=_m;_k._colspan=1;_k._row=_g;_k._rowspan=1;_k._endcol=((_m+1)==this.endbodycol);this[_f](_k);_i++ ;}}this._arrangeCellIdx(_a);this._updateFormatStr();return _g;};_pGridFormat.insertContentsRow=function(_a,_b,_c){var _d="";if(_c==undefined){_c=true;}if(_a!=undefined){var _f=parseInt(_a,10);if(isFinite(_f)){if(_f== -1){_d="head";}else if(_f== -2){_d="summ";}else if(_f>=0){_d="body";}}else if(_a.length){_d=_a.toLowerCase();}if(_d==""){return -1;}}var _e= -1;if(_b<0){return -1;}if(_d=="head"){if(this._headband==null){this._headband=new nexacro.GridBandInfo("head","head",this,this.parent);}var _g=this._headband;var _h=this._headcells;var _i=this._headrows;var _j="_insertHeadRow";var _k="_addHeadCell";if(_b>_i.length){_b=_i.length;}_e=this._insertContentsRow("head",_g,_h,_i,_j,_k,_b);}else if(_d=="summ"||_d=="summary"){if(this._summband==null){this._summband=new nexacro.GridBandInfo("summary","summ",this,this.parent);}var _g=this._summband;var _h=this._summcells;var _i=this._summrows;var _j="_insertSummRow";var _k="_addSummCell";if(_b>_i.length){_b=_i.length;}_e=this._insertContentsRow("summary",_g,_h,_i,_j,_k,_b);}else{if(this._bodyband==null){this._bodyband=new nexacro.GridBandInfo("body","body",this,this.parent);}var _g=this._bodyband;var _h=this._bodycells;var _i=this._bodyrows;var _j="_insertBodyRow";var _k="_addBodyCell";if(_b>_i.length){_b=_i.length;}_e=this._insertContentsRow("body",_g,_h,_i,_j,_k,_b);}return _e;};_pGridFormat._deleteColCell=function(_a){var _b=this._headcells;var _c=this._summcells;var _d=this._bodycells;var _e=(this._cols)?(this._cols.length-1): -1;if(!_b&&!_c&&!_d){return undefined;}var _f=function(_g,_a){if(!_g){return;}for(var _h=0;_h<_g.length;_h++ ){if(_g[_h]._col==_e){_g[_h]._endcol=true;}else{_g[_h]._endcol=false;}if(_g[_h]._col==_a){var _i=_g[_h]._colspan;var _j=_g[_h]._rowspan;if(_i==1){delete _g[_h];_g.splice(_h,1);for(var _k=_h;_k<_g.length;_k++ ){_g[_k]._cellidx-- ;}_h-- ;}else{var _a=_g[_h]._col;_g[_h]._colspan-- ;_f(_g[_h]._subcells,0);}}else if(_g[_h]._col>_a){_g[_h]._col-- ;}else{if((_g[_h]._col+_g[_h]._colspan-1)>=_a){_g[_h]._colspan-- ;var _l=_a-_g[_h]._col;_f(_g[_h]._subcells,_l);}}}};_f(_b,_a);_f(_c,_a);_f(_d,_a);};_pGridFormat._deleteColumn=function(_a,_b){var _c=this._cols;if(_c==null||_c.length==0||_c.length<=_b){return -1;}if(_c[_b]._area!=_a){return -1;}this._deleteColCell(_b);var _d=_c[_b].size;_c.splice(_b,1);var _e=_c.length;if(_a=="left"){for(var _f=_b;_f<_e;_f++ ){if(_c[_f]._area=="left"){_c[_f].left-=_d;_c[_f].right-=_d;}}this.leftWidth-=_d;}else if(_a=="right"){for(var _f=_b;_f<_e;_f++ ){if(_c[_f]._area=="right"){_c[_f].left-=_d;_c[_f].right-=_d;}}this.rightWidth-=_d;}else{for(var _f=_b;_f<_e;_f++ ){if(_c[_f]._area=="body"){_c[_f].left-=_d;_c[_f].right-=_d;}}this.bodyWidth-=_d;this._bodyWidth=this.bodyWidth;this.endbodycol=this._cols.length;}this._updateFormatStr();return _b;};_pGridFormat._getColFixCnt=function(_a){var _b=0;var _c=0;var _d=0;var _e=this._cols;var _f=_e.length;for(var _g=0;_g<_f;_g++ ){if(_e[_g]._area=="left"){_b++ ;}else if(_e[_g]._area=="body"){_c++ ;}else if(_e[_g]._area=="right"){_d++ ;}}if(_a=="left"){return _b;}else if(_a=="right"){return _d;}else{return _c;}};_pGridFormat.deleteContentsCol=function(_a,_b,_c){if(_c==undefined){_c=false;}var _d="body";if(_a!=undefined){var _f=parseInt(_a,10);if(isFinite(_f)){if(_b!=undefined){if(_f== -1){_d="left";}else if(_f== -2){_d="right";}else{_d="body";}if(_b<0){return -1;}else if(_b>this._cols.length){return -1;}}else{if(_f<0){return -1;}else if(_f>this._cols.length){return -1;}_b=_f;}}else if(_a.length){_d=_a.toLowerCase();if(_b==undefined){return -1;}}}if(_c==true){if(_d=="body"){_b+=this._getColFixCnt("left");}else if(_d=="right"){_b+=this._getColFixCnt("left");_b+=this._getColFixCnt("body");}}else{var _g=this._getColFixCnt("left");var _h=this._getColFixCnt("body");var _i=this._getColFixCnt("right");if(_b<_g){_d="left";}else if(_b>=_g+_h&&_b<_g+_h+_i){_d="right";}else{_d="body";}}if(this._cols.length<=_b||_b<0){return -1;}var _e=this._deleteColumn(_d,_b);this._rearrangeCols();return _e;};_pGridFormat.mergeContentsCell=function(_a,_b,_c,_d,_e,_f,_g){var _h=_a.toLowerCase();if(_h!="head"&&_h!="summ"){if(_h=="summary"){_h="summ";}else{_h="body";}}var _i=parseInt(_b,10);var _j=parseInt(_c,10);var _k=parseInt(_d,10);var _l=parseInt(_e,10);var _m=parseInt(_f,10);if(!isFinite(_i)||!isFinite(_j)||!isFinite(_k)||!isFinite(_l)){return -1;}if(_j>_l||_i>_k){return -1;}var _n=this._cols.length;if(_j<0||_j>=_n||_l<0||_l>=_n){return -1;}var _o=null;var _p=null;if(_h=="head"){_o=this._headrows;_p=this._headcells;}else if(_h=="summ"){_o=this._summrows;_p=this._summcells;}else{_o=this._bodyrows;_p=this._bodycells;}var _q=(_p)?_p.length:0;var _r=(_o)?_o.length:0;if(_q==0){return -1;}if(_i<0||_i>=_r||_k<0||_k>=_r){return -1;}var _s;var _t= -1;var _u=[];for(var _z=0;_z<_q;_z++ ){var _aa=_p[_z];if((_aa._row>=_i&&_aa._row<=_k)&&(_aa._col>=_j&&_aa._col<=_l)){if(_s&&_s!=_p[_z]._area){return -1;}else{_s=_p[_z]._area;}_u[_z]=true;if(_aa._rowspan>1||_aa._colspan>1){_t=_z;}}else{_u[_z]=false;}}if(_t>=0&&_p[_t]._rowspan>_k&&_p[_t]._colspan>_l){return -1;}if(!_m||_m<0){_m=0;}var _v= -1;var _w=_p[_m];var _x=[];for(var _z=_q-1;_z>=0;_z-- ){var _aa=_p[_z];var _ab=_aa._row;var _ac=_aa._col;if(_u[_z]){if(_w._row<_i||_w._row>_k||_w._col<_j||_w._col>_l){return -1;}if(_g){if(_p[_z]._col==_j&&_p[_z]._row==_i){var _ad=new nexacro.GridCellInfo(_p[_z].id,_p[_z].parent,_p[_z].grid,_p[_z].celltype,_p[_z]._cellidx);_ad._row=_p[_z]._row;_ad._rowspan=(_k-_i)+1;_ad._col=_p[_z]._col;_ad._colspan=(_l-_j)+1;_ad._isSubCell=false;_ad._area=_p[_z]._area;_ad._endcol=_p[_z]._endcol;_x.unshift(_p[_z]);for(var _ae=0;_ae<_x.length;_ae++ ){_x[_ae]._col-=_ad._col;_x[_ae]._row-=_ad._row;_x[_ae]._cellidx=_ae;_x[_ae]._isSubCell=true;_x[_ae]._id=_x[_ae].name=_p[_z].id+"_sub"+_ae;}_ad._subcells=_x;_p[_z]=_ad;_x=[];_v=_z;}else{_x.unshift(_p[_z]);_p.splice(_z,1);}}else{if(_p[_z]._col==_j&&_p[_z]._row==_i){_v=_p[_z]._cellidx;_w._row=_p[_z]._row;_w._col=_p[_z]._col;_w._rowspan=(_k-_i)+1;_w._colspan=(_l-_j)+1;_p[_z]=_w;}else{_p.splice(_z,1);}}}}var _y=_p.length;for(var _z=0;_z<_y;_z++ ){_p[_z]._cellidx=_z;}return _v;};_pGridFormat.splitContentsCell=function(_a,_b,_c,_d,_e,_f){var _g=null;var _h=null;var _i=this._cols;var _j=_a.toLowerCase();if(_j=="head"){_g=this._headrows;_h=this._headcells;}else if(_j=="summ"){_g=this._summrows;_h=this._summcells;}else{_g=this._bodyrows;_h=this._bodycells;}var _k=(_g)?_g.length:0;var _l=(_i)?_i.length:0;var _m=(_h)?_h.length:0;if(_k>0&&_l>0){if(_b<0||_d>=_k){if(_b<0){_b=0;}else{_d=_k-1;}}if(_c<0||_e>=_l){if(_c<0){_c=0;}else{_e=_l-1;}}var _n=[];var _o=0;var _p=0;var _q=null;var _r=null;var _s=null;for(var _t=0;_t<_m;_t++ ){var _u=_h[_t]._row;var _v=_h[_t]._col;var _w=_h[_t]._area;_q=_h[_t]._subcells;_r=(_h[_t]._colspan+_h[_t]._col)-1;_s=(_h[_t]._rowspan+_h[_t]._row)-1;if(_q.length>0){if((_r>=_c&&_r<=_e)&&(_s>=_b&&_s<=_d)){for(var _x=0;_x<_q.length;_x++ ){_p++ ;_q[_x]._row=_u;_q[_x]._col=_v;_q[_x]._area=_w;_q[_x]._cellidx=_v+(_l*_u);var _y=_q[_x]._rowspan;var _z=_q[_x]._colspan;if(_v<_h[_t]._col+(_h[_t]._colspan-1)){_v=_v+_z;}else{_u=_u+_y;_v=_h[_t]._col;}_n.push(_q[_x]);}}else{_h[_t]._cellidx=_h[_t]._col+(_h[_t]._row*_l);_n.push(_h[_t]);}}else{if(_f){if((_r>=_c&&_r<=_e)&&(_s>=_b&&_s<=_d)){if((_h[_t]._rowspan*_h[_t]._colspan)>1){var _aa=null;for(var _x=0;_x<(_h[_t]._rowspan*_h[_t]._colspan);_x++ ){_p++ ;_aa=new nexacro.GridCellInfo(_j+_o,_h[_t].parent,_h[_t].grid,_h[_t].celltype,_o);_aa._row=_u;_aa._col=_v;_aa._area=_w;_aa._rowspan=1;_aa._colspan=1;_aa._cellidx=_v+(_l*_u);_aa.text=_h[_t].text;if(_v<_h[_t]._col+(_h[_t]._colspan-1)){_v++ ;}else{_u++ ;_v=_h[_t]._col;}_n.push(_aa);}}else{_n.push(_h[_t]);}}else{_n.push(_h[_t]);}}else{_n.push(_h[_t]);}}}if(_p>0){_n.sort(function(_ab,_ac){return _ab._cellidx-_ac._cellidx;});for(var _t=0;_t<_n.length;_t++ ){_n[_t]._cellidx=_t;}if(_j=="head"){this._headcells=_n;}else if(_j=="summ"){this._summcells=_n;}else{this._bodycells=_n;}return _p;}}return -1;};_pGridFormat.setBandProperty=function(_a,_b,_c){var _d=null;var _e=_a.toLowerCase();if(_e=="head"){_d=this._headband;}else if(_e=="summ"||_e=="summary"){_d=this._summband;}else{_d=this._bodyband;}if(_d){if(_d["set_"+_b]){_d["set_"+_b](_c);}else if(_d.style["set_"+_b]){_d.style["set_"+_b](_c);}this._updateFormatStr();return _d;}return undefined;};_pGridFormat.setSubCellProperty=function(_a,_b,_c,_d,_e){var _f=null;var _g=_a.toLowerCase();if(_g=="head"){if(this._headband){_f=this._headcells[_b];}}else if(_g=="summ"||_g=="summary"){if(this._summband){_f=this._summcells[_b];}}else{if(this._bodyband){_f=this._bodycells[_b];}}if(_f._subcells.length>_c&&_c>=0){_f=_f._subcells[_c];if(_f){if(_f["set_"+_d]){_f["set_"+_d](_e);}else if(_f.style["set_"+_d]){_f.style["set_"+_d](_e);}this._updateFormatStr();return _f;}}};_pGridFormat.setCellProperty=function(_a,_b,_c,_d){var _e=null;var _f=_a.toLowerCase();if(_f=="head"){if(this._headband){_e=this._headcells[_b];}}else if(_f=="summ"||_f=="summary"){if(this._summband){_e=this._summcells[_b];}}else{if(this._bodyband){_e=this._bodycells[_b];}}if(_e){if(_e["set_"+_c]){_e["set_"+_c](_d);}else if(_e.style["set_"+_c]){_e.style["set_"+_c](_d);}this._updateFormatStr();return _e;}};_pGridFormat.getSubCellProperty=function(_a,_b,_c,_d){var _e=null;var _f=_a.toLowerCase();if(_f=="head"){if(this._headband){_e=this._headcells[_b];}}else if(_f=="summ"||_f=="summary"){if(this._summband){_e=this._summcells[_b];}}else{if(this._bodyband){_e=this._bodycells[_b];}}if(_e._subcells.length>_c&&_c>=0){_e=_e._subcells[_c];if(_e){var _g=_e[_d];if(_g==undefined){_g=_e["_"+_d];}if(_g==undefined){_g=_e.style[_d];}if(_g!=undefined){var _h=typeof (_g);if(_h=="number"||_h=="string"){return _g;}else{var _i;if(_d=="expr"){_i=_g._bindexpr;}else{if(_g._bindtype==2){_i=_g._bindexpr;if(_i.indexOf("expr:")<0){_i="expr:"+_i;}}else{_i=_g._value;}}if(_i){return _i;}else{return _g;}}}}}return undefined;};_pGridFormat.getCellProperty=function(_a,_b,_c){var _d=null;var _e=_a.toLowerCase();if(_e=="head"){if(this._headband){_d=this._headcells[_b];}}else if(_e=="summ"||_e=="summary"){if(this._summband){_d=this._summcells[_b];}}else{if(this._bodyband){_d=this._bodycells[_b];}}if(_d){if(_c=="subcell"){return _d._subcells.length;}var _f=_d[_c];if(_f==undefined){_f=_d["_"+_c];}if(_f==undefined){_f=_d.style[_c];}if(_f!=undefined){var _g=typeof (_f);if(_g=="number"||_g=="string"){return _f;}else{var _h;if(_c=="expr"){_h=_f._bindexpr;}else{if(_f._bindtype==2){_h=_f._bindexpr;if(_h.indexOf("expr:")<0){_h="expr:"+_h;}}else{_h=_f._value;}}if(_h){return _h;}else{return _f;}}}}return null;};_pGridFormat.getBandProperty=function(_a,_b){var _c=null;var _d=_a.toLowerCase();if(_d=="head"){_c=this._headband;}else if(_d=="summ"||_d=="summary"){_c=this._summband;}else{_c=this._bodyband;}if(_c){var _e=_c[_b];if(_e==undefined){_e=_c["_"+_b];}if(_e==undefined){_e=_c.style[_b];}if(_e!=undefined){var _f=typeof (_e);if(_f=="number"||_f=="string"){return _e;}else{var _g;if(_b=="expr"){_g=_e._bindexpr;}else{_g=_e._value;}if(_g){return _g;}else{return _e;}}}}return null;};_pGridFormat._adjustFormatColSize=function(_a,_b){var _c=this._cols.length;var _d=0;var _e=0;var _f=0;var _g=null;for(var _h=0;_h<_c;_h++ ){_g=this._cols[_h];if(_g._area=="left"){_g.left=_d;_d+=_g.size;_g.right=_d;}else if(_g._area=="right"){_g.left=_f;_f+=_g.size;_g.right=_f;}else{_g.left=_e;_e+=_g.size;_g.right=_e;}if(_a){_g.orgleft=_g.left;_g.orgright=_g.right;}}this.leftWidth=_d;this._bodyWidth=this.bodyWidth=_e;this.rightWidth=_f;if(!_b){this._updateFormatStr();}};_pGridFormat._setColSize=function(_a,_b,_c){if(this._cols){var _d=this._cols[_a];var _e=parseFloat(_b,10);if(_d&&isFinite(_e)){var _f=_d.size;if(_e!=_f){_d.size=_e;this._adjustFormatColSize(false,_c);return true;}return false;}}};_pGridFormat.setFormatColProperty=function(_a,_b,_c){if(this._cols){if(_b=="size"){var _d=this._cols[_a];var _e=parseInt(_c,10);if(_d&&isFinite(_e)){var _f=_d.size;if(_e!=_f){_d.size=_d.orgsize=_e;this._adjustFormatColSize();return true;}return false;}}else if(_b=="band"){var _g=_c.toLowerCase();var _h=this._cols;var _i=this._cols.length;var _j,_k=false;for(var _l=0;_l=_a&&_j._area!="right"){_j._area="right";_k=true;}}else{if((_l>=_a&&_j._area=="left")||(_l<=_a&&_j._area=="right")){_j._area="body";_k=true;}}}function _apply_area(_m){if(_m){var _n=_m.length;var _o;for(var _l=0;_l<_n;_l++ ){_o=_m[_l];if(_g=="left"){if(_o._col<=_a){_o._area="left";}}else if(_g=="right"){if(_o._col>=_a){_o._area="right";}}else{if((_o._col>=_a&&_o._area=="left")||(_o._col<=_a&&_o._area=="right")){_o._area="body";}}}}}if(_k){_apply_area(this._headcells);_apply_area(this._bodycells);_apply_area(this._summcells);this._adjustFormatColSize(true);}return _k;}}return false;};_pGridFormat.getFormatColProperty=function(_a,_b){if(this._cols){if(_b=="size"){var _c=this._cols[_a];if(_c){return _c.orgsize;}}else if(_b=="band"){var _c=this._cols[_a];if(_c){return _c._area;}}else if(_b=="fix"){var _c=this._cols[_a];if(_c){if(_c._area=="left"||_c._area=="right"){return "fixed";}else{return "";}}}}return null;};_pGridFormat._adjustFormatRowSize=function(_a){var _b=_a.length;var _c=0;var _d=null;for(var _e=0;_e<_b;_e++ ){_d=_a[_e];_d.top=_c;_c+=_d.size;_d.bottom=_c;}return _c;};_pGridFormat.setFormatRowProperty=function(_a,_b,_c){if(_b=="size"){var _d=parseInt(_c,10);if(isFinite(_d)){var _e=_a;var _f=(this._headrows)?this._headrows.length:0;if(_e<_f){this._headrows[_e].size=_d;var _g=this.headHeight;this.headHeight=this._adjustFormatRowSize(this._headrows);if(this.headHeight!=_g){return true;}return false;}else{_e-=_f;}var _h=(this._bodyrows)?this._bodyrows.length:0;if(_e<_h){this._bodyrows[_e].size=_d;var _g=this.bodyHeight;this._body_height=this.bodyHeight=this._adjustFormatRowSize(this._bodyrows);if(this.bodyHeight!=_g){return true;}return false;}else{_e-=_h;}var _i=(this._summrows)?this._summrows.length:0;if(_e<_i){this._summrows[_e].size=_d;var _g=this.summHeight;this.summHeight=this._adjustFormatRowSize(this._summrows);if(this.summHeight!=_g){return true;}return false;}}}else if(_b=="band"){var _e=_a;var _j=_c.toLowerCase();return false;var _f=(this._headrows)?this._headrows.length:0;if(_e<_f){var _k=this._headrows[_e];if(_j=="body"){this._bodyrows.push(_k);this._headrows.splice(_e,1);this._body_height=this.bodyHeight=this._adjustFormatRowSize(this._bodyrows);this.headHeight=this._adjustFormatRowSize(this._headrows);return true;}else if(_j=="summ"||_j=="summary"){this._summrows.push(_k);this._headrows.splice(_e,1);this.summHeight=this._adjustFormatRowSize(this._summrows);this.headHeight=this._adjustFormatRowSize(this._headrows);return true;}}else{_e-=_f;}var _h=(this._bodyrows)?this._bodyrows.length:0;if(_e<_h){var _k=this._bodyrows[_e];if(_j=="head"){this._headrows.push(_k);this._bodyrows.splice(_e,1);this.headHeight=this._adjustFormatRowSize(this._headrows);this._body_height=this.bodyHeight=this._adjustFormatRowSize(this._bodyrows);return true;}else if(_j=="summ"||_j=="summary"){this._summrows.push(_k);this._bodyrows.splice(_e,1);this.summHeight=this._adjustFormatRowSize(this._summrows);this._body_height=this.bodyHeight=this._adjustFormatRowSize(this._bodyrows);return true;}}else{_e-=_h;}var _i=(this._summrows)?this._summrows.length:0;if(_e<_i){var _k=this._summrows[_e];if(_j=="head"){this._headrows.push(_k);this._summrows.splice(_e,1);this.headHeight=this._adjustFormatRowSize(this._headrows);this.summHeight=this._adjustFormatRowSize(this._summrows);return true;}else if(_j=="body"){this._bodyrows.push(_k);this._summrows.splice(_e,1);this._body_height=this.bodyHeight=this._adjustFormatRowSize(this._bodyrows);this.summHeight=this._adjustFormatRowSize(this._summrows);return true;}}}return false;};_pGridFormat.getFormatRowProperty=function(_a,_b){if(_b=="size"){var _c=_a;var _d=(this._headrows)?this._headrows.length:0;if(_c<_d){return this._headrows[_c].orgsize;}else{_c-=_d;}var _e=(this._bodyrows)?this._bodyrows.length:0;if(_c<_e){return this._bodyrows[_c].orgsize;}else{_c-=_e;}var _f=(this._summrows)?this._summrows.length:0;if(_c<_f){return this._summrows[_c].orgsize;}}else if(_b=="band"){var _c=_a;var _d=(this._headrows)?this._headrows.length:0;if(_c<_d){return "head";}else{_c-=_d;}var _e=(this._bodyrows)?this._bodyrows.length:0;if(_c<_e){return "body";}else{_c-=_e;}var _f=(this._summrows)?this._summrows.length:0;if(_c<_f){return "summ";}}return null;};delete _pGridFormat;};