
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/11/2009 3:13:44 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
var WG40 = { COLHEADER: "CH", COLFOOTER: "CF", BODY: "TB", COLHEADERGROUP: "CHG", COLFOOTERGROUP: "CFG", COLGROUP: "CG", GROUPBYBOX: "GBB", GROUPBYBOXLABEL: "GBBInfo", STATUSBOX: "Status", STATUSBAR: "Stat", STATUSBARRIGHT: "Stat2",  SLIDERBAR: "Slider", STATUSICON: "StatIcon", STATUSBARCOMMAND: "Stat3",  FREEZEBAR: "Freeze", HTMLDIV: "dv", HTMLTABLE: "tb", HTMLCELL: "td", HTMLROW: "tr",  CONTAINER: "CNT",  ROW: "ROW" };function WebGrid(vcff64){ this.ClassName ="WebGrid"; this.Version ="7.0.7200"; this.BuildNumber ="10"; this.MajorVersion ="7.0"; this.RequiredFrameworkVersion ="3.0.5000.18"; this.XmlNamespace ="isnet.webui.webgrid"; ISControl.call(this,vcff64); IFlyPostBack.call(this,"WebGridRequest");  if (typeof(IClientBinding)=="function") IClientBinding.call(this); this.LayoutSettings =new WebGridLayoutSet(); this.FlyPostBackSettings =new FlyPostBackSettings(); this.BrowserPrintSettings =new BrowserPrintSettings(); this.RootTable =new WebGridTable(); this.StateRestorationLevel ="High"; this.CustomEditors =null; this.UtilizedCustomEditors =new ISArray();  if (IS_ReleaseType =="Beta") this.ScriptDirectory ="/CommonLibraryBeta/WebGrid/V7_0_7200/"; else if (IS_ReleaseType =="Debug") this.ScriptDirectory ="/CommonLibraryTemp/WebGrid/V7_0_7200/"; else  this.ScriptDirectory ="/CommonLibrary/WebGrid/V7_0_7200/";  this.WebDesktopScriptDirectory ="/CommonLibraryTemp/WebDesktop/V3_0_7200/"; this.GridLines ="Both"; this.Enabled =true; this.Visible =true; this.Height =null; this.Width =null; this.Name =vcff64; this.WebCombos =new ISArray(); this.TotalLoadedRows =0; this.TotalRows =0; this.GBBLabelClass =""; this.RowClass =""; this.LostFocusClass =""; this.EditFocusClass =""; this.CultureInfo =null; this.CustomStateString =""; this.EnableV3XAPISupport =false; this.IsPreviewMode =false; this.LanguageXml =null; this.ExportTitle =null; this.LastAutoFitWidth =-1; this.IsLoaded =false; this.Tables =new Array(); this.DraggerStyle ="position: absolute; z-index: 299; cursor:default; display: none; background-color: RoyalBlue; color: White; filter: Alpha(Style=1, Opacity=90); vertical-align: middle"; this.ResizerStyle ="position: absolute; z-index: 299; width:2px; background-color:gray; display: none;"; this.SelectedHeaderBackColor ="black"; this.SelectedHeaderForeColor ="white"; this.IsOnBlur =false; this.NeedFocus =false; this.TempResizeID =0; this.GlobalResizeID =0; this.HidePadColumn =false; this.CustomEditors =new Array(); this.CustomRequestData =null; this.XmlHttp =null; this.XmlResp =null; this.XmlReq =null; this.NeedHeightResize =false; this.NeedWidthResize =false; this.CacheTBodyHeight =null; this.CacheTBodyWidth =null; this.CacheFrameHeight =null; this.CacheFrameWidth =null; this.Resizer =null; this.ColPointer =null; this.IsInProgress =false; this.LastRequestObj =null; this.TempLRO =null; this.LastSelObj =null; this.ActiveEditCell =null; this.NeedUpdate =false; this.NeedAdd =false; this.UpdatesXml =null; this.IsInEditMode =false; this.LastEditObj =null; this.TBObj =null; this.TBMLObj =null; this.LastAction =""; this.ValEngine =null; this.CalDDObj =null; this.ExportTypeList =new Array("HTML","PDF","XML","EXCEL","TIFF","RTF","TEXT"); this.ExportWndAttr ="toolbar=no, menubar=yes, scrollbars=yes, resizable=yes"; this.IsExitingEdit =false; this.LastError =""; this.EditCtlTopAdj =0; this.EditCtlLeftAdj =0; this.NextQueue =null; this.LastChkBox =null; this.FromContextMenu =false; this.PosLibVer =1; this.PosRelativeTo =null; this.CheckedRowContext =null; this.HeaderContext =null; this.ExportContext =null; this.EditControls =new Array(); this.ChildHeaderContainer =null; this.NeedAutoFitOnLoad =false;   this.FreezeConfig =null; this.FreezePaneActive =false; this.SkipFreezeLayout =false; this.FreezeScrollId =0; this.FrozenColumns =null; this.CacheFrozenWidth =0; this.FreezeScrollImmediate =false; this.LastFreezeScroll =0; this.WebResourceIdentifier ="G"; this.CurrentRowImage =null; this.BuiltInDropDown =true; this.IsStatusLocked =false; this.UseDefaultStyle =false; this.DefaultStyleMode ="Standard";   this.CurrentPageIndex =0; this.TotalPages =0; this.CurrentViewMode ="GridView"; this.ChartMode ="InteractiveUI";  if (typeof(ChartInteractiveUI)!="undefined") { this.ChartInteractiveUI =new ChartInteractiveUI(); this.ChartSettings =new ChartSettings(); } else { this.ChartInteractiveUI =null; this.ChartSettings =null; }  this.ChartDataCollection =new ISArray(); this.ChartFilterCollection =new ISArray(); this.ChartCategoryCollection =new ISArray(); this.ChartSeriesCollection =new ISArray(); this.CachePivotFilterCollection =new ISArray(); this.CachePivotFilterInfoCollection =new ISArray(); this.AllowPivotCharting =false; this.ChartContainer =null;   this.EnableSection508Standards =false;   this.DataSource =null; this.DataSourceInternal =null; this.SerializeTagToClient =false; this.IsLoaded =false; this.ActionElement =null; this.ActionBoxShown =false; this.ColumnActionContext =null; this.ReviewDialogBox =null; this.AutoIntegrateToDesktopManager =true; this.FoundValidDesktopManagerInstance =false;  this.OnInitialize =function() { if (this.IsPreviewMode) { wg91c62.m3b85(this); return; } if (this.FlyPostBackSettings !=null) { this.PostViewState =this.FlyPostBackSettings.PostViewState; this.PostHiddenFields =this.FlyPostBackSettings.PostHiddenFields; this.PostInputControls =this.FlyPostBackSettings.PostInputControls; } ISEvent.Raise(this.LayoutSettings.ClientSideEvents.OnInitialize,this.Id); this.ValEngine =IS.GetValidationEngine(); this.LayoutSettings.ScriptDirectory =this.ScriptDirectory;  this.CustomEditors =new Array(); for (var v31985=0; v31985<this.UtilizedCustomEditors.length; v31985++) this.CustomEditors[this.UtilizedCustomEditors[v31985].Name] =this.UtilizedCustomEditors[v31985]; if (typeof (ISGetCultureInfo)=="function") this.CultureInfo =ISGetCultureInfo(this.LayoutSettings.Culture,false); if (this.CultureInfo ==null) wg4a378.m21b29(this); this.SetStatus1("","ready","CommonText/Ready"); if (!this.LayoutSettings.StatusBarVisible &&IS.moz) var v40a68 =this.GetString("Ready"); var v35128 =this.TotalLoadedRows; var vfd020 =this.TotalRows; if (vfd020<v35128) { v35128 =vfd020; this.TotalLoadedRows =v35128; }  if (this.IsClassicPaging()) { v35128 =this.GetCurrentPage(); vfd020 =this.GetTotalPages(); } this.SetStatus2("","loaded",v35128,vfd020); wg4a378.md6599(this);   var v6a469 =["FocusCell","AddedRow","ModifiedRow","DeletedRow"];  for (var v31985=0; v31985<v6a469.length; v31985++) { var v8f950 =ISXml.GetNode(this.LayoutSettings.XmlNode,"//" +v6a469[v31985] +"Style");  if (v8f950 !=null) this.LayoutSettings.XmlNode.removeChild(v8f950); else this.LayoutSettings.XmlNode.removeAttribute(v6a469[v31985] +"Style"); } var v53655 =this.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); if (v53655 &&v53655.style.display =="none" &&!v53655.forceHide) v53655.style.display ="block";  if (this.LayoutSettings.AllowColumnFreezing =="Yes") { if (this.RootTable.IsUseColumnSet) this.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns =0;  wg91c62.m1fb14(this); wg91c62.m4ad6(this,true); }  if (this.LayoutSettings.AllowContextMenu &&typeof(WebContextMenu)=="undefined" &&!this.IsInPreview) { this.LayoutSettings.AllowContextMenu =false; alert("Context menu feature is disabled because menu runtime system can't be loaded.\n" + "Ensure you have registered SmartWebResources in this web application."); }  if (this.IsElegantDefaultStyle()) { this.BuiltInDropDown =false; this.CalDDImg ="wg5_calendar.gif"; }   var v34459 =this.FrameObj; if (IS.ie) { var v26430 =v34459.currentStyle; var v13880 =v34459.parentElement.style; var v7c875 =parseFloat(v26430.borderTopWidth);  if (v26430.position !="absolute" &&v7c875 >0) { v13880.borderRightWidth =v26430.borderRightWidth; v13880.borderRightStyle =v26430.borderRightStyle; v13880.borderRightColor =v26430.borderRightColor; v13880.borderLeftWidth =v26430.borderLeftWidth; v13880.borderLeftStyle =v26430.borderLeftStyle; v13880.borderLeftColor =v26430.borderLeftColor; v13880.borderTopWidth =v26430.borderTopWidth; v13880.borderTopStyle =v26430.borderTopStyle; v13880.borderTopColor =v26430.borderTopColor; v13880.borderBottomWidth =v26430.borderBottomWidth; v13880.borderBottomStyle =v26430.borderBottomStyle; v13880.borderBottomColor =v26430.borderBottomColor; v34459.style.border ="none 0px"; } }   wg91c62.me0511(this);  wg4a378.mdbd62(this);  if (this.BindingOperationMode =="ClientBinding") { var va1248 =this.ClientBindingSettings.DataSourceType; if (va1248 !="ServerDataSource") { if (va1248 =="WebService" ||va1248 =="WcfService") this.ClientProvider =new WebServiceDataSourceProvider(this); else if (va1248 =="AdoDataService") this.ClientProvider =new AstoriaDataSourceProvider(this); } }  wg91c62.mb9818(this.RootTable); if (this.CustomEditorServerIDs) this.CustomEditorServerIDs =this.CustomEditorServerIDs.split(',');  ISEvent.Raise(this.LayoutSettings.ClientSideEvents.OnAfterInitialize,this.Id); v53655 =null; }; this.OnUnload =function() { wg4a378.m1f598(this); Listener.Unload(this.FrameObj); Listener.Unload(this.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV));  for (var v6d419 in this.Tables) { if (v6d419 !=null &&typeof(v6d419)=="string") { var vfbc58 =this.Tables[v6d419];  if (typeof(vfbc58)!="function" &&vfbc58 !=null) vfbc58.OnUnload(); } }  if (this.ChartContainer &&this.ChartInteractiveUI) this.ChartInteractiveUI.OnUnload(); };  this.ResolveImagePathEx =function(v96b6) { return this.ResolveImagePath(this.GetImagesFolder(),v96b6); }; this.__getter =function(v83b84) { switch (v83b84) { case "Visible": return (this.FrameObj.style.display ==""); } }; this.ReBindingPostBackData =function(vb4320) { wg4a378.meba63(this); wg4a378.m56984(this); wg4a378.m38168(this,vb4320); }; this.PrepareAdditionalPostBackData =function() { wg4a378.m88030(this); }; this.OnResponseError =function(v64878) { wg4a378.md1e67(this,v64878); }; this.OnResponse =function(v64878,vf1324) { wg4a378.m74062(this,v64878,vf1324); }; this.GetFocusControl =function() { var v9622 =document.getElementById(this.Id +"_Moz"); if (v9622) v9622.grid =this; return v9622; };  this.IsRightToLeft =function() { var v02173 =this.FrameObj.currentStyle.direction; return v02173 =="rtl"; }; this.EnsureActiveEditCellFocus =function() { if (typeof (wg2f128)!="undefined") wg2f128.mfea6(this); }; this.EditKeyboardHandler =function(v69c59) { wg2f128.m33769(this,v69c59); }; this.GetRootTable =function() { return this.RootTable; }; this.GetMaxWidth =function() { var v9ff49 =this.GetRootTable().GetElement(WG40.BODY,WG40.HTMLTABLE).offsetWidth; var vaf732 =v9ff49; var v6d419; for (v6d419 in this.Tables) { var vc7892 =this.Tables[v6d419]; if (typeof (vc7892)!="function") vaf732 =Math.max(vaf732,vc7892.GetMaxWidth()); } return vaf732; }; this.GetRootTableWidth =function() { var v5ec52 =this.GetRootTable().GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v5b483 =v5ec52.rows[0].cells[v5ec52.rows[0].cells.length -1]; return v5ec52.offsetWidth -v5b483.offsetWidth; }; this.GetPreferredRootTableWidth =function() { var v5ec52 =this.GetRootTable().GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v5b483 =v5ec52.rows[0].cells[v5ec52.rows[0].cells.length -1]; if (v5b483.style.width.indexOf("%")>0) return v5ec52.offsetWidth -v5b483.offsetWidth; else return v5ec52.offsetWidth; }; this.FixPadColumnWidth =function() { if (this.GetMaxWidth()>this.GetRootTableWidth()) { var v35745 =this.GetMaxWidth()-this.GetRootTableWidth()+50; var vc380 =this.GetRootTable(); var v4c26 =vc380.GetElement(WG40.COLGROUP); var v0f823 =v4c26.childNodes[v4c26.childNodes.length -1]; v0f823.width =v35745; var ve2d83 =v0f823.width; if (wg4a378.mdf24(this.GetRootTable().GetElement(WG40.BODY,WG40.HTMLDIV))) ve2d83 +=17; v4c26 =vc380.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); v0f823 =v4c26.rows[0].cells[v4c26.rows[0].cells.length -1]; wg4a378.ma9941(vc380,v0f823,ve2d83); v0f823.locked =true; } }; this.GetColumnByElement =function(vca477) { return wg4a378.m59262(vca477); }; this.GetCellByElement =function(vca477) { return wg4a378.m7e652(vca477); }; this.GetRowByElement =function(vca477) { return wg4a378.mbe051(vca477); }; this.GetElement =function(vb0450,v5a942) { if (v5a942 ==WG40.HTMLROW) { var v29636 =this.GetElement(vb0450,WG40.HTMLCELL); return v29636.parentElement; } else { return document.getElementById(v5a942 +vb0450 +"_" +this.Name); } };  this.GetFreezeTableElement =function() { return this.GetElement(WG40.FREEZEBAR,WG40.HTMLTABLE); };  this.GetFreezeOuterDivElement =function() { var v6d419 =this.GetFreezeTableElement(); var v1c438 =v6d419.rows[0].cells[0]; var v26f12 =v1c438.children[0];  return v26f12; };  this.GetFreezeDivElement =function() { var v26f12 =this.GetFreezeOuterDivElement();  return v26f12.children[0]; }; this.SetStatus1 =function(v7f028,vfd083,vfe37,v33a67) { if (this.LayoutSettings.StatusBarVisible) { if (vfe37 !="" &&!this.IsPreviewMode) { var v79057 =this.LayoutSettings.TextSettings.TextItems.GetItemByProperty("TextItem",vfe37); if (v79057) v7f028 =v79057.TextValue; if (v7f028 !="") { if (v7f028 =="none") v7f028 =""; } else { v7f028 =this.GetString(vfe37); if (typeof (v7f028)=="undefined" ||v7f028 ==null) { var v90480 =this; setTimeout(function() { v90480.SetStatus1("",vfd083,vfe37,v33a67); },100); return; } } }  if (typeof(v33a67)!="undefined") v7f028 =v7f028.replace("{0}",v33a67); var v8d959 =this.GetElement(WG40.STATUSBAR,WG40.HTMLCELL).children[0]; var vd5b63 =v8d959.parentElement; var vc8d25 =0; var v8ac36 =0; v8ac36 =ISPosLib.getWidth(vd5b63); v8d959.innerText =v7f028; vc8d25 =v8d959.scrollWidth; v8d959.style.visibility ="hidden"; if (v8ac36 <vc8d25) v8d959.style.width =(v8ac36 -4)+"px"; else v8d959.style.width =""; v8d959.style.visibility ="visible";  if (IS.ie) v8d959.style.display ="inline"; else v8d959.style.display ="inline-block"; } }; this.SetStatus2 =function(v7f028,vfd083,v09396,vd0c15) { if (this.LayoutSettings.StatusBarVisible) { if (vfd083 =="loaded") { v7f028 =this.GetLoadedText(vfd083,v09396,vd0c15); if (typeof (v7f028)=="undefined") { var v90480 =this; setTimeout(function() { v90480.SetStatus2(v7f028,vfd083,v09396,vd0c15); },100); return; } } else { var vc5a50 =this.GetString(vfd083); if (vc5a50 !="") v7f028 =vc5a50; } this.GetElement(WG40.STATUSBARRIGHT,WG40.HTMLCELL).innerText =v7f028;  if (this.IsClassicPaging()) wg87896.m8d631(this); } }; this.SendCustomRequest =function() { wg4a378.m71658(this.Name,"Custom"); }; this.ClearSelectedObject =function(v14420) { if (v14420 &&this.LastSelObj !=null) { wgdee10.m56d38(this.LastSelObj.element,"","","Clear"); var v83436 =wgGetRowHeader(this.LastSelObj.element); if (v83436) v83436.innerHTML ="&nbsp"; } this.LastSelObj =null; }; this.GetSelectedObject =function() { return this.LastSelObj; }; this.GetDefaultLanguageXml =function() { return document.getElementById("WGLang_default"); }; this.GetLanguageXml =function() { if (!IS.ie &&this.LanguageXml !=null) return this.LanguageXml; var v2a180 =this.GetDefaultLanguageXml(); var v4c882 =this.LayoutSettings.TextSettings.Language; if (v4c882 =="UseCulture") { var va0b70 =document.getElementById("WGLang_" +this.LayoutSettings.Culture); if (!va0b70) return v2a180; else return va0b70; } else if (v4c882 =="UseCustom") { var va0b70 =document.getElementById("WGLang_" +this.LayoutSettings.TextSettings.UseLanguage); if (!va0b70) return v2a180; else return va0b70; } return v2a180; }; this.GetString =function(vfe37) { var v64878 =""; if (this.IsPreviewMode) return vfe37; var v79057 =this.LayoutSettings.TextSettings.TextItems.GetItemByProperty("TextItem",vfe37); if (v79057) v64878 =v79057.TextValue; if (v64878 =="") { var va0b70 =this.GetLanguageXml(); if (!IS.ie &&!this.LanguageXml) { va0b70 =ISMoz.ConvertToXmlObject(va0b70); this.LanguageXml =va0b70; } if ((!IS.ie &&va0b70.xml =="")||(IS.ie &&va0b70.readyState !="complete")) return null; var vdc756 =ISXml.GetNode(va0b70,"//" +vfe37); if (vdc756) { v64878 =vdc756.text; } } return v64878; }; this.GetLoadedText =function(vfd083,v09396,vd0c15) { var v7f028 =""; var v50e10 =false; try { if (this.IsClassicPaging()) v7f028 =this.GetString("CommonText/PagingStatus"); else v7f028 =this.GetString("CommonText/Loaded"); if (v7f028 ==null ||v7f028 =="") v50e10 =true; } catch (e) { v50e10 =true; } if (v50e10) { var v8729 =this; setTimeout(function() { v8729.GetLoadedText(vfd083,v09396,vd0c15); },100); return; } if (this.IsClassicPaging()) { v7f028 =v7f028.replace("{0}",v09396).replace("{1}",vd0c15); v09396 =this.TotalLoadedRows; vd0c15 =this.TotalRows; } else { v7f028 =v7f028.replace("[n]",v09396); v7f028 =v7f028.replace("[total]",vd0c15); } if (v09396 ==0 ||vd0c15 ==0) wg91c62.m59373(this); else wg91c62.m3b85(this); return v7f028; }; this.Refresh =function() { wgRefresh(this.Name); }; this.RefreshAll =function() { wgRefresh(this.Name,true); }; this.HasFocus =function() { return wgGetActiveGrid()==this.Name; }; this.GetCssMenuFile =function() { return this.LayoutSettings.ScriptDirectory +this.LayoutSettings.MenuCssFile; }; this.HasGroup =function() { var v3aa14 =false; for (vc7892 in this.Tables) { var v6d419 =this.Tables[vc7892]; if (typeof (v6d419)!="function" &&v6d419.GroupedColumns.length>0) { v3aa14 =true; break; } } return v3aa14; }; this.ActivateEditMode =function(v21894) { return wg2f128.m13c95(this,v21894); }; this.ExitEditMode =function(v1fb30) { if (typeof(wg2f128)!="undefined") return wg2f128.m97a96(this.LastEditObj,v1fb30); }; this.ValidateRow =function(v22450) { return wg2f128.mf2a19(this,v22450); }; this.ExitEdit =function(v41250,v8ab97,v7d067) { return wg2f128.md2226(this,v41250,v8ab97,v7d067); }; this.UpdateState =function() { }; this.ShowGroupByBox =function() { var vf2e2 =this.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (vf2e2) { var vfd020 =vf2e2.parentElement; this.NeedHeightResize =true; vfd020.style.display =""; if (!IS.ie) { var vb7475 =this; window.setTimeout(function() { wgd2488.m5d797(vb7475); },100); } } }; this.HideGroupByBox =function() { var vf2e2 =this.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (vf2e2) { var vfd020 =vf2e2.parentElement; this.NeedHeightResize =true; vfd020.style.display ="none"; if (!IS.ie) { var vb7475 =this; window.setTimeout(function() { wgd2488.m5d797(vb7475); },100); } } }; this.IsGroupByBoxShown =function() { var vf2e2 =this.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (vf2e2) { var vfd020 =vf2e2.parentElement; return vfd020.style.display ==""; } return false; }; this.ShowFilterBar =function() { var vf6a44 =this.GetRootTable().GetFilterRow(); var v66942 =new Array(); if (wgIsColumnSetRow(vf6a44)) v66942 =wgGetColumnSetRows(vf6a44); else v66942[0] =vf6a44; this.LayoutSettings.Set("FilterBarVisible",true,true); for (var v31985=0; v31985<v66942.length; v31985++) v66942[v31985].style.display =""; if (!IS.ie) { var vb7475 =this; window.setTimeout(function() { wgd2488.m5d797(vb7475); wgd2488.m2a238(vb7475.GetRootTable()); },100); } }; this.HideFilterBar =function() { var vf6a44 =this.GetRootTable().GetFilterRow(); var v66942 =new Array(); if (wgIsColumnSetRow(vf6a44)) v66942 =wgGetColumnSetRows(vf6a44); else v66942[0] =vf6a44; this.LayoutSettings.Set("FilterBarVisible",false,true); for (var v31985=0; v31985<v66942.length; v31985++) v66942[v31985].style.display ="none"; if (IS.moz) { var vb7475 =this; window.setTimeout(function() { wgd2488.m5d797(vb7475); },100); } }; this.IsVisible =function() { return this.Get("Visible"); }; this.SetBusy =function() { if (this.LayoutSettings.StatusBarVisible) { var v96b6 =document.getElementById("tdStatIcon_" +this.Name).childNodes[0]; v96b6.style.visibility ="visible";  if (v96b6.src.indexOf(this.LayoutSettings.ImageSettings.InProgressImage)==-1) v96b6.src =this.ResolveImagePathEx(this.LayoutSettings.ImageSettings.InProgressImage); } if (this.LayoutSettings.InProgressUIBehavior =="ChangeCursorToHourGlass") { var v32383 =document.getElementById(this.Name +"_ImgB"); if (!v32383) { v32383 =document.createElement("IMG"); v32383.id =this.Name +"_ImgB"; v32383.style.cssText ="z-index: 299; filter2:alpha(opacity=0); position:absolute; height:50px; width:50px;"; v32383.src =this.ResolveImagePathEx("wg_blank.gif"); document.body.appendChild(v32383); } v32383.style.display =""; v32383.style.cursor ="wait"; this.FrameObj.onmousemove =function() { wg4a378.m8a160(v32383); }; } }; this.SetIdle =function() { if (this.LayoutSettings.StatusBarVisible &&!this.IsStatusLocked) document.getElementById("tdStatIcon_" +this.Name).childNodes[0].style.visibility ="hidden"; if (this.LayoutSettings.InProgressUIBehavior =="ChangeCursorToHourGlass") { var v32383 =document.getElementById(this.Name +"_ImgB");  if (v32383 !=null) { v32383.style.cursor ="default"; v32383.style.display ="none"; this.FrameObj.onmousemove =null; } } };  this.ResetStatus =function(vae55) { if (this.IsStatusLocked ||vae55) { this.IsStatusLocked =false; this.IsUnhandledError =false; this.SetIdle(); this.SetStatus1("","ready","CommonText/Ready");  if (vae55) wg91c62.m59373(this); } };  this.ClearChildTables =function(vc9061) { if (vc9061) { var v2602 =this.Tables[vc9061].GetChildTables(); for (var v31985=0; v31985<v2602.length; v31985++) { var v9b185 =this.Tables[v2602[v31985].Id]; v9b185.SubTableIds =new Array(); } } else { var vc380 =this.GetRootTable(); var v4c26 =vc380.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v63875 =vc380.GetElement(WG40.COLHEADER,WG40.HTMLDIV); if (!this.IsRightToLeft()) v63875.scrollLeft =0; else v63875.scrollLeft =v63875.scrollWidth; var v0f823 =v4c26.rows[0].cells[v4c26.rows[0].cells.length -1]; v0f823.locked =false; for (childTbl in this.Tables) { if (typeof (this.Tables[childTbl])!="function") this.Tables[childTbl].SubTableIds =new Array(); } } }; this.GetBlurRowStyle =function() { var v05286 =this.LayoutSettings.LostFocusClass; if (v05286 =="") return "background-color: gainsboro"; else return IS.GetCssText(this.Id,v05286); }; this.GetEditFocusStyle =function() { var v05286 =this.LayoutSettings.EditFocusClass; if (v05286 =="") return "background-color: white;"; else return IS.GetCssText(this.Id,v05286); }; this.GetXml =function() { return this.XmlDt; }; this.MarkEdit =function() { wg2f128.m8de51(this); }; this.GetCurSelImage =function() { return this.ResolveImagePathEx(this.LayoutSettings.ImageSettings.CurrentRowImage); }; this.Show =function() { if (IS.ie) this.FrameObj.parentElement.style.display =""; this.FrameObj.style.display ="";  wg91c62.mae622(this.Name); if (this.NeedFocus) wg4a378.m61542(this,true); }; this.SetFocus =function() { wg4a378.m61542(this,true); }; this.Hide =function() { if (IS.ie) this.FrameObj.parentElement.style.display ="none"; else this.FrameObj.style.display ="none"; }; this.ExportGrid =function(v93e44,vfa595,vc4786,v28233) { wg4a378.m71658(this.Name,"Export",new Array(v93e44,vfa595,vc4786,v28233)); }; this.GetActiveEditCell =function() { return this.ActiveEditCell; }; this.GetLastEditObject =function() { return this.LastEditObj; }; this.SetHeight =function(v21a71) { wg91c62.m02781(this,v21a71); };    this.FreezePane =function(vdfc71) { if (typeof(vdfc71)=="number") this.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns =vdfc71;  wg91c62.m1fb14(this); wg91c62.m4ad6(this,true); };  this.UnfreezePane =function() { wg91c62.m83652(this); };  this.GetLastFrozenColumn =function() { if (this.FrozenColumns !=null) return this.FrozenColumns[this.FrozenColumns.length -1];  return null; };  this.GetLastHiddenColumnWidth =function() { if (this.FreezeConfig !=null &&this.FreezeConfig[0].length >0) return this.FreezeConfig[0][this.FreezeConfig[0].length -1].GetWidth();  return 0; };  this.GetImagesFolder =function() { return this.LayoutSettings.ImageSettings.Folder; }; this.SetStatusIcon =function(vaaf91,v6fe23) { if (this.LayoutSettings.StatusBarVisible) { var v96b6 =document.getElementById("tdStatIcon_" +this.Name).childNodes[0];  if (v6fe23) v96b6.src =vaaf91; else v96b6.src =this.ResolveImagePathEx(this.LayoutSettings.ImageSettings[vaaf91 +"Image"]);  v96b6.style.visibility ="visible"; } };  this.ClearSelection =function() { this.ClearSelectedObject(true); };  this.IsClassicPaging =function() { return (this.LayoutSettings.PagingMode =="ClassicPaging"); };   this.ClearClientStorage =function() { for (var tableName in this.Tables) { var v6d419 =this.Tables[tableName];  if (typeof(v6d419)=="object") v6d419.Storage.Clear(); } };  this.EnableBatchUpdate =function() { this.LayoutSettings.AllowBatchUpdate =true; this.LayoutSettings.BatchUpdateSettings =new WebGridBatchUpdateSettings(); };  this.PreventLoadMore =function() { this.HaltLoadMore =true;  var vb7475 =this; setTimeout(function(){vb7475.HaltLoadMore =false;},10); };  this.IsClientBinding =function(ve2046) { var vafe3 =this.ClientBindingSettings;  if (!ve2046) ve2046 ="ClientService";  if (this.BindingOperationMode =="ClientBinding") { if (ve2046 =="ClientService" &&(vafe3.DataSourceType =="WebService" ||vafe3.DataSourceType =="WcfService" ||vafe3.DataSourceType =="AdoDataService")) return true; else if (ve2046 =="Client" &&vafe3.DataSourceType =="ClientDataSource") return true; else if (ve2046 =="Server" &&vafe3.DataSourceType =="ServerDataSource") return true; }  return false; };  this.GetAllTables =function() { var v2602 =[]; v2602.push(this.RootTable.Name);  return this.GetTableRecursive(v2602,this.RootTable.ChildTables); }; this.GetTableRecursive =function(v2602,v12d42) { for (var v31985=0; v31985<v12d42.length; v31985++) { v2602.push(v12d42[v31985].Name);  if (v12d42[v31985].ChildTables.length >0) this.GetTableRecursive(v2602,v12d42[v31985].ChildTables); }  return v2602; };  this.IsElegantDefaultStyle =function() { return (this.UseDefaultStyle &&this.DefaultStyleMode !="Standard"); };  this.GetColumnActionElement =function() { if (this.ActionElement !=null) return this.ActionElement;  var vca477 =document.createElement("div"); vca477.style.cssText ="position: absolute; width: 16px; display:none";  vca477.innerHTML ="<div style=\"background: url(" +this.ResolveImagePathEx(this.LayoutSettings.ImageSettings.ColumnActionImage)+") no-repeat center center; width: 100%;" + "height: 100%\"></div>";  Listener.Add(vca477,"onmouseover",wg91c62.m11987,this); Listener.Add(vca477,"onmouseout",wg91c62.m5df99,this); Listener.Add(vca477,"onmouseup",wg91c62.m8c820,this);  this.FrameObj.appendChild(vca477); this.ActionElement =vca477; return this.ActionElement; };  this.ClearActionElement =function(ve4085) { if (this.ActionElement !=null) { this.ActionElement.style.display ="none"; this.ActionContext =null; this.ActionBoxShown =false; }  if (ve4085) this.ActionElement =null; };  this.ApplyDefaultStyleBorder =function(vca477) { if (this.IsElegantDefaultStyle()) { var vd129 =IS.GetCssObject(null,this.LayoutSettings.TextBoxClass);  if (vd129 !=null) vca477.border =vd129.border; } };}function WebGridFreezePaneSettings(){ this._Type ="WebGridFreezePaneSettings"; ISObject.call(this);  this.MaxFrozenColumns =2; this.ActiveFrozenColumns =0; this.SplitterLineColor ="Black"; this.SplitterLineWidth =1; this.ShowSplitterLine =true; this.ShowInContextMenu =false; this.AbsoluteScrolling =false; this.SuppressErrorMessage =false;};function WebGridClientEvents(){ this._Type ="ClientEvents"; ISObject.call(this); this.OnBeforeRequest =""; this.OnResponse =""; this.OnColumnMove =""; this.OnColumnResize =""; this.OnColumnChanged =""; this.OnRowSelect =""; this.OnCellSelect =""; this.OnCellClick =""; this.OnCellDblClick =""; this.OnGroupExpand =""; this.OnGroupCollapse =""; this.OnChildRowExpand =""; this.OnChildRowCollapse =""; this.OnKeyDown =""; this.OnKeyUp =""; this.OnRowSelectorClick =""; this.OnEnterEditMode =""; this.OnExitEditMode =""; this.OnBeforeAdd =""; this.OnAfterAdd =""; this.OnBeforeUpdate =""; this.OnAfterUpdate =""; this.OnBeforeDelete =""; this.OnAfterDelete =""; this.OnAfterResponseProcess =""; this.OnUnhandledError =""; this.OnRowValidate =""; this.OnCalendarSelect =""; this.OnInitialize =""; this.OnRowContextMenu =""; this.OnEditKeyDown =""; this.OnFocus =""; this.OnLostFocus =""; this.OnButtonClick =""; this.OnCheckBoxClick =""; this.OnActionDispatched =""; this.OnSelfRefRowExpand =""; this.OnSelfRefRowCollapse =""; this.OnColumnGroup =""; this.OnColumnUngroup =""; this.OnColumnGroupChange =""; this.OnColumnSort =""; this.OnColumnFilter =""; this.OnBeforeRowSelect =""; this.OnBeforePrint =""; this.OnAfterPrint ="";  this.OnScroll =""; this.OnAfterInitialize ="";  this.OnUndoChanges =""; this.OnUndoAllChanges =""; this.OnAcceptAllChanges =""; this.OnAddPendingChanges =""; this.OnRemovePendingChanges =""; this.OnBatchUpdateSuccess =""; this.OnSynchronizeChangesUI ="";  this.OnCustomAggregate =""; this.OnInitializeRow =""; this.OnInitializeCell =""; this.OnSynchronizeRow =""; this.OnSynchronizeCell =""; this.OnDataBound =""; this.OnDataSourceChanged =""; this.OnPreRender =""; this.OnPostRender ="";  this.OnAfterExitEditMode =""; this.OnBeginRowEditing =""; this.OnEndRowEditing =""; this.OnCancelRowEditing ="";  this.OnInitializeCustomEditor =""; this.OnColumnContextMenu =""; this.OnExportContextMenu =""; this.OnBatchUpdateError =""; this.OnColumnAction ="";}function ColumnSetSettings(){ this._Type ="ColumnSetSettings"; ISObject.call(this); this.ShowHeaders ="Default"; this.RowCount =2; this.GridLines ="None"; this.GridLineColor =""; this.GridLineStyle ="NotSet";}function FocusStyle(){ this._Type ="FocusStyle"; ISObject.call(this); this.BorderStyle ="NotSet"; this.BorderWidth =null; this.BorderColor =""; this.CssClass =""; this.GetStyleText =function() { var vcf15 =this.BorderStyle; if (vcf15 =="NotSet") vcf15 =""; vcf15 =vcf15.toLowerCase(); if (this.CssClass =="") { if (this.BorderColor =="") this.BorderColor ="transparent"; if (this.BorderWidth ==null) this.BorderWidth ="0"; if (this.BorderStyle =="NotSet") this.BorderStyle ="none"; return "border: " +this.BorderColor +" " +this.BorderWidth +"px " +vcf15; } else { var vd7531 =IS.GetCssObject(null,this.CssClass); if (vd7531) { if (vd7531.borderColor =="") vd7531.borderColor ="transparent"; if (vd7531.borderWidth =="") vd7531.borderWidth ="0"; if (vd7531.borderStyle =="") vd7531.borderStyle ="none"; return "border: " +vd7531.borderLeftColor +" " +vd7531.borderLeftWidth +" " +vd7531.borderLeftStyle; } else return ""; } };}function GroupByBoxObject(){ this._Type ="GroupByBoxObject"; ISObject.call(this); this.InfoText ="Drag a column header here to group by that column."; this.ConnectorLineColor ="White"; this.ConnectorLineStyle ="Solid"; this.ContextMenu =true;}function WebGridImageSettings(){ this._Type ="ImageSettings"; ISObject.call(this); if (IS_ReleaseType =="Beta") this.Folder ="/CommonLibraryBeta/Images/"; else this.Folder ="/CommonLibrary/Images/";  this.CollapseImage ="wg_minus.gif"; this.ExpandImage ="wg_plus.gif"; this.FilterImage ="wg_filter.gif"; this.NewRowImage ="wg_newrow.gif"; this.SortAscImage =""; this.SortDescImage =""; this.InProgressImage ="wg5_progress_std.gif"; this.EditImage ="wg_edit.gif"; this.GotoImage ="wg_goto.gif"; this.CurrentRowImage ="wg_currow.gif"; this.ColumnPointerImage ="wg_colptr.gif"; this.MoreDataImage ="wg5_more.gif"; this.RefreshImage ="wg5_refresh.gif"; this.ExportImage ="wg5_export.gif"; this.PreviewRowCollapseImage ="wg_prcol.gif"; this.PreviewRowExpandImage ="wg_prexp.gif"; this.HelpImage ="wg5_help.gif";  this.FilteredImage ="wg5_filtered.gif"; this.UnfilteredImage ="wg5_unfiltered.gif"; this.RequiredImage ="wg5_required.gif"; this.SuccessImage ="wg5_success.gif"; this.WarningImage ="wg5_warning.gif"; this.FailedImage ="wg5_failed.gif"; this.ReadOnlyImage ="wg5_locked.gif";  this.SliderThumbImage ="wg5_sliderthumb.gif"; this.AddedRowIndicator ="wg7_added.gif"; this.ModifiedRowIndicator ="wg7_edited.gif"; this.DeletedRowIndicator ="wg7_deleted.gif"; this.PendingChangesImage ="wg7_reviewchanges.gif"; this.ColumnActionImage ="wg7_options.gif";}function WebGridLayoutSet(){ this._Type ="LayoutSet"; ISObject.call(this); this.VirtualLoadMode ="Default"; this.AllowContextMenu =true; this.Culture =null; this.EditOnClick =false; this.EditFocusCellStyle =null; this.EditTextboxStyle =null; this.ButtonStyle =null; this.AllowGrouping ="No"; this.VirtualPageSize =50; this.ClientSideEvents =new WebGridClientEvents(); this.SizeHeightBy =0; this.SizeWidthBy =0; this.AllowAddNew ="No"; this.AllowColumnSizing ="Yes"; this.AllowColumnMove ="No"; this.AllowEdit ="No"; this.MenuCssFile ="ISMenu.css"; this.AllowDelete ="No"; this.AllowFilter ="No"; this.AllowSelectColumns ="No"; this.AllowSorting ="No"; this.AutoWidth =false; this.AutoHeight =false; this.AlternatingColors =true; this.CellClickAction ="RowSelect"; this.PagingMode ="None"; this.CellPaddingDefault =4; this.CellSpacingDefault =0; this.ColumnHeaders ="Yes"; this.ColumnFooters ="No"; this.GridLines ="Both"; this.GridLineColor =null; this.GridLineStyle =null; this.HeaderClickAction ="SortSingle"; this.GroupByBoxVisible =false; this.GroupByBox =new GroupByBoxObject(); this.GroupRowInfoFormatDefault ="[caption]: [value]"; this.GroupRowInfoStyle =null; this.AlternatingRowStyle =null; this.RowHeaders ="Yes"; this.FocusCellStyle =new FocusStyle(); this.Hierarchical =false; this.ImageSettings =new WebGridImageSettings(); this.RowHeaderWidth =18; this.RowHeightDefault =20; this.HideColumnsWhenGrouped ="Yes"; this.Grid =null; this.StatusBarVisible =true; this.ScriptDirectory ="/CommonLibrary/WebGrid/V7_0_7200/"; this.AlwaysShowHelpButton =true; this.NewRowLostFocusAction ="NeverUpdate"; this.RowLostFocusAction ="AlwaysUpdate"; this.TextSettings =new WebGridTextSettings(); this.AllowExport ="No"; this.ChildRowEmptyAction ="ShowChildContent"; this.AlwaysUseCachedDataOnFirstLoad =false; this.CustomFilterString =""; this.ResetNewRowValuesOnError =true; this.InProgressUIBehavior ="DisplayMessageBox"; this.ColumnSetHeaders ="Yes"; this.PreviewRowStyle =null; this.LostFocusRowStyle =null; this.CheckedRowStyle =null; this.FilterRowStyle =null; this.QuickFilterBarStyle =null; this.SortedColumnStyle =null; this.RowHeaderStyle =null; this.TreeLines =true; this.ChildTableSpacing =4; this.HyperlinkStyle =null; this.ShowRefreshButton =true; this.AutoFitColumns =false; this.AutoFitColumnsBuffering =true; this.FilterBarVisible =true; this.ClientVisible =true; this.AutoColMinWidth =100; this.ScrollBarStyle =null; this.PromptBeforeDelete =false; this.ApplyFiltersKey ="ShiftEnter"; this.SelectedRowClass =""; this.CheckedRowClass =""; this.TextBoxClass =""; this.StatusBarCommandStyle =null; this.HelpURL =""; this.PersistRowChecker =false; this.UseRelativePositioning =true;  this.AllowColumnFreezing ="No"; this.FreezePaneSettings =new WebGridFreezePaneSettings(); this.AutoFilterSuggestion =false; this.RowHighlightType ="EntireRow"; this.ShowFilterStatus =false; this.VerboseEditingInformation =false; this.DisplayDetailsOnUnhandledError =true; this.RowChangedAction ="None"; this.FocusNewRowOnLastCell =false;  this.PagingSize =25; this.PagingStyleUI ="FirstPrevNextLast"; this.PagingDetectPartialGroupRows =false; this.PagingSliderWidth =120; this.PagingLatencyOnSlide =500; this.InitialView ="GridView"; this.ChartDisplayPosition ="Top"; this.ChartCustomContainerId ="";  this.MarkDefaultValuesAsDirty =true; this.AllowMultipleSelection ="No"; this.RestoreRowSelection ="Disabled"; this.ContextMenuAnimation =true; this.RestoreExpandedChildRows =false;  this.AllowBatchUpdate =false; this.BatchUpdateSettings =null; this.AddedRowStyle =null; this.ModifiedRowStyle =null; this.DeletedRowStyle =null; this.SelectFirstCellOnAdd =false; this.AlternatingRowClass =""; this.GroupRowInfoClass =""; this.FooterClass =""; this.RowClass =""; this.PersistValueListOnCopy =false; this.ShowColumnAction =false;  this.OnPropertiesInitialized =function() { if (this.AllowBatchUpdate) this.BatchUpdateSettings =new WebGridBatchUpdateSettings(); };}function PreviewRowSettings(){ this._Type ="PreviewRowSettings"; ISObject.call(this); this.Style =null; this.Indentation =18; this.Height =null; this.DataMember =""; this.Expandable =true; this.DefaultExpanded =true; this.LoadOnDemand =false;}function SelfReferencingSettings(){ this._Type ="SelfReferencingSettings"; ISObject.call(this); this.Enabled =false; this.FitColumnOnExpand =false; this.ChildDataMember =""; this.ParentDataMember =""; this.Table =null; this.ExpandColumnMember =""; this.ParentRootMode ="UseParentRootValue"; this.ParentRootValue =null; this.TreatOrphanRecordsAsRoot =true; this.LoadOnDemand =false; this.IsTreeViewSelectionMode =false; this.ExpandColumnInnerTextPadding =0;}function WebGridTextSettings(){ this._Type ="TextSettings"; ISObject.call(this); this.LocalizationFolder ="/CommonLibrary/WebGrid/V7_0_7200/Localization/";  if (IS_ReleaseType =="Beta") this.LocalizationFolder ="/CommonLibraryBeta/WebGrid/V7_0_7200/Localization/";  this.Language ="UseDefault"; this.UseLanguage =""; this.TextItems =new ISArray();}function WebGridCell(v2b360){ this._Type ="WebGridCell"; ISObject.call(this); this.Position =0; this.Text =""; this.CustomAttributes =""; this.CustomObjectAttributes =""; this.Tag =""; this.Value =null; this.Column =null; this.DataChanged =false; this.Image =""; this.TooltipText =""; this.ForceNoEdit =false; this.Name =""; this._UIState ="Unchanged"; this.CellElement =null; this.Row =v2b360; this.Table =null; this.SubTable =null; this.Grid =null; this.IsPrimaryKey =false; this.IsForeignKey =false; this.Modified =false; this.OldValue =""; this.OldText =""; this.ContentMode ="Text";  this.ButtonImage =""; this.GetImage =function() { if (this.Image =="") { if (!this.Column.Table.Grid.IsClientBinding()) { if (this.Column.Bound) return this.Text; else return this.Column.CellImage; } else return this.Column.CellImage; } else return this.Image; };}var pCell =WebGridCell.prototype;pCell.GetRow =function(){ if (this.Row !=null) return this.Row; else return wgGetRowByElement(wg4a378.m16c13(this.GetElement()));};pCell.Setup =function(td){ if (td !=null) wg4a378.mb6b61(td);  if (td ==null) return; this.CellElement =td; this.Table =this.Row.Table; this.SubTable =this.Row.SubTable; this.Grid =this.Table.Grid; var colName =wg4a378.mb2364(this.Table,td); this.Column =this.Table.GetColumn(colName); this.Name =colName; if (td.contentMode) this.ContentMode =td.contentMode; var text =td.innerText; var rowEl =this.RowElement;  if (IS.safari ||IS.chrome) text =td.textContent; if (this.ContentMode =="HTML") { var cnt =wgdee10.m33461(td); if (cnt) text =cnt.innerHTML; else text =td.innerHTML; if (text !="") { var regExp =new RegExp("\r\n","g"); text =text.replace(regExp,""); } } if (wg4a378.m84894(text)) text =""; if (this.Column.ColumnType =="ImageAndText" &&text !=null &&wg4a378.m84894(text.substring(0,1))) text =text.substring(1); this.Text =text; if (this.Column.ColumnType =="ImageAndText") { var cnt =wgdee10.m33461(td); if (cnt &&cnt.children.length >0) { if (cnt.children[0].tagName =="SPAN") this.Image =cnt.children[0].children[0].src; else if (cnt.children[0].tagName =="IMG") this.Image =cnt.children[0].src; } } if (this.Column.ColumnType !="CheckBox") { if (td.cellValue) this.Value =td.cellValue; else this.Value =this.Text; } else { this.Value =td.cellValue; if (typeof (this.Value)!="boolean" &&td.children.length >0) this.Value =td.children[0].checked; }  if (rowEl !=null &&wgIsNewRow(rowEl)) { if (this.Value ==" ") this.Value ="";  if (this.Text ==" ") this.Text =""; } if (td.noEdit) this.ForceNoEdit =true; if (td.cellModified) this.Modified =true; var hasOldValue =(td.oldCellValue !="" &&typeof (td.oldCellValue)!="undefined");  this.OldText =(td.oldText ? td.oldText : ""); this.OldValue =(hasOldValue ? td.oldCellValue : ""); this.DataChanged =(td.cellModified ==true ||(hasOldValue &&this.Value !=this.OldValue));};pCell.SetDataChanged =function(){ this.DataChanged =this.Modified =true; this.CellElement.cellModified =true;};pCell.Synchronize =function(){ this.Setup(this.CellElement);};pCell.GetElement =function(){ return this.CellElement;};pCell.GetParentKeyName =function(){ return (this.Column.ParentKeyName ||this.Column.Name);};pCell.IsForeignColumn =function(x){ if (this.SubTable) { if (!x) x =this.SubTable.GetConstraintXml(); var nodes =ISXml.GetNodes(x,"//DataColumn"); for (var i=0; i<nodes.length; i++) { if (ISXml.GetAttribute(nodes[i],"name")==this.GetParentKeyName()) return true; } } return false;};pCell.IsActive =function(){ if (this.Grid.ActiveEditCell) { if (this.Grid.ActiveEditCell.rowElement ==this.CellElement) return true; } return false;};pCell.ActivateEdit =function(){ this.Select(); this.Grid.ActivateEditMode();};pCell.GetParentKeyValue =function(x){ if (this.IsForeignColumn(x)) { if (!x) x =this.SubTable.GetConstraintXml(); return ISXml.GetNodeText(x,"//DataColumn[@name='" +this.GetParentKeyName()+"']"); }; return null;};pCell.SetImage =function(image){ this.Image =image;  var imgElement =this.GetElement().childNodes[0].childNodes[0];  if (imgElement !=null) { if (imgElement.tagName !="IMG") imgElement =imgElement.children[0];  imgElement.src =image; }};pCell.SetCustomContent =function(s){ this.GetElement().innerHTML =s;};pCell.SetText =function(s,sameValue,ignoreEditType){ if (this.Column.IsRowChecker ||(this.Column.EditType =="NoEdit" &&!ignoreEditType)) return;  if (this.OldText =="" ||this.OldText ==null) this.OldText =this.Text;  this.Text =s; if (sameValue) this.SetValue(s); if (this.Row._UIState !="Added") { var cell =this.CellElement; var hasNoBR =cell.innerHTML.indexOf("NOBR")>0; var cntSpan =wgdee10.m33461(cell); var imgTag ="";  if (cntSpan) hasNoBR =cntSpan.innerHTML.indexOf("NOBR")>0; if (this.Column.ColumnType =="ImageAndText" &&this.Row.Type =="Record") { try { imgTag =cell.childNodes[0].childNodes[0].outerHTML; } catch (e) { } } var output =(hasNoBR ? "<NOBR>" : "")+imgTag +(s =="" ? "&nbsp;" : _FixAmpChar(s))+(hasNoBR ? "</NOBR>" : ""); if (this.Column.ColumnType =="CheckBox") { var boolValue =false;  s =s.replace("\n","");  if (typeof(s)=="string" &&s.toLowerCase()=="true") boolValue =true;  if (typeof(s)=="boolean" &&s ==true) boolValue =true;  cell.cellValue =boolValue; cell.children[0].checked =boolValue; } else { if (cntSpan) cntSpan.innerHTML =output; else cell.innerHTML =output; } cell.oldText =this.OldText; cell.cellModified =true; } this.DataChanged =true; this.Row.SetDataChanged();};pCell.SetValue =function(v,reflectUI){ if (this.OldValue =="" ||this.OldValue ==null) { if (this.Value !="" &&this.Value !=null) this.OldValue =this.Value; else this.OldValue =this.OldText; } this.Value =v; this.Modified =true; if (this.Row._UIState !="Added") { if (reflectUI) { if (this.Column.ColumnType =="CheckBox") { if (v ==true ||v =="true" ||v =="True") this.CellElement.children[0].checked =v; } }  this.CellElement.oldCellValue =this.OldValue; this.CellElement.cellValue =v; this.CellElement.cellModified =true; } this.Row.SetDataChanged();};pCell.SetForceNoEdit =function(v){ if (typeof (v)=="undefined") v =true; if (v) { this.ForceNoEdit =true; this.CellElement.noEdit ="True"; } else { this.ForceNoEdit =false; this.CellElement.removeAttribute("noEdit"); }  if (this.Column.ColumnType =="CheckBox") this.GetElement().children[0].disabled =v;};pCell.Select =function(isCellSelect,skipEvts){ if (!isCellSelect) wg2f128.mc9757(this.CellElement); else { var table =this.Column.Table; var grid =table.Grid; var rowStyle =table.GetSelRowStyle(); var focusStyle =table.GetFocusCellStyle(); var selObj =grid.GetSelectedObject();  if (selObj ==null ||selObj.GetRowElement()==null ||(!wgIsSameRow(selObj.GetRowElement(),this.Row.GetElement()))) { var img =grid.ResolveImagePathEx(grid.LayoutSettings.ImageSettings.CurrentRowImage); wgdee10.m0d99(this.Row.GetElement(),img); } wgdee10.mcc643(this.CellElement,rowStyle,focusStyle,"",skipEvts); wgdee10.mfb068(grid,this.CellElement); }};pCell.ToXml =function(){ if (this.DataChanged) { if (this.SubTable) { var dcXml =this.SubTable.GetConstraintXml(); if (this.IsForeignColumn(dcXml)) { var parentKV =this.GetParentKeyValue(dcXml); if (parentKV) { this.Text =this.Value =parentKV; } } } var oldText =this.OldText; if (oldText !="") oldText =oldText.replace(/<BR>/g,"\n"); var value =this.Value; if (typeof (value)=="boolean") value =(value)? "True" : "False"; if (this.Modified &&this.Column !=null &&this.Column.DataType =="System.Boolean" &&value =="") value ="False"; var s ="<cell "; s +="modified='" +this.Modified +"' colName='" +ISXml.EncodeString(this.Column.Name)+"'>"; s +="<text>" +ISXml.EncodeString(this.Text)+"</text>"; s +="<value>" +ISXml.EncodeString(value)+"</value>"; s +="<oldtext>" +ISXml.EncodeString(oldText)+"</oldtext>"; s +="<oldvalue>" +ISXml.EncodeString(this.OldValue)+"</oldvalue>"; s +="</cell>"; return s; } return "";};pCell.GetAttribute =function(attributeName){ var el =this.GetElement(); var attr =el.attributes[attributeName];  if (attr !=null) return attr.value;  return "";};pCell.IsEditable =function(){ return wg4a378.m09a64(this.Column,this.GetElement());};pCell =null;function WebValueList(){ this._Type ="WebValueList"; ISObject.call(this); this.DataTextField =""; this.DataValueField =""; this.DataMember =""; this.DataRetrieved =false;  this.IsValid =function() { if (this.DataTextField =="") return false;  return true; }}function WebGridColumn(){ this._Type ="WebGridColumn"; ISObject.call(this); this.WebComboID =""; this.Name =""; this.Table =null; this.AggregateFunction ="None"; this.ButtonText =""; this.AllowGrouping ="Default"; this.AllowSizing ="Default"; this.AllowSorting ="Default"; this.Bound =true; this.DataMember =""; this.DefaultValue =""; this.Caption =""; this.GroupEmptyString ="(none)"; this.GroupRowValueFormatString =""; this.GroupRowInfoFormat =""; this.EditType ="TextBox"; this.GroupInterval ="Value"; this.HeaderImage =""; this.ColumnType ="Text"; this.HeaderTooltip =""; this.CellImage =""; this.NullText =""; this.ShowInSelectColumns ="Yes"; this.IsGrouped =false; this.IsSorted =false; this.Position =0; this.SortKeyField =""; this.FilterKeyField =""; this.SortOrder ="None"; this.Visible =true; this.DefaultVisible =true; this.Width =100; this.DataType ="System.String"; this.TextboxMaxlength =0; this.FooterText =""; this.FilterText =""; this.FilterType ="NotSet"; this.AllowMultiLine =false; this.DataFormatString =""; this.DefaultText =""; this.IsRowChecker =false; this.IsAutoWidth =false; this.FilterEditType ="SameAsEditType"; this.HyperlinkTarget ="Blank"; this.ButtonAutoPostback =false; this.ButtonPostbackMode ="OnTheFly"; this.HiddenDataMember =""; this.MaxHeight =null; this.ImageFormatString =""; this.HyperlinkDisplayText =""; this.HyperlinkFormatString =""; this.CustomEditorName =""; this.CustomEditorServerId =""; this.CustomEditorServerID =""; this.CustomEditorProperties =""; this.ForceVisible =false; this.AltElement =null;   this.IsFrozen =false; this.HiddenFromView =false; this.HiddenReason =""; this.ColGroupElement =null; this.ColGroupFooterElement =null; this.NewRowEditType ="SameAsEditType"; this.UseValueListForSorting ="Default"; this.HasValueList =false; this.InputRequired =false; this.InputRequiredErrorText =""; this.EditInfoText =""; this.EditInfoImage ="";   this.ShowInChartFieldList =true; this.CanAddToChartSeries =true; this.CanAddToChartFilter =true; this.CanAddToChartCategories =true; this.CanAddToChartData =true; this.TreatMarkupAsLiteralText =false; this.DefaultFilterType ="NotSet";   this.IsAutoIncrement =false; this.CellClass =""; this.ButtonImage =""; this.ValueList =new WebValueList(); this.ParentKeyName ="";  this.OnPropertiesInitialized =function(vb7f89) { if (vb7f89 =="OnInitialize") { this.Table =this.Parent; this.DefaultVisible =this.Visible; } }; this.GetDefault =function(vf2a73) { if (this[vf2a73] =="Default") { if (vf2a73 =="AllowSizing") vf2a73 ="AllowColumnSizing"; return this.Table.GetDefault(vf2a73); } else return this[vf2a73]; }; this.__getter =function(vf2a73) { switch (vf2a73) { case "AllowSorting": case "AllowGrouping": case "AllowSizing": case "UseValueListForSorting": return this.GetDefault(vf2a73); break; } }; this.__setter =function(vf2a73,vf1254,v21026) { switch (vf2a73) { case "Width": var v80096 =null; try { v80096 =this.GetElement(); } catch (e) { } if (v80096) { wg91c62.m1dc53(this.Table,v80096,vf1254); } break; } };  this.GetGrid =function() { return this.Table.GetGrid(); }; this.GetElement =function(v3d218) { if (!this.Table.IsRootTable &&!v3d218) { if (this.GetGrid().HeaderContext !=null) v3d218 =wg4a378.m16c13(this.GetGrid().HeaderContext); if (!v3d218) { try { v3d218 =this.Table.SubTableIds[0].GetElement(WG40.COLHEADER,WG40.HTMLTABLE); } catch (e) { } } } var v72e79 =this.Table.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v3d218); if (v72e79) { var v4f664 =v72e79.rows[0]; if (this.Table.IsUseColumnSet) { var v11014 =this.Table.GetRowLayoutByColName(this.Name); var v8e55 =v11014.Row; if (this.Table.IsColumnSetHeaderVisible()) v8e55++; v4f664 =v72e79.rows[v8e55]; } var v0ce74 =wgGetCellByName(v4f664,this.Name);  if (!v0ce74 &&this.AltElement) return this.AltElement;  return v0ce74; } return null; }; this.Resize =function(va7031) { var v80096 =this.GetElement(); if (!v80096) return; var vee461 =v80096.parentElement; wg91c62.m1dc53(this.Table,v80096,va7031,!this.Table.IsRootTable,true); if (!this.Table.IsUseColumnSet) wg91c62.m22b32(this.Table,vee461); wg91c62.m0d26(this.Table,"Resize",v80096,va7031); }; this.ResizeBestFit =function() { wg91c62.ma6c98(this.GetElement()); }; this.GetFilterEditType =function() { var v54b0 =this.FilterEditType; if (v54b0 =="SameAsEditType") v54b0 =this.EditType; return v54b0; };    this.GetWidth =function() { var v80096 =this.GetElement();  if (v80096 &&v80096.offsetWidth >0) return v80096.offsetWidth; else return parseFloat(this.Width); };  this.HideFromView =function(vcef64,v58f33) { var v79a18 =this.GetElement(); var v35a3 =this.Table; var v81566 =v35a3.GetElement(WG40.COLGROUP,WG40.HTMLTABLE); var vc3283 =wg4a378.m59d2(v79a18); if (!v58f33) v58f33 =new WebGridPartOption(true);  if (v58f33.Header &&!v35a3.Grid.EnableSection508Standards) v79a18.style.display ="none";  if (v58f33.Body) { if (IS.ie) v81566.children[vc3283].style.display ="none";  else { var v7784 =v35a3.GetElement(WG40.BODY,WG40.HTMLTABLE); var v17681 =v7784.rows;  this.ColGroupElement =v81566.removeChild(v81566.children[this.GetViewVisiblePosition()]); for (var v1e372=0; v1e372<v17681.length; v1e372++) { var v3d218 =v17681[v1e372];  wg4a378.mb6b61(v3d218); if (wgIsRecordRow(v3d218)||v3d218.type =="GroupTotalRow") v3d218.cells[vc3283].style.display ="none"; } } }  if (v58f33.Footer) { if (v35a3.Get("ColumnFooters")=="Yes") { var v23036 =v35a3.GetElement(WG40.COLFOOTERGROUP,null);  if (IS.ie) v23036.children[vc3283].style.display ="none"; else { var v81154 =this.GetViewVisiblePosition(); var vdc567 =v35a3.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE); var v01e98 =vdc567.rows[1].cells[vc3283].style;  this.ColGroupFooterElement =v23036.removeChild(v23036.children[v81154]); v01e98.visibility ="hidden"; v01e98.display ="none"; } } }  if (v58f33.FilterBar &&!v35a3.Grid.EnableSection508Standards) { if (v35a3.Get("AllowFilter")=="Yes") { var v3d218 =v35a3.GetFilterRow(); if (v3d218) { var vce86 =v3d218.cells[vc3283]; vce86.style.display ="none"; } } }  if (v58f33.AddNewRow &&!v35a3.Grid.EnableSection508Standards) { if (v35a3.Get("AllowAddNew")=="Yes") { var v01b36 =v35a3.GetNewRow();  if (v01b36 &&v01b36.cells.length >vc3283) { var v83b52 =v01b36.cells[vc3283]; v83b52.style.display ="none"; } } }  this.HiddenFromView =true; this.HiddenReason =vcef64; };  this.HideFrozen =function(v58f33) { this.HideFromView("FreezePaneScroll",v58f33); };  this.Show =function(v58f33) { var v79a18 =this.GetElement(); var v35a3 =this.Table; var v81566 =v35a3.GetElement(WG40.COLGROUP,WG40.HTMLTABLE); var vc3283 =wg4a378.m59d2(v79a18);  this.HiddenFromView =false; this.HiddenReason ="";  if (!v58f33) v58f33 =new WebGridPartOption(true);  if (v58f33.Header) v79a18.style.display ="";  if (v58f33.Body) { if (IS.ie) v81566.children[vc3283].style.display ="";  else { var v7784 =v35a3.GetElement(WG40.BODY,WG40.HTMLTABLE); var v17681 =v7784.rows; v81566.insertBefore(this.ColGroupElement,v81566.children[this.GetViewVisiblePosition()]); for (var v1e372=0; v1e372<v17681.length; v1e372++) { var v3d218 =v17681[v1e372];  wg4a378.mb6b61(v3d218);  if (wgIsRecordRow(v3d218)||v3d218.type =="GroupTotalRow") v3d218.cells[vc3283].style.display =""; } } }  if (v58f33.Footer) { if (v35a3.Get("ColumnFooters")=="Yes") { var v23036 =v35a3.GetElement(WG40.COLFOOTERGROUP,null);  if (IS.ie) v23036.children[vc3283].style.display =""; else { v23036.insertBefore(this.ColGroupFooterElement,v23036.children[this.GetViewVisiblePosition()]); var vdc567 =v35a3.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE); var v01e98 =vdc567.rows[1].cells[vc3283].style; v01e98.visibility ="visible"; v01e98.display =""; } } }  if (v58f33.FilterBar) { if (v35a3.Get("AllowFilter")=="Yes") { var v3d218 =v35a3.GetFilterRow(); if (v3d218) { var vce86 =v3d218.cells[vc3283]; vce86.style.display =""; } } }  if (v58f33.AddNewRow) { if (v35a3.Get("AllowAddNew")=="Yes") { var v01b36 =v35a3.GetNewRow();  if (v01b36 &&v01b36.cells.length >vc3283) { var v83b52 =v01b36.cells[vc3283]; v83b52.style.display =""; } } } };  this.GetViewPosition =function() { var v35a3 =this.Table; var v9c587 =v35a3.Grid;  if (v9c587.FreezePaneActive) { var v41769 =v35a3.Columns; var va6c94 =v9c587.GetLastFrozenColumn().Position; var va177 =wg4a378.m7a366(v35a3,v9c587.GetLastFrozenColumn()); var v39d86 =0; var vdd813 =0;  if (va177 !=null) vdd813 =va177.GetElement().cellIndex;  if (v35a3.Get("RowHeaders")=="Yes") v39d86++;  v39d86 +=v35a3.GroupedColumns.length;   for (var v1e372=va6c94; v1e372<this.Position; v1e372++) { if (!v41769[v1e372].HiddenFromView &&v41769[v1e372].Visible) vdd813++; }  if (this.Position <va6c94) return this.GetElement().cellIndex; else if (this.Position ==va6c94) { if (this.HiddenFromView) return -1; else return vdd813 +v39d86; }  return vdd813 +v39d86; } else { return this.GetElement().cellIndex; } };  this.GetViewVisiblePosition =function() { var v9c587 =this.Table.Grid; var va6c94 =v9c587.GetLastFrozenColumn().Position; var v5fe52 =this.GetViewPosition(); var v63653 =0; for (var v1e372=0; v1e372<va6c94; v1e372++) { if (!this.Table.Columns[v1e372].Visible) v63653++; } for (var v1e372=va6c94; v1e372<v5fe52; v1e372++) { var v72d98 =this.Table.Columns[v1e372];  if (!v72d98.Visible) v63653++; } return v5fe52 -v63653; };  this.IsOutsideScrollView =function() { var va7031 =this.GetScrollWidth(); var v3b858 =this.Table.Grid.GetFreezeOuterDivElement(); return (va7031 >v3b858.offsetWidth); };  this.GetScrollWidth =function() { var v8c678 =this.Table.Grid; var v3b858 =v8c678.GetFreezeOuterDivElement(); var va7031 =0;  for (var v1e372=0; v1e372<=this.Position; v1e372++) { var v72d98 =this.Table.Columns[v1e372];  if (!v72d98.HiddenFromView) va7031 +=v72d98.GetWidth(); }  return va7031; };  this.GetNewRowEditType =function() { var ve9075 =this.NewRowEditType; if (ve9075 =="SameAsEditType") ve9075 =this.EditType; return ve9075; };  this.IsPrimaryKey =function() { var vfad28 ="," +this.Table.DataKeyFields;  if (vfad28.indexOf("," +this.Name)>-1) return true;  return false; };  this.ShowContextMenu =function(v3d218) { var v80096 =this.GetElement(v3d218); var v74096 =new OffsetLocation(ISPosLib.getLeft(v80096),ISPosLib.getBottom(v80096));  wg91c62.m69881(v80096,null,v74096); };}function WebGridPartOption(v33119){ this.Header =false; this.ColHeaderGroup =false; this.Body =false; this.ColFooterGroup =false; this.Footer =false; this.AddNewRow =false; this.FilterBar =false;  if (v33119) { this.Header =this.ColHeaderGroup =this.Body =this.ColFooterGroup = this.Footer =this.AddNewRow =this.FilterBar =true; }}function WebGridColumnSet(){ this._Type ="WebGridColumnSet"; ISObject.call(this); this.Position =0; this.Caption =""; this.CaptionImage =""; this.ColumnCount =3; this.HeaderStyle =null; this.Visible =true; this.Width =null; this.AllowSizing ="Yes"; this.Name =""; this.Layout =new ISArray(); this.GetRowLayout =function(v1f73,v56052) { for (var v23a19=0; v23a19<this.Layout.length; v23a19++) { if (this.Layout[v23a19].Row ==v1f73 &&this.Layout[v23a19].Col ==v56052) return this.Layout[v23a19]; } return null; };}function WebGridCustomEditor(){ this._Type ="WebGridCustomEditor"; ISObject.call(this); this.Name =""; this.Index =0; this.ControlType ="ServerControl"; this.Persistence ="GridLevel"; this.JavascriptFiles =""; this.JavascriptEncoded =false; this.ScriptFolder =""; this.Behavior =new WebGridCustomEditorBehavior(); this.ServerControlFullName =""; this.DependencyFiles =""; this.DependencyFolder =""; this.Grid =null; this.DDObj =null; this.BaseEditorType =""; this.HasDropdownButton =false; this.DropdownButtonWidth =16; this.DropdownButtonImageFile =""; this.DropdownButtonType ="Image"; this.Tag =""; this.ImplementationObject =null; this.baseEditor =null; this.OnPropertiesInitialized =function() { this.Grid =this.Parent; this.ScriptFolder =this.Grid.LayoutSettings.ScriptDirectory +"CustomEditors/" +this.ScriptFolder +"/"; try { this.ImplementationObject =eval("new " +this.Name +"_Editor()"); } catch (e) { alert("Can't find implementation object for CustomEditor '" +this.Name +"'"); } if (this.ImplementationObject !=null) { this.ImplementationObject.Grid =this.Grid; this.ImplementationObject.CustomEditor =this; this.ImplementationObject.OnInitialize(); ISEvent.Raise(this.Grid.LayoutSettings.ClientSideEvents.OnInitializeCustomEditor,this.Grid.Name,this.Name,this.ImplementationObject,this); } }}function WebGridCustomEditorBehavior(){ this._Type ="WebGridCustomEditorBehavior"; ISObject.call(this); this.BaseEditorType ="Textbox"; this.HasDropdownButton =false; this.DropdownButtonWidth =16; this.DropdownButtonImageFile =""; this.DropdownButtonType ="Image"; this.SupportElegantStyles =false; this.Tag =""; this.OnPropertiesInitialized =function() { this.Parent.BaseEditorType =this.BaseEditorType; this.Parent.HasDropdownButton =this.HasDropdownButton; this.Parent.DropdownButtonWidth =this.DropdownButtonWidth; this.Parent.DropdownButtonImageFile =this.DropdownButtonImageFile; this.Parent.DropdownButtonType =this.DropdownButtonType; }}function WebGridFilter(){ this._Type ="WebGridFilter"; this._UIState ="Unchanged"; ISObject.call(this); this.FilterText =""; this.FilterType ="NotSet"; this.Index =0; this.ColumnMember =""; this.Table =null; this.Name =""; this.FilterDisplayText =""; this.FilterDateText =null; this.UseAdvancedFilter =false; this.AdvancedFilterKey =""; this.AdvancedFilterExpression =""; this.OnPropertiesInitialized =function() { this.Name =this.ColumnMember; this.Table =this.Parent; if (this.XmlNode !=null) this.FilterText =ISXml.GetNodeText(this.XmlNode,"FilterText"); }; this.GetElementType =function(v9d639) { switch (v9d639) { case "FilterText": return "CDATA"; default: return "Attribute"; } }; this.GetElement =function() { var v81b39 =this.Table.GetFilterRow(); if (v81b39) { return wgGetCellByName(v81b39,this.Name); } return null; };}function WebGridFormatCondition(){ this._Type ="WebGridFormatCondition"; ISObject.call(this); this.Name =""; this.Index =0; this.ColumnMember =""; this.Operator ="EqualTo"; this.Enabled =true; this.ConditionText =""; this.CustomConditionText =""; this.FormatStyle =null; this.TargetObject ="Row"; this.TargetColumnMember =""; this.Column =null; this.TargetColumn =null; this.Collection =new ISArray();}function WebGridGroup(){ this._Type ="WebGridGroup"; this._UIState ="Unchanged"; ISObject.call(this); this.GroupInterval ="Default"; this.GroupMode ="Default"; this.GroupRowValueFormatString =""; this.SortOrder ="None"; this.Index =0; this.ColumnMember =""; this.Table =null; this.Name =""; this.Column =null; this.OnPropertiesInitialized =function() { this.Name =this.ColumnMember; this.Table =this.Parent; this.Column =this.Table.Columns.GetNamedItem(this.Name); }; this.GetElement =function() { var v39d39 =wg91c62.m9e832(this.Table.Grid.Id,this.Table.Name); var vf3921 =this.Table.Grid; if (v39d39) { var v54a63 =v39d39.childNodes[0].childNodes[0].childNodes[0].childNodes[0]; for (var v2e758=0; v2e758<v54a63.cells.length; v2e758++) { wg4a378.mb6b61(v54a63.cells[v2e758]); if (v54a63.cells[v2e758].colName ==this.ColumnMember &&v54a63.cells[v2e758].type =="GroupColumn") { return v54a63.cells[v2e758]; } } } return null; };  this.GetGroupMode =function() { if (this.GroupMode =="Default") return this.Table.GroupMode; else return this.GroupMode; }; this.GetGroupRowValueFormatString =function() { if (this.GroupRowValueFormatString =="") return this.Column.GroupRowValueFormatString; else return this.GroupRowValueFormatString; };}function WebGridRow(vbca94,v3dd0){ this._Type ="WebGridRow"; ISObject.call(this); this.Table =vbca94; this.SubTable =v3dd0; this.ParentTableRow =null; this.ParentRow =null; this.KeyValues =null; this.Cells =null; this.Children =null; this.SelfRefChildren =null; this.ChildrenLoaded =false; this.DataSourceIndex =0; this.ChildNotExpandable =false; this.Expanded =false; this.Grid =null; this.Parent =null; this.Position =0; this.Selected =false; this.Visible =true; this.Height =null; this.Type ="Record"; this.DataChanged =false; this.KeyValue =null; this.ForceNoEdit =false; this.Checked =false; this.Name =""; this._UIState ="Unchanged"; this.Grid =null; this.GroupRowText =""; this.ParentConstraints =""; this.RowElement =null; this.ParentPos =""; this.TblSubId =null; this.GroupExpanded =false; this.ChildExpanded =false; this.PreviewRowExpanded =false; this.ChildrenLoaded =false; this.IsSelfRefRow =false; this.SelfRefExpanded =false; this.SelfRefLevel =0; this.SelfRefChildCount =0; this.SelfRefParentValue =null; this.RelNames =null; this.DataRow =null; this.DataSourceIndex =-1; this.PreviewRowValue =""; this.Group =null; this.UngroupedRows =null; this.ForceExpGroup =false; this.Style =null; this.ParentCollection =null; this.Tag =null;}var pRow =WebGridRow.prototype;pRow.Setup =function(el){ var table =this.Table; this.RowElement =el; this.Type =el.type; this.Grid =table.Grid; if (el.expanded &&el.expanded =="True") this.GroupExpanded =true; if (this.Type !="GroupHeader" &&table.ChildTables.length>0) { var hierRow =wgGetHierRecord(el); if (hierRow &&hierRow.childrenLoaded &&hierRow.childrenLoaded =="True") this.ChildrenLoaded =true; } if (el.noEdit &&el.noEdit =="True") this.ForceNoEdit =true; if (el.keyValue) this.KeyValue =el.keyValue; if (el.childExpanded &&el.childExpanded =="True") { this.ChildExpanded =true; this.ChildrenLoaded =true; } if (el.isRowChecked) this.Checked =true; if (el.srLevel) { this.SelfRefLevel =parseFloat(el.srLevel); this.IsSelfRefRow =true; } if (el.srRC) this.SelfRefRowCount =parseFloat(el.srRC); if (el.parentValue) this.SelfRefParentValue =el.parentValue; if (el.relNames) this.RelNames =el.relNames; if (table.HasMultiPrimaryKey) this.KeyValues =wgGetKeyValues(this.RowElement); if (el.srExpanded &&el.srExpanded =="True") this.SelfRefExpanded =true;  if (typeof(el.srRC)!="undefined") this.SelfRefChildCount =parseFloat(el.srRC); this.ParentPos =wg91c62.m23e1(this.RowElement); if (this.Type =="GroupHeader") this.GroupRowText =el.innerText; if (this.Table.PreviewRowVisible) { var prc =wg91c62.md7d88(el); if (prc) { if (prc.expanded =="True") this.PreviewRowExpanded =true; } } this.Position =parseFloat(el.position);};pRow.GetParentPos =function(){ if (this.ParentPos !="") return this.ParentPos; this.ParentPos =wg91c62.m23e1(this.RowElement); return this.ParentPos;};pRow.GetKeyValueString =function(){ var keys =""; if (this.Table.HasMultiPrimaryKey) { if (this.KeyValues !=null) keys =this.KeyValues.join("\03"); } else { if (this.KeyValue !=null) keys =this.KeyValue.toString(); } return keys;};pRow.IsSelected =function(){ if (this.Grid.LastSelObj !=null) { if (this.Grid.LastSelObj.GetRowElement()==this.RowElement) return true; } return false;};pRow.GetElement =function(){ return this.RowElement;};pRow.Synchronize =function(){ this.Setup(this.RowElement);};pRow.GetChildren =function(){ if (this.Children ==null) { this.Children =new ISArray(); this.Children.ParentRow =this; }  return this.Children;};pRow.GetCells =function(){ if ((this._UIState =="Added" ||this.Table.Grid.BindingOperationMode =="ClientBinding")&&this.Cells !=null) return this.Cells; var arr =new ISArray(); for (var i=0; i<this.Table.Columns.length; i++) { var c =this.GetCell(this.Table.Columns[i].Name); arr[arr.length] =c; } return arr;};pRow.GetCell =function(o,requireSync){ var cell =null; var forceSync =(requireSync ==true);  if (this.Table.Grid.BindingOperationMode =="ClientBinding" &&this.Cells !=null) { if (typeof(o)=="string") cell =this.Cells.GetNamedItem(o); else cell =this.Cells[o];  if (cell.CellElement ==null) requireSync =true; else { if (!forceSync) return cell; } } else { requireSync =true; }  var name =""; var idx =-1; var el; if (typeof (o)=="string") name =o; else idx =o; el =wg4a378.maac10(this.Table,this.RowElement,(name)? name : idx); if (el) { if (cell ==null) cell =new WebGridCell(this);  if (requireSync) cell.Setup(el);  return cell; } return null;};pRow.ExpandGroupRow =function(){ this.GroupExpanded =true; wgExpandGroupRow(this.RowElement);};pRow.CollapseGroupRow =function(){ this.GroupExpanded =false; wgCollapseGroupRow(this.RowElement);};pRow.ExpandChildRow =function(useSync){ if (useSync) this.Grid.XmlHttp.Asynchronous =false; this.ChildExpanded =true; wgExpandChildRow(this.RowElement); this.Grid.XmlHttp.Asynchronous =true;};pRow.CollapseChildRow =function(){ this.ChildExpanded =false; wgCollapseChildRow(this.RowElement);};pRow.ExpandSelfRefRow =function(){ if (!this.IsSelfRefRow) return; this.SelfRefExpanded =true; this.RowElement.srExpanded ="False"; wg91c62.m89518(null,this.RowElement,null,true);};pRow.CollapseSelfRefRow =function(){ if (!this.IsSelfRefRow) return; this.SelfRefExpanded =false; this.RowElement.srExpanded ="True"; wg91c62.m89518(null,this.RowElement,null,true);};pRow.Select =function(preventFocus){ if (typeof(preventFocus)=="undefined") preventFocus =false;  if (this.Table.IsRootTable) this.Table.SelectRow(this.RowElement,preventFocus); else this.SubTable.SelectRow(this.RowElement,preventFocus);};pRow.GetChildRow =function(pos,tblName){ if (!this.RowElement) return; if (!tblName &&this.Table.ChildTables.length ==0) return; this.Synchronize(); if (!this.ChildrenLoaded) return; if (!tblName) tblName =this.Table.ChildTables[0].Name; var tbl =this.Grid.Tables[tblName]; var tblSub =tbl.GetSubIdByParentKey(this.RelNames); if (tblSub) { return tblSub.GetRow(pos); }};pRow.GetChildRows =function(tblName){ if (!this.RowElement) return; if (!tblName &&this.Table.ChildTables.length ==0) return; this.Synchronize(); if (!this.ChildrenLoaded) return; if (!tblName) tblName =this.Table.ChildTables[0].Name; var tbl =this.Grid.Tables[tblName]; var tblSub =null;  if (typeof(this.RelNames)=="string") tblSub =tbl.GetSubIdByParentKey(this.RelNames); else { var hierRow =wgGetHierRecord(this.RowElement); var subId =hierRow.cells[hierRow.cells.length -1].children[0].children[0].children[0].subId; tblSub =tbl.GetSubIdById(subId); } if (tblSub) { var rows =new Array(); var rowCount =tblSub.GetRowsCount(); for (var i=0; i<rowCount; i++) { var _row =tblSub.GetRow(i); if (_row !=null) rows[rows.length] =_row; } return rows; }};pRow.GetParentRow =function(){ if (this.SubTable) { var el =this.SubTable.GetParentRecordRow(); if (this.Table.Parent.IsRootTable) { if (this.Table.Parent.GroupedColumns.length>0) return this.Table.Parent.ToRowObject(el); else return this.Table.Parent.GetRow(parseFloat(el.position)); } else { var parent =this.Table.Parent; var subtbl =parent.GetSubTableById(wg_getTableSubId(el)); var row =new WebGridRow(parent,subtbl); row.Setup(el); return row; } } return null;};pRow.GetGroupChildRows =function(){ var groupRows =new Array(); var tr =this.RowElement; if (this.Type =="GroupHeader") { var cr,crType; var tb; var _tbl =this.Table; if (!this.Table.IsRootTable) _tbl =this.SubTable; tb =_tbl.GetElement(WG40.BODY,WG40.HTMLTABLE); cr =wgGetNextRow(tb,tr); if (cr) crType =cr.type; else crType ="GroupHeader"; if (crType =="GroupHeader") { while (cr &&(cr.type =="GroupTotalRow" ||(cr.hasParent =='True' &&(parseFloat(cr.groupIndex)-1 ==parseFloat(tr.groupIndex)) &&cr.parentIndex ==tr.position))) { groupRows[groupRows.length] =this.Table.ToRowObject(cr); cr =wgGetNextRow(tb,cr); while (cr &&(cr.type =="Record" ||cr.type =="PR" ||cr.type =="CSRecord" ||(cr.type =="GroupTotalRow" &&parseFloat(cr.groupIndex)-1>parseFloat(tr.groupIndex)) ||cr.type =="HierRecord" ||(cr.type =="GroupHeader" &&parseFloat(cr.groupIndex)-1>parseFloat(tr.groupIndex)))) cr =wgGetNextRow(tb,cr); } } else if (crType =="Record") { while (cr &&(cr.type =='Record')) { groupRows[groupRows.length] =this.Table.ToRowObject(cr); cr =wgGetNextRow(tb,cr); } } return groupRows; } return null;};pRow.GetNextRow =function(){ var nextPos =this.Position +1; if (this.Table.IsRootTable) return this.Table.GetRow(nextPos); else return this.SubTable.GetRow(nextPos);};pRow.GetPreviousRow =function(){ var prevPos =this.Position -1; if (prevPos<0) return; if (this.Table.IsRootTable) return this.Table.GetRow(prevPos); else return this.SubTable.GetRow(prevPos);};pRow.Update =function(useSync){ var table =this.Table; var grid =table.Grid;  if (typeof (wgUpdateRow)=="undefined") { alert("WebGrid_Edit's library is not loaded. Make sure the grid has AllowEdit enabled."); return; } if (this._UIState =="Changed" &&grid.BindingOperationMode =="ClientBinding") { if (this.Cells !=null) { for (var i=0; i<this.Cells.length; i++) this.Cells[i].Setup(this.Cells[i].CellElement); } }  if (grid.LayoutSettings.AllowBatchUpdate) { if (this._UIState =="Changed") table.AddPendingChanges("Modified",this.RowElement,true,true); else if (this._UIState =="Added") table.AddPendingChanges("Added",this,true,true);  return; }  if (grid.IsClientBinding("ClientService")||grid.IsClientBinding("Client")) { if (grid.IsClientBinding("ClientService")) wgf1816.m2cf39(grid,this._UIState =="Changed" ? "ClientService_Update" : "ClientService_Insert",null,this);  return; }  if (useSync) this.Grid.XmlHttp.Asynchronous =false; if (this._UIState =="Changed") wgUpdateRow(this); else if (this._UIState =="Added") wgAddNewRow(this); this.Grid.XmlHttp.Asynchronous =true;};pRow.Delete =function(useSync){ var table =this.Table; var grid =table.Grid;  if (typeof (wgDeleteRow)=="undefined") { alert("WebGrid_Edit's library is not loaded. Make sure the grid has AllowEdit enabled."); return; } if (grid.LayoutSettings.AllowBatchUpdate) { table.AddPendingChanges("Deleted",this,true); return; } if (grid.IsClientBinding("ClientService")||grid.IsClientBinding("Client")) { if (grid.IsClientBinding("ClientService")) wgf1816.m2cf39(grid,"ClientService_Delete",null,this); return; } if (useSync) this.Grid.XmlHttp.Asynchronous =false; wgDeleteRow(this); this.Grid.XmlHttp.Asynchronous =true;};pRow.Validate =function(){ return wg2f128.mf2a19(this.Grid,this.RowElement);};pRow.IsDirty =function(){ return wgIsRowDirty(this.RowElement);};pRow.SetDataChanged =function(){ if (this.DataChanged) return; this.DataChanged =true; if (this._UIState =="Unchanged") { this._UIState ="Changed"; this.RowElement.setAttribute("dataChanged","True"); this.RowElement.setAttribute("_UIState","Changed"); }};pRow.IsMarkedEdit =function(){ return (this.RowElement.markedEdit =="True");};pRow.CancelChanges =function(){ return wg2f128.m01e94(this.RowElement);};pRow.AcceptChanges =function(){ return wg2f128.m69e45(this.RowElement);};pRow.BeginEdit =function(){ return wg2f128.m4c417(this.RowElement);};pRow.SetForceNoEdit =function(v){ if (typeof (v)=="undefined") v =true; if (v) { this.ForceNoEdit =true; this.RowElement.noEdit ="True"; } else { this.ForceNoEdit =false; this.RowElement.noEdit ="False"; this.RowElement.removeAttribute("noEdit"); }};pRow.Check =function(){ try { wg91c62.m99e75(this.RowElement,true); } catch (e) { }};pRow.Uncheck =function(){ try { wg91c62.m99e75(this.RowElement,false); } catch (e) { }};pRow.ExpandPreviewRow =function(){ if (!this.PreviewRowExpanded) wg91c62.mbab91(this.RowElement);};pRow.CollapsePreviewRow =function(){ if (this.PreviewRowExpanded) wg91c62.mbab91(this.RowElement);};pRow.ToXml =function(){ var keyValue =""; if (this.Table.HasMultiPrimaryKey) keyValue =ISXml.EncodeString(this.KeyValues); else keyValue =ISXml.EncodeString(this.KeyValue); var s ="<row keyValue=\"" +keyValue +"\">"; var cells =this.Cells; if (cells ==null) cells =this.GetCells(); for (var i=0; i<cells.length; i++) { if (cells[i]) s +=cells[i].ToXml(); } s +="</row>"; return s;};pRow.GetSelfRefChildRows =function(){ var rows =new Array(); var tr =this.GetElement(); var cr =null; var tb =this.Table.GetElement(WG40.BODY,WG40.HTMLTABLE,tr);  if (this.SelfRefChildCount >-1) { cr =wgGetNextRow(tb,tr); var outFromLevel =false; var alreadyIn =false; var isExpAll =false; var trLevel =this.SelfRefLevel; while (cr) { wg4a378.mb6b61(cr); if (cr.type =="GroupHeader" ||(cr.srLevel ==trLevel &&(cr.type !="HierRecord" &&cr.type !="CSRecord" &&cr.type !="PR"))) break; if ((!isExpAll &&cr.srLevel ==trLevel +1)) { if (cr.type =="HierRecord" &&cr.expanded !="True") { } else { var row =this.Table.ToRowObject(cr); rows.push(row); } alreadyIn =true; } else if (cr.srLevel ==trLevel) { if (alreadyIn) outFromLevel =true; } if (outFromLevel) break; cr =wgGetNextRow(tb,cr); } }  return rows;};pRow =null;function WebGridRowLayout(){ this._Type ="WebGridRowLayout"; ISObject.call(this); this.Name =""; this.Row =0; this.Col =0; this.ColumnMember =""; this.Width =100; this.Height =20; this.Spanned ="None"; this.Column =null; this.RowSpan =1; this.ColSpan =1; this.Collection =new ISArray();}function IWebGridPersistence(){ this.Type ="IWebGridPersistence"; ISObject.call(this);  this.Remove =function(){}; this.Add =function(){}; this.Contains =function(){}; this.IndexOf =function(){}; this.SerializeToXml =function(){}; this.Deserialize =function(){}; this.RefreshUI =function(){}; this.Clear =function(){};}function WebGridClientStorage(){ this._Type ="WebGridClientStorage"; this.Grid =null; this.Table =null;  ISObject.call(this);  this.SelectedRows =new IWebGridPersistence(); this.PendingChanges =new IWebGridPersistence(); this.ExpandedChildRows =new IWebGridPersistence();  this.Initialize =function() { if (typeof(WebGridPersistedRows)!="undefined") { this.SelectedRows =new WebGridPersistedRows(); this.SelectedRows.Table =this.Table; }  if (typeof(WebGridPersistedChildRows)!="undefined") { this.ExpandedChildRows =new WebGridPersistedChildRows(); this.ExpandedChildRows.Table =this.Table; }  if (typeof(WebGridBatchPendingChanges)!="undefined") { this.PendingChanges =new WebGridBatchPendingChanges(); this.PendingChanges.Table =this.Table; } };  this.Clear =function() { this.SelectedRows.Clear(); };  this.SerializeToXml =function(v4f08) { var vf9878 =this.Grid.XmlDt; var v15540 =this.Table.XmlNode; var vabd97 =ISXml.CreateNodeOnly(vf9878,"Table",""); var v3e782 =false;  ISXml.SetAttribute(vabd97,"Name",this.Table.Name);  var vf0653 =this.SelectedRows.SerializeToXml(); if (vf0653 !=null) { v3e782 =true; vabd97.appendChild(vf0653); }  var v37382 =this.ExpandedChildRows.SerializeToXml(); if (v37382 !=null) { v3e782 =true; vabd97.appendChild(v37382); }  if (v4f08 ==1 ||v4f08 ==2 ||v4f08 ==3 ||this.Grid.LastAction =="BatchUpdate") {  var v6ed43 =this.PendingChanges.SerializeToXml(); if (v6ed43 !=null) { v3e782 =true; vabd97.appendChild(v6ed43); } }  if (v3e782) return vabd97; else return null; };  this.Deserialize =function(vb478) { var v45340 =ISXml.GetNode(vb478,"SelectedRows"); var v26338 =ISXml.GetNode(vb478,"ChildRows"); var vad365 =ISXml.GetNode(vb478,"PendingChanges");  if (v45340 !=null) { this.SelectedRows.Deserialize(v45340); this.SelectedRows.RefreshUI(); }  if (v26338 !=null) { this.ExpandedChildRows.Deserialize(v26338); }  if (vad365 !=null) { this.PendingChanges.Deserialize(vad365);  if (this.Table.IsRootTable) this.PendingChanges.RefreshUI();  this.Grid.UpdatePendingChangesStatus(); } };  this.RefreshUI =function(v43544) { this.SelectedRows.RefreshUI(v43544); this.ExpandedChildRows.RefreshUI(v43544); this.PendingChanges.RefreshUI(v43544); };}function WebGridTable(){ this._Type ="WebGridTable"; ISObject.call(this); this.Name =""; this.Grid =null; this.IsRootTable =false; this.ParentTable =null; this.HasChildTable =false; this.TableLevel =null; this.Position =null; this.AllowAddNew ="Default"; this.ButtonStyle =null; this.AllowColumnSizing ="Default"; this.AllowColumnMove ="Default"; this.AllowEdit ="Default"; this.AllowDelete ="Default"; this.AllowFilter ="Default"; this.AllowSelectColumns ="Default"; this.AllowSorting ="Default"; this.AllowGrouping ="Default"; this.AutomaticSort =true; this.AutomaticFilter =true; this.CellClickAction ="NotSet"; this.CellPaddingDefault =-1; this.CellSpacingDefault =-1; this.ColumnHeaders ="Default"; this.ColumnFooters ="Default"; this.ColumnWidthDefault =100; this.GridLines ="Default"; this.GridLineColor =""; this.GridLineStyle =null; this.HeaderClickAction ="NotSet"; this.GroupRowInfoFormatDefault =""; this.GroupRowInfoStyle =null; this.RowHeaders ="Default"; this.FocusCellStyle =new FocusStyle(); this.Caption =""; this.DataKeyField =""; this.DataMember =""; this.CaptionImage =""; this.NewRowInfoText =""; this.GroupMode ="Collapsed"; this.RowStyle =null; this.SelectedRowStyle =null; this.HeaderStyle =null; this.FooterStyle =null; this.RowHeaderWidth =-1; this.RowHeightDefault =null; this.HideColumnsWhenGrouped ="Default"; this.NewRowStyle =null; this.ChildTables =new ISArray(); this.Layout =null; this.Columns =new ISArray(); this.Rows =null; this.TableHeaderStyle =null; this.TableHeaderVisible =false; this.GroupTotalVisible =false; this.GroupTotalStyle =null; this.GroupedColumns =new ISArray(); this.SortedColumns =new ISArray(); this.FilteredColumns =new ISArray(); this.RowLayout ="PlainColumn"; this.PreviewRowSettings =new PreviewRowSettings(); this.PreviewRowVisible =false; this.ColumnSets =new ISArray(); this.FormatConditions =null; this.ColumnSetSettings =new ColumnSetSettings(); this.SelfReferencingSettings =new SelfReferencingSettings(); this.IsUseColumnSet =false; this.SelectedRowClass =""; this.CheckedRowClass =""; this.HasMultiPrimaryKey =false; this.DataKeyFields =""; this.DataKeyFieldsCount =0; this.Id ="";  this.SubTableIds =new Array(); this.Formulas =new Array(); this.GridId =""; this.FilterMenu =null; this.FilterMenus =null; this.ColumnMenu =null; this.LastFo =null; this.LastAECIndex =-1; this.IsEditing =false; this.IsAdding =false; this.SubTableUpdates =new Array(); this.UniqueConstraints =""; this.FilterState ="NotSet";  this._LastFilters =new ISArray(); this.UseValueListForSorting ="No";  this.SelectedRows =new Array(); this.AllowMultipleSelection ="Default"; this.Storage =new WebGridClientStorage();  this.NewRowTemplate =""; this.HeaderTemplate =""; this.FilterTemplate =""; this.FooterTemplate =""; this.LastRowPosition =-1; this.UniqueKeySeed =0; this.HtmlTemplate =null; this.GroupTotalClass =""; this.IsFilterDisabled =function() { if (this.FilteredColumns.length ==0 ||this.FilterState =="Disabled") return true;  return false; };  this.GetGrid =function() { if (this.Grid ==null) { var vb0c80 =this; do { vb0c80 =vb0c80.Parent; if (vb0c80 &&vb0c80.GetType()=="WebGrid") { this.Grid =vb0c80; break; } }while (vb0c80 !=null); } return this.Grid; }; this.OnPropertiesInitialized =function() { var v6c647 =this.GetGrid(); v6c647.Tables[this.Name] =this; this.Id =this.Name; this.GridId =this.Grid.Id; this.Layout =v6c647.LayoutSettings; this.Storage.Grid =v6c647; this.Storage.Table =this; this.Storage.SelectedRows.Table =this;  if (this.Get("AllowAddNew")=="Yes" ||v6c647.BindingOperationMode =="ClientBinding") { var v04071 =ISXml.GetNode(this.XmlNode,"NewRowTemplate"); var v22e33 =ISXml.GetNode(this.XmlNode,"HeaderTemplate"); var ve3641 =ISXml.GetNode(this.XmlNode,"FilterTemplate"); var v5692 =ISXml.GetNode(this.XmlNode,"FooterTemplate");  if (v04071 !=null) { this.NewRowTemplate =v04071.text; this.XmlNode.removeChild(v04071); }  if (v22e33 !=null) { this.HeaderTemplate =v22e33.text; this.XmlNode.removeChild(v22e33); } if (ve3641 !=null) { this.FilterTemplate =ve3641.text; this.XmlNode.removeChild(ve3641); } if (v5692 !=null) { this.FooterTemplate =v5692.text; this.XmlNode.removeChild(v5692); } }  if (this.VirtualIdentity !="") this.VirtualIdentity =ISJsonEngine.Parse(this.VirtualIdentity); }; this.GetDefault =function(v2b80) { if (this[v2b80] =="Default" ||this[v2b80] =="NotSet" ||this[v2b80] =="" ||this[v2b80] ==-1) return this.Grid.LayoutSettings[v2b80]; else return this[v2b80]; }; this.__getter =function(v2b80) { switch (v2b80) { case "CellClickAction": case "AllowSelectColumns": case "AllowColumnSizing": case "AllowColumnMove": case "AllowSorting": case "AllowGrouping": case "ColumnFooters": case "AllowAddNew": case "AllowEdit": case "AllowDelete": case "HideColumnsWhenGrouped": case "HeaderClickAction": case "SelectedRowClass": case "RowHeaders": case "RowHeaderWidth": case "AllowMultipleSelection": return this.GetDefault(v2b80); break; case "AllowFilter": if (this.IsRootTable) return this.GetDefault(v2b80); else return this.AllowFilter; break; } };  this.OnUnload =function() { if (this.FilterMenu !=null) this.FilterMenu.Destroy();  if (this.ColumnMenu !=null) this.ColumnMenu.Destroy(); }; this.HasNextSiblingGroupedColumns =function() { if (this.IsRootTable) return false; var vb1b78 =parseFloat(this.Position); var va4f16 =this.GetParentTables(); if (vb1b78>=va4f16.length -1) return false; for (var v99381=vb1b78 +1; v99381<va4f16.length; v99381++) { var vf9254 =va4f16[v99381]; if (parseFloat(vf9254.GroupedColumns.length)>0) return true; } return false; }; this.HasChildTableGroupedColumns =function() { var vb2e25 =this.GetChildTables(); for (var v99381=0; v99381<vb2e25.length; v99381++) { if (vb2e25[v99381].GroupedColumns.length>0) return true; if (vb2e25[v99381].HasChildTableGroupedColumns()) return true; } return false; }; this.GetParentTables =function() { var v20a66 =new Array(); for (table in this.Grid.Tables) { var vd392 =this.Grid.Tables[table]; if (typeof (vd392)!="function" &&!vd392.IsRootTable) { if (vd392.Parent.Name ==this.Parent.Name) v20a66[v20a66.length] =vd392; } } return v20a66; }; this.GetChildTables =function() { var vb2e25 =new Array(); for (table in this.Grid.Tables) { var vd392 =this.Grid.Tables[table]; if (typeof (vd392)!="function" &&vd392.Parent.Name ==this.Name) vb2e25[vb2e25.length] =vd392; } return vb2e25; }; this.GetParentTreeStructure =function() { var v5d314 =this.Parent.Name; var v55d96 =new Array(); while (v5d314 !="") { var vc4836 =this.Grid.Tables[v5d314]; if (!vc4836) return v55d96; if (vc4836.HasNextSiblingGroupedColumns()) v55d96[v55d96.length] ="Continuos"; else v55d96[v55d96.length] ="Last"; var v5d314 =vc4836.Parent.Name; if (v5d314 !="" &&vc4836.IsRootTable) break; } v55d96.reverse(); return v55d96; }; this.GetColumnGroupHeadersWidth =function() { var vf7964 =0; if (!this.IsRootTable &&this.Parent.Get("RowHeaders")=="Yes") { vf7964 +=26; } vf7964 +=(this.GroupedColumns.length *16); if (this.Grid.LayoutSettings.Hierarchical) vf7964 +=22; if (this.Get("RowHeaders")=="Yes") vf7964 +=parseInt(this.Get("RowHeaderWidth")); if (this.IsPreviewRowVisible &&this.PreviewRowSettings.Expandable) vf7964 +=parseInt(this.Get("RowHeaderWidth")); return vf7964; }; this.GetParentHeadersWidth =function() { var v1d54 =this; var vf7964 =0; while (v1d54) { var v91a91 =null; if (!v1d54.IsRootTable) v91a91 =v1d54.Parent.Name; var vc4836; if (v91a91 !="" &&v91a91) { vc4836 =this.Grid.Tables[v91a91]; vf7964 +=vc4836.GetColumnGroupHeadersWidth(); if (vc4836.Get("RowHeaders")=="Yes") vf7964 -=parseInt(this.Get("RowHeaderWidth")); v1d54 =vc4836; } else v1d54 =null; } return vf7964; }; this.GetElement =function(v74456,v29f89,v58147) { if (v74456 ==WG40.COLHEADER ||v74456 ==WG40.COLFOOTER ||v74456 ==WG40.BODY) { if (v29f89 ==WG40.HTMLDIV) { if (this.IsRootTable) return document.getElementById(v29f89 +v74456 +"_" +this.Grid.Id +"_" +this.Id); else return document.getElementById(v29f89 +v74456 +"_" +this.Grid.Id +"_" +this.Id +"_" +wg4a378.mad49(v58147)); } else { if (v74456 ==WG40.COLHEADER &&this.Grid.EnableSection508Standards) return this.GetElement(WG40.BODY,WG40.HTMLTABLE,v58147);  var vafb56 =this.GetElement(v74456,WG40.HTMLDIV,v58147); return vafb56.childNodes[0]; } } else { var v9436; if (v74456 ==WG40.COLGROUP) v9436 =this.GetElement(WG40.BODY,WG40.HTMLTABLE,v58147); else if (v74456 ==WG40.COLHEADERGROUP) v9436 =this.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v58147); else if (v74456 ==WG40.COLFOOTERGROUP) v9436 =this.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE,v58147); return v9436.childNodes[0]; } }; this.GetFilterRow =function(v58147) { if (!this.IsRootTable) return this.Grid.RootTable.GetFilterRow(); var v1f134 =this.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v58147); for (var v99381=0; v99381<v1f134.rows.length; v99381++) { wg4a378.mb6b61(v1f134.rows[v99381]); if (v1f134.rows[v99381].type &&v1f134.rows[v99381].type =="FilterRow") return v1f134.rows[v99381]; } return null; }; this.GetNewRow =function(v58147) { var v1f134 =this.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v58147); for (var v99381=0; v99381<v1f134.rows.length; v99381++) { wg4a378.mb6b61(v1f134.rows[v99381]); if (v1f134.rows[v99381].type &&v1f134.rows[v99381].type =="NewRow") return v1f134.rows[v99381]; } return null; }; this.GetSubTablePosById =function(vc9330) { for (var v99381=0; v99381<this.SubTableIds.length; v99381++) { if (this.SubTableIds[v99381].SubId ==vc9330) return v99381; } return -1; }; this.GetMaxWidth =function() { var vf0a25 =0; if (this.SubTableIds) { for (var v99381=0; v99381<this.SubTableIds.length; v99381++) { var va095 =this.SubTableIds[v99381]; vf0a25 =Math.max(vf0a25,va095.Width); } } return vf0a25; }; this.GetContainer =function(v68820) { var v1f134 =wg4a378.m33a20(v68820); var v5da38 =wg4a378.m35b51(v1f134,2); return v5da38; }; this.SelectRow =function(vd392,v53516) { var v58147; var vefc90 =null; if (typeof (vd392)=="number") { if (this.Grid.EnableSection508Standards) { var v9a328 =this.GetRow(vd392);  if (v9a328 !=null) v58147 =v9a328.GetElement();  if (v58147 ==null) return; } else v58147 =this.GetElement(WG40.BODY,WG40.HTMLTABLE).rows[vd392]; } else v58147 =vd392;  wg4a378.mb6b61(v58147); if (wgIsRecordRow(v58147)||v58147.type =="FilterRow") vefc90 =wgGetCellByPosition(v58147,0); else if (v58147.type =="NewRow") vefc90 =v58147.cells[v58147.cells.length -1]; if (vefc90) { wgdee10.ma3d97(vefc90);  if (!v53516) vefc90.focus(); } }; this.GetSelRowStyle =function() { var v6f615 =this.Get("SelectedRowClass"); return IS.GetCssText(this.Grid.Id,v6f615); }; this.GetFocusCellStyle =function() { if (this.FocusCellStyle.BorderStyle =="NotSet") return this.Grid.LayoutSettings.FocusCellStyle.GetStyleText(); else return this.FocusCellStyle.GetStyleText(); }; this.GetCheckedRowStyle =function() { var vc0912 =this.CheckedRowClass; if (vc0912 =="") vc0912 =this.Grid.LayoutSettings.CheckedRowClass; if (vc0912 =="") return ""; return IS.GetCssText(this.Grid.Id,vc0912); }; this.GetColumn =function(vf2a86) { var v28132 =this.Columns.GetNamedItem(vf2a86);  if (v28132 ==null) { for (var v99381=0; v99381<this.Columns.length; v99381++) { if (this.Columns[v99381].DataMember ==vf2a86) { v28132 =this.Columns[v99381]; break; } } }  return v28132; }; this.IsFilterRowVisible =function() { var v0db64 =this.GetFilterRow(); return (v0db64.style.display ==""); }; this.GetFilterEditType =function(vff05) { return this.GetColumn(vff05).GetFilterEditType(); }; this.GetRowCheckerColumn =function() { var vb4857 =this.Columns; var v3c859 =""; for (var v99381=0; v99381<vb4857.length; v99381++) { if (vb4857[v99381].IsRowChecker) { v3c859 =vb4857[v99381].Name; break; } } return v3c859; };  this.AddSelectedRow =function(v68820,v57536) { if (!v68820.isRowChecked) { v68820.isRowChecked =true;  if (v57536) wgdee10.m4f150(v68820,"Clear");  this.SelectedRows.push(v68820); } };  this.SelectedRowsContain =function(v68820) { if (v68820 ==null ||!v68820) return false;  if (this.SelectedRows !=null) { for (var v99381=0; v99381<this.SelectedRows.length; v99381++) { if (this.SelectedRows[v99381] ==v68820) return true; } }  return false; };  this.RemoveSelectedRow =function(v68820,v30d15) { var vf4b62 =this.GetCheckedRows();  for (var v99381=0; v99381<vf4b62.length; v99381++) { if (vf4b62[v99381] ==v68820) { v68820.isRowChecked =false; vf4b62.splice(v99381,1);  if (v30d15) wgdee10.m56d38(v68820,"","","Clear");  return; } } };  this.ClearSelectedRows =function() { this.SelectedRows =null; this.SelectedRows =new Array(); }; this.GetCheckedRows =function(vd8316) { var vef592 =this.GetRowCheckerColumn(); if (this.Get("AllowMultipleSelection")=="Yes" &&!vd8316) { if (!vef592 ||(vef592 &&this.SelectedRows.length >0)) return this.SelectedRows; }  if (vef592) { var v10a44 =new Array(); var v33a10 =new Array(); if (this.IsRootTable) { v33a10[0] =this.GetElement(WG40.BODY,WG40.HTMLTABLE); } else { for (var v99381=0; v99381<this.SubTableIds.length; v99381++) { v33a10[v33a10.length] =this.SubTableIds[v99381].GetElement(WG40.BODY,WG40.HTMLTABLE); } } for (var vd8075=0; vd8075<v33a10.length; vd8075++) { var v1f134 =v33a10[vd8075]; for (var v99381=0; v99381<v1f134.rows.length; v99381++) { if (IS.moz) wg4a378.mb6b61(v1f134.rows[v99381]); if (v1f134.rows[v99381].type =="Record") { if (!vd8316) { if (v1f134.rows[v99381].isRowChecked) v10a44[v10a44.length] =v1f134.rows[v99381]; } else { var v01049 =wgGetCellByName(v1f134.rows[v99381],vef592); var vc5985 =v01049.getElementsByTagName("INPUT")[0];  if (vc5985.checked) v10a44[v10a44.length] =v1f134.rows[v99381]; } } } } return v10a44; } }; this.GetAutoWidthColumn =function() { var vb4857 =this.Columns; for (var v99381=0; v99381<vb4857.length; v99381++) { var vd102 =vb4857[v99381]; if (vd102.IsAutoWidth) return vd102; } return null; }; this.GetSubTableById =function(vc9330) { for (var v99381=0; v99381<this.SubTableIds.length; v99381++) { if (this.SubTableIds[v99381].SubId ==vc9330) return this.SubTableIds[v99381]; } return null; }; this.GetColNameByRowLayout =function(v75236,v70533,vc0912) { var v4a476 =this.ColumnSets[parseFloat(v75236)]; var vad579 =null; for (var v99381=0; v99381<v4a476.Layout.length; v99381++) { var v06e27 =v4a476.Layout[v99381]; if (v06e27.Row ==v70533 &&v06e27.Col ==vc0912) { vad579 =v06e27; break; } } if (vad579) return vad579.ColumnMember; return null; }; this.GetRowLayoutByColName =function(vc4191) { var vd4e96 =this.ColumnSets; for (var v99381=0; v99381<vd4e96.length; v99381++) { var v4a476 =vd4e96[v99381]; for (var vd8075=0; vd8075<v4a476.Layout.length; vd8075++) { if (v4a476.Layout[vd8075].ColumnMember ==vc4191) return v4a476.Layout[vd8075]; } } return null; }; this.GetRowLayoutByIndex =function(vce291,v70533,vc0912) { var v4a476 =this.ColumnSets[vce291]; for (var v99381=0; v99381<v4a476.Layout.length; v99381++) { var v06e27 =v4a476.Layout[v99381]; if (v06e27.Row ==v70533 &&v06e27.Col ==vc0912) return v06e27; } return null; }; this.GetColHeaderSpanCount =function() { var vff751 =0; if (!this.IsRootTable) vff751++; vff751 +=this.GroupedColumns.length; if (this.Layout.Hierarchical) vff751++; if (this.Layout.RowHeaders =="Yes") vff751++; if (this.PreviewRowVisible &&this.PreviewRowSettings.Expandable) vff751++; return vff751; }; this.GetCSCellPosByIndex =function(v4a476,v70533,vc0912,v6c030) { var vd4e96 =this.ColumnSets; var vff751 =0; for (var v99381=0; v99381<v4a476; v99381++) { var ve1e25 =vd4e96[v99381]; if (ve1e25.Visible) vff751 +=parseInt(ve1e25.ColumnCount); } if (v6c030) { var v06e27 =this.GetRowLayoutByIndex(v4a476,v70533,vc0912); var va6883 =v06e27.ColSpan; if (va6883 &&parseInt(va6883)>1) vff751 +=parseInt(va6883)-1; } return vff751 +parseInt(vc0912); }; this.GetCSHeaderCellPosByIndex =function(v2e398) { var vd4e96 =this.ColumnSets; var vff751 =0; var v4a476 =v2e398.pos; for (var v99381=0; v99381<v4a476; v99381++) { var ve1e25 =vd4e96[v99381]; if (ve1e25.Visible) vff751 +=parseInt(ve1e25.ColumnCount); } return vff751; }; this.GetCSHeaderWidth =function(vce291) { var v4a476 =this.ColumnSets[vce291]; var vf7964 =0; for (var v99381=0; v99381<v4a476.ColumnCount; v99381++) { var v06e27 =this.GetRowLayoutByIndex(vce291,0,v99381); vf7964 +=parseInt(v06e27.Width); } return vf7964; }; this.GetColumnSetByPos =function(vce291) { return this.ColumnSets[vce291]; }; this.UpdateRowLayoutWidth =function(v77a57,vc0912,vf7964) { var v4a476 =this.GetColumnSetByPos(v77a57); var v9ef97 =v4a476.Layout; for (var v99381=0; v99381<v9ef97.length; v99381++) { var v06e27 =v9ef97[v99381]; if (v06e27.Col ==vc0912) { v06e27.Set("Width",vf7964,true); } } }; this.GetParentRow =function(v68820) { var v58147; try { var v1f134 =wg4a378.m33a20(v68820); var v06f49 =wg4a378.m35b51(v1f134,4); v1f134 =wg4a378.m33a20(v06f49); v58147 =wgGetPreviousRow(v1f134,v06f49); v58147 =wgGetRootRow(v58147); } catch (e) { v58147 =null; } ; return v58147; }; this.GetRecursiveParentRowPosition =function(v68820) { var v06f49 =this.GetParentRow(v68820); var v0f784 =wg91c62.m23e1(v06f49); var vc5810 =""; while (v06f49 !=null) { wg4a378.mb6b61(v06f49); vc5810 +=v06f49.position +"_"; v06f49 =this.GetParentRow(v06f49); if (!v06f49 ||!v06f49.type) v06f49 =null; } if (vc5810 !="") vc5810 =vc5810.substring(0,vc5810.length -1); if (v0f784 !="") vc5810 +="_" +v0f784; return vc5810; }; this.CreateFormula =function(v3c859,v6b169) { var v56532 =false; for (var v99381=0; v99381<this.Formulas.length; v99381++) { if (this.Formulas[v99381].colName ==v3c859) { v56532 =true; break; } } if (!v56532) { this.Formulas[this.Formulas.length] =new wgFormula(this.GridId,this.Id,v3c859,v6b169); } else { alert("The formula for column '" +v3c859 +"' is already exist."); } }; this.Refresh =function() { if (this.IsRootTable) this.GetGrid().Refresh(); else wg4a378.m71658(this.GetGrid().Name,"ChildTableRefresh",this.Id); }; this.GetDataKeyFieldsCount =function() { return this.DataKeyFieldsCount; }; this.GetTableElementRowsCount =function(v73826) { var v2e398 =this.GetElement(WG40.BODY,WG40.HTMLTABLE,v73826); if (v2e398) return v2e398.rows.length; }; this.GetRowsCount =function() { var vff751 =this.GetTableElementRowsCount(); var v3d955 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var v6c647 =this.Grid;  if (vff751 ==0) return 0; var v58147 =v3d955.rows[vff751 -1]; var v66d72 =v58147; if (v6c647.LayoutSettings.AllowBatchUpdate) { var v2ba93 =this.GetChanges("Added");  if (v2ba93.length >0 &&v2ba93[0].Element !=null) v58147 =v3d955.rows[v2ba93[0].Element.rowIndex -1]; }  if (!v58147) v58147 =v66d72; var vffd3 =wgGetRootRow(v58147); var vff751 =0; if (this.GroupedColumns.length ==0) vff751 =parseFloat(vffd3.position)+1; else vff751 =parseFloat(vffd3.recordIndex)+1;  if (isNaN(vff751)) vff751 =0;  return vff751; }; this.ToRowObject =function(v58147) { var v8b352 =null;  if (this.Grid.BindingOperationMode =="ClientBinding") v8b352 =this.GetRowByElement(v58147);  if (v8b352 ==null) { v8b352 =new WebGridRow(this); v8b352.Setup(v58147); } if (!this.IsRootTable) { var vfc524 =wg4a378.mad49(v58147); v8b352.SubTable =this.GetSubTableById(vfc524); } return v8b352; };  this.GetRowByElement =function(v2e398) { if (this.Rows ==null) return;  var vad579 =wg4a378.m7b457(v2e398,this.Rows);  if (vad579) return vad579;  return null; }; this.GetRow =function(vce291) { if (this.IsRootTable) { if (this.Grid.BindingOperationMode =="ClientBinding") { var vf4b62 =this.UngroupedRows;  if (vf4b62 ==null) vf4b62 =this.Rows;  if (vf4b62 ==null) return null;  return vf4b62[vce291]; } else { var v3d955 =null;  if (this._tableCache) v3d955 =this._tableCache; else { v3d955 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); this._tableCache =v3d955; }  var v58147 =wgGetRowByPositionExact(v3d955,vce291,vce291);  if (!v58147 &&this.GroupedColumns.length >0) v58147 =wgGetRowByPositionExact(v3d955,vce291,vce291,false,true); if (!v58147) return null; var v8b352 =new WebGridRow(this); v8b352.Setup(v58147); return v8b352; } } return null; }; this.GetRowByKeyValue =function(v50423) { if (this.IsRootTable) { var v3d955 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var v58147 =null; for (var v99381=0; v99381<v3d955.rows.length; v99381++) { var v70533 =v3d955.rows[v99381]; wg4a378.mb6b61(v70533); if (wgIsRecordRow(v70533)&&v70533.keyValue ==v50423) { v58147 =v70533; break; } } if (!v58147) return null; var v8b352 =new WebGridRow(this); v8b352.Setup(v58147); return v8b352; } else { var v58147 =null; for (var v99381=0; v99381<this.SubTableIds.length; v99381++) { var va095 =this.SubTableIds[v99381]; var v70533 =va095.GetRowByKeyValue(v50423); if (v70533) return v70533; } } return null; }; this.GetRowByGroup =function(v18d7,vcb827,ve6676) { if (this.IsRootTable) { var v3d955 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var v58147 =wgGetRowByGroup(v3d955,v18d7,vcb827,ve6676); if (!v58147) return null; var v8b352 =new WebGridRow(this); v8b352.Setup(v58147); return v8b352; } }; this.GetSubIdByParentKey =function(v23498) { for (var v99381=0; v99381<this.SubTableIds.length; v99381++) { if (this.SubTableIds[v99381].RelNames ==v23498) return this.SubTableIds[v99381]; } }; this.GetSubIdById =function(vc9330) { for (var v99381=0; v99381<this.SubTableIds.length; v99381++) { if (this.SubTableIds[v99381].SubId ==vc9330) return this.SubTableIds[v99381]; } };  this.NewRow =function(v58b54) { var v58147 =new WebGridRow(this,v58b54); var vc9815 =new ISArray(); for (var v99381=0; v99381<this.Columns.length; v99381++) { var vefc90 =new WebGridCell(v58147); vefc90.Name =this.Columns[v99381].Name; vefc90.Column =this.Columns[v99381]; vc9815[vc9815.length] =vefc90; } v58147.Cells =vc9815; v58147._UIState ="Added"; v58147.Grid =this.Grid; return v58147; }; this.GetSelfRefParent =function(v68820) { var v1f134 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); return wg91c62.m9ff85(v1f134,v68820); }; this.GetGroupRows =function() { var v1f134 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var v68820 =v1f134.rows[0]; var v68897 =v68820; var vf4b62 =new Array(); if (v1f134.rows.length ==0) return null; while (v68897) { if (v68897.type =="GroupHeader" &&v68897.groupIndex =="0") { var v70533 =this.ToRowObject(v68897); vf4b62[vf4b62.length] =v70533; } v68897 =wgGetNextRow(v1f134,v68897); } return vf4b62; };  this.UpdateUI =function() { wg91c62.mb1c98(this); }; this.IsColumnSetHeaderVisible =function() { var v8901 =this.ColumnSetSettings.ShowHeaders; if (v8901 =="Default") v8901 =this.Layout.ColumnSetHeaders; return v8901 =="Yes"; };  this.GotoFilterRow =function() { var v73826 =this.GetFilterRow(); var v58147 =wg4a378.mbe051(v73826);  v58147.Select(); };  this.GotoNewRow =function(v1ba73) { var v73826 =this.GetNewRow(v1ba73); var v58147 =wg4a378.mbe051(v73826);  v58147.Select(); }; this.SetFilterStatus =function(vc5257) { wg91c62.m53878(this,vc5257); };  this.GetVisibleColumnNames =function() { var vfb816 =new Array();  for (var v99381=0; v99381<this.Columns.length; v99381++) { if (this.Columns[v99381].Visible) vfb816.push(this.Columns[v99381].Name); }  return vfb816; };}function WebGridTextItem(){ this._Type ="WebGridTextItem"; ISObject.call(this); this.Name =""; this.TextItem =""; this.TextValue =""; this.Collection =new ISArray();}function WebComboEditor(){ this._Type ="WebComboEditor"; ISObject.call(this); this.Id ="";}function BrowserPrintSettings(){ this._Type ="BrowserPrintSettings"; ISObject.call(this); this.GridLayout ="AsDisplayedInBrowser"; this.PrintStatusBar =true;}function wgGetActiveGrid(){ return wg_Global.ActiveGrid;}function wgGetGridById(vfb593){ return ISGetObject(vfb593);}function wg_getGridNameByRow(v90893){ return wg4a378.mb5458(v90893);}function wg_getTableNameByRow(v9cd29){ return wg4a378.m97d49(v9cd29);}function wg_getTableSubId(v60f29){ return wg4a378.mad49(v60f29);}function wg_getTable(vf7d29){ return wg4a378.m33a20(vf7d29);}function wgGetTable(v3ac29){ return wg4a378.m33a20(v3ac29);}function wgDoResize(v2e429,v21244){ if (!v2e429) wg4a378.m04523(); else wg4a378.m48158(v21244);}function wgMouseCoord(v18a12,v9bc84){ this.x =v18a12; this.y =v9bc84; return this;}function wgHeaderInfo(){ this.AllowLeftInsert =false; this.AllowRightInsert =false; this.PosLeft =0; this.PosRight =0; this.Type =null; this.Element =null; this.ProperPosition =null; this.PosTop =0; return this;}function wgFormula(v72e79,v4e421,v1fa71,vc0467){ this.isValid =true; this.nonValidMsg =null; this.colName =v1fa71; this.gridId =v72e79; this.tblName =v4e421; this.formula =vc0467; this.affectedColumns =new Array(); this.skipErrorMessage =false; this.table =null; this.valueOnError =0; var va8312 =vc0467.indexOf("["); var v4c384 =0; while (va8312>=0) { v4c384 =vc0467.indexOf("]",va8312); this.affectedColumns[this.affectedColumns.length] =vc0467.substring(va8312 +1,v4c384); va8312 =vc0467.indexOf("[",v4c384); } this.table =ISGetObject(this.gridId).Tables[this.tblName]; for (var v6a765=0; v6a765<this.affectedColumns.length; v6a765++) { var vf6f58 =this.table.GetColumn(this.affectedColumns[v6a765]); if (!vf6f58 ||!vf6f58.Visible) { this.isValid =false; break; } } this.GetResult =function(vf4698) { if (this.isValid) { var ve0139 =this.formula; for (var v6a765=0; v6a765<this.affectedColumns.length; v6a765++) { var v75e70 =wgGetCellByName(vf4698,this.affectedColumns[v6a765]); var vf6f58 =this.table.GetColumn(wgGetColNameByCell(v75e70)); var v94f67 =v75e70.innerText; if (vf6f58.DataFormat !="") v94f67 =wgGetUnMask(ISGetObject(this.gridId),vf6f58,v75e70); ve0139 =ve0139.replace(new RegExp(this.affectedColumns[v6a765],"g"),v94f67); } ve0139 =ve0139.replace(/[\[\]]/g,""); var v2cb70; try { v2cb70 =eval(ve0139); } catch (e) { v2cb70 =this.valueOnError; } return v2cb70; } else { if (!this.skipErrorMessage) alert("Formula is not valid because one of the specified column is not exist or not visible."); } return null; }; this.ProcessResult =function(vf4698,v1c531) { if (this.IsCellAccounted(v1c531)) { var v2cb70 =this.GetResult(vf4698); var v75e70 =wgGetCellByName(vf4698,this.colName); var vf6f58 =this.table.GetColumn(wgGetColNameByCell(v75e70)); if (vf6f58.DataFormat !="") { v75e70.cellValue =v2cb70; v75e70.innerText =wgGetMask(ISGetObject(this.gridId),null,String(v2cb70),this.table,v75e70); } } }; this.IsCellAccounted =function(v1c531) { var v1fa71 =wgGetColNameByCell(v1c531); for (var v6a765=0; v6a765<this.affectedColumns.length; v6a765++) { if (v1fa71 ==this.affectedColumns[v6a765]) return true; } return false; }; return this;}function wgGetChildTableByRow(v48a89,va3f79){ var v89f18 =wg4a378.m33a20(v48a89); var vbba40 =wgGetNextRow(v89f18,v48a89); var veb955 =vbba40.cells[vbba40.cells.length -1]; var vc2b91 =veb955.childNodes[0]; var v5144 =document.getElementById("dvTB_" +vc2b91.gridId +"_" +va3f79 +"_" +vc2b91.subId).childNodes[0]; return v5144;}function wgMoveColArgs(v7149,v2c389,v25658,vc5b35,v48648,v3ca23){ this.table =v7149; this.c1 =v2c389; this.c2 =v25658; this.tr =vc5b35; this.cdt =v48648; this.th =v3ca23; return this;}function wgShowHelp(vb6c48){ var ve0464 =ISGetObject(vb6c48); var vd2268 =ve0464.LayoutSettings.HelpURL; if (vd2268 =="")
 vd2268 ="http://www.intersoftpt.com/WebGrid/Help.aspx";
 window.open(vd2268,null,"toolbar=no, menubar=no, scrollbars=yes, resizable=yes");}function wgGetCellCount(v7683){ if (v7683) { var v9d048; var v08e8 =0; if (v7683.tagName =="TR") v9d048 =v7683.cells; else if (v7683.tagName =="TD") v9d048 =v7683; for (var v7f592=0; v7f592<v9d048.length; v7f592++) { wg4a378.mb6b61(v9d048[v7f592]); if (v9d048[v7f592].type =="Cell" ||v9d048[v7f592].type =="GroupCell" ||v9d048[v7f592].type =="FilterColumn") v08e8++; } } return v08e8;}function wgGetCellByPosition(v74859,v39c66){ if (v74859) { var vbc239; var v98156 =-1; if (v74859.tagName =="TR") vbc239 =v74859.cells; else if (v74859.tagName =="TD") vbc239 =v74859; for (var v10696=0; v10696<vbc239.length; v10696++) { wg4a378.mb6b61(vbc239[v10696]); if (vbc239[v10696].type =="Cell" ||vbc239[v10696].type =="GroupCell" ||vbc239[v10696].type =="FilterColumn") { v98156++; } if (v39c66 ==v98156) return vbc239[v10696]; } } return null;}function wgGetCellByName(v48c89,v02a34,vceb0){ if (v48c89) { var ve4a78; var v2a376 =-1; var v94330; if (v48c89.tagName =="TR") { ve4a78 =v48c89.cells; v94330 =v48c89; } else if (v48c89.tagName =="TD") { v94330 =v48c89.parentElement; ve4a78 =v48c89; } var v42f27 =wg4a378.m33a20(v48c89); if (v42f27) { var ve8d91 =ISGetObject(v42f27.gridId).Tables[v42f27.tblName]; if (ve8d91.IsUseColumnSet) { return wgGetCSCellByName(v94330,v02a34); } var v02a65 =ve8d91.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v48c89).rows[0]; var v0ae67 =-1; for (var vaa184=0; vaa184<v02a65.cells.length; vaa184++) { ve4a78 =v02a65.cells; wg4a378.mb6b61(ve4a78[vaa184]); if ((ve4a78[vaa184].type =="Column" ||vceb0)&&ve4a78[vaa184].colName ==v02a34) { v0ae67 =vaa184; break; } } if (v0ae67>=0) { return v48c89.cells[v0ae67]; } } } return null;}function wgGetCellPosByName(vc2480,v33482){ if (vc2480) { var v9709; var v49b43 =-1; if (vc2480.tagName =="TR") v9709 =vc2480.cells; else if (vc2480.tagName =="TD") v9709 =vc2480; for (var v15767=0; v15767<v9709.length; v15767++) { wg4a378.mb6b61(v9709[v15767]); if ((v9709[v15767].type =="Cell" ||v9709[v15767].type =="GroupCell")) { if (v9709[v15767] ==v33482) { v49b43++; return v49b43; } else v49b43++; } } } return null;}function wgGetRowByPosition(vd8a0,v51f92){ return vd8a0.rows[v51f92];}function wgGetRowByPositionExact(v06955,va5c71,v56956,v18643,vc721){ var vaff36 ="position";  if (vc721) vaff36 ="recordIndex";  if (!v56956) v56956 =0; for (var v66f61=v56956; v66f61<v06955.rows.length; v66f61++) { wg4a378.mb6b61(v06955.rows[v66f61]); if (wgIsRecordRow(v06955.rows[v66f61])&&v06955.rows[v66f61][vaff36] ==va5c71) { var vfc089 =(typeof (v06955.rows[v66f61].srLevel)=="string"); if (!vfc089) return v06955.rows[v66f61]; else { if (!v18643) { if (v06955.rows[v66f61].srLevel =="0") return v06955.rows[v66f61]; } else return v06955.rows[v66f61]; } } } return null;}function wgGetRootRow(v78494){ if (!v78494) return; wg4a378.mb6b61(v78494); if (wgIsColumnSetRow(v78494)) return wgGetColumnSetRow(v78494); else if (v78494.type =="PR") return wgGetPreviewRowParent(v78494);  else if (v78494.type =="GroupTotalRow") return wgGetPreviousRow(wg4a378.m33a20(v78494),v78494); else return v78494;}function wgGetColNameByCell(v59b41){ var vd4230 =v59b41.parentElement; var v79f60 =wg4a378.m33a20(vd4230); var v4698 =ISGetObject(v79f60.gridId); var vb518 =v4698.Tables[v79f60.tblName]; var ve5822 =vb518.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vd4230).rows[0].cells; var vf0218 =false; if (!vb518.IsUseColumnSet) { if (IS.ie &&vb518.IsRootTable &&v4698.FreezePaneActive &&v4698.FreezeConfig !=null &&(wgIsRecordRow(vd4230)||v59b41.style.display =="none")) vf0218 =true;  for (var vdad91=0; vdad91<ve5822.length; vdad91++) { var vdc587 =ve5822[vdad91].cellIndex; var v2eb44 =v59b41.cellIndex;  if (!IS.ie) wgd2488.m00476(ve5822[vdad91]);  if (vf0218) vdc587 =wg4a378.m59d2(ve5822[vdad91]);  if (v59b41.style.display =="none") v2eb44 =wg4a378.m59d2(v59b41);  if (ve5822[vdad91].type =="Column" &&vdc587 ==v2eb44) return ve5822[vdad91].colName; } } else { if (typeof (v59b41.cs)=="undefined") return null; return vb518.GetColNameByRowLayout(v59b41.cs,v59b41.r,v59b41.c); }}function wgExpandGroupRow(vfbe60,v12b27){ if (v12b27) { _wgExpAllGR(vfbe60); return; } if (vfbe60.type =="GroupHeader" &&vfbe60.expanded =="False") { var vdb860 =ISGetObject(wg4a378.m33a20(vfbe60).gridId); wg91c62.m13014(vdb860,wgGetCellByPosition(vfbe60,0).childNodes[0],vfbe60.expanded); wg91c62.mdd07(null,vfbe60); }}function _wgExpAllGR(v92616){ wgExpandGroupRow(v92616); var v56180 =wg4a378.m33a20(v92616); var v13737 =wgGetNextRow(v56180,v92616); while (v13737) { if (v13737.groupIndex ==v92616.groupIndex &&v13737.style.display =="" &&v13737.childrenLoaded !="False") wgExpandGroupRow(v13737); v13737 =wgGetNextRow(v56180,v13737); }}function wgCollapseGroupRow(v6a235,v86f16){ if (v86f16) { _wgColAllGR(v6a235); return; } if (v6a235.type =="GroupHeader" &&v6a235.expanded =="True") { var v93816 =ISGetObject(wg4a378.m33a20(v6a235).gridId); wg91c62.m13014(v93816,wgGetCellByPosition(v6a235,0).childNodes[0],v6a235.expanded); wg91c62.mdd07(null,v6a235); }}function _wgColAllGR(v42c55){ wgCollapseGroupRow(v42c55); var vd8371 =wg4a378.m33a20(v42c55); var v66486 =wgGetNextRow(vd8371,v42c55); while (v66486) { if (v66486.groupIndex ==v42c55.groupIndex) wgCollapseGroupRow(v66486); v66486 =wgGetNextRow(vd8371,v66486); }}function wgExpandChildRow(va0591){ var vfc455 =ISGetObject(wg4a378.m33a20(va0591).gridId); var vcbd26 =wga3c88.m17211(va0591);  if (va0591.childNotExpandable !="True") { wga3c88.m57926(vfc455,vcbd26,"False"); wga3c88.m6aa31(null,va0591); }}function wgCollapseChildRow(v90291){ var vd4191 =ISGetObject(wg4a378.m33a20(v90291).gridId); var v4d395 =wga3c88.m17211(v90291); wga3c88.m57926(vd4191,v4d395,"True"); wga3c88.m6aa31(null,v90291);}function wgRefreshHierPosition(v3cc46,v1e474,v9c468,vb4747,v39532){ if (v39532) wga3c88.md676(v3cc46,v1e474,v9c468,vb4747); else { if (!v9c468) return; var v99691 =v9c468.rowIndex; var vfe595 =vb4747; var v5d383 =v3cc46.Tables[v1e474.tblName]; for (var v7dd44=v99691; v7dd44<v1e474.rows.length; v7dd44++) { var v59e10 =v1e474.rows[v7dd44]; if (v59e10.type =="Record") { v59e10.position =v59e10.recordIndex =vb4747; vb4747++; } } }}function wgGetSelectedObjectFromEvent(v6bc96){ if (v6bc96) { var vf4285 =v6bc96.srcElement; if (vf4285.tagName !="TD") { origEl =vf4285; vf4285 =_wgGetTDElement(vf4285); } if (!vf4285) return null; var vf0393 =vf4285.parentElement; var v83b2 =wg4a378.m33a20(vf0393); var vdf270 =ISGetObject(v83b2.gridId); var va4531 =vdf270.Tables[v83b2.tblName]; var v77191 =va4531.Get("CellClickAction"); var v75176; if (v77191 =="RowSelect") { v75176 =new SelectedObject(v83b2.tblName,v83b2.gridId,vf4285); v75176.type ="Row"; v75176.rowIndex =vf0393.rowIndex; } else if (v77191 =="CellSelect") { v75176 =new SelectedObject(v83b2.tblName,v83b2.gridId,vf4285); v75176.type ="Cell"; v75176.rowIndex =vf0393.rowIndex; v75176.cellIndex =wgGetCellPosByName(vf0393,vf4285); } return v75176; } return null;}function wgIsColumnSetRow(v18b96){ if (typeof (v18b96.csRowPos)!="undefined") return true; return false;}function wgGetPreviewRow(vc2a51){ var v81b32 =wg4a378.m33a20(vc2a51); var vb7021 =wgGetNextRow(v81b32,vc2a51); while (vb7021 &&vb7021.type !="PR") vb7021 =wgGetNextRow(v81b32,vb7021); return vb7021;}function wgGetPreviewRowCell(vb0851){ for (var v96151=0; v96151<vb0851.cells.length; v96151++) { if (vb0851.cells[v96151].type =="PRCell" ||vb0851.cells[v96151].getAttribute("type")=="PRCell") return vb0851.cells[v96151]; } return null;}function wgIsValidCell(vab287){ if (!vab287) return false; if (vab287.type =="Cell" ||vab287.type =="GroupCell" ||vab287.type =="ECell" ||vab287.type =="PRExp" ||vab287.type =="PRCell" ||vab287.type =="FilterColumn") return true; return false;}function wgIsValidClickableCell(v6a971){ if (!v6a971) return false; if (v6a971.type =="RowSelector" ||wgIsValidCell(v6a971)) return true; return false;}function wgIsValidRow(v72071){ if (!v72071) return false; if (v72071.type =="NewRow" ||v72071.type =="PR" ||v72071.type =="CSRecord" ||v72071.type =="Record" ||v72071.type =="FilterRow") return true; return false;}function wgGetPreviewRowParent(vf3f7){ if (vf3f7.type !="PR") return vf3f7; var v65271 =wg4a378.m33a20(vf3f7); var v1d740 =wgGetGridById(v65271.gridId); var v98324 =v1d740.Tables[v65271.tblName]; if (!v98324.IsUseColumnSet) return wgGetPreviousRow(v65271,vf3f7); else return wgGetColumnSetRow(wgGetPreviousRow(v65271,vf3f7)); return null;}function wgIsSameRow(vc9e62,v93f89){ if ((vc9e62 ==null &&v93f89 !=null)||(vc9e62 !=null &&v93f89 ==null)) return false; var v7a726 =wg4a378.m33a20(vc9e62); var veec19 =wg4a378.m33a20(v93f89); if (v7a726 ==veec19) { var v3e39 =wgGetGridById(v7a726.gridId); var vddb45 =v3e39.Tables[v7a726.tblName]; if (!vddb45.IsUseColumnSet) { if (!vddb45.PreviewRowVisible) return vc9e62 ==v93f89; else return wgGetPreviewRowParent(vc9e62)==wgGetPreviewRowParent(v93f89); } else { if (!vddb45.PreviewRowVisible) return wgIsSameColumnSetRow(vc9e62,v93f89); else return wgIsSameColumnSetRow(wgGetPreviewRowParent(vc9e62),v93f89); } } else return false; return false;}function wgIsSameColumnSetRow(vc3637,v51c77){ if (vc3637.type =="PR") { var v32b18 =wg4a378.m33a20(vc3637); vc3637 =wgGetPreviousRow(v32b18,vc3637); } if (v51c77.type =="PR") { var vfb568 =wg4a378.m33a20(v51c77); v51c77 =wgGetPreviousRow(vfb568,v51c77); } var v6e313 =wgGetColumnSetRow(vc3637); var v69889 =wgGetColumnSetRow(v51c77); if (v6e313 ==v69889) return true; return false;}function wgIsRecordRow(vcf137){ if (vcf137.type =="Record" ||vcf137.type =="CSRecord") return true; return false;}function wgGetHierRecord(v50f51){ var v31e21 =wg4a378.m33a20(v50f51); var v67d18 =wgGetGridById(v31e21.gridId); var v5fa28 =v67d18.Tables[v31e21.tblName]; var v3ca71 =0; if (v5fa28.IsUseColumnSet) v3ca71 +=v5fa28.ColumnSetSettings.RowCount -1; if (v5fa28.PreviewRowVisible) v3ca71 +=1; v3ca71 +=1; var vff340 =wgGetRootRow(v50f51); for (var v59255=0; v59255<v3ca71; v59255++) vff340 =wgGetNextRow(v31e21,vff340); if (vff340 &&vff340.type =="HierRecord") return vff340; return null;}function wgGetRowByGroup(v22187,v18f55,v34d84,v4ab81){ var v4db51 =0; if (v4ab81) v4db51 =v4ab81.rowIndex; for (var vf2385=v4db51; vf2385<v22187.rows.length; vf2385++) { var v60966 =v22187.rows[vf2385]; wg4a378.mb6b61(v60966); if (v60966.type =="GroupHeader" &&v60966.groupIndex ==v18f55 &&v60966.position ==v34d84) return v60966; } return null;}function wgSetSelectedObject(vb5e3,vb6a69){ var ve3142 =ISXml.CreateXmlDocument(); ve3142.loadXML(vb6a69); var vec534 =ve3142.selectSingleNode("//Object"); var v32569 =vec534.getAttribute("parentIndex"); var v51e84 =wgGetGridById(vb5e3); var v95127 =v51e84.Tables[vec534.getAttribute("tblName")]; var vc2a84 =null; var v05296; if (v95127.IsRootTable) { v05296 =v95127.GetElement(WG40.BODY,WG40.HTMLTABLE); } else { var v69985 =vec534.getAttribute("tblSubId"); var v5ce69 =v95127.GetSubTableById(v69985); v05296 =v5ce69.GetElement(WG40.BODY,WG40.HTMLTABLE); } if (v32569 !="") { var v40882 =v32569.split("_"); for (var v49384=0; v49384<v40882.length; v49384++) { var v44a8 =wgGetRowByGroup(v05296,v49384,v40882[v49384],vc2a84); if (v44a8) { if (v44a8.childrenLoaded =="True") { wgExpandGroupRow(v44a8); } } vc2a84 =v44a8; } } var v4ea16 =null;  if (v51e84.BindingOperationMode =="ClientBinding" &&vc2a84 ==null) { var vfd845 =v95127.GetRowByKeyValues(vec534.getAttribute("keyValue"));  if (vfd845 !=null) { v4ea16 =vfd845.GetElement();  if (v95127.GroupedColumns.length >0) vfd845.ExpandGroupRowsToThisRow(); } }  if (v4ea16 ==null) v4ea16 =wgGetRowByPositionExact(v05296,parseFloat(vec534.getAttribute("pos")),(vc2a84 ? vc2a84.rowIndex +1 : null),true); if (v4ea16) { var vfd437 =null; if (v4ea16.srLevel) { if (v4ea16.currentStyle.display =="none") { var v21a13 =wgGetPreviousRow(v05296,v4ea16); var v60251 =new Array(); var v01b67 =v4ea16.srLevel; while (v21a13) { if (v21a13.srRC>0 &&v21a13.srLevel<v01b67) { v60251[v60251.length] =v21a13; v01b67--; } v21a13 =wgGetPreviousRow(v05296,v21a13); if (!v21a13) break; if (v21a13.srLevel ==0) { v60251[v60251.length] =v21a13; break; } } v60251 =v60251.reverse(); for (var v49384=0; v49384<v60251.length; v49384++) { wg91c62.m89518(wg91c62.m1c114(v95127,v60251[v49384])); } } } if (v95127.Get("CellClickAction")=="RowSelect") vfd437 =wgGetCellByPosition(v4ea16,0); else if (v95127.Get("CellClickAction")=="CellSelect") { if (!v95127.IsUseColumnSet) { if (v95127.LastAECIndex !=-1) vfd437 =v4ea16.cells[v95127.LastAECIndex]; else vfd437 =wgGetCellByPosition(v4ea16,0); } else { if (v95127.LastCSIndex) vfd437 =wgGetCSCellByPosition(v4ea16,v95127.LastCSIndex[0],v95127.LastCSIndex[1],v95127.LastCSIndex[2]); }  if (vfd437 ==null) vfd437 =wgGetCellByPosition(v4ea16,0); } if (vfd437) { wgdee10.ma3d97(vfd437,true); wgdee10.mfb068(v51e84,vfd437); } }}function wgExpandSelfRefRow(v90a58){ var v01823 =wg4a378.m33a20(v90a58); var v12e79 =wgGetGridById(v01823.gridId).Tables[v01823.tblName]; v90a58.srExpanded ="False"; wg91c62.m89518(wg91c62.m1c114(v12e79,v90a58));}function wgCollapseSelfRefRow(ve3942){ var vb0742 =wg4a378.m33a20(ve3942); var vcfe88 =wgGetGridById(vb0742.gridId).Tables[vb0742.tblName]; ve3942.srExpanded ="True"; wg91c62.m89518(wg91c62.m1c114(vcfe88,ve3942));}function wgToggleSelfRefRow(v59c42){ if (v59c42.srExpanded =="True") wgCollapseSelfRefRow(v59c42); else wgExpandSelfRefRow(v59c42);}function wgGetKeyValues(v1f197){ var v17942 =wg4a378.m33a20(v1f197); var v18788 =wgGetGridById(v17942.gridId); var vc3c78 =v18788.Tables[v17942.tblName]; if (vc3c78.HasMultiPrimaryKey) { var v21b43 =vc3c78.GetDataKeyFieldsCount(); var v1ea14 =new Array(); for (var v2dc50=0; v2dc50<v21b43; v2dc50++) { v1ea14[v1ea14.length] =v1f197.getAttribute("keyValue" +v2dc50); } return v1ea14; } return null;}function wgIsFilterRow(v3f833){ return v3f833.type =="FilterRow";}function wgIsNewRow(v39633){ return v39633.type =="NewRow";}function wgRemoveRow(vc258,v30a26){ var v6e733 =wgGetHierRecord(v30a26); var v4f737 =null; if (vc258.PreviewRowVisible) v4f737 =wgGetPreviewRow(v30a26); if (v6e733 &&v6e733.type !="HierRecord") v6e733 =null; if (wgIsColumnSetRow(v30a26)) { var v9f581 =wgGetColumnSetRows(v30a26); for (var v86b88=0; v86b88<v9f581.length; v86b88++) { v9f581[v86b88].removeNode(true); } } else { v30a26.removeNode(true); } if (v4f737) v4f737.removeNode(true); if (v6e733) v6e733.removeNode(true);}function wgGetGridByElement(v46344){ return wg4a378.ma4450(v46344);}function wgGetTableByElement(vc7428){ return wg4a378.m5ff12(vc7428);}function wgGetColumnByElement(vaba28){ return wg4a378.m59262(vaba28);}function wgGetCellByElement(vc3428){ return wg4a378.m7e652(vc3428);}function wgGetRowByElement(v42628){ wg4a378.mb6b61(v42628); return wg4a378.mbe051(v42628);}var wg4a378 = { Initialized: false, m88164:function(vd4444) { var vafa60 =new WebGrid(vd4444); wg4a378.m09c20(vafa60); wg4a378.m21926(vafa60); wg4a378.m47b68(vafa60);  vafa60.IsInit =true; return vafa60; }, m09c20:function(v39344) { if (v39344 ==null) return; if (!v39344.IsInit) { var v05544 =ISXml.GetNode(v39344.XmlDt,"//WebGrid"); if (v05544 ==null) v05544 =v39344.XmlDt.documentElement; if (v05544 !=null) {  IS.SetPropertiesRecursive(v39344,v05544); v39344.LayoutSettings.StatusBarCommandStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v39344.XmlDt,"//StatusBarCommandStyle")); v39344.LayoutSettings.ColumnActionStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v39344.XmlDt,"//ColumnActionStyle")); } } }, m21926:function(v9e344) { window.attachEvent("onload",function() { wg4a378.mb6836(v9e344); }); window.attachEvent("onunload",function() { if (wg4a378 !=null) wg4a378.me0947(v9e344); });  if (v9e344.LayoutSettings.AllowBatchUpdate) { window.attachEvent("onbeforeunload",function() { wg02f52.m6ea85(v9e344); }); } if (!wg4a378.Initialized) { var vb8244 =document.body; Listener.Add(vb8244,"onresize",wg4a378.m04523); window.attachEvent("onload",wg4a378.md7010); window.attachEvent("onbeforeprint",wg4a378.mc6339); window.attachEvent("onafterprint",wg4a378.m41976); vb8244.attachEvent("onmousemove",wg4a378.md0c30); vb8244.attachEvent("onmouseup",wg4a378.m0c582); vb8244.attachEvent("onmousedown",wg4a378.m2bf64); wg4a378.Initialized =true; } wg4a378.m8e660(v9e344); wg4a378.m87f14(v9e344); wg4a378.m8e493(v9e344); v9e344.XmlHttp =ISXmlHttpEngine.Create(v9e344,function() { wg4a378.m74062(v9e344); }); },  m8e493:function(vdac44) { if (vdac44.LayoutSettings.StatusBarVisible) { var v79444 =vdac44.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); Listener.Add(v79444,"onmouseover",function() { wg91c62.md0e13(vdac44); }); Listener.Add(v79444,"onmouseout",function() { wg91c62.md0e13(vdac44); }); Listener.Add(v79444,"onmousedown",function() { wg91c62.md0e13(vdac44); }); Listener.Add(v79444,"onmouseup",function() { wg91c62.md0e13(vdac44); }); } }, m8e660:function(vbd544) { vbd544.FrameObj.attachEvent("onbeforedeactivate",function() { wg4a378.m45620(vbd544.Id); }); vbd544.FrameObj.attachEvent("onactivate",function() { wg4a378.mcf326(vbd544.Id); }); vbd544.FrameObj.attachEvent("onmouseover",function() { wg4a378.md4182(vbd544); }); vbd544.FrameObj.attachEvent("onfocus",function() { wg4a378.m5dd94(vbd544); }); vbd544.FrameObj.attachEvent("oncontextmenu",function() { wg4a378.m11296(vbd544);  }); vbd544.FrameObj.attachEvent("onmouseup",function() { wg4a378.m11296(vbd544); });  if (IS.ie) Listener.Add(vbd544.FrameObj,"onresize",wg91c62.md6b94,vbd544); },  m47b68:function(v40844) { if (!IS.ie) { v40844.FrameObj.style.MozUserFocus ="normal"; v40844.FrameObj.attachEvent("onblur",function() { wgd2488.m8a23(v40844); });  var v1d044 =v40844.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); wgd2488.m00476(v1d044.childNodes[0]); window.attachEvent("onresize",function() { wg4a378.m04523(); }); if (typeof (WebPaneManager)=="undefined") wgd2488.md9058(v40844,true); wgd2488.mddb73(v40844); wgd2488.mb799(v40844);  if (IsGecko30()&&typeof(wg2f128)=="object") wg2f128.m77a85(v40844); } else { wg4a378.m2bf63(v40844); } }, m2bf63:function(v98744) { if (IS.GetIEVersion()<8 &&IS.IsXHTMLDocType()) { var v6b544 =v98744.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); var v95388 =v98744.RootTable.GetElement(WG40.COLHEADER,WG40.HTMLTABLE);  v6b544.cellPadding =0; v95388.cellPadding =0;  v6b544.style.paddingLeft ="1px"; } },  md6599:function(vd5180) { var v91f44 =vd5180.TotalLoadedRows; var v8db88 =vd5180.TotalRows; if (v8db88<v91f44) v91f44 =v8db88;  if (!vd5180.LayoutSettings.StatusBarVisible) { if (v91f44 ==0 ||v8db88 ==0) wg91c62.m59373(vd5180); else wg91c62.m3b85(vd5180); } }, m87f14:function(vfd899) { var vde080 =vfd899.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); Listener.Add(vde080,"onresize",function() { wg4a378.m26e52(vde080); }); Listener.Add(vde080,"onscroll",function() { wg4a378.m89c30(vfd899); }); if (vfd899.IsInProgress &&!IS.ie) { var vcec58 =vfd899.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); wgd2488.m00476(vcec58.childNodes[0]); wgd2488.m5d797(vfd899); }  if (vfd899.LayoutSettings.AllowColumnFreezing =="Yes") { var va0364 =vfd899.GetFreezeOuterDivElement(); Listener.Add(va0364,"onscroll",wg91c62.m08181,vfd899); }  if (IS.safari) {  } }, mef94:function(v8fc74) { v8fc74.FrameObj.detachEvent("onbeforedeactivate",function() { wg4a378.m45620(v8fc74.Id); }); v8fc74.FrameObj.detachEvent("onactivate",function() { wg4a378.mcf326(v8fc74.Id); }); v8fc74.FrameObj.detachEvent("onmouseover",function() { wg4a378.md4182(v8fc74); }); v8fc74.FrameObj.detachEvent("onfocus",function() { wg4a378.m5dd94(v8fc74); }); v8fc74.FrameObj.detachEvent("oncontextmenu",function() { wg4a378.m11296(v8fc74); }); v8fc74.FrameObj.detachEvent("onmouseup",function() { wg4a378.m11296(v8fc74); }); if (IS.ie) Listener.Unload(v8fc74.FrameObj.parentElement);  Listener.Unload(v8fc74.FrameObj); Listener.Unload(v8fc74.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV)); if (v8fc74.LayoutSettings.StatusBarVisible) { var v66235 =v8fc74.GetElement(WG40.STATUSBARCOMMAND,WG40.HTMLCELL); Listener.Unload(v66235);  var v6cf37 =v8fc74.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); Listener.Unload(v6cf37); } if (IS.moz) v8fc74.FrameObj.detachEvent("onblur",function() { wgd2488.m8a23(v8fc74); }); if (v8fc74.ActionElement !=null) Listener.Unload(v8fc74.ActionElement); }, medc87:function(v3d674) { Listener.Unload(v3d674.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV)); v3d674.RootTable._tableCache =null; v3d674.RootTable._colIndexCache =null; v3d674.RootTable._colIndexCache2 =null; v3d674.RootTable._headerRowCache =null;  if (v3d674.LayoutSettings.AllowColumnFreezing =="Yes") { var v46774 =v3d674.GetFreezeOuterDivElement();  if (v46774 !=null) Listener.Unload(v46774); } }, m1f598:function(vfc274) { wg4a378.mef94(vfc274); }, mb6836:function(vb6f74) { if (!IS.ie) { var vefb74 =vb6f74.FrameObj.style.height; vb6f74.FrameObj.style.height ="0px"; vb6f74.FrameObj.style.height =vefb74; wgd2488.m5d797(vb6f74);  if (vb6f74.LayoutSettings.AllowColumnFreezing =="Yes") { wg91c62.m1fb14(vb6f74); } }  vb6f74.IsLoaded =true; wg4a378.m48158(true,true); },  OnOuterFrameResize: function() {  }, mb6b61:function(v53010) { if (!IS.ie) wgd2488.m00476(v53010); }, SetMenuCssFile: function(v68d10,v4c625) { if (typeof (Menu)!="undefined") v68d10.cssFile =v4c625; }, mc6339:function() { var vdb549 =wg4a378.mddb41(); for (var grid in vdb549) { var v60145 =vdb549[grid]; if (typeof (v60145)=="function") continue; var v7a136 =v60145.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); if (ISEvent.Raise(v60145.LayoutSettings.ClientSideEvents.OnBeforePrint,v60145.Id)) { v7a136.style.display =""; if (v60145.BrowserPrintSettings.GridLayout =="AsDisplayedInBrowser") v7a136.style.overflow ="hidden"; else v7a136.style.overflow ="visible"; if (!v60145.BrowserPrintSettings.PrintStatusBar) { var ve4958 =v60145.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); if (ve4958) ve4958.style.display ="none"; } } } }, m41976:function() { var v1d985 =wg4a378.mddb41(); for (var grid in v1d985) { var v77414 =v1d985[grid]; if (typeof (v77414)=="function") continue; var v74e54 =v77414.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); if (ISEvent.Raise(v77414.LayoutSettings.ClientSideEvents.OnAfterPrint,v77414.Id)) { v74e54.style.overflow ="auto"; if (!v77414.BrowserPrintSettings.PrintStatusBar) { var v0a00 =v77414.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); if (v0a00) v0a00.style.display =""; } } } }, m11296:function(v1255) { if (event.type =="contextmenu" ||event.button ==2) { var v12585 =event.srcElement; if (v12585 &&v12585.tagName) { if (v12585.tagName =="INPUT" ||v12585.tagName =="IMG" ||v12585.tagName =="SELECT" ||v12585.tagName =="TEXTAREA") return true; } var v28b14 =v1255.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); if (v28b14 &&v28b14.contains(v12585)) return false; event.cancelBubble =true; event.returnValue =false; return false; } }, m45620:function(vf5060,v5f83) { var v1f35 =ISGetObject(vf5060); if (v1f35.IsOnBlur) return; try { var v3a124 =event.srcElement; var v1a421 =event.toElement; if ((v3a124.tagName =="DIV" &&(v3a124.id ==vf5060 +IS.FRAMESUFFIX)&&v1a421.tagName =="BODY") ||(v1a421.tagName =="BODY" &&v3a124.tagName =="TD")) { window.setTimeout(function() { v1f35.EnsureActiveEditCellFocus(); },200); return; } if (IS.ie) { if (v3a124.tagName =="IFRAME" &&v1a421.tagName =="BODY" &&wg91c62.m51982(v1f35,v3a124)) return; else if (v3a124.tagName =="DIV" &&v1a061.contains(v3a124)&&v1a421.tagName =="BODY")return; } var v1a061 =v1f35.FrameObj; if (!v1a061.contains(v1a421)) { var vc0854 =wg91c62.m51982(v1f35,v1a421); if (!vc0854) { wg4a378.m93844(v1f35,v1a421); wg_Global.ActiveGrid =null; } } } catch (e) { } }, mcf326:function(v9c016) { var v96716 =wgGetActiveGrid(); if (!v96716 ||v9c016 !=v96716) { wg_Global.ActiveGrid =v9c016; wg4a378.m61542(ISGetObject(v9c016)); } }, md7010:function() { var v8a235 =wg4a378.mddb41(); for (var vf8b91=0; vf8b91<v8a235.length; vf8b91++) { var vbda58 =v8a235[vf8b91]; var v68d29 =vbda58.FrameObj; if (vbda58.NeedFocus) { wg4a378.m61542(vbda58,true); vbda58.NeedFocus =false; }  if (IsGecko30()) wg4a378.m47b68(vbda58); for (var v5f897=0; v5f897<vbda58.WebCombos.length; v5f897++) { if (typeof (wcGetComboById)!="function") break; vbda58.WebCombos[v5f897].Id =vbda58.WebCombos[v5f897].Id.replace(/\$/g,"_"); var v4c978 =wcGetComboById(vbda58.WebCombos[v5f897].Id); if (v4c978) { v4c978.FrameObj.style.display ="none"; v68d29.insertAdjacentElement("beforeEnd",v4c978.FrameObj); if (parseFloat(v4c978.MajorVersion)>=4 &&typeof (wg2f128)=="object") wg2f128.md8043(vbda58,v4c978); } } if (vbda58.LayoutSettings.AutoFitColumns) wg91c62.m47061(vbda58);  if (vbda58.IsClassicPaging()&&vbda58.LayoutSettings.PagingStyleUI =="Slider") wg87896.m5da22(vbda58);  if (vbda58.LayoutSettings.InitialView =="PivotChartView" ||vbda58.LayoutSettings.InitialView =="PivotChartViewExclusive") vbda58.SwitchToPivotChartView(); else if (vbda58.LayoutSettings.InitialView =="Both") wg8e489.mf3843(vbda58,true,true);  setTimeout(function() { if (vbda58.CurrentViewMode =="PivotChartView") { wg8e489.m62c34(vbda58,false,true); } } ,100);  if (vbda58.BindingOperationMode =="ClientBinding") { wg2e846.mdcc40(vbda58);  if (vbda58.ClientBindingSettings.FetchDataOnPageLoad) vbda58.LoadData(); }  wg4a378.m7d563(vbda58); } wg4a378.m04523(); }, me0947:function(v93810) { var vb7210 =document.body; vb7210.onresize =null; window.detachEvent("onload",wg4a378.md7010); window.detachEvent("onload",function() { wg4a378.mb6836(v93810); }); window.detachEvent("onresize",function() { wg4a378.m04523(); });  if (v93810.LayoutSettings !=null &&v93810.LayoutSettings.AllowBatchUpdate) { window.detachEvent("onbeforeunload",function() { wg02f52.m6ea85(v93810); }); } vb7210.detachEvent("onmousemove",wg4a378.md0c30); vb7210.detachEvent("onmouseup",wg4a378.m0c582); vb7210.detachEvent("onmousedown",wg4a378.m2bf64); }, md0c30:function() { wg91c62.macf54(); }, m0c582:function() { wg91c62.m8a01(); }, m2bf64:function() { wg91c62.m65b41(); }, m8a160:function(va3810) { va3810.style.left =plGetCurX()-25; va3810.style.top =plGetCurY()-25; }, md4182:function() { if (event.button ==0) { var va0b10 =event.srcElement; if (va0b10 &&((va0b10.tagName =="TD" &&va0b10.currentStyle.textOverflow =="ellipsis")||va0b10.tagName =="NOBR" ||(va0b10.tagName =="SPAN" &&typeof (va0b10.content)!="undefined"))) { if (wg_Global.TTId !=0) clearTimeout(wg_Global.TTId); wg_Global.TTId =setTimeout(function() { wg91c62.me1076(va0b10); },wg_Global.ToolTipDelay); } } }, m5dd94:function(v87840) { if (v87840.IsOnBlur) return; if (!IS.ie) { if (!v87840.HasFocus()) wg4a378.m61542(v87840,true); } if (!v87840.LastSelObj) { if (IS.safari) return;  var vaed10 =v87840.GetRootTable(); if (vaed10.GetElement(WG40.BODY,WG40.HTMLTABLE).rows.length>0) vaed10.SelectRow(0); } else { if (v87840.ActiveEditCell) { v87840.EnsureActiveEditCellFocus(); } else { try { if (v87840.LastSelObj.type =="Row") { var v9f080 =wgGetCellByPosition(v87840.LastSelObj.element,0); v9f080.setActive(); } else { v87840.LastSelObj.element.setActive(); } } catch (e) { } } } }, m26e52:function(v15276) { var v9ee40 =ISGetObject(v15276.childNodes[0].gridId); if (v9ee40.LayoutSettings.AutoWidth) wg4a378.mbe463(v15276.childNodes[0]); if (v9ee40.FreezePaneActive &&!v9ee40.IsInProgress) { var vbe948 =wg91c62.m27799(v9ee40,0);  if (vbe948 >0) { wg91c62.m4ce23(v9ee40,vbe948,true);  if (wg91c62.m30168(v9ee40)!=vbe948) { setTimeout(function() { wg91c62.m4ce23(v9ee40,vbe948,true); } ,100); } } } if (IS.moz) wgd2488.md9058(v9ee40); }, m89c30:function(v15f26,v2d095,v87a70,vc3c34) { var vc8212 =v15f26.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); var v9e287 =vc8212.scrollTop +vc8212.offsetHeight; wg4a378.mb6b61(vc8212.childNodes[0]); var v27e84 =ISGetObject(vc8212.childNodes[0].gridId); var va9445 =v27e84.Tables[vc8212.childNodes[0].tblName]; var ve0b7 =va9445.GetElement(WG40.COLHEADER,WG40.HTMLDIV); if (v27e84.LayoutSettings.AutoFitColumns) ve0b7.scrollLeft =0;  if (v27e84.HaltLoadMore) { v27e84.HaltLoadMore =false; return; } if (ve0b7.scrollLeft !=vc8212.scrollLeft ||v2d095) { var ve8b15 =vc8212.scrollLeft;  if (v2d095) ve8b15 =v87a70;  wg4a378.mbe463(vc8212.childNodes[0]); ve0b7.scrollLeft =ve8b15; if (va9445.Get("ColumnFooters")=="Yes") { var v9c315 =va9445.GetElement(WG40.COLFOOTER,WG40.HTMLDIV); v9c315.scrollLeft =ve8b15; } } if (v27e84.LastEditObj) { var v74d63 =v27e84.LastEditObj.element; v27e84.ExitEditMode(); }  if (v27e84.ActionElement !=null) v27e84.ClearActionElement(); if (!ISEvent.Raise(v27e84.LayoutSettings.ClientSideEvents.OnScroll,v27e84.Id)) return;  if (vc8212.scrollSource !="_OnFreezeScroll") {  if (v27e84.LayoutSettings.AllowColumnFreezing =="Yes" &&!v27e84.FreezePaneActive) { vc8212.scrollSource ="OnTableScroll"; wg91c62.m4ce23(v27e84,vc8212.scrollLeft); setTimeout(function(){vc8212.scrollSource =null;},10); } }  var vf4792 =(wg4a378.mdf24(vc8212)&&!IS.opera ? 17 : 0)+vc8212.scrollHeight; if (vc8212.scrollHeight <vc8212.offsetHeight) return;  if (!IS.ie &&vc8212.scrollHeight <=vc8212.offsetHeight) return; if (v9e287 +2>=vf4792) { if (va9445.GroupedColumns.length>0) return; if (!v27e84.IsInProgress &&v27e84.LayoutSettings.PagingMode =="VirtualLoad" &&!vc3c34) wg4a378.m71658(vc8212.childNodes[0].gridId,"More"); }  }, m04523:function() { if (WG40.ForceBogusResize) wg4a378.m48158(); if (wg_Global.GlobalResizeID !=0) { clearTimeout(wg_Global.GlobalResizeID); wg_Global.GlobalResizeID =0; } else wg4a378.m48158();  wg_Global.GlobalResizeID =setTimeout("wg4a378.m48158()",50); }, m48158:function(v11e73,vfbe22) { var vc5281 =wg4a378.mddb41(); for (var vef174=0; vef174<vc5281.length; vef174++) { var vded55 =vc5281[vef174]; if (IS.ie) { if (vded55.LayoutSettings.AutoHeight) { vded55.NeedHeightResize =true; wg91c62.m3c335(vded55.FrameObj); } else { if (vded55.FrameObj.style.height !="") { if (vded55.FrameObj.style.height.indexOf("%")>0) { vded55.CacheTBodyHeight =null; } } } if (vded55.LayoutSettings.AutoWidth) { vded55.NeedWidthResize =true; wg91c62.me7f18(vded55.FrameObj); } var vbd437 =vded55.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV);  if (vbd437 !=null &&vbd437.scrollLeft >(vbd437.scrollWidth -vbd437.clientWidth -17)) wg4a378.m89c30(vded55,null,null,true); } else { wgd2488.md9058(vded55); } if (vded55.LayoutSettings.AutoFitColumns &&vded55.FrameObj.style.width.indexOf("%")>=0) { if (vded55.TempResizeID !=0) clearTimeout(vded55.TempResizeID); setTimeout("wg91c62.mae622('" +vded55.Name +"')",500); }  if (vded55.LayoutSettings.AllowColumnFreezing =="Yes") { wg91c62.m1fb14(vded55); }  if (v11e73 &&vded55.CacheTBodyHeight ==null) { wg91c62.m72b72(vded55.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV), (IS.ie &&IS.IsXHTMLDocType())); } } }, m36438:function(vd0348) { if ((vd0348.LastEditObj ||vd0348.ActiveEditCell)&&!vd0348.IsExitingEdit) { var vc7e73 =vd0348.LastEditObj; var v86322 =vd0348.ActiveEditCell; var vd2959 =vd0348.Tables[((vc7e73)? vc7e73.tblName : v86322.tblName)]; var v90081 =vd2959.Get("AllowEdit")=="Yes"; var v04e94; if (vc7e73) v04e94 =vc7e73.cellElement.parentElement; else v04e94 =v86322.rowElement; if (v90081 &&v04e94.type =="Record") { if (vc7e73) wg2f128.m97a96(vc7e73); } } }, m2e853:function(v82048) { v82048.IsInProgress =true; v82048.SetBusy(); }, m61542:function(v7f731,v0e851) { var vc0448 =v7f731.LastSelObj; if (v7f731.IsOnBlur) return; if (!v7f731.Get("Visible")) return; if (!ISEvent.Raise(v7f731.LayoutSettings.ClientSideEvents.OnFocus,v7f731.Id)) return; if (v0e851) wg_Global.ActiveGrid =v7f731.Name; if (wg4a378.mb6713(vc0448)) { var v76411 =v7f731.Tables[vc0448.tblName]; var va4c11 =v76411.Get("CellClickAction"); if (vc0448.type =="Row" ||va4c11 =="RowSelect") { wgdee10.m4f150(vc0448.GetRowElement(),""); var v60d46 =v7f731.ActiveEditCell; if (v60d46 &&wgIsSameRow(v60d46.rowElement,vc0448.GetRowElement())) { wg2f128.mc9757(v60d46.element,"Redraw"); v7f731.EnsureActiveEditCellFocus(); } else { var vbc616 =wgGetCellByPosition(vc0448.element,0);  if (vbc616 !=null) vbc616.setActive(); } } else { var v76411 =v7f731.Tables[vc0448.tblName]; wgdee10.mcc643(vc0448.element,v76411.GetSelRowStyle(),v76411.GetFocusCellStyle(),"",true); vc0448.element.setActive(); } } else { if (v0e851) { wg_Global.ActiveGrid =v7f731.Name; var va2312 =v7f731.GetRootTable().GetElement(WG40.BODY,WG40.HTMLTABLE); if (va2312.rows.length>0) { if (IS.safari) return;  if (wgIsRecordRow(va2312.rows[0])) { wgdee10.ma3d97(wgGetCellByPosition(va2312.rows[0],0),true); wgGetCellByPosition(va2312.rows[0],0).setActive(); } } } } }, mddb41:function() { var v13231 =new Array(); for (var vead51=0; vead51<IS.RuntimeObjects.length; vead51++) { var vc5560 =IS.RuntimeObjects[vead51]; if (typeof(vc5560)=="object" &&vc5560.ClassName =="WebGrid" &&vc5560.Version =="7.0.7200") v13231[v13231.length] =vc5560; } return v13231; }, ma4450:function(v2ea3) { var v98667 =wg4a378.mb5458(v2ea3); var vda720 =ISGetObject(v98667); return vda720; }, m5ff12:function(va963) { var v3863 =wg4a378.m97d49(va963); var vde890 =wg4a378.mb5458(va963); var va1296 =ISGetObject(vde890); var v29149 =va1296.Tables[v3863]; return v29149; }, m59262:function(v1e478) { var v4263 =wgGetColNameByCell(v1e478); var v9e590 =v1e478.parentElement; if (v4263) { var v67e96 =ISGetObject(wg4a378.mb5458(v9e590)); var v8b149 =v67e96.Tables[wg4a378.m97d49(v9e590)]; return v8b149.Columns.GetNamedItem(v4263); } return null; }, m7e652:function(v2b533) { var v3af97 =wg4a378.m16c13(v2b533); if (v3af97) { var v4e088 =wg4a378.mbe051(v3af97); if (v4e088) { var va6015 =wgGetColNameByCell(v2b533); return v4e088.GetCell(va6015); } } return null; }, mbe051:function(vccd33) { var vf7533 =wg4a378.m16c13(vccd33); if (vf7533) { var v66558 =wg4a378.m97d49(vf7533); var v20d34 =wg4a378.mb5458(vf7533); var v1fd18 =ISGetObject(v20d34); var v80c81 =v1fd18.Tables[v66558]; if (v80c81.IsUseColumnSet) vf7533 =wgGetRootRow(vf7533); return v80c81.ToRowObject(vf7533); } return null; },  m7b457:function(v55c33,vc4458) { for (var vc7333=0; vc7333<vc4458.length; vc7333++) { if (vc4458[vc7333].RowElement ==v55c33) return vc4458[vc7333];  if (vc4458[vc7333].Children !=null) { var v9f658 =wg4a378.m7b457(v55c33,vc4458[vc7333].Children);  if (v9f658) return v9f658; } } }, mb6713:function(vf9633) { if (vf9633) { if (vf9633.element) { try { var v52b33 =vf9633.GetRowElement(); var v37a58 =vf9633.element; if (vf9633.type =="Row") { if (v52b33.rowIndex !=-1) { return true; } } else { if (v37a58.cellIndex !=-1 &&v37a58.parentElement !=null) return true; } } catch (e) { return false; } } } return false; }, mad49:function(va1c33) { if (va1c33.tagName =="TR" ||va1c33.tagName =="TD") return wg4a378.m33a20(va1c33).subId; else if (va1c33.tagName =="TABLE") return va1c33.subId; }, mb5458:function(vce117) { return wg4a378.m33a20(vce117).gridId; }, m97d49:function(v9ec17) { return wg4a378.m33a20(v9ec17).tblName; }, m33a20:function(vabb17) { var v54c17 =vabb17.parentElement; while (v54c17 &&v54c17.tagName !="TABLE") { v54c17 =v54c17.parentElement; } if (v54c17 &&!IS.ie) wgd2488.m00476(v54c17); return v54c17; }, mbe463:function(v8cd53,vf6b67) { var v3fc17 =ISGetObject(v8cd53.gridId); var v17098 =v3fc17.Tables[v8cd53.tblName]; var v2f182 =v17098.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var vfee38 =v2f182.rows[0].cells[v2f182.rows[0].cells.length -1]; if (v8cd53.parentElement ==null) return; if (wg4a378.mdf24(v8cd53.parentElement)||(v3fc17.LayoutSettings.AllowColumnFreezing =="Yes" &&wg91c62.m85318(v3fc17))) { if (!v3fc17.IsRightToLeft()) { if (!vfee38.locked) wg4a378.ma9941(v17098,vfee38,(!IS.w3cs ? '17px' : '30px')); } } else { if (!vfee38.locked) { wg4a378.ma9941(v17098,vfee38,'100%');  if (IS.moz) { wg4a378.ma9941(v17098,vfee38,'99%'); setTimeout(function(){wg4a378.ma9941(v17098,vfee38,'100%');},10); } } }  if (IS.ie &&!vf6b67) { if (v3fc17.FrameObj.style.width.indexOf("%")>-1) setTimeout(function(){wg4a378.mbe463(v8cd53,true);},10); } if (v3fc17.LayoutSettings.Hierarchical) { if (v3fc17.GetMaxWidth()>v3fc17.FrameObj.offsetWidth) { if (!vfee38.locked) { v3fc17.FixPadColumnWidth(); } } else { var v2bf59 =v3fc17.GetRootTable(); var v7cc21 =v2bf59.GetElement(WG40.COLGROUP); var vba490 =v7cc21.childNodes[v7cc21.childNodes.length -1]; vba490.width ="100%"; wg4a378.ma9941(v17098,vfee38,'100%'); vfee38.locked =false; } } }, mae516:function(va2789,vead37) { var vf5b53 =va2789.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); var v3fe67 =vf5b53.getElementsByTagName("tbody"); for (var v3801=0; v3801<v3fe67.length; v3801++) { if (v3fe67[v3801].id ==vead37.id) return v3fe67[v3801]; } return null; },  m0a368:function(v51a72,vede77,ve6b67) { var vcb289 =v51a72.GetElement(WG40.STATUSBOX,WG40.HTMLDIV);  if (vcb289 ==null) return;  var v66937 =vcb289.children[0]; var v66d19 =v66937.rows[0].cells;  for (var v91e21=0; v91e21<v66d19.length; v91e21++) { var v6d03 =v66d19[v91e21];  if (IS.GetAttr(v6d03,"type")==vede77) { return v6d03.children[0].rows[0].cells[ve6b67]; } }  return null; },  mff172:function(v9be72) { return (v9be72 ? "True": "False"); },  m21b29:function(v49c72) { if (typeof(ISCultureInfo)=="function") { v49c72.CultureInfo =CultureInfoEngine.GetDefaultCulture(); return v49c72.CultureInfo; }  return null; }, mdf24:function(v84972) { if (v84972.offsetHeight !=v84972.clientHeight) return true; else return false; }, HasHSBar: function(v09272) { if (v09272.offsetWidth !=v09272.clientWidth) return true; else return false; }, ma9941:function(v10a72,v99d77,v21667) { if (v10a72.IsUseColumnSet) { var v16572 =v10a72.GetElement(WG40.COLHEADERGROUP); var vebe77 =v16572.childNodes[v16572.childNodes.length -1]; vebe77.width =v21667; } else { v99d77.style.width =v21667; } if (v10a72.Get("ColumnFooters")=="Yes") { var v16572 =v10a72.GetElement(WG40.COLFOOTERGROUP); var vebe77 =v16572.childNodes[v16572.childNodes.length -1]; vebe77.width =v21667; } }, m2c14:function(v1478) { if (!v1478) return null; while (v1478.tagName !="TD") { try { v1478 =v1478.parentElement; if (!v1478) return null; } catch (e) { return null; } } return v1478; },  m5e484:function(v25f92) { if (!v25f92) return null; while (v25f92.tagName !="TD" &&v25f92.tagName !="TH") { try { v25f92 =v25f92.parentElement; if (!v25f92) return null; } catch (e) { return null; } } return v25f92; }, m16c13:function(v2bb92) { while (v2bb92 &&v2bb92.tagName !="TR") v2bb92 =v2bb92.parentElement; return v2bb92; },  ma806:function(v78092) { var veb592 =v78092.rows[0];  while (veb592 !=null &&veb592.type !="Record") veb592 =v78092.rows[veb592.rowIndex+1];  if (veb592 !=null) return veb592.rowIndex; else return -1; },  mea345:function(v46792,v67186) { var vaae92 =v46792.Grid;  if (vaae92.FreezePaneActive) { if (IS.ie) cellIndex =wg4a378.m59d2(v67186); else { if (vaae92.FreezeConfig !=null) cellIndex =v67186.cellIndex -vaae92.FreezeConfig[0].length; else cellIndex =v67186.cellIndex; } } else cellIndex =v67186.cellIndex;  return cellIndex; }, m35b51:function(ve0b28,v75756) { var v2ad92 =ve0b28.parentElement; for (var v3fe86=0; v3fe86<v75756 -1; v3fe86++) v2ad92 =v2ad92.parentElement; return v2ad92; }, m9a670:function(v46764,v0a125) { if (v0a125.rowIndex ==v46764.rows.length -1) return null; var va5664 =v46764.rows[v0a125.rowIndex +1]; if (va5664) wg4a378.mb6b61(va5664); return va5664; }, m24c4:function(vcb447,v7bc65) { if (v7bc65.rowIndex ==0) return null; var va8547 =vcb447.rows[v7bc65.rowIndex -1]; if (va8547) wg4a378.mb6b61(va8547); return va8547; }, GetChildNodes: function(v19e3,vaeb45) { var vbb847 =v19e3.childNodes[0]; for (var v84d65=0; v84d65<vaeb45 -1; v84d65++) vbb847 =vbb847.childNodes[0]; return vbb847; }, m71658:function(v47933,v7ca12,v16c42,v44377) { var v8d958 =ISGetObject(v47933); var vb9724 =v8d958.XmlHttp; var vd1690 =""; var v77112 =v47933; if (v8d958.IsPreviewMode) { alert("Not supported in Preview mode!"); return; } v8d958.XmlReq =ISXmlHttpEngine.CreateRequestXml(v8d958.GetType()); wg4a378.m36438(v8d958); var vba546 =ISXml.GetNode(v8d958.XmlReq,"//request"); v8d958.RequestId =0; if (v8d958.IsInProgress) { if (v7ca12 =="More" &&v8d958.LastAction =="AddRow") return; if ((v7ca12 =="UpdateRow" &&v8d958.LastAction =="LoadChild") ||(v7ca12 =="RowChanged" &&v8d958.LastAction =="UpdateRow")) { v8d958.NextQueue = [ v7ca12, v16c42 ]; return; } if (v8d958.LayoutSettings.InProgressUIBehavior =="DisplayMessageBox") alert(v8d958.GetString("MessageBoxText/InProgress")); return; } if (!ISEvent.Raise(v8d958.LayoutSettings.ClientSideEvents.OnBeforeRequest,v77112,v7ca12,v16c42)) return; vba546.setAttribute("id",v77112); v8d958.TempLRO =v16c42;  if (v8d958.BindingOperationMode =="ClientBinding") { var v3b659 =v8d958.ClientBindingSettings.DataSourceType;  if (v8d958.EnableSection508Standards) wg2e846.mdcc40(v8d958,true);  if (v3b659 =="ClientDataSource") { wg2e846.mb6c77(v8d958,v7ca12,v44377,v16c42); return; } else if (v3b659 =="WebService" ||v3b659 =="WcfService" ||v3b659 =="AdoDataService") { wgf1816.m0b220(v8d958,v7ca12,v44377,v16c42); return; } }  if (v8d958.AllowPivotCharting &&v8d958.LayoutSettings.InitialView !="PivotChartViewExclusive" &&v8d958.LayoutSettings.InitialView !="Both") { if (v8d958.CurrentViewMode =="PivotChartView" &&!v8d958.RequireInvalidateFreezeContainer) { switch (v7ca12) { case "ColumnSort": case "Group": case "Ungroup": case "ChangeGroup": case "ColumnFilter": case "LoadData":  case "PagingNext": case "PagingPrev": case "PagingTo": case "BatchUpdate": v8d958.SwitchToGridView(); break; } } } switch (v7ca12) { case "More": if (!wgc0672.m1ef32(v8d958,vba546,v77112)) return false; break; case "LoadGroup": if (!wgc0672.m73c2(v8d958,vba546,v77112,v16c42)) return false; break; case "ColumnSort": if (!wgc0672.m8f635(v8d958,vba546,v77112,v16c42)) return false; break; case "Group": if (!wgc0672.m55617(v8d958,vba546,v77112,v16c42,"Group")) return false; break; case "Ungroup": if (!wgc0672.m55617(v8d958,vba546,v77112,v16c42,"Ungroup")) return false; break; case "ChangeGroup": if (!wgc0672.m55617(v8d958,vba546,v77112,v16c42,"ChangeGroup")) return false; break; case "ColumnFilter": if (!wgc0672.mde966(v8d958,vba546,v77112,v16c42)) return false; break; case "LoadChild": if (!wga3c88.m3e411(v8d958,vba546,v77112,v16c42)) return false; break; case "ColumnChange": if (!wgc0672.mc1390(v8d958,vba546,v77112,v16c42)) return false; break; case "LoadData": if (!wg2e846.m08b68(v8d958,vba546,v77112)) return false; break; case "Refresh": if (!wgc0672.ma9750(v8d958,vba546,v77112)) return false; break; case "RefreshAll": if (!wgc0672.m8230(v8d958,vba546,v77112)) return false; break; case "Custom": if (!wgc0672.m49c14(v8d958,vba546,v77112)) return false; break; case "AddRow": if (!wg2f128.mdc587(v8d958,vba546,v77112,v16c42)) return false; break; case "UpdateRow": if (!wg2f128.m1ef56(v8d958,vba546,v77112,v16c42)) return false; break; case "DeleteRow": if (!wg2f128.m33212(v8d958,vba546,v77112,v16c42)) return false; break; case "Export": if (!wgc0672.mf3d97(v8d958,vba546,v77112,v16c42)) return false; break; case "ButtonClick": if (!wgc0672.m99e86(v8d958,vba546,v77112,v16c42)) return false; break; case "ChildTableRefresh": if (!wga3c88.m8b268(v8d958,vba546,v16c42)) return false; break; case "LoadSelfRefChild": if (!wgc0672.m56e25(v8d958,vba546,v77112,v16c42)) return false; break;  case "LoadPreviewRow": if (!wgc0672.m3ba19(v8d958,vba546,v77112,v16c42)) return false;  break;  case "RowChanged": if (!wgc0672.mc2082(v8d958,vba546,v77112,v16c42)) return false;  break;  case "PagingNext": case "PagingPrev": case "PagingTo": if (!wg87896.m1f934(v8d958,vba546,v77112,v7ca12,v16c42)) return false;  break;  case "Charting":  if (!wg8e489.md080(v8d958,vba546,v77112,v16c42)) return false;   break;   case "RetrievePivotData":  if (!wg8e489.m25211(v8d958,vba546,v77112,v16c42)) return false;  break;  case "BatchUpdate": if (!wg02f52.mbc67(v8d958,vba546,v77112,v16c42)) return false;  break; } v8d958.LastRequestObj =v16c42; v8d958.LastAction =v7ca12;  if (vba546 !=null &&v8d958.IsClassicPaging()) vba546.setAttribute("totalPages",v8d958.GetTotalPages()); var ve8f3 =v8d958.XmlHttp.Asynchronous; vb9724.Send(); if (ve8f3) { wg4a378.m2e853(v8d958); } }, md1e67:function(vcf699,v0e44) { vcf699.LastError =v0e44; if (!ISEvent.Raise(vcf699.LayoutSettings.ClientSideEvents.OnUnhandledError,vcf699.Name,vcf699.LastAction,vcf699.LastRequestObj,vcf699.LastError)) return; var va7429 =v0e44; var v88217 =vcf699.XmlHttp.XmlHttp; if (va7429.indexOf("Server Error")>=0 ||va7429.indexOf("Stack Trace")>=0 ||(v88217 !=null &&v88217.status ==500)) { if (vcf699.LayoutSettings.DisplayDetailsOnUnhandledError) wg91c62.ma8516(vcf699,v0e44,vcf699.GetString("MessageBoxText/UnhandledError")); } else { if (va7429 !="") { var v03f35 =IS.GetFormAction(va7429); window.location =v03f35; return; } else { vcf699.LastError ="Unable to communicate with server.";  if (vcf699.LayoutSettings.DisplayDetailsOnUnhandledError) wg91c62.ma8516(vcf699,vcf699.LastError,"Unhandled exception."); } } vcf699.IsInProgress =false; vcf699.SetIdle(); vcf699.SetStatus1("","readyerror","CommonText/ReadyError"); vcf699.SetStatusIcon("Failed"); vcf699.IsStatusLocked =true; vcf699.IsUnhandledError =true; }, m74062:function(ve6351,v86388,v9ec85) { var v24010 =ve6351.XmlResp; var v5f462; var v20a77;   if (v9ec85) { v5f462 =v86388.status; v20a77 =v86388.error; } else { v5f462 =ISXml.GetNodeText(v24010,"//status"); v20a77 =ISXml.GetNodeText(v24010,"//error"); } if (!ISEvent.Raise(ve6351.LayoutSettings.ClientSideEvents.OnResponse,ve6351.Id,v5f462)) return; if (v5f462 =="Error") { alert(v20a77.replace(/\\n/ig,"\n")); wg4a378.meb172(ve6351); ve6351.SetStatus1("","ready","CommonText/Ready"); ve6351.SetIdle(); ve6351.IsInProgress =false; return; } if (v9ec85) { if (ve6351.ClientBindingSettings.DataSourceType =="ServerDataSource") v24010 =wg2e846.m7ba18(ve6351,v86388); else { wgf1816.m2527(ve6351,v86388); return; } }  var vd9a52 =ISXml.GetNodeText(v24010,"//action"); if (!ISEvent.Raise(ve6351.LayoutSettings.ClientSideEvents.OnActionDispatched,ve6351.Id,vd9a52)) return; switch (vd9a52) { case "More": wgc0672.m54a11(ve6351,v24010); break; case "LoadGroup": wgc0672.m14991(ve6351,v24010); break; case "ColumnSort": wgc0672.mb3926(ve6351,v24010); break; case "Group": case "Ungroup": case "ChangeGroup": case "ColumnChange": wgc0672.m32c58(ve6351,v24010); break; case "ColumnFilter": wgc0672.m8309(ve6351,v24010); break; case "LoadChild": wga3c88.m68051(ve6351,v24010); break; case "Refresh": case "LoadData": wgc0672.m40172(ve6351,v24010); break; case "RefreshAll": wgc0672.m9bd88(ve6351,v24010); break; case "Custom": if (typeof (wgCustomActionResponse)=="function") wgCustomActionResponse(ve6351,v24010); break; case "AddRow": wg2f128.mf6f86(ve6351,v24010); break; case "UpdateRow": wg2f128.m0ce23(ve6351,v24010); break; case "DeleteRow": wg2f128.mdb174(ve6351,v24010); break; case "Export": wgc0672.me3236(ve6351,v24010); break; case "ButtonClick": wgc0672.m5bd80(ve6351,v24010); break; case "ChildTableRefresh": wga3c88.m36281(ve6351,v24010); break; case "LoadSelfRefChild": wgc0672.m08d81(ve6351,v24010); break;  case "LoadPreviewRow": wgc0672.m2a392(ve6351,v24010);  break;  case "Paging": wg87896.mec391(ve6351,v24010);  break;  case "Charting": case "RetrievePivotData": wg8e489.m1b981(ve6351,v24010);  break;  case "BatchUpdate": wg02f52.mdd474(ve6351,v24010);  break;  } ve6351.IsInProgress =false; wg4a378.md6599(ve6351); var vefe64 =v24010.selectSingleNode("//clientScripts"); if (vefe64) { var vea878 =vefe64.text; if (vea878 !="") { var v7596 =vea878.split(");"); for (var va9142=0; va9142<v7596.length; va9142++) { if (v7596[va9142] !="") { var vea35 =v7596[va9142]; if (vea35.indexOf("(")>=0) vea35 +=")"; eval(vea35); } } } } if (!ISEvent.Raise(ve6351.LayoutSettings.ClientSideEvents.OnAfterResponseProcess,ve6351.Name,vd9a52,ve6351.LastRequestObj,v24010)) return; ve6351.LastRequestObj =null; ve6351.TempLRO =null; ve6351.IsUnhandledError =false; ve6351.IsStatusLocked =false; ve6351.SetIdle(); if (ve6351.NextQueue) { wg4a378.m71658(ve6351.Name,ve6351.NextQueue[0],ve6351.NextQueue[1]); ve6351.NextQueue =null; } }, m93844:function(v74562,v79546) { var va006 =v74562.LastSelObj; v74562.IsOnBlur =true; if (!ISEvent.Raise(v74562.LayoutSettings.ClientSideEvents.OnLostFocus,v74562.Name)) return; if ((v74562.LastEditObj ||v74562.ActiveEditCell)&&!v74562.IsExitingEdit) { var v08b67 =v74562.LastEditObj; var v94570 =v74562.ActiveEditCell; var v40230; if (v08b67) v40230 =v08b67.cellElement.parentElement; else v40230 =v94570.rowElement; if (wgIsRowDirty(v40230)||wgIsRowMarkedEdit(v40230)) { var v16174 =v74562.ExitEdit(3)[2]; if (!v16174) { if (v40230.type =="NewRow") { wg2f128.mc9757(v94570.element,"Clear",v94570.element); wg2f128.m09f77(v74562,v40230); } wgdee10.m0d99(v40230,v74562.GetCurSelImage()); } try { v79546.focus(); } catch (e) { } } else { v74562.ExitEditMode(true); } } if (va006) { if (va006.type =="Row") wgdee10.m4f150(va006.GetRowElement(),"",true); else { wgdee10.mcc643(va006.element,v74562.GetBlurRowStyle(),"0px","",true); } }  if (v74562.LayoutSettings.AllowBatchUpdate) { if (v74562.LayoutSettings.BatchUpdateSettings.NotifyOnLostFocus &&v74562.GetChangesCount()>0) wg02f52.m6f67(v74562); } var v92f23 =function() { v74562.IsOnBlur =false; }; window.setTimeout(v92f23,50); }, m7c342:function(vaba36,v60a35) { for (var v6cc65=0; v6cc65<vaba36.attributes.length; v6cc65++) { if (v60a35.indexOf(vaba36.attributes[v6cc65].name)==-1) { vaba36.removeAttribute(vaba36.attributes[v6cc65].name); v6cc65--; } } }, meba63:function(v92286) { var v50e20 =v92286.XmlDt; var v9cb75 =v50e20.documentElement; var v2fe56 =v92286.LastSelObj; if (v2fe56 &&v2fe56.element) { var v62918 =ISXml.GetNode(v50e20,"//selectedObject"); if (v62918) v9cb75.removeChild(v62918); var v6b094 =v50e20.createNode(1,"selectedObject",""); var v75f58 =v2fe56.GetRowElement(); if (!v75f58 ||v75f58.rowIndex ==-1 ||v75f58.type =="NewRow" ||v75f58.type =="FilterRow") return; v75f58 =wgGetRootRow(v75f58); v6b094.setAttribute("tblName",v2fe56.tblName); v6b094.setAttribute("type",v2fe56.type); v6b094.setAttribute("rowIndex",v75f58.position); v6b094.setAttribute("cellIndex",v2fe56.cellIndex); v6b094.setAttribute("parentIndex",wg91c62.m23e1(v75f58)); ISXml.CreateCDATA(v50e20,v6b094,"keyValue",(v75f58.keyValue ? v75f58.keyValue : "")); var v1ff97 =v92286.Tables[v2fe56.tblName]; if (v1ff97.HasMultiPrimaryKey &&v75f58.type =="Record") { var v2f111 =wgGetKeyValues(v75f58); v6b094.setAttribute("keyCount",v2f111.length); for (var v55728=0; v55728<v2f111.length; v55728++) { ISXml.CreateCDATA(v50e20,v6b094,"keyValue" +v55728,v2f111[v55728]); } } v9cb75.appendChild(v6b094); } else { ISXml.RemoveNode(v9cb75,"selectedObject"); } }, m88030:function(vf9d92) { var vad622 =vf9d92.StateRestorationLevel; var v57f82 =vf9d92.GetXml().xml; if (vad622 !="High") { var v98330 =ISXml.CreateXmlDocument(); ISXml.LoadXml(v98330,vf9d92.XmlDt.xml); var v66f69 =ISXml.GetNode(v98330,"//LayoutSettings"); var v44083 ="TotalLoadedRows,TotalRows,CurrentPageIndex,TotalPages"; for (var v2f978=0; v2f978<v66f69.childNodes.length; v2f978++) { v66f69.removeChild(v66f69.childNodes[v2f978]); v2f978--; } if (vad622 =="Low") { var v69632 ="Name,DataMember,IsRootTable,DataKeyField"; var v40787 ="FilterBarVisible,Culture,Hierarchical"; var v9c571 = "Name,IsGrouped,IsSorted,Visible,Width,EditType,WebComboID,ColumnType,FilterEditType"; var v60a2 = [ "BrowserPrintSettings", "FlyPostBackSettings", "UtilizedCustomEditors", "WebCombos" ]; var v48421 = [ "PreviewRowSettings", "ColumnSetSettings", "SelfReferencingSettings", "FocusCellStyle" ]; wg4a378.m7c342(v98330.documentElement,v44083); wg4a378.m7c342(v66f69,v40787); for (sTbl in vf9d92.Tables) { var vaef39 =vf9d92.Tables[sTbl]; var ve0098 =null; if (typeof (vaef39)=="function") continue; if (vaef39.IsRootTable) ve0098 =v98330.selectSingleNode("//RootTable"); else ve0098 =v98330.selectSingleNode("//WebGridTable[@Name='" +vaef39.Id +"']"); wg4a378.m7c342(ve0098,v69632); for (var tNode in v48421) ISXml.RemoveNode(ve0098,v48421[tNode]); var v65f14 =ve0098.selectNodes("Columns/WebGridColumn"); for (var vfae97=0; vfae97<v65f14.length; vfae97++) wg4a378.m7c342(v65f14[vfae97],v9c571); } for (var node in v60a2) ISXml.RemoveNode(v98330.documentElement,v60a2[node]); } v57f82 =v98330.xml; v98330 =null; } vf9d92.CustomStateString =v57f82; var v81970 =document.getElementById(vf9d92.xmlInputHiddenUniqueID); if (v81970 ==null) v81970 =document.getElementById(vf9d92.xmlInputHiddenUniqueID.replace(/:/g,"_")); if (v81970 ==null) v81970 =document.getElementById(vf9d92.xmlInputHiddenUniqueID.replace(/\$/g,"_")); if (v81970 !=null) v81970.value =escape(v57f82); }, meb172:function(v11683) { switch (v11683.LastAction) { case "AddRow": case "Insert": var vb7211 =v11683.LayoutSettings.ResetNewRowValuesOnError; var vcd378 =v11683.LastSelObj.GetRowElement(); var v91668 =v11683.LastRequestObj.RowElement; if (vb7211 ||(v91668 &&!wgIsSameRow(vcd378,v91668))) { try { wg2f128.m09f77(v11683,v91668); if (wgIsSameRow(vcd378,v91668)) wgdee10.m0d99(v91668,v11683.GetCurSelImage()); } catch (e) { } ; } break; case "UpdateRow": case "Update": var v91668 =v11683.LastRequestObj; wg2f128.m01e94(v91668.RowElement); break; } }, m56984:function(v71313) { var v7d766 =v71313.XmlDt; for (table in v71313.Tables) { var v43b57 =v71313.Tables[table]; if (typeof (v43b57)=="function") continue; var vbf953 =v43b57.GetRowCheckerColumn(); if (vbf953 ||v43b57.Get("AllowMultipleSelection")=="Yes") { var ve6925 =v71313.LayoutSettings.RestoreRowSelection; var vb4847 =v43b57.GetCheckedRows(); if (vb4847.length>0) { var vde136 =v43b57.XmlNode; ISXml.RemoveNode(vde136,"checkedRows"); var va575 =ISXml.GetNode(vde136,"checkedRows"); if (!va575) va575 =ISXml.CreateNodeOnly(v7d766,"checkedRows",""); for (var v62a82=0; v62a82<vb4847.length; v62a82++) { var vfd649 =ISXml.CreateNode(v7d766,va575,"rowKV",""); if (v43b57.HasMultiPrimaryKey) { var v8b674 =wgGetKeyValues(vb4847[v62a82]); for (var vd4745=0; vd4745<v8b674.length; vd4745++) { ISXml.CreateCDATA(v7d766,vfd649,"keyValue" +vd4745,v8b674[vd4745]); } } else { ISXml.CreateCDATA(v7d766,vfd649,"keyValue",vb4847[v62a82].keyValue); }  if (ve6925 !="Disabled") { if ((ve6925 =="RootTableOnly" &&v43b57.IsRootTable)||(ve6925 =="ChildTableOnly" &&!v43b57.IsRootTable)||ve6925 =="All") { if (!v43b57.Storage.SelectedRows.Contains(vb4847[v62a82])) v43b57.Storage.SelectedRows.Add(vb4847[v62a82]); } } }  if (ve6925 =="Disabled") vde136.appendChild(va575); } else { var vde136 =v43b57.XmlNode; ISXml.RemoveNode(vde136,"checkedRows"); } } } }, ReplaceXmlNode: function(v04533,vab495,v9bc9) { var vfe013 =vab495.indexOf("<" +v04533 +">"); var ved385 =vab495.indexOf("</" +v04533 +">"); if (vfe013>=0 &&ved385>=0 &&ved385>vfe013) { var vba542 =vab495.substring(0,vfe013); var vc7473 =vab495.substring(ved385 +v04533.length +3); return vba542 +"<" +v04533 +">" +v9bc9 +"</" +v04533 +">" +vc7473; } }, m8cc50:function(v60663,v97362,v7b046,v39b3) { var vcfe52 =v60663.Grid; var vf5a4 =false;  if (vcfe52.LastClientAction) { if (vcfe52.LastClientAction.indexOf("ClientService")==-1) { vf5a4 =true; v97362 =vcfe52.LastClientAction;  if (v97362.indexOf("Paging")>-1) v97362 ="Paging"; else if (v97362 =="Group" ||v97362 =="Ungroup" ||v97362 =="ColumnChange") v97362 ="ColumnGroup"; } }  switch (v97362) { case "ColumnSort": case "ColumnFilter": case "Refresh": case "BatchUpdate": if (v60663.IsRootTable) { if (vcfe52.FreezePaneActive &&vcfe52.FrozenColumns !=null) { if (!v7b046) { v7b046 =new WebGridPartOption(); v7b046.Body =true; }  if (vcfe52.RequireInvalidateFreezeContainer) { wg91c62.m1fb14(vcfe52); vcfe52.RequireInvalidateFreezeContainer =false; }  wg91c62.m74d2(vcfe52); wg91c62.m1ba74(vcfe52,true,v7b046); } else if (vcfe52.LayoutSettings.AllowColumnFreezing =="Yes" &&!vcfe52.FreezePaneActive) { wg91c62.m1fb14(vcfe52); wg91c62.m4ce23(vcfe52,0,true,false,true); } } vcfe52.NeedHeightResize =true; break;  case "ColumnGroup": case "RefreshAll": case "Paging": case "LoadData":  if (v97362 =="RefreshAll") { wg4a378.mdbd62(vcfe52); }  if (typeof (v39b3)=="undefined") { var v4e876 =false;  if ((IS.ie ||v97362 =="Paging")&&vf5a4) { if (vcfe52.FreezePaneActive &&vcfe52.FrozenColumns !=null) { v4e876 =true; v7b046 =new WebGridPartOption(); v7b046.Body =true; wg91c62.m1ba74(vcfe52,true,v7b046); wg91c62.m74d2(vcfe52,true,v60663.GetElement(WG40.BODY,WG40.HTMLTABLE).rows); } }  if (!v4e876) { if (vcfe52.FreezePaneActive &&vcfe52.FrozenColumns !=null) { if (!v7b046) v7b046 =new WebGridPartOption(true); wg91c62.m4ad6(vcfe52,true); wg91c62.m1fb14(vcfe52); } else if (vcfe52.LayoutSettings.AllowColumnFreezing =="Yes" &&!vcfe52.FreezePaneActive) { wg91c62.m1fb14(vcfe52); wg91c62.m4ce23(vcfe52,0,true,false,true); } }  if (!IS.ie &&vcfe52.BindingOperationMode =="ClientBinding") { if (vcfe52.FreezePaneActive &&vcfe52.FreezeConfig !=null) { if (v60663.Get("ColumnFooters")=="Yes") { var v3e897 =v60663.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE); wg91c62.m33052(v60663,v3e897.children[0]); } } } } else if (v39b3 ==0) {  } vcfe52.NeedHeightResize =true; wg91c62.me0511(vcfe52); break; case "AddRow": case "UpdateRow": { if (vcfe52.FreezePaneActive &&vcfe52.FrozenColumns !=null) { if (!v7b046) { v7b046 =new WebGridPartOption(); v7b046.Footer =true; }  wg91c62.m1ba74(vcfe52,true,v7b046); } } }   if (IsIE8StandardMode()) { vcfe52.NeedHeightResize =true; wg91c62.md6b94(vcfe52); }   if (IS.ie) { wg91c62.mb9818(v60663); wg4a378.m2bf63(vcfe52); }  if (v60663.Get("AllowMultipleSelection")=="Yes") wg4a378.m0ee86(vcfe52);  if (vcfe52.LayoutSettings.AllowBatchUpdate) { wg02f52.mecf19(v60663,vcfe52.XmlResp); wg02f52.me0183(v60663,v39b3); } if (vcfe52.BindingOperationMode =="ClientBinding") wg2e846.mc7592(v60663);  if (v60663.Storage !=null) v60663.Storage.RefreshUI(v39b3); },  m81946:function(v6a138,vd3351,v0ea98) { var vf1538 =v6a138.Grid;  switch (vd3351) { case "More": case "LoadGroup": case "AddRow": break; } if (vf1538.BindingOperationMode =="ClientBinding") { wg2e846.mc7592(v6a138,v6a138._PartialRows,v0ea98); if (v6a138.Storage !=null) v6a138.Storage.RefreshUI(v0ea98); } else if (vf1538.LayoutSettings.AllowBatchUpdate &&vd3351 =="More" &&v6a138.GroupedColumns.length ==0) { wg02f52.m35356(v6a138); }  v6a138._PartialRows =null; },  m0ee86:function(v96257) { for (var table in this.Tables) { if (table !=null &&typeof(table)=="string") { var v8fd57 =this.Tables[table];  if (typeof(v8fd57)!="function" &&v8fd57 !=null) v8fd57.ClearSelectedRows(); } } },  m59d2:function(v24c13) { var vf7357 =v24c13.parentElement; var va4e61 =0;  for (var v1db65=0; v1db65<vf7357.cells.length; v1db65++) { if (vf7357.cells[v1db65] ==v24c13) return va4e61;  va4e61++; }  return -1; },  maac10:function(v00b63,v8ff17,v13054) { var v80c13 =v00b63._tableCache;  if (v80c13 ==null) v80c13 =v00b63.GetElement(WG40.BODY,WG40.HTMLTABLE,v8ff17);  var vf8e40 =-1; var vd1750 =null;  if (!v80c13) return null;  if (typeof(v13054)=="string") { if (v00b63.IsUseColumnSet) return wgGetCSCellByName(v8ff17,v13054);  if (v00b63.IsRootTable) { if (v00b63._colIndexCache &&typeof(v00b63._colIndexCache[v13054])=="number") { vf8e40 =v00b63._colIndexCache[v13054]; } else { if (v00b63._headerRowCache) vd1750 =v00b63._headerRowCache; else { vd1750 =v00b63.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v8ff17).rows[0]; v00b63._headerRowCache =vd1750; } } } else vd1750 =v00b63.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v8ff17).rows[0];  if (vd1750) { var v0bd33 =vd1750.cells.length;  for (var ve530=0; ve530<v0bd33; ve530++) { v05670 =vd1750.cells[ve530]; wg4a378.mb6b61(v05670); if ((v05670.type =="Column")&&v05670.colName ==v13054) { if (!v00b63._colIndexCache) v00b63._colIndexCache =[];  v00b63._colIndexCache[v13054] =ve530;  vf8e40 =ve530; break; } } } }  else { var v7e115 =v8ff17.cells; var vb6213 =-1;  for (var ve530=0; ve530<v7e115.length; ve530++) { var v05670 =v7e115[ve530]; var vcd935 =""; wg4a378.mb6b61(v05670); vcd935 =v05670.type;  wg4a378.mb6b61(v05670); if (vcd935 =="Cell" ||vcd935 =="GroupCell" ||vcd935 =="FilterColumn") vb6213++; if (v13054 ==vb6213) { vf8e40 =ve530; break; } } }  if (vf8e40>=0) return v8ff17.cells[vf8e40];  return null; },  mb2364:function(v88b73,ve9475) { var v0aa63 =ve9475.parentElement; var ve4a17 =v88b73.Grid; var v86a54 =null; var veba62 =false; if (!v88b73.IsUseColumnSet) { var v6e443 =null; var vec248 =ve9475.cellIndex;  if (IS.ie &&v88b73.IsRootTable &&ve4a17.FreezePaneActive &&ve4a17.FreezeConfig !=null && (wgIsRecordRow(v0aa63)||ve9475.style.display =="none")) veba62 =true;  if (v88b73.IsRootTable) { if (!veba62 &&v88b73._colIndexCache2 &&typeof(v88b73._colIndexCache2["index" +vec248])=="string") { return v88b73._colIndexCache2["index" +vec248]; } else { if (v88b73._headerRowCache) v86a54 =v88b73._headerRowCache; else { v86a54 =v88b73.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v0aa63).rows[0]; v88b73._headerRowCache =v86a54; } } } else v86a54 =v88b73.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v0aa63).rows[0];  if (v86a54) v6e443 =v86a54.cells;  for (var v7783=0; v7783<v6e443.length; v7783++) { var v54179 =v6e443[v7783]; var v0df0 =v54179.cellIndex;  if (!IS.ie) wgd2488.m00476(v54179);  if (veba62) v0df0 =wg4a378.m59d2(v54179);  if (ve9475.style.display =="none") vec248 =wg4a378.m59d2(ve9475);  if (v54179.type =="Column" &&v0df0 ==vec248) { if (!veba62) { if (!v88b73._colIndexCache2) v88b73._colIndexCache2 =[];  v88b73._colIndexCache2["index" +vec248] =v54179.colName; }  return v54179.colName; } } } else { if (typeof (ve9475.cs)=="undefined") return null; return v88b73.GetColNameByRowLayout(ve9475.cs,ve9475.r,ve9475.c); } },  m09a64:function(v11a9,vccb45,v61a43) { if (!vccb45) return false;  var vff873 =vccb45.parentElement; var v90675 =false;  if (typeof(v61a43)=="number") v90675 =true;  var v15725 =v11a9.Table.Grid;  if (v15725.LayoutSettings.AllowBatchUpdate &&v11a9.IsAutoIncrement) return false;  if (wgIsFilterRow(vff873)) return v11a9.GetFilterEditType()!="NoEdit";  else if (wgIsRecordRow(vff873)) return v11a9.EditType !="NoEdit" &&(vccb45.noEdit !="true" &&vccb45.noEdit !="True" )&& (!v90675 ||(v90675 &&v61a43 <vff873.cells.length));  else if (wgIsNewRow(vff873)) return v11a9.GetNewRowEditType()!="NoEdit";  return false; },  m38168:function(vaa448,v35864) { var v94629 =vaa448.XmlDt; var v02454 =ISXml.CreateNodeOnly(v94629,"Storage",""); var vb1c10 =false; for (var tableName in vaa448.Tables) { var v7d772 =vaa448.Tables[tableName];  if (typeof(v7d772)=="object") { var v7119 =v7d772.Storage.SerializeToXml(v35864);  if (v7119 !=null) { vb1c10 =true; v02454.appendChild(v7119); } } }  ISXml.RemoveNode(vaa448.XmlNode,"Storage");  if (vb1c10) { vaa448.XmlNode.appendChild(v02454); } },  mdbd62:function(v99268) { for (var tableName in v99268.Tables) { var v8fe68 =v99268.Tables[tableName];  if (typeof(v8fe68)=="object") v8fe68.Storage.Initialize(); } },  m7d563:function(v9dd68) { var vb5e68 =ISXml.GetNode(v9dd68.XmlDt,"//Storage");  if (vb5e68 !=null) { for (var tableName in v9dd68.Tables) { var vf2573 =v9dd68.Tables[tableName];  if (typeof(vf2573)=="object") { var vd1544 =ISXml.GetNode(vb5e68,"//Table[@Name='" +tableName +"']");  if (vd1544 !=null) vf2573.Storage.Deserialize(vd1544); } } } },  m1f544:function(v4164,vf6343,v7aa62,v44337) { var vb5168 =vf6343.GetElement(WG40.BODY,WG40.HTMLTABLE,v7aa62); var vf9973 =v4164; var v12244 =new Array(); if (vb5168.rows.length ==0) return null; while (vf9973) { if (vf9973.type =="GroupHeader" &&vf9973.groupIndex =="0") return vf9973; else if (vf9973.type =="GroupHeader" &&v44337) wgExpandGroupRow(vf9973); vf9973 =wgGetPreviousRow(vb5168,vf9973); } return null; },  m7a366:function(va0095,vbc991) { if (vbc991.Position ==0) return null; for (var v9a223 =vbc991.Position -1; v9a223 >-1; v9a223--) { var v5f652 =va0095.Columns[v9a223]; var vce429 =false;  if (v5f652.IsGrouped &&va0095.Grid.LayoutSettings.HideColumnsWhenGrouped =="Yes") vce429 =true;  if (v5f652 !=null &&v5f652.Visible &&!vce429) return v5f652; }  return null; },  m36910:function(v50c15,v4111) { var vda515 =""; if (v50c15.HasMultiPrimaryKey) vda515 =wgGetKeyValues(v4111).join("\03"); else vda515 =v4111.keyValue;  if (typeof(vda515)=="undefined") vda515 ="";  return vda515; },  m39852:function(v0c034,v73011) { if (v0c034 ==v73011) return true;  var v14034 =v0c034.replace("\r","").replace("\n",""); var va7c11 =v73011.replace("\r","").replace("\n","");  if (v14034 ==va7c11) return true;  return false; },  m84894:function(va4434) { return (va4434 ==" " ||escape(va4434)=="%A0"); },  m90f94:function(vb8634,vc8e11) { if (vb8634.HasValueList &&vb8634.Get("UseValueListForSorting")=="Yes") return "Text";  switch (vb8634.DataType) { case "System.String": return "Text";  case "System.Int16": case "System.UInt16": case "System.UInt32": case "System.Int64": case "System.UInt64": case "System.Int32": case "System.Single": case "System.Double": case "System.Byte": case "System.SByte": case "System.Decimal": return "Number";  case "System.DateTime": return "Date";  case "System.Boolean": return "Bool";  case "System.Guid": if (vc8e11) return "Guid"; }  return "Text"; } };var wg_Global = { Resizer: null, Dragger: null, IsHeaderDragged: false, MouseMoved: false, MouseCoord: null, TargetHeader: null, ColSizeTarget: null, ColDragTarget: null, ColPointer: null, MoveColEventArgs: null, IsMouseDown: false, ToolTipDelay: 50, TTId: 0, SortAscImage: "wg5_sortasc.gif", SortDescImage: "wg5_sortdesc.gif", SelectColumnImage: "wg5_selectcolumns.gif", GroupImage: "wg5_groupby.gif", GroupByBoxImage: "wg5_gbb.gif", EditImage: "wg5_edit.gif", CopyImage: "wg5_copy.gif", DeleteImage: "wg5_deleterow.gif", UpdateImage: "wg5_updaterow.gif", CancelImage: "wg5_cancel.gif", FilterRowImage: "wg5_filterbar.gif",  FreezePaneImage: "wg5_freeze.gif",  RemoveColumnImage: "wg5_removecolumn.gif",  BestFitImage: "wg5_bestfit.gif",  ApplyFilterImage: "wg5_applyfilter.gif",  ClearFilterImage: "wg5_clearfilter.gif",  ShowChildImage: "wg5_drillinto.gif",  HideChildImage: "wg5_drillout.gif",  NewRowImage: "wg5_newrow.gif",  PasteImage: "wg5_paste.gif",  RefreshImage: "wg5_refresh.gif",  ExportImage: "wg5_export.gif",  HelpImage: "wg5_help.gif",  LoadMoreImage: "wg5_more.gif",  UndoChangesImage: "wg7_undochanges.gif",  UndoAllChangesImages: "wg7_undoallchanges.gif",  AcceptAllChangesImage: "wg7_acceptallchanges.gif",  ReviewChangesImage: "wg7_reviewchanges.gif", ColumnContext: null, RowContext: null, ExportContext: null, EventContext: null, LastSelObj: null, SelectorObj: null, CalDDImg: "CalendarDD.gif", CalFile: "ISCalendar.htm", CalPopObj: null, CalFrObj: null, LastValRowObj: null, LastRowCtx: null, NoDisplayUpdate: false, PendingUpdates: null, ActiveGrid: null, TempResizeID: 0, IsResizing: false, FilterType: new Array( [ "NotSet", 0 ], [ "GTET", 1 ], [ "GT", 2 ], [ "ET", 3 ], [ "NET", 9 ], [ "LTET", 4 ], [ "LT", 5 ], [ "Like", 6 ], [ "NotLike", 11 ], [ "Contain", 16 ], [ "NotContain", 17 ], [ "Between", 7 ], [ "NotBetween", 10 ], [ "IsNull", 12 ], [ "NotIsNull", 13 ], [ "IsEmpty", 14 ], [ "NotIsEmpty", 15 ]), FilterTypeEnum: new Array("NotSet","GreaterThanOrEqualTo","GreaterThan","EqualTo","LessThanOrEqualTo","LessThan","Like", "Between","NoFilter","NotEqualTo","NotBetween","NotLike","IsNull","NotIsNull", "IsEmpty","NotIsEmpty","Contain","NotContain" ), ErrorBox: null, LastKeyDownProcessed: false, IsDragObjectValid: false, GlobalResizeID: 0 };function InitWG60(v56664,v9435){ var v20828 =wg4a378.m88164(v56664); v20828.NeedFocus =v9435; v20828.IsLoaded =true; v20828.OnInitialize();  if (IS.OnAJAXInitialization) { if (v20828.WebCombos.length >0 ||v20828.IsClassicPaging()) setTimeout(wg4a378.md7010,50);  if (!IS.ie) wg4a378.mb6836(v20828); }}var posLib2 = { getLeftAbs: function(vbfe66,vaf649) { if (!IS.ie) { var v41566 =ISPosLib.getLeftNonIE(vbfe66); if (vaf649) { if (vaf649.PosRelativeTo) { v41566 +=ISPosLib.getLeftNonIE(vaf649.PosRelativeTo); } } return v41566; } if (vaf649 &&vaf649.LayoutSettings.UseRelativePositioning) { return ISPosLib.getLeft(vbfe66); } var v41566 =vbfe66.style.posLeft; var v0f079 =vbfe66.parentElement; v41566 +=ISPosLib.getBorderLeftWidth(vbfe66); if (v0f079) { if (v0f079.style.position.toLowerCase()=="absolute") v41566 +=v0f079.style.posLeft; } if (vaf649) { if (vaf649.PosRelativeTo) { v41566 +=ISPosLib.getLeft(vaf649.PosRelativeTo); } } return v41566; }, getTopAbs: function(v4922,vc0719) { if (!IS.ie) { var v99a2 =ISPosLib.getTopNonIE(v4922); if (vc0719) { if (vc0719.LayoutSettings.UseRelativePositioning) { return v99a2; } if (vc0719.PosRelativeTo) { v99a2 +=ISPosLib.getTopNonIE(vc0719.PosRelativeTo); } if (vc0719.FrameObj.style.position !="absolute") return 0; } if (v4922.style.position =="absolute" ||v4922.style.position =="relative") return v99a2; else return 0; } if (vc0719 &&vc0719.LayoutSettings.UseRelativePositioning) { return ISPosLib.getTop(v4922); } var v99a2 =v4922.style.posTop; var v2ad98 =v4922.parentElement; v99a2 +=ISPosLib.getBorderTopWidth(v4922); if (v2ad98) { if (v2ad98.style.position.toLowerCase()=="absolute") v99a2 +=v2ad98.style.posTop; } if (vc0719) { if (vc0719.PosRelativeTo) { v99a2 +=ISPosLib.getLeft(vc0719.PosRelativeTo); } } return v99a2; } };function _FixAmpChar(v2110){ v2110 =v2110.replace(/&/g,"&amp;"); return v2110;}function WebGridCoreDestructor(){ wg_Global =null; delete wg_Global; delete wg4a378; window.detachEvent("onunload",WebGridCoreDestructor); IS.RegisterUnloadVariables("wg4a378");}window.attachEvent("onunload",WebGridCoreDestructor);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();
