
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 10/23/2009 4:50:31 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(vbd656){ 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,vbd656); 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  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 =vbd656; 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.ReviewDialogBox =null; this.AutoIntegrateToDesktopManager =true; this.FoundValidDesktopManagerInstance =false;  this.OnInitialize =function() { if (this.IsPreviewMode) { wg11c43.m7f837(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 v2cd87=0; v2cd87<this.UtilizedCustomEditors.length; v2cd87++) this.CustomEditors[this.UtilizedCustomEditors[v2cd87].Name] =this.UtilizedCustomEditors[v2cd87]; if (typeof (ISGetCultureInfo)=="function") this.CultureInfo =ISGetCultureInfo(this.LayoutSettings.Culture,false); if (this.CultureInfo ==null) wg4a444.m03d8(this); this.SetStatus1("","ready","CommonText/Ready"); if (!this.LayoutSettings.StatusBarVisible &&IS.moz) var vc3142 =this.GetString("Ready"); var v68d38 =this.TotalLoadedRows; var v70f97 =this.TotalRows; if (v70f97<v68d38) { v68d38 =v70f97; this.TotalLoadedRows =v68d38; }  if (this.IsClassicPaging()) { v68d38 =this.GetCurrentPage(); v70f97 =this.GetTotalPages(); } this.SetStatus2("","loaded",v68d38,v70f97); wg4a444.m33d58(this);   var v82873 =["FocusCell","AddedRow","ModifiedRow","DeletedRow"];  for (var v2cd87=0; v2cd87<v82873.length; v2cd87++) { var v6c510 =ISXml.GetNode(this.LayoutSettings.XmlNode,"//" +v82873[v2cd87] +"Style");  if (v6c510 !=null) this.LayoutSettings.XmlNode.removeChild(v6c510); else this.LayoutSettings.XmlNode.removeAttribute(v82873[v2cd87] +"Style"); } var v6ea72 =this.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); if (v6ea72 &&v6ea72.style.display =="none") v6ea72.style.display ="block";  if (this.LayoutSettings.AllowColumnFreezing =="Yes") { if (this.RootTable.IsUseColumnSet) this.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns =0;  wg11c43.m9ad14(this); wg11c43.m88a34(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.DefaultStyleMode =="Elegant") { this.BuiltInDropDown =false; this.CalDDImg ="wg5_calendar.gif"; }   var v4e090 =this.FrameObj; if (IS.ie) { var v1e326 =v4e090.currentStyle; var vbad64 =v4e090.parentElement.style; var vbfe22 =parseFloat(v1e326.borderTopWidth);  if (v1e326.position !="absolute" &&vbfe22 >0) { vbad64.borderRightWidth =v1e326.borderRightWidth; vbad64.borderRightStyle =v1e326.borderRightStyle; vbad64.borderRightColor =v1e326.borderRightColor; vbad64.borderLeftWidth =v1e326.borderLeftWidth; vbad64.borderLeftStyle =v1e326.borderLeftStyle; vbad64.borderLeftColor =v1e326.borderLeftColor; vbad64.borderTopWidth =v1e326.borderTopWidth; vbad64.borderTopStyle =v1e326.borderTopStyle; vbad64.borderTopColor =v1e326.borderTopColor; vbad64.borderBottomWidth =v1e326.borderBottomWidth; vbad64.borderBottomStyle =v1e326.borderBottomStyle; vbad64.borderBottomColor =v1e326.borderBottomColor; v4e090.style.border ="none 0px"; } }   wg11c43.m35f55(this);  wg4a444.m4c077(this);  if (this.BindingOperationMode =="ClientBinding") { var vb4379 =this.ClientBindingSettings.DataSourceType; if (vb4379 !="ServerDataSource") { if (vb4379 =="WebService" ||vb4379 =="WcfService") this.ClientProvider =new WebServiceDataSourceProvider(this); else if (vb4379 =="AdoDataService") this.ClientProvider =new AstoriaDataSourceProvider(this); } }  ISEvent.Raise(this.LayoutSettings.ClientSideEvents.OnAfterInitialize,this.Id); v6ea72 =null; }; this.OnUnload =function() { wg4a444.mdcd26(this); Listener.Unload(this.FrameObj); Listener.Unload(this.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV));  for (var v98333 in this.Tables) { if (v98333 !=null &&typeof(v98333)=="string") { var ve8970 =this.Tables[v98333];  if (typeof(ve8970)!="function" &&ve8970 !=null) ve8970.OnUnload(); } }  if (this.ChartContainer &&this.ChartInteractiveUI) this.ChartInteractiveUI.OnUnload(); };  this.ResolveImagePathEx =function(v6aa6) { return this.ResolveImagePath(this.GetImagesFolder(),v6aa6); }; this.__getter =function(vcdb76) { switch (vcdb76) { case "Visible": return (this.FrameObj.style.display ==""); } }; this.ReBindingPostBackData =function(ve7212) { wg4a444.m70c12(this); wg4a444.m97a30(this); wg4a444.mb4467(this,ve7212); }; this.PrepareAdditionalPostBackData =function() { wg4a444.mfad87(this); }; this.OnResponseError =function(v8a814) { wg4a444.me9216(this,v8a814); }; this.OnResponse =function(v8a814,vd9640) { wg4a444.md0b65(this,v8a814,vd9640); }; this.GetFocusControl =function() { var vaa755 =document.getElementById(this.Id +"_Moz"); if (vaa755) vaa755.grid =this; return vaa755; };  this.IsRightToLeft =function() { var v9f02 =this.FrameObj.currentStyle.direction; return v9f02 =="rtl"; }; this.EnsureActiveEditCellFocus =function() { if (typeof (wg08d15)!="undefined") wg08d15.m66983(this); }; this.EditKeyboardHandler =function(v93d51) { wg08d15.mc832(this,v93d51); }; this.GetRootTable =function() { return this.RootTable; }; this.GetMaxWidth =function() { var v9f377 =this.GetRootTable().GetElement(WG40.BODY,WG40.HTMLTABLE).offsetWidth; var vb9e80 =v9f377; var v98333; for (v98333 in this.Tables) { var ve6415 =this.Tables[v98333]; if (typeof (ve6415)!="function") vb9e80 =Math.max(vb9e80,ve6415.GetMaxWidth()); } return vb9e80; }; this.GetRootTableWidth =function() { var v99793 =this.GetRootTable().GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v99573 =v99793.rows[0].cells[v99793.rows[0].cells.length -1]; return v99793.offsetWidth -v99573.offsetWidth; }; this.GetPreferredRootTableWidth =function() { var v99793 =this.GetRootTable().GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v99573 =v99793.rows[0].cells[v99793.rows[0].cells.length -1]; if (v99573.style.width.indexOf("%")>0) return v99793.offsetWidth -v99573.offsetWidth; else return v99793.offsetWidth; }; this.FixPadColumnWidth =function() { if (this.GetMaxWidth()>this.GetRootTableWidth()) { var va0886 =this.GetMaxWidth()-this.GetRootTableWidth()+50; var vba291 =this.GetRootTable(); var vb5b90 =vba291.GetElement(WG40.COLGROUP); var v5fa86 =vb5b90.childNodes[vb5b90.childNodes.length -1]; v5fa86.width =va0886; var v0d068 =v5fa86.width; if (wg4a444.m88163(this.GetRootTable().GetElement(WG40.BODY,WG40.HTMLDIV))) v0d068 +=17; vb5b90 =vba291.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); v5fa86 =vb5b90.rows[0].cells[vb5b90.rows[0].cells.length -1]; wg4a444.m7d086(vba291,v5fa86,v0d068); v5fa86.locked =true; } }; this.GetColumnByElement =function(vc4170) { return wg4a444.m5c40(vc4170); }; this.GetCellByElement =function(vc4170) { return wg4a444.m2fe62(vc4170); }; this.GetRowByElement =function(vc4170) { return wg4a444.mb6356(vc4170); }; this.GetElement =function(vb9c42,va9e58) { if (va9e58 ==WG40.HTMLROW) { var v6d624 =this.GetElement(vb9c42,WG40.HTMLCELL); return v6d624.parentElement; } else { return document.getElementById(va9e58 +vb9c42 +"_" +this.Name); } };  this.GetFreezeTableElement =function() { return this.GetElement(WG40.FREEZEBAR,WG40.HTMLTABLE); };  this.GetFreezeOuterDivElement =function() { var v98333 =this.GetFreezeTableElement(); var vb4876 =v98333.rows[0].cells[0]; var v72f67 =vb4876.children[0];  return v72f67; };  this.GetFreezeDivElement =function() { var v72f67 =this.GetFreezeOuterDivElement();  return v72f67.children[0]; }; this.SetStatus1 =function(v5f738,v38d8,vf1913,vfee99) { if (this.LayoutSettings.StatusBarVisible) { if (vf1913 !="" &&!this.IsPreviewMode) { var v21b8 =this.LayoutSettings.TextSettings.TextItems.GetItemByProperty("TextItem",vf1913); if (v21b8) v5f738 =v21b8.TextValue; if (v5f738 !="") { if (v5f738 =="none") v5f738 =""; } else { v5f738 =this.GetString(vf1913); if (typeof (v5f738)=="undefined" ||v5f738 ==null) { var v8c225 =this; setTimeout(function() { v8c225.SetStatus1("",v38d8,vf1913,vfee99); },100); return; } } }  if (typeof(vfee99)!="undefined") v5f738 =v5f738.replace("{0}",vfee99); var v5b863 =this.GetElement(WG40.STATUSBAR,WG40.HTMLCELL).children[0]; var vaad26 =v5b863.parentElement; var v4ce74 =0; var v8b175 =0; v8b175 =ISPosLib.getWidth(vaad26); v5b863.innerText =v5f738; v4ce74 =v5b863.scrollWidth; v5b863.style.visibility ="hidden"; if (v8b175 <v4ce74) v5b863.style.width =(v8b175 -4)+"px"; else v5b863.style.width =""; v5b863.style.visibility ="visible";  if (IS.ie) v5b863.style.display ="inline"; else v5b863.style.display ="inline-block"; } }; this.SetStatus2 =function(v5f738,v38d8,v4f635,vf8086) { if (this.LayoutSettings.StatusBarVisible) { if (v38d8 =="loaded") { v5f738 =this.GetLoadedText(v38d8,v4f635,vf8086); if (typeof (v5f738)=="undefined") { var v8c225 =this; setTimeout(function() { v8c225.SetStatus2(v5f738,v38d8,v4f635,vf8086); },100); return; } } else { var v09327 =this.GetString(v38d8); if (v09327 !="") v5f738 =v09327; } this.GetElement(WG40.STATUSBARRIGHT,WG40.HTMLCELL).innerText =v5f738;  if (this.IsClassicPaging()) wg99e57.m36e32(this); } }; this.SendCustomRequest =function() { wg4a444.mb4941(this.Name,"Custom"); }; this.ClearSelectedObject =function(vb1a11) { if (vb1a11 &&this.LastSelObj !=null) { wg54045.mdae93(this.LastSelObj.element,"","","Clear"); var vafb35 =wgGetRowHeader(this.LastSelObj.element); if (vafb35) vafb35.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 v4dc62 =this.GetDefaultLanguageXml(); var ve8459 =this.LayoutSettings.TextSettings.Language; if (ve8459 =="UseCulture") { var vdf481 =document.getElementById("WGLang_" +this.LayoutSettings.Culture); if (!vdf481) return v4dc62; else return vdf481; } else if (ve8459 =="UseCustom") { var vdf481 =document.getElementById("WGLang_" +this.LayoutSettings.TextSettings.UseLanguage); if (!vdf481) return v4dc62; else return vdf481; } return v4dc62; }; this.GetString =function(vf1913) { var v8a814 =""; if (this.IsPreviewMode) return vf1913; var v21b8 =this.LayoutSettings.TextSettings.TextItems.GetItemByProperty("TextItem",vf1913); if (v21b8) v8a814 =v21b8.TextValue; if (v8a814 =="") { var vdf481 =this.GetLanguageXml(); if (!IS.ie &&!this.LanguageXml) { vdf481 =ISMoz.ConvertToXmlObject(vdf481); this.LanguageXml =vdf481; } if ((!IS.ie &&vdf481.xml =="")||(IS.ie &&vdf481.readyState !="complete")) return null; var v52a10 =ISXml.GetNode(vdf481,"//" +vf1913); if (v52a10) { v8a814 =v52a10.text; } } return v8a814; }; this.GetLoadedText =function(v38d8,v4f635,vf8086) { var v5f738 =""; var v7fe93 =false; try { if (this.IsClassicPaging()) v5f738 =this.GetString("CommonText/PagingStatus"); else v5f738 =this.GetString("CommonText/Loaded"); if (v5f738 ==null ||v5f738 =="") v7fe93 =true; } catch (e) { v7fe93 =true; } if (v7fe93) { var vc1040 =this; setTimeout(function() { vc1040.GetLoadedText(v38d8,v4f635,vf8086); },100); return; } if (this.IsClassicPaging()) { v5f738 =v5f738.replace("{0}",v4f635).replace("{1}",vf8086); v4f635 =this.TotalLoadedRows; vf8086 =this.TotalRows; } else { v5f738 =v5f738.replace("[n]",v4f635); v5f738 =v5f738.replace("[total]",vf8086); } if (v4f635 ==0 ||vf8086 ==0) wg11c43.m0c697(this); else wg11c43.m7f837(this); return v5f738; }; 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 vf4d85 =false; for (ve6415 in this.Tables) { var v98333 =this.Tables[ve6415]; if (typeof (v98333)!="function" &&v98333.GroupedColumns.length>0) { vf4d85 =true; break; } } return vf4d85; }; this.ActivateEditMode =function(v88886) { return wg08d15.m23116(this,v88886); }; this.ExitEditMode =function(vc8b22) { if (typeof(wg08d15)!="undefined") return wg08d15.maf456(this.LastEditObj,vc8b22); }; this.ValidateRow =function(v5c56) { return wg08d15.mefe72(this,v5c56); }; this.ExitEdit =function(v58742,ve7e13,vd516) { return wg08d15.m5f286(this,v58742,ve7e13,vd516); }; this.UpdateState =function() { }; this.ShowGroupByBox =function() { var ve7636 =this.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (ve7636) { var v70f97 =ve7636.parentElement; this.NeedHeightResize =true; v70f97.style.display =""; if (IS.moz) { var v1fe10 =this; window.setTimeout(function() { wga4d9.mc0e2(v1fe10); },100); } } }; this.HideGroupByBox =function() { var ve7636 =this.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (ve7636) { var v70f97 =ve7636.parentElement; this.NeedHeightResize =true; v70f97.style.display ="none"; if (IS.moz) { var v1fe10 =this; window.setTimeout(function() { wga4d9.mc0e2(v1fe10); },100); } } }; this.IsGroupByBoxShown =function() { var ve7636 =this.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (ve7636) { var v70f97 =ve7636.parentElement; return v70f97.style.display ==""; } return false; }; this.ShowFilterBar =function() { var v9df51 =this.GetRootTable().GetFilterRow(); var v2e587 =new Array(); if (wgIsColumnSetRow(v9df51)) v2e587 =wgGetColumnSetRows(v9df51); else v2e587[0] =v9df51; this.LayoutSettings.Set("FilterBarVisible",true,true); for (var v2cd87=0; v2cd87<v2e587.length; v2cd87++) v2e587[v2cd87].style.display =""; if (!IS.ie) { var v1fe10 =this; window.setTimeout(function() { wga4d9.mc0e2(v1fe10); wga4d9.mf1b54(v1fe10.GetRootTable()); },100); } }; this.HideFilterBar =function() { var v9df51 =this.GetRootTable().GetFilterRow(); var v2e587 =new Array(); if (wgIsColumnSetRow(v9df51)) v2e587 =wgGetColumnSetRows(v9df51); else v2e587[0] =v9df51; this.LayoutSettings.Set("FilterBarVisible",false,true); for (var v2cd87=0; v2cd87<v2e587.length; v2cd87++) v2e587[v2cd87].style.display ="none"; if (IS.moz) { var v1fe10 =this; window.setTimeout(function() { wga4d9.mc0e2(v1fe10); },100); } }; this.IsVisible =function() { return this.Get("Visible"); }; this.SetBusy =function() { if (this.LayoutSettings.StatusBarVisible) { var v6aa6 =document.getElementById("tdStatIcon_" +this.Name).childNodes[0]; v6aa6.style.visibility ="visible";  if (v6aa6.src.indexOf(this.LayoutSettings.ImageSettings.InProgressImage)==-1) v6aa6.src =this.ResolveImagePathEx(this.LayoutSettings.ImageSettings.InProgressImage); } if (this.LayoutSettings.InProgressUIBehavior =="ChangeCursorToHourGlass") { var vbae58 =document.getElementById(this.Name +"_ImgB"); if (!vbae58) { vbae58 =document.createElement("IMG"); vbae58.id =this.Name +"_ImgB"; vbae58.style.cssText ="z-index: 299; filter2:alpha(opacity=0); position:absolute; height:50px; width:50px;"; vbae58.src =this.ResolveImagePathEx("wg_blank.gif"); document.body.appendChild(vbae58); } vbae58.style.display =""; vbae58.style.cursor ="wait"; this.FrameObj.onmousemove =function() { wg4a444.md1780(vbae58); }; } }; 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 vbae58 =document.getElementById(this.Name +"_ImgB");  if (vbae58 !=null) { vbae58.style.cursor ="default"; vbae58.style.display ="none"; this.FrameObj.onmousemove =null; } } };  this.ResetStatus =function(v99e33) { if (this.IsStatusLocked ||v99e33) { this.IsStatusLocked =false; this.IsUnhandledError =false; this.SetIdle(); this.SetStatus1("","ready","CommonText/Ready");  if (v99e33) wg11c43.m0c697(this); } };  this.ClearChildTables =function(vdde33) { if (vdde33) { var v4f666 =this.Tables[vdde33].GetChildTables(); for (var v2cd87=0; v2cd87<v4f666.length; v2cd87++) { var vd4744 =this.Tables[v4f666[v2cd87].Id]; vd4744.SubTableIds =new Array(); } } else { var vba291 =this.GetRootTable(); var vb5b90 =vba291.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v7fa23 =vba291.GetElement(WG40.COLHEADER,WG40.HTMLDIV); if (!this.IsRightToLeft()) v7fa23.scrollLeft =0; else v7fa23.scrollLeft =v7fa23.scrollWidth; var v5fa86 =vb5b90.rows[0].cells[vb5b90.rows[0].cells.length -1]; v5fa86.locked =false; for (childTbl in this.Tables) { if (typeof (this.Tables[childTbl])!="function") this.Tables[childTbl].SubTableIds =new Array(); } } }; this.GetBlurRowStyle =function() { var ve2975 =this.LayoutSettings.LostFocusClass; if (ve2975 =="") return "background-color: gainsboro"; else return IS.GetCssText(this.Id,ve2975); }; this.GetEditFocusStyle =function() { var ve2975 =this.LayoutSettings.EditFocusClass; if (ve2975 =="") return "background-color: white;"; else return IS.GetCssText(this.Id,ve2975); }; this.GetXml =function() { return this.XmlDt; }; this.MarkEdit =function() { wg08d15.m25737(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 ="";  wg11c43.m73d62(this.Name); if (this.NeedFocus) wg4a444.mb9417(this,true); }; this.SetFocus =function() { wg4a444.mb9417(this,true); }; this.Hide =function() { if (IS.ie) this.FrameObj.parentElement.style.display ="none"; else this.FrameObj.style.display ="none"; }; this.ExportGrid =function(vb0952,vd1e71,v55677,v65983) { wg4a444.mb4941(this.Name,"Export",new Array(vb0952,vd1e71,v55677,v65983)); }; this.GetActiveEditCell =function() { return this.ActiveEditCell; }; this.GetLastEditObject =function() { return this.LastEditObj; }; this.SetHeight =function(v9c08) { wg11c43.m8b045(this,v9c08); };    this.FreezePane =function(vb4392) { if (typeof(vb4392)=="number") this.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns =vb4392;  wg11c43.m9ad14(this); wg11c43.m88a34(this,true); };  this.UnfreezePane =function() { wg11c43.m04b15(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(v51527,vbe760) { if (this.LayoutSettings.StatusBarVisible) { var v6aa6 =document.getElementById("tdStatIcon_" +this.Name).childNodes[0];  if (vbe760) v6aa6.src =v51527; else v6aa6.src =this.ResolveImagePathEx(this.LayoutSettings.ImageSettings[v51527 +"Image"]);  v6aa6.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 v98333 =this.Tables[tableName];  if (typeof(v98333)=="object") v98333.Storage.Clear(); } };  this.EnableBatchUpdate =function() { this.LayoutSettings.AllowBatchUpdate =true; this.LayoutSettings.BatchUpdateSettings =new WebGridBatchUpdateSettings(); };  this.IsClientBinding =function(v47166) { var v1b682 =this.ClientBindingSettings;  if (!v47166) v47166 ="ClientService";  if (this.BindingOperationMode =="ClientBinding") { if (v47166 =="ClientService" &&(v1b682.DataSourceType =="WebService" ||v1b682.DataSourceType =="WcfService" ||v1b682.DataSourceType =="AdoDataService")) return true; else if (v47166 =="Client" &&v1b682.DataSourceType =="ClientDataSource") return true; else if (v47166 =="Server" &&v1b682.DataSourceType =="ServerDataSource") return true; }  return false; };  this.GetAllTables =function() { var v4f666 =[]; v4f666.push(this.RootTable.Name);  return this.GetTableRecursive(v4f666,this.RootTable.ChildTables); }; this.GetTableRecursive =function(v4f666,v66a18) { for (var v2cd87=0; v2cd87<v66a18.length; v2cd87++) { v4f666.push(v66a18[v2cd87].Name);  if (v66a18[v2cd87].ChildTables.length >0) this.GetTableRecursive(v4f666,v66a18[v2cd87].ChildTables); }  return v4f666; };}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 ="";}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 vb6922 =this.BorderStyle; if (vb6922 =="NotSet") vb6922 =""; vb6922 =vb6922.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 " +vb6922; } else { var v4b758 =IS.GetCssObject(null,this.CssClass); if (v4b758) { if (v4b758.borderColor =="") v4b758.borderColor ="transparent"; if (v4b758.borderWidth =="") v4b758.borderWidth ="0"; if (v4b758.borderStyle =="") v4b758.borderStyle ="none"; return "border: " +v4b758.borderLeftColor +" " +v4b758.borderLeftWidth +" " +v4b758.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";}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.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(vfff13){ 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 =vfff13; 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(wg4a444.m10964(this.GetElement()));};pCell.Setup =function(td){ if (td !=null) wg4a444.mc4f43(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 =wg4a444.m28c66(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 =wg54045.m52d30(td); if (cnt) text =cnt.innerHTML; else text =td.innerHTML; if (text !="") { var regExp =new RegExp("\r\n","g"); text =text.replace(regExp,""); } } if (wg4a444.mc0c81(text)) text =""; if (this.Column.ColumnType =="ImageAndText" &&text !=null &&wg4a444.mc0c81(text.substring(0,1))) text =text.substring(1); this.Text =text; if (this.Column.ColumnType =="ImageAndText") { var cnt =wg54045.m52d30(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 =wg54045.m52d30(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) wg08d15.m71c24(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); wg54045.m37715(this.Row.GetElement(),img); } wg54045.mab578(this.CellElement,rowStyle,focusStyle,"",skipEvts); wg54045.m88958(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 wg4a444.m5ec11(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(v53d34) { if (v53d34 =="OnInitialize") { this.Table =this.Parent; this.DefaultVisible =this.Visible; } }; this.GetDefault =function(v56570) { if (this[v56570] =="Default") { if (v56570 =="AllowSizing") v56570 ="AllowColumnSizing"; return this.Table.GetDefault(v56570); } else return this[v56570]; }; this.__getter =function(v56570) { switch (v56570) { case "AllowSorting": case "AllowGrouping": case "AllowSizing": case "UseValueListForSorting": return this.GetDefault(v56570); break; } }; this.__setter =function(v56570,vf782,vefa28) { switch (v56570) { case "Width": var vfa897 =null; try { vfa897 =this.GetElement(); } catch (e) { } if (vfa897) { wg11c43.maed93(this.Table,vfa897,vf782); } break; } };  this.GetGrid =function() { return this.Table.GetGrid(); }; this.GetElement =function(v34a32) { if (!this.Table.IsRootTable &&!v34a32) { if (this.GetGrid().HeaderContext !=null) v34a32 =wg4a444.m10964(this.GetGrid().HeaderContext); if (!v34a32) { try { v34a32 =this.Table.SubTableIds[0].GetElement(WG40.COLHEADER,WG40.HTMLTABLE); } catch (e) { } } } var va1147 =this.Table.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v34a32); if (va1147) { var vc570 =va1147.rows[0]; if (this.Table.IsUseColumnSet) { var vf7540 =this.Table.GetRowLayoutByColName(this.Name); var v9b321 =vf7540.Row; if (this.Table.IsColumnSetHeaderVisible()) v9b321++; vc570 =va1147.rows[v9b321]; } var v61477 =wgGetCellByName(vc570,this.Name);  if (!v61477 &&this.AltElement) return this.AltElement;  return v61477; } return null; }; this.Resize =function(v1f511) { var vfa897 =this.GetElement(); if (!vfa897) return; var v8211 =vfa897.parentElement; wg11c43.maed93(this.Table,vfa897,v1f511,!this.Table.IsRootTable,true); if (!this.Table.IsUseColumnSet) wg11c43.m12037(this.Table,v8211); wg11c43.m55b29(this.Table,"Resize",vfa897,v1f511); }; this.ResizeBestFit =function() { wg11c43.m8ea2(this.GetElement()); }; this.GetFilterEditType =function() { var vc4a89 =this.FilterEditType; if (vc4a89 =="SameAsEditType") vc4a89 =this.EditType; return vc4a89; };    this.GetWidth =function() { var vfa897 =this.GetElement();  if (vfa897 &&vfa897.offsetWidth >0) return vfa897.offsetWidth; else return parseFloat(this.Width); };  this.HideFromView =function(v14689,v83f11) { var vf5135 =this.GetElement(); var vfc892 =this.Table; var v2894 =vfc892.GetElement(WG40.COLGROUP,WG40.HTMLTABLE); var v5ff27 =wg4a444.m1b593(vf5135); if (!v83f11) v83f11 =new WebGridPartOption(true);  if (v83f11.Header &&!vfc892.Grid.EnableSection508Standards) vf5135.style.display ="none";  if (v83f11.Body) { if (IS.ie) v2894.children[v5ff27].style.display ="none";  else { var v63068 =vfc892.GetElement(WG40.BODY,WG40.HTMLTABLE); var vcfc5 =v63068.rows; this.ColGroupElement =v2894.removeChild(v2894.children[this.GetViewVisiblePosition()]); for (var v9ac0=0; v9ac0<vcfc5.length; v9ac0++) { var v34a32 =vcfc5[v9ac0];  wg4a444.mc4f43(v34a32); if (wgIsRecordRow(v34a32)||v34a32.type =="GroupTotalRow") v34a32.cells[v5ff27].style.display ="none"; } } }  if (v83f11.Footer) { if (vfc892.Get("ColumnFooters")=="Yes") { var vba325 =vfc892.GetElement(WG40.COLFOOTERGROUP,null);  if (IS.ie) vba325.children[v5ff27].style.display ="none"; else { var v8e197 =this.GetViewVisiblePosition(); var v57022 =vfc892.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE); var v09d36 =v57022.rows[1].cells[v5ff27].style;  this.ColGroupFooterElement =vba325.removeChild(vba325.children[v8e197]); v09d36.visibility ="hidden"; v09d36.display ="none"; } } }  if (v83f11.FilterBar &&!vfc892.Grid.EnableSection508Standards) { if (vfc892.Get("AllowFilter")=="Yes") { var v34a32 =vfc892.GetFilterRow(); if (v34a32) { var v9c965 =v34a32.cells[v5ff27]; v9c965.style.display ="none"; } } }  if (v83f11.AddNewRow &&!vfc892.Grid.EnableSection508Standards) { if (vfc892.Get("AllowAddNew")=="Yes") { var vfea39 =vfc892.GetNewRow();  if (vfea39 &&vfea39.cells.length >v5ff27) { var vf6345 =vfea39.cells[v5ff27]; vf6345.style.display ="none"; } } }  this.HiddenFromView =true; this.HiddenReason =v14689; };  this.HideFrozen =function(v83f11) { this.HideFromView("FreezePaneScroll",v83f11); };  this.Show =function(v83f11) { var vf5135 =this.GetElement(); var vfc892 =this.Table; var v2894 =vfc892.GetElement(WG40.COLGROUP,WG40.HTMLTABLE); var v5ff27 =wg4a444.m1b593(vf5135);  this.HiddenFromView =false; this.HiddenReason ="";  if (!v83f11) v83f11 =new WebGridPartOption(true);  if (v83f11.Header) vf5135.style.display ="";  if (v83f11.Body) { if (IS.ie) v2894.children[v5ff27].style.display ="";  else { var v63068 =vfc892.GetElement(WG40.BODY,WG40.HTMLTABLE); var vcfc5 =v63068.rows; v2894.insertBefore(this.ColGroupElement,v2894.children[this.GetViewVisiblePosition()]); for (var v9ac0=0; v9ac0<vcfc5.length; v9ac0++) { var v34a32 =vcfc5[v9ac0];  wg4a444.mc4f43(v34a32);  if (wgIsRecordRow(v34a32)||v34a32.type =="GroupTotalRow") v34a32.cells[v5ff27].style.display =""; } } }  if (v83f11.Footer) { if (vfc892.Get("ColumnFooters")=="Yes") { var vba325 =vfc892.GetElement(WG40.COLFOOTERGROUP,null);  if (IS.ie) vba325.children[v5ff27].style.display =""; else { vba325.insertBefore(this.ColGroupFooterElement,vba325.children[this.GetViewVisiblePosition()]); var v57022 =vfc892.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE); var v09d36 =v57022.rows[1].cells[v5ff27].style; v09d36.visibility ="visible"; v09d36.display =""; } } }  if (v83f11.FilterBar) { if (vfc892.Get("AllowFilter")=="Yes") { var v34a32 =vfc892.GetFilterRow(); if (v34a32) { var v9c965 =v34a32.cells[v5ff27]; v9c965.style.display =""; } } }  if (v83f11.AddNewRow) { if (vfc892.Get("AllowAddNew")=="Yes") { var vfea39 =vfc892.GetNewRow();  if (vfea39 &&vfea39.cells.length >v5ff27) { var vf6345 =vfea39.cells[v5ff27]; vf6345.style.display =""; } } } };  this.GetViewPosition =function() { var vfc892 =this.Table; var v8384 =vfc892.Grid;  if (v8384.FreezePaneActive) { var v98473 =vfc892.Columns; var va4993 =v8384.GetLastFrozenColumn().Position; var v6d292 =wg4a444.m33861(vfc892,v8384.GetLastFrozenColumn()); var v31988 =0; var vedf3 =0;  if (v6d292 !=null) vedf3 =v6d292.Position; if (vfc892.Get("RowHeaders")=="Yes") v31988++;  v31988 +=vfc892.GroupedColumns.length;   for (var v9ac0=va4993; v9ac0<this.Position; v9ac0++) { if (!v98473[v9ac0].HiddenFromView &&v98473[v9ac0].Visible) vedf3++; }  if (this.Position <va4993) return this.GetElement().cellIndex; else if (this.Position ==va4993) { if (this.HiddenFromView) return -1; else return vedf3 +v31988; }  return vedf3 +v31988; } else { return this.GetElement().cellIndex; } };  this.GetViewVisiblePosition =function() { var v8384 =this.Table.Grid; var va4993 =v8384.GetLastFrozenColumn().Position; var vc3c86 =this.GetViewPosition(); var v9b226 =0; for (var v9ac0=0; v9ac0<va4993; v9ac0++) { if (!this.Table.Columns[v9ac0].Visible) v9b226++; } for (var v9ac0=va4993; v9ac0<vc3c86; v9ac0++) { var vfab61 =this.Table.Columns[v9ac0];  if (!vfab61.Visible) v9b226++; } return vc3c86 -v9b226; };  this.IsOutsideScrollView =function() { var v1f511 =this.GetScrollWidth(); var v0ec35 =this.Table.Grid.GetFreezeOuterDivElement(); return (v1f511 >v0ec35.offsetWidth); };  this.GetScrollWidth =function() { var v5f40 =this.Table.Grid; var v0ec35 =v5f40.GetFreezeOuterDivElement(); var v1f511 =0;  for (var v9ac0=0; v9ac0<=this.Position; v9ac0++) { var vfab61 =this.Table.Columns[v9ac0];  if (!vfab61.HiddenFromView) v1f511 +=vfab61.GetWidth(); }  return v1f511; };  this.GetNewRowEditType =function() { var vb9c20 =this.NewRowEditType; if (vb9c20 =="SameAsEditType") vb9c20 =this.EditType; return vb9c20; };  this.IsPrimaryKey =function() { var vf4d43 ="," +this.Table.DataKeyFields;  if (vf4d43.indexOf("," +this.Name)>-1) return true;  return false; };}function WebGridPartOption(v9b464){ this.Header =false; this.ColHeaderGroup =false; this.Body =false; this.ColFooterGroup =false; this.Footer =false; this.AddNewRow =false; this.FilterBar =false;  if (v9b464) { 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(v89e0,ve1669) { for (var v8b80=0; v8b80<this.Layout.length; v8b80++) { if (this.Layout[v8b80].Row ==v89e0 &&this.Layout[v8b80].Col ==ve1669) return this.Layout[v8b80]; } 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.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(); } }}function WebGridCustomEditorBehavior(){ this._Type ="WebGridCustomEditorBehavior"; ISObject.call(this); this.BaseEditorType ="Textbox"; this.HasDropdownButton =false; this.DropdownButtonWidth =16; this.DropdownButtonImageFile =""; this.DropdownButtonType ="Image"; 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.OnPropertiesInitialized =function() { this.Name =this.ColumnMember; this.Table =this.Parent; if (this.XmlNode !=null) this.FilterText =ISXml.GetNodeText(this.XmlNode,"FilterText"); }; this.GetElementType =function(va7136) { switch (va7136) { case "FilterText": return "CDATA"; default: return "Attribute"; } }; this.GetElement =function() { var v77c0 =this.Table.GetFilterRow(); if (v77c0) { return wgGetCellByName(v77c0,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 vb1136 =wg11c43.me5060(this.Table.Grid.Id,this.Table.Name); var v50239 =this.Table.Grid; if (vb1136) { var v59483 =vb1136.childNodes[0].childNodes[0].childNodes[0].childNodes[0]; for (var vea92=0; vea92<v59483.cells.length; vea92++) { wg4a444.mc4f43(v59483.cells[vea92]); if (v59483.cells[vea92].colName ==this.ColumnMember &&v59483.cells[vea92].type =="GroupColumn") { return v59483.cells[vea92]; } } } 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(v76d36,vac639){ this._Type ="WebGridRow"; ISObject.call(this); this.Table =v76d36; this.SubTable =vac639; 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 =wg11c43.m84e16(this.RowElement); if (this.Type =="GroupHeader") this.GroupRowText =el.innerText; if (this.Table.PreviewRowVisible) { var prc =wg11c43.m75251(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 =wg11c43.m84e16(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 =wg4a444.m1f046(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"; wg11c43.m34536(null,this.RowElement,null,true);};pRow.CollapseSelfRefRow =function(){ if (!this.IsSelfRefRow) return; this.SelfRefExpanded =false; this.RowElement.srExpanded ="True"; wg11c43.m34536(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")) wg81461.m5f573(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")) wg81461.m5f573(grid,"ClientService_Delete",null,this); return; } if (useSync) this.Grid.XmlHttp.Asynchronous =false; wgDeleteRow(this); this.Grid.XmlHttp.Asynchronous =true;};pRow.Validate =function(){ return wg08d15.mefe72(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 wg08d15.mce13(this.RowElement);};pRow.AcceptChanges =function(){ return wg08d15.mf5899(this.RowElement);};pRow.BeginEdit =function(){ return wg08d15.mbdc89(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 { wg11c43.m27f96(this.RowElement,true); } catch (e) { }};pRow.Uncheck =function(){ try { wg11c43.m27f96(this.RowElement,false); } catch (e) { }};pRow.ExpandPreviewRow =function(){ if (!this.PreviewRowExpanded) wg11c43.m53996(this.RowElement);};pRow.CollapsePreviewRow =function(){ if (this.PreviewRowExpanded) wg11c43.m53996(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) { wg4a444.mc4f43(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(v7ee11) { var va0536 =this.Grid.XmlDt; var v1ef39 =this.Table.XmlNode; var v72e83 =ISXml.CreateNodeOnly(va0536,"Table",""); var vc262 =false;  ISXml.SetAttribute(v72e83,"Name",this.Table.Name);  var v62b93 =this.SelectedRows.SerializeToXml(); if (v62b93 !=null) { vc262 =true; v72e83.appendChild(v62b93); }  var vc3147 =this.ExpandedChildRows.SerializeToXml(); if (vc3147 !=null) { vc262 =true; v72e83.appendChild(vc3147); }  if (v7ee11 ==1 ||v7ee11 ==2 ||v7ee11 ==3 ||this.Grid.LastAction =="BatchUpdate") {  var va0030 =this.PendingChanges.SerializeToXml(); if (va0030 !=null) { vc262 =true; v72e83.appendChild(va0030); } }  if (vc262) return v72e83; else return null; };  this.Deserialize =function(v17b95) { var vc7762 =ISXml.GetNode(v17b95,"SelectedRows"); var v71891 =ISXml.GetNode(v17b95,"ChildRows"); var v30989 =ISXml.GetNode(v17b95,"PendingChanges");  if (vc7762 !=null) { this.SelectedRows.Deserialize(vc7762); this.SelectedRows.RefreshUI(); }  if (v71891 !=null) { this.ExpandedChildRows.Deserialize(v71891); }  if (v30989 !=null) { this.PendingChanges.Deserialize(v30989);  if (this.Table.IsRootTable) this.PendingChanges.RefreshUI();  this.Grid.UpdatePendingChangesStatus(); } };  this.RefreshUI =function(v67895) { this.SelectedRows.RefreshUI(v67895); this.ExpandedChildRows.RefreshUI(v67895); this.PendingChanges.RefreshUI(v67895); };}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 ve1a50 =this; do { ve1a50 =ve1a50.Parent; if (ve1a50 &&ve1a50.GetType()=="WebGrid") { this.Grid =ve1a50; break; } }while (ve1a50 !=null); } return this.Grid; }; this.OnPropertiesInitialized =function() { var va4047 =this.GetGrid(); va4047.Tables[this.Name] =this; this.Id =this.Name; this.GridId =this.Grid.Id; this.Layout =va4047.LayoutSettings; this.Storage.Grid =va4047; this.Storage.Table =this; this.Storage.SelectedRows.Table =this;  if (this.Get("AllowAddNew")=="Yes" ||va4047.BindingOperationMode =="ClientBinding") { var vc5e69 =ISXml.GetNode(this.XmlNode,"NewRowTemplate"); var v94890 =ISXml.GetNode(this.XmlNode,"HeaderTemplate"); var v72114 =ISXml.GetNode(this.XmlNode,"FilterTemplate"); var vd7081 =ISXml.GetNode(this.XmlNode,"FooterTemplate");  if (vc5e69 !=null) { this.NewRowTemplate =vc5e69.text; this.XmlNode.removeChild(vc5e69); }  if (v94890 !=null) { this.HeaderTemplate =v94890.text; this.XmlNode.removeChild(v94890); } if (v72114 !=null) { this.FilterTemplate =v72114.text; this.XmlNode.removeChild(v72114); } if (vd7081 !=null) { this.FooterTemplate =vd7081.text; this.XmlNode.removeChild(vd7081); } }  if (this.VirtualIdentity !="") this.VirtualIdentity =ISJsonEngine.Parse(this.VirtualIdentity); }; this.GetDefault =function(v0a953) { if (this[v0a953] =="Default" ||this[v0a953] =="NotSet" ||this[v0a953] =="" ||this[v0a953] ==-1) return this.Grid.LayoutSettings[v0a953]; else return this[v0a953]; }; this.__getter =function(v0a953) { switch (v0a953) { 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(v0a953); break; case "AllowFilter": if (this.IsRootTable) return this.GetDefault(v0a953); 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 v74a3 =parseFloat(this.Position); var v2ff85 =this.GetParentTables(); if (v74a3>=v2ff85.length -1) return false; for (var v72a23=v74a3 +1; v72a23<v2ff85.length; v72a23++) { var v06e51 =v2ff85[v72a23]; if (parseFloat(v06e51.GroupedColumns.length)>0) return true; } return false; }; this.HasChildTableGroupedColumns =function() { var v94c34 =this.GetChildTables(); for (var v72a23=0; v72a23<v94c34.length; v72a23++) { if (v94c34[v72a23].GroupedColumns.length>0) return true; if (v94c34[v72a23].HasChildTableGroupedColumns()) return true; } return false; }; this.GetParentTables =function() { var v35b11 =new Array(); for (table in this.Grid.Tables) { var v2db43 =this.Grid.Tables[table]; if (typeof (v2db43)!="function" &&!v2db43.IsRootTable) { if (v2db43.Parent.Name ==this.Parent.Name) v35b11[v35b11.length] =v2db43; } } return v35b11; }; this.GetChildTables =function() { var v94c34 =new Array(); for (table in this.Grid.Tables) { var v2db43 =this.Grid.Tables[table]; if (typeof (v2db43)!="function" &&v2db43.Parent.Name ==this.Name) v94c34[v94c34.length] =v2db43; } return v94c34; }; this.GetParentTreeStructure =function() { var v3c887 =this.Parent.Name; var vc0460 =new Array(); while (v3c887 !="") { var v34387 =this.Grid.Tables[v3c887]; if (!v34387) return vc0460; if (v34387.HasNextSiblingGroupedColumns()) vc0460[vc0460.length] ="Continuos"; else vc0460[vc0460.length] ="Last"; var v3c887 =v34387.Parent.Name; if (v3c887 !="" &&v34387.IsRootTable) break; } vc0460.reverse(); return vc0460; }; this.GetColumnGroupHeadersWidth =function() { var vd7558 =0; if (!this.IsRootTable &&this.Parent.Get("RowHeaders")=="Yes") { vd7558 +=26; } vd7558 +=(this.GroupedColumns.length *16); if (this.Grid.LayoutSettings.Hierarchical) vd7558 +=22; if (this.Get("RowHeaders")=="Yes") vd7558 +=parseInt(this.Get("RowHeaderWidth")); if (this.IsPreviewRowVisible &&this.PreviewRowSettings.Expandable) vd7558 +=parseInt(this.Get("RowHeaderWidth")); return vd7558; }; this.GetParentHeadersWidth =function() { var v6bc75 =this; var vd7558 =0; while (v6bc75) { var vbf883 =null; if (!v6bc75.IsRootTable) vbf883 =v6bc75.Parent.Name; var v34387; if (vbf883 !="" &&vbf883) { v34387 =this.Grid.Tables[vbf883]; vd7558 +=v34387.GetColumnGroupHeadersWidth(); if (v34387.Get("RowHeaders")=="Yes") vd7558 -=parseInt(this.Get("RowHeaderWidth")); v6bc75 =v34387; } else v6bc75 =null; } return vd7558; }; this.GetElement =function(v7d58,v93e85,vab292) { if (v7d58 ==WG40.COLHEADER ||v7d58 ==WG40.COLFOOTER ||v7d58 ==WG40.BODY) { if (v93e85 ==WG40.HTMLDIV) { if (this.IsRootTable) return document.getElementById(v93e85 +v7d58 +"_" +this.Grid.Id +"_" +this.Id); else return document.getElementById(v93e85 +v7d58 +"_" +this.Grid.Id +"_" +this.Id +"_" +wg4a444.m5c199(vab292)); } else { if (v7d58 ==WG40.COLHEADER &&this.Grid.EnableSection508Standards) return this.GetElement(WG40.BODY,WG40.HTMLTABLE,vab292);  var v08710 =this.GetElement(v7d58,WG40.HTMLDIV,vab292); return v08710.childNodes[0]; } } else { var ve4e45; if (v7d58 ==WG40.COLGROUP) ve4e45 =this.GetElement(WG40.BODY,WG40.HTMLTABLE,vab292); else if (v7d58 ==WG40.COLHEADERGROUP) ve4e45 =this.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vab292); else if (v7d58 ==WG40.COLFOOTERGROUP) ve4e45 =this.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE,vab292); return ve4e45.childNodes[0]; } }; this.GetFilterRow =function(vab292) { if (!this.IsRootTable) return this.Grid.RootTable.GetFilterRow(); var vc1b23 =this.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vab292); for (var v72a23=0; v72a23<vc1b23.rows.length; v72a23++) { wg4a444.mc4f43(vc1b23.rows[v72a23]); if (vc1b23.rows[v72a23].type &&vc1b23.rows[v72a23].type =="FilterRow") return vc1b23.rows[v72a23]; } return null; }; this.GetNewRow =function(vab292) { var vc1b23 =this.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vab292); for (var v72a23=0; v72a23<vc1b23.rows.length; v72a23++) { wg4a444.mc4f43(vc1b23.rows[v72a23]); if (vc1b23.rows[v72a23].type &&vc1b23.rows[v72a23].type =="NewRow") return vc1b23.rows[v72a23]; } return null; }; this.GetSubTablePosById =function(v30783) { for (var v72a23=0; v72a23<this.SubTableIds.length; v72a23++) { if (this.SubTableIds[v72a23].SubId ==v30783) return v72a23; } return -1; }; this.GetMaxWidth =function() { var v18840 =0; if (this.SubTableIds) { for (var v72a23=0; v72a23<this.SubTableIds.length; v72a23++) { var v9379 =this.SubTableIds[v72a23]; v18840 =Math.max(v18840,v9379.Width); } } return v18840; }; this.GetContainer =function(vc9b79) { var vc1b23 =wg4a444.m4dc24(vc9b79); var vbec82 =wg4a444.m03334(vc1b23,2); return vbec82; }; this.SelectRow =function(v2db43,v9f984) { var vab292; var vd5910 =null; if (typeof (v2db43)=="number") { if (this.Grid.EnableSection508Standards) { var v5d255 =this.GetRow(v2db43);  if (v5d255 !=null) vab292 =v5d255.GetElement();  if (vab292 ==null) return; } else vab292 =this.GetElement(WG40.BODY,WG40.HTMLTABLE).rows[v2db43]; } else vab292 =v2db43;  wg4a444.mc4f43(vab292); if (wgIsRecordRow(vab292)||vab292.type =="FilterRow") vd5910 =wgGetCellByPosition(vab292,0); else if (vab292.type =="NewRow") vd5910 =vab292.cells[vab292.cells.length -1]; if (vd5910) { wg54045.ma4226(vd5910);  if (!v9f984) vd5910.focus(); } }; this.GetSelRowStyle =function() { var v36871 =this.Get("SelectedRowClass"); return IS.GetCssText(this.Grid.Id,v36871); }; this.GetFocusCellStyle =function() { if (this.FocusCellStyle.BorderStyle =="NotSet") return this.Grid.LayoutSettings.FocusCellStyle.GetStyleText(); else return this.FocusCellStyle.GetStyleText(); }; this.GetCheckedRowStyle =function() { var v5c255 =this.CheckedRowClass; if (v5c255 =="") v5c255 =this.Grid.LayoutSettings.CheckedRowClass; if (v5c255 =="") return ""; return IS.GetCssText(this.Grid.Id,v5c255); }; this.GetColumn =function(vbf122) { var v22b97 =this.Columns.GetNamedItem(vbf122);  if (v22b97 ==null) { for (var v72a23=0; v72a23<this.Columns.length; v72a23++) { if (this.Columns[v72a23].DataMember ==vbf122) { v22b97 =this.Columns[v72a23]; break; } } }  return v22b97; }; this.IsFilterRowVisible =function() { var v1b473 =this.GetFilterRow(); return (v1b473.style.display ==""); }; this.GetFilterEditType =function(v65758) { return this.GetColumn(v65758).GetFilterEditType(); }; this.GetRowCheckerColumn =function() { var veed34 =this.Columns; var v9f58 =""; for (var v72a23=0; v72a23<veed34.length; v72a23++) { if (veed34[v72a23].IsRowChecker) { v9f58 =veed34[v72a23].Name; break; } } return v9f58; };  this.AddSelectedRow =function(vc9b79,v65e32) { if (!vc9b79.isRowChecked) { vc9b79.isRowChecked =true;  if (v65e32) wg54045.m5a732(vc9b79,"Clear");  this.SelectedRows.push(vc9b79); } };  this.SelectedRowsContain =function(vc9b79) { if (vc9b79 ==null ||!vc9b79) return false;  if (this.SelectedRows !=null) { for (var v72a23=0; v72a23<this.SelectedRows.length; v72a23++) { if (this.SelectedRows[v72a23] ==vc9b79) return true; } }  return false; };  this.RemoveSelectedRow =function(vc9b79,ve4982) { var vd2387 =this.GetCheckedRows();  for (var v72a23=0; v72a23<vd2387.length; v72a23++) { if (vd2387[v72a23] ==vc9b79) { vc9b79.isRowChecked =false; vd2387.splice(v72a23,1);  if (ve4982) wg54045.mdae93(vc9b79,"","","Clear");  return; } } };  this.ClearSelectedRows =function() { this.SelectedRows =null; this.SelectedRows =new Array(); }; this.GetCheckedRows =function(va0869) { var vd1693 =this.GetRowCheckerColumn(); if (this.Get("AllowMultipleSelection")=="Yes" &&!va0869) { if (!vd1693 ||(vd1693 &&this.SelectedRows.length >0)) return this.SelectedRows; }  if (vd1693) { var v94633 =new Array(); var vb9e96 =new Array(); if (this.IsRootTable) { vb9e96[0] =this.GetElement(WG40.BODY,WG40.HTMLTABLE); } else { for (var v72a23=0; v72a23<this.SubTableIds.length; v72a23++) { vb9e96[vb9e96.length] =this.SubTableIds[v72a23].GetElement(WG40.BODY,WG40.HTMLTABLE); } } for (var vfb574=0; vfb574<vb9e96.length; vfb574++) { var vc1b23 =vb9e96[vfb574]; for (var v72a23=0; v72a23<vc1b23.rows.length; v72a23++) { if (IS.moz) wg4a444.mc4f43(vc1b23.rows[v72a23]); if (vc1b23.rows[v72a23].type =="Record") { if (!va0869) { if (vc1b23.rows[v72a23].isRowChecked) v94633[v94633.length] =vc1b23.rows[v72a23]; } else { var vf5f29 =wgGetCellByName(vc1b23.rows[v72a23],vd1693); var vf674 =vf5f29.getElementsByTagName("INPUT")[0];  if (vf674.checked) v94633[v94633.length] =vc1b23.rows[v72a23]; } } } } return v94633; } }; this.GetAutoWidthColumn =function() { var veed34 =this.Columns; for (var v72a23=0; v72a23<veed34.length; v72a23++) { var vd9b75 =veed34[v72a23]; if (vd9b75.IsAutoWidth) return vd9b75; } return null; }; this.GetSubTableById =function(v30783) { for (var v72a23=0; v72a23<this.SubTableIds.length; v72a23++) { if (this.SubTableIds[v72a23].SubId ==v30783) return this.SubTableIds[v72a23]; } return null; }; this.GetColNameByRowLayout =function(vb5488,v52c17,v5c255) { var vc3596 =this.ColumnSets[parseFloat(vb5488)]; var v63277 =null; for (var v72a23=0; v72a23<vc3596.Layout.length; v72a23++) { var v61f64 =vc3596.Layout[v72a23]; if (v61f64.Row ==v52c17 &&v61f64.Col ==v5c255) { v63277 =v61f64; break; } } if (v63277) return v63277.ColumnMember; return null; }; this.GetRowLayoutByColName =function(v41644) { var vb5334 =this.ColumnSets; for (var v72a23=0; v72a23<vb5334.length; v72a23++) { var vc3596 =vb5334[v72a23]; for (var vfb574=0; vfb574<vc3596.Layout.length; vfb574++) { if (vc3596.Layout[vfb574].ColumnMember ==v41644) return vc3596.Layout[vfb574]; } } return null; }; this.GetRowLayoutByIndex =function(vb4c28,v52c17,v5c255) { var vc3596 =this.ColumnSets[vb4c28]; for (var v72a23=0; v72a23<vc3596.Layout.length; v72a23++) { var v61f64 =vc3596.Layout[v72a23]; if (v61f64.Row ==v52c17 &&v61f64.Col ==v5c255) return v61f64; } return null; }; this.GetColHeaderSpanCount =function() { var v44a3 =0; if (!this.IsRootTable) v44a3++; v44a3 +=this.GroupedColumns.length; if (this.Layout.Hierarchical) v44a3++; if (this.Layout.RowHeaders =="Yes") v44a3++; if (this.PreviewRowVisible &&this.PreviewRowSettings.Expandable) v44a3++; return v44a3; }; this.GetCSCellPosByIndex =function(vc3596,v52c17,v5c255,v3c156) { var vb5334 =this.ColumnSets; var v44a3 =0; for (var v72a23=0; v72a23<vc3596; v72a23++) { var v4f026 =vb5334[v72a23]; if (v4f026.Visible) v44a3 +=parseInt(v4f026.ColumnCount); } if (v3c156) { var v61f64 =this.GetRowLayoutByIndex(vc3596,v52c17,v5c255); var vf0728 =v61f64.ColSpan; if (vf0728 &&parseInt(vf0728)>1) v44a3 +=parseInt(vf0728)-1; } return v44a3 +parseInt(v5c255); }; this.GetCSHeaderCellPosByIndex =function(v1cb27) { var vb5334 =this.ColumnSets; var v44a3 =0; var vc3596 =v1cb27.pos; for (var v72a23=0; v72a23<vc3596; v72a23++) { var v4f026 =vb5334[v72a23]; if (v4f026.Visible) v44a3 +=parseInt(v4f026.ColumnCount); } return v44a3; }; this.GetCSHeaderWidth =function(vb4c28) { var vc3596 =this.ColumnSets[vb4c28]; var vd7558 =0; for (var v72a23=0; v72a23<vc3596.ColumnCount; v72a23++) { var v61f64 =this.GetRowLayoutByIndex(vb4c28,0,v72a23); vd7558 +=parseInt(v61f64.Width); } return vd7558; }; this.GetColumnSetByPos =function(vb4c28) { return this.ColumnSets[vb4c28]; }; this.UpdateRowLayoutWidth =function(v81a94,v5c255,vd7558) { var vc3596 =this.GetColumnSetByPos(v81a94); var v50c62 =vc3596.Layout; for (var v72a23=0; v72a23<v50c62.length; v72a23++) { var v61f64 =v50c62[v72a23]; if (v61f64.Col ==v5c255) { v61f64.Set("Width",vd7558,true); } } }; this.GetParentRow =function(vc9b79) { var vab292; try { var vc1b23 =wg4a444.m4dc24(vc9b79); var v86f48 =wg4a444.m03334(vc1b23,4); vc1b23 =wg4a444.m4dc24(v86f48); vab292 =wgGetPreviousRow(vc1b23,v86f48); vab292 =wgGetRootRow(vab292); } catch (e) { vab292 =null; } ; return vab292; }; this.GetRecursiveParentRowPosition =function(vc9b79) { var v86f48 =this.GetParentRow(vc9b79); var v3d295 =wg11c43.m84e16(v86f48); var ve8472 =""; while (v86f48 !=null) { wg4a444.mc4f43(v86f48); ve8472 +=v86f48.position +"_"; v86f48 =this.GetParentRow(v86f48); if (!v86f48 ||!v86f48.type) v86f48 =null; } if (ve8472 !="") ve8472 =ve8472.substring(0,ve8472.length -1); if (v3d295 !="") ve8472 +="_" +v3d295; return ve8472; }; this.CreateFormula =function(v9f58,v1a035) { var v87a44 =false; for (var v72a23=0; v72a23<this.Formulas.length; v72a23++) { if (this.Formulas[v72a23].colName ==v9f58) { v87a44 =true; break; } } if (!v87a44) { this.Formulas[this.Formulas.length] =new wgFormula(this.GridId,this.Id,v9f58,v1a035); } else { alert("The formula for column '" +v9f58 +"' is already exist."); } }; this.Refresh =function() { if (this.IsRootTable) this.GetGrid().Refresh(); else wg4a444.mb4941(this.GetGrid().Name,"ChildTableRefresh",this.Id); }; this.GetDataKeyFieldsCount =function() { return this.DataKeyFieldsCount; }; this.GetTableElementRowsCount =function(v73b12) { var v1cb27 =this.GetElement(WG40.BODY,WG40.HTMLTABLE,v73b12); if (v1cb27) return v1cb27.rows.length; }; this.GetRowsCount =function() { var v44a3 =this.GetTableElementRowsCount(); var v1d54 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var va4047 =this.Grid;  if (v44a3 ==0) return 0; var vab292 =v1d54.rows[v44a3 -1]; if (va4047.LayoutSettings.AllowBatchUpdate) { var vd7a9 =this.GetChanges("Added");  if (vd7a9.length >0) vab292 =v1d54.rows[vd7a9[0].Element.rowIndex -1]; } var v2b365 =wgGetRootRow(vab292); var v44a3 =0; if (this.GroupedColumns.length ==0) v44a3 =parseFloat(v2b365.position)+1; else v44a3 =parseFloat(v2b365.recordIndex)+1;  if (isNaN(v44a3)) v44a3 =0;  return v44a3; }; this.ToRowObject =function(vab292) { var v97251 =null;  if (this.Grid.BindingOperationMode =="ClientBinding") v97251 =this.GetRowByElement(vab292);  if (v97251 ==null) { v97251 =new WebGridRow(this); v97251.Setup(vab292); } if (!this.IsRootTable) { var vc4675 =wg4a444.m5c199(vab292); v97251.SubTable =this.GetSubTableById(vc4675); } return v97251; };  this.GetRowByElement =function(v1cb27) { if (this.Rows ==null) return;  var v63277 =wg4a444.m74119(v1cb27,this.Rows);  if (v63277) return v63277;  return null; }; this.GetRow =function(vb4c28) { if (this.IsRootTable) { if (this.Grid.BindingOperationMode =="ClientBinding") { var vd2387 =this.UngroupedRows;  if (vd2387 ==null) vd2387 =this.Rows;  if (vd2387 ==null) return null;  return vd2387[vb4c28]; } else { var v1d54 =null;  if (this._tableCache) v1d54 =this._tableCache; else { v1d54 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); this._tableCache =v1d54; }  var vab292 =wgGetRowByPositionExact(v1d54,vb4c28,vb4c28); if (!vab292) return null; var v97251 =new WebGridRow(this); v97251.Setup(vab292); return v97251; } } return null; }; this.GetRowByKeyValue =function(v92260) { if (this.IsRootTable) { var v1d54 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var vab292 =null; for (var v72a23=0; v72a23<v1d54.rows.length; v72a23++) { var v52c17 =v1d54.rows[v72a23]; wg4a444.mc4f43(v52c17); if (wgIsRecordRow(v52c17)&&v52c17.keyValue ==v92260) { vab292 =v52c17; break; } } if (!vab292) return null; var v97251 =new WebGridRow(this); v97251.Setup(vab292); return v97251; } else { var vab292 =null; for (var v72a23=0; v72a23<this.SubTableIds.length; v72a23++) { var v9379 =this.SubTableIds[v72a23]; var v52c17 =v9379.GetRowByKeyValue(v92260); if (v52c17) return v52c17; } } return null; }; this.GetRowByGroup =function(v6aa44,va9164,vc1830) { if (this.IsRootTable) { var v1d54 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var vab292 =wgGetRowByGroup(v1d54,v6aa44,va9164,vc1830); if (!vab292) return null; var v97251 =new WebGridRow(this); v97251.Setup(vab292); return v97251; } }; this.GetSubIdByParentKey =function(ve5399) { for (var v72a23=0; v72a23<this.SubTableIds.length; v72a23++) { if (this.SubTableIds[v72a23].RelNames ==ve5399) return this.SubTableIds[v72a23]; } }; this.GetSubIdById =function(v30783) { for (var v72a23=0; v72a23<this.SubTableIds.length; v72a23++) { if (this.SubTableIds[v72a23].SubId ==v30783) return this.SubTableIds[v72a23]; } };  this.NewRow =function(vc3618) { var vab292 =new WebGridRow(this,vc3618); var v15715 =new ISArray(); for (var v72a23=0; v72a23<this.Columns.length; v72a23++) { var vd5910 =new WebGridCell(vab292); vd5910.Name =this.Columns[v72a23].Name; vd5910.Column =this.Columns[v72a23]; v15715[v15715.length] =vd5910; } vab292.Cells =v15715; vab292._UIState ="Added"; vab292.Grid =this.Grid; return vab292; }; this.GetSelfRefParent =function(vc9b79) { var vc1b23 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); return wg11c43.m10946(vc1b23,vc9b79); }; this.GetGroupRows =function() { var vc1b23 =this.GetElement(WG40.BODY,WG40.HTMLTABLE); var vc9b79 =vc1b23.rows[0]; var v2e470 =vc9b79; var vd2387 =new Array(); if (vc1b23.rows.length ==0) return null; while (v2e470) { if (v2e470.type =="GroupHeader" &&v2e470.groupIndex =="0") { var v52c17 =this.ToRowObject(v2e470); vd2387[vd2387.length] =v52c17; } v2e470 =wgGetNextRow(vc1b23,v2e470); } return vd2387; };  this.UpdateUI =function() { wg11c43.m92f52(this); }; this.IsColumnSetHeaderVisible =function() { var vcb934 =this.ColumnSetSettings.ShowHeaders; if (vcb934 =="Default") vcb934 =this.Layout.ColumnSetHeaders; return vcb934 =="Yes"; };  this.GotoFilterRow =function() { var v73b12 =this.GetFilterRow(); var vab292 =wg4a444.mb6356(v73b12);  vab292.Select(); };  this.GotoNewRow =function(v7e874) { var v73b12 =this.GetNewRow(v7e874); var vab292 =wg4a444.mb6356(v73b12);  vab292.Select(); }; this.SetFilterStatus =function(v43310) { wg11c43.m12294(this,v43310); };  this.GetVisibleColumnNames =function() { var v03e59 =new Array();  for (var v72a23=0; v72a23<this.Columns.length; v72a23++) { if (this.Columns[v72a23].Visible) v03e59.push(this.Columns[v72a23].Name); }  return v03e59; };}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(v9fa46){ return ISGetObject(v9fa46);}function wg_getGridNameByRow(v33f46){ return wg4a444.maa781(v33f46);}function wg_getTableNameByRow(v76d29){ return wg4a444.meba49(v76d29);}function wg_getTableSubId(vb3829){ return wg4a444.m5c199(vb3829);}function wg_getTable(vb9e29){ return wg4a444.m4dc24(vb9e29);}function wgGetTable(ve4729){ return wg4a444.m4dc24(ve4729);}function wgDoResize(vf5d29,vc0f11){ if (!vf5d29) wg4a444.m36c36(); else wg4a444.mb648(vc0f11);}function wgMouseCoord(vab029,vc2311){ this.x =vab029; this.y =vc2311; 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(v3cd15,v4cd58,va2249,v01234){ this.isValid =true; this.nonValidMsg =null; this.colName =va2249; this.gridId =v3cd15; this.tblName =v4cd58; this.formula =v01234; this.affectedColumns =new Array(); this.skipErrorMessage =false; this.table =null; this.valueOnError =0; var vd5449 =v01234.indexOf("["); var va8a21 =0; while (vd5449>=0) { va8a21 =v01234.indexOf("]",vd5449); this.affectedColumns[this.affectedColumns.length] =v01234.substring(vd5449 +1,va8a21); vd5449 =v01234.indexOf("[",va8a21); } this.table =ISGetObject(this.gridId).Tables[this.tblName]; for (var v01b19=0; v01b19<this.affectedColumns.length; v01b19++) { var vf9025 =this.table.GetColumn(this.affectedColumns[v01b19]); if (!vf9025 ||!vf9025.Visible) { this.isValid =false; break; } } this.GetResult =function(v55f51) { if (this.isValid) { var v9e777 =this.formula; for (var v01b19=0; v01b19<this.affectedColumns.length; v01b19++) { var v65d12 =wgGetCellByName(v55f51,this.affectedColumns[v01b19]); var vf9025 =this.table.GetColumn(wgGetColNameByCell(v65d12)); var v63f54 =v65d12.innerText; if (vf9025.DataFormat !="") v63f54 =wgGetUnMask(ISGetObject(this.gridId),vf9025,v65d12); v9e777 =v9e777.replace(new RegExp(this.affectedColumns[v01b19],"g"),v63f54); } v9e777 =v9e777.replace(/[\[\]]/g,""); var v67167; try { v67167 =eval(v9e777); } catch (e) { v67167 =this.valueOnError; } return v67167; } 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(v55f51,v07067) { if (this.IsCellAccounted(v07067)) { var v67167 =this.GetResult(v55f51); var v65d12 =wgGetCellByName(v55f51,this.colName); var vf9025 =this.table.GetColumn(wgGetColNameByCell(v65d12)); if (vf9025.DataFormat !="") { v65d12.cellValue =v67167; v65d12.innerText =wgGetMask(ISGetObject(this.gridId),null,String(v67167),this.table,v65d12); } } }; this.IsCellAccounted =function(v07067) { var va2249 =wgGetColNameByCell(v07067); for (var v01b19=0; v01b19<this.affectedColumns.length; v01b19++) { if (va2249 ==this.affectedColumns[v01b19]) return true; } return false; }; return this;}function wgGetChildTableByRow(vef290,v69546){ var v9ad70 =wg4a444.m4dc24(vef290); var vb4b37 =wgGetNextRow(v9ad70,vef290); var v55c60 =vb4b37.cells[vb4b37.cells.length -1]; var v7b638 =v55c60.childNodes[0]; var v6d465 =document.getElementById("dvTB_" +v7b638.gridId +"_" +v69546 +"_" +v7b638.subId).childNodes[0]; return v6d465;}function wgMoveColArgs(v69226,vf5f16,va5f46,vff641,v0b487,ve4a15){ this.table =v69226; this.c1 =vf5f16; this.c2 =va5f46; this.tr =vff641; this.cdt =v0b487; this.th =ve4a15; return this;}function wgShowHelp(v3e51){ var vba365 =ISGetObject(v3e51); var v71c35 =vba365.LayoutSettings.HelpURL; if (v71c35 =="")
 v71c35 ="http://www.intersoftpt.com/WebGrid/Help.aspx";
 window.open(v71c35,null,"toolbar=no, menubar=no, scrollbars=yes, resizable=yes");}function wgGetCellCount(vc0720){ if (vc0720) { var ve8c1; var v8645 =0; if (vc0720.tagName =="TR") ve8c1 =vc0720.cells; else if (vc0720.tagName =="TD") ve8c1 =vc0720; for (var v48498=0; v48498<ve8c1.length; v48498++) { wg4a444.mc4f43(ve8c1[v48498]); if (ve8c1[v48498].type =="Cell" ||ve8c1[v48498].type =="GroupCell" ||ve8c1[v48498].type =="FilterColumn") v8645++; } } return v8645;}function wgGetCellByPosition(vcc612,v53d63){ if (vcc612) { var vdef40; var v88a24 =-1; if (vcc612.tagName =="TR") vdef40 =vcc612.cells; else if (vcc612.tagName =="TD") vdef40 =vcc612; for (var va1d31=0; va1d31<vdef40.length; va1d31++) { wg4a444.mc4f43(vdef40[va1d31]); if (vdef40[va1d31].type =="Cell" ||vdef40[va1d31].type =="GroupCell" ||vdef40[va1d31].type =="FilterColumn") { v88a24++; } if (v53d63 ==v88a24) return vdef40[va1d31]; } } return null;}function wgGetCellByName(v27542,v7b030,vd0b5){ if (v27542) { var v14931; var v10672 =-1; var v6ac35; if (v27542.tagName =="TR") { v14931 =v27542.cells; v6ac35 =v27542; } else if (v27542.tagName =="TD") { v6ac35 =v27542.parentElement; v14931 =v27542; } var vcaa74 =wg4a444.m4dc24(v27542); if (vcaa74) { var v47a52 =ISGetObject(vcaa74.gridId).Tables[vcaa74.tblName]; if (v47a52.IsUseColumnSet) { return wgGetCSCellByName(v6ac35,v7b030); } var v59f55 =v47a52.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v27542).rows[0]; var vf2337 =-1; for (var vc1575=0; vc1575<v59f55.cells.length; vc1575++) { v14931 =v59f55.cells; wg4a444.mc4f43(v14931[vc1575]); if ((v14931[vc1575].type =="Column" ||vd0b5)&&v14931[vc1575].colName ==v7b030) { vf2337 =vc1575; break; } } if (vf2337>=0) { return v27542.cells[vf2337]; } } } return null;}function wgGetCellPosByName(va780,v07e59){ if (va780) { var vd0697; var v3ee10 =-1; if (va780.tagName =="TR") vd0697 =va780.cells; else if (va780.tagName =="TD") vd0697 =va780; for (var v65891=0; v65891<vd0697.length; v65891++) { wg4a444.mc4f43(vd0697[v65891]); if ((vd0697[v65891].type =="Cell" ||vd0697[v65891].type =="GroupCell")) { if (vd0697[v65891] ==v07e59) { v3ee10++; return v3ee10; } else v3ee10++; } } } return null;}function wgGetRowByPosition(v58f36,v53b29){ return v58f36.rows[v53b29];}function wgGetRowByPositionExact(v13c56,v33038,v0ec91,v7f768){ if (!v0ec91) v0ec91 =0; for (var vf5572=v0ec91; vf5572<v13c56.rows.length; vf5572++) { wg4a444.mc4f43(v13c56.rows[vf5572]); if (wgIsRecordRow(v13c56.rows[vf5572])&&v13c56.rows[vf5572].position ==v33038) { var vd2a98 =(typeof (v13c56.rows[vf5572].srLevel)=="string"); if (!vd2a98) return v13c56.rows[vf5572]; else { if (!v7f768) { if (v13c56.rows[vf5572].srLevel =="0") return v13c56.rows[vf5572]; } else return v13c56.rows[vf5572]; } } } return null;}function wgGetRootRow(v62611){ if (!v62611) return; wg4a444.mc4f43(v62611); if (wgIsColumnSetRow(v62611)) return wgGetColumnSetRow(v62611); else if (v62611.type =="PR") return wgGetPreviewRowParent(v62611); else return v62611;}function wgGetColNameByCell(vb2241){ var v7c731 =vb2241.parentElement; var vfdc27 =wg4a444.m4dc24(v7c731); var v7f343 =ISGetObject(vfdc27.gridId); var v2ed33 =v7f343.Tables[vfdc27.tblName]; var v8b639 =v2ed33.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v7c731).rows[0].cells; var ve8f21 =false; if (!v2ed33.IsUseColumnSet) { if (IS.ie &&v2ed33.IsRootTable &&v7f343.FreezePaneActive &&v7f343.FreezeConfig !=null &&(wgIsRecordRow(v7c731)||vb2241.style.display =="none")) ve8f21 =true;  for (var v93a17=0; v93a17<v8b639.length; v93a17++) { var vf2327 =v8b639[v93a17].cellIndex; var v0ee33 =vb2241.cellIndex;  if (!IS.ie) wga4d9.m11670(v8b639[v93a17]);  if (ve8f21) vf2327 =wg4a444.m1b593(v8b639[v93a17]);  if (vb2241.style.display =="none") v0ee33 =wg4a444.m1b593(vb2241);  if (v8b639[v93a17].type =="Column" &&vf2327 ==v0ee33) return v8b639[v93a17].colName; } } else { if (typeof (vb2241.cs)=="undefined") return null; return v2ed33.GetColNameByRowLayout(vb2241.cs,vb2241.r,vb2241.c); }}function wgExpandGroupRow(v31961,v79695){ if (v79695) { _wgExpAllGR(v31961); return; } if (v31961.type =="GroupHeader" &&v31961.expanded =="False") { var v00c77 =ISGetObject(wg4a444.m4dc24(v31961).gridId); wg11c43.m9b571(v00c77,wgGetCellByPosition(v31961,0).childNodes[0],v31961.expanded); wg11c43.m55442(null,v31961); }}function _wgExpAllGR(vf9a16){ wgExpandGroupRow(vf9a16); var v25b97 =wg4a444.m4dc24(vf9a16); var v17d64 =wgGetNextRow(v25b97,vf9a16); while (v17d64) { if (v17d64.groupIndex ==vf9a16.groupIndex &&v17d64.style.display =="" &&v17d64.childrenLoaded !="False") wgExpandGroupRow(v17d64); v17d64 =wgGetNextRow(v25b97,v17d64); }}function wgCollapseGroupRow(v5bf52,vcbb43){ if (vcbb43) { _wgColAllGR(v5bf52); return; } if (v5bf52.type =="GroupHeader" &&v5bf52.expanded =="True") { var vaff16 =ISGetObject(wg4a444.m4dc24(v5bf52).gridId); wg11c43.m9b571(vaff16,wgGetCellByPosition(v5bf52,0).childNodes[0],v5bf52.expanded); wg11c43.m55442(null,v5bf52); }}function _wgColAllGR(v88f8){ wgCollapseGroupRow(v88f8); var v29388 =wg4a444.m4dc24(v88f8); var vbce13 =wgGetNextRow(v29388,v88f8); while (vbce13) { if (vbce13.groupIndex ==v88f8.groupIndex) wgCollapseGroupRow(vbce13); vbce13 =wgGetNextRow(v29388,vbce13); }}function wgExpandChildRow(v49f91){ var vcc28 =ISGetObject(wg4a444.m4dc24(v49f91).gridId); var vadb22 =wg10e8.m29217(v49f91);  if (v49f91.childNotExpandable !="True") { wg10e8.mee892(vcc28,vadb22,"False"); wg10e8.mcac60(null,v49f91); }}function wgCollapseChildRow(vd6f91){ var v45791 =ISGetObject(wg4a444.m4dc24(vd6f91).gridId); var v9f462 =wg10e8.m29217(vd6f91); wg10e8.mee892(v45791,v9f462,"True"); wg10e8.mcac60(null,vd6f91);}function wgRefreshHierPosition(v85d47,v09d42,v4413,v40972,v9f048){ if (v9f048) wg10e8.m51388(v85d47,v09d42,v4413,v40972); else { if (!v4413) return; var v49e91 =v4413.rowIndex; var v27362 =v40972; var v40218 =v85d47.Tables[v09d42.tblName]; for (var vf0869=v49e91; vf0869<v09d42.rows.length; vf0869++) { var v22626 =v09d42.rows[vf0869]; if (v22626.type =="Record") { v22626.position =v22626.recordIndex =v40972; v40972++; } } }}function wgGetSelectedObjectFromEvent(vcc949){ if (vcc949) { var vb2e38 =vcc949.srcElement; if (vb2e38.tagName !="TD") { origEl =vb2e38; vb2e38 =_wgGetTDElement(vb2e38); } if (!vb2e38) return null; var ve2090 =vb2e38.parentElement; var vd057 =wg4a444.m4dc24(ve2090); var vc6517 =ISGetObject(vd057.gridId); var v87792 =vc6517.Tables[vd057.tblName]; var v5a481 =v87792.Get("CellClickAction"); var v56247; if (v5a481 =="RowSelect") { v56247 =new SelectedObject(vd057.tblName,vd057.gridId,vb2e38); v56247.type ="Row"; v56247.rowIndex =ve2090.rowIndex; } else if (v5a481 =="CellSelect") { v56247 =new SelectedObject(vd057.tblName,vd057.gridId,vb2e38); v56247.type ="Cell"; v56247.rowIndex =ve2090.rowIndex; v56247.cellIndex =wgGetCellPosByName(ve2090,vb2e38); } return v56247; } return null;}function wgIsColumnSetRow(ve1849){ if (typeof (ve1849.csRowPos)!="undefined") return true; return false;}function wgGetPreviewRow(v42452){ var va8e32 =wg4a444.m4dc24(v42452); var vdcf88 =wgGetNextRow(va8e32,v42452); while (vdcf88 &&vdcf88.type !="PR") vdcf88 =wgGetNextRow(va8e32,vdcf88); return vdcf88;}function wgGetPreviewRowCell(vb4152){ for (var v4bf52=0; v4bf52<vb4152.cells.length; v4bf52++) { if (vb4152.cells[v4bf52].type =="PRCell" ||vb4152.cells[v4bf52].getAttribute("type")=="PRCell") return vb4152.cells[v4bf52]; } return null;}function wgIsValidCell(v57188){ if (!v57188) return false; if (v57188.type =="Cell" ||v57188.type =="GroupCell" ||v57188.type =="ECell" ||v57188.type =="PRExp" ||v57188.type =="PRCell" ||v57188.type =="FilterColumn") return true; return false;}function wgIsValidClickableCell(vd3824){ if (!vd3824) return false; if (vd3824.type =="RowSelector" ||wgIsValidCell(vd3824)) return true; return false;}function wgIsValidRow(v3f724){ if (!v3f724) return false; if (v3f724.type =="NewRow" ||v3f724.type =="PR" ||v3f724.type =="CSRecord" ||v3f724.type =="Record" ||v3f724.type =="FilterRow") return true; return false;}function wgGetPreviewRowParent(v45743){ if (v45743.type !="PR") return v45743; var v4b77 =wg4a444.m4dc24(v45743); var vebd77 =wgGetGridById(v4b77.gridId); var v1fa78 =vebd77.Tables[v4b77.tblName]; if (!v1fa78.IsUseColumnSet) return wgGetPreviousRow(v4b77,v45743); else return wgGetColumnSetRow(wgGetPreviousRow(v4b77,v45743)); return null;}function wgIsSameRow(ve6082,va8866){ if ((ve6082 ==null &&va8866 !=null)||(ve6082 !=null &&va8866 ==null)) return false; var v51043 =wg4a444.m4dc24(ve6082); var v90b46 =wg4a444.m4dc24(va8866); if (v51043 ==v90b46) { var vd9d96 =wgGetGridById(v51043.gridId); var v63350 =vd9d96.Tables[v51043.tblName]; if (!v63350.IsUseColumnSet) { if (!v63350.PreviewRowVisible) return ve6082 ==va8866; else return wgGetPreviewRowParent(ve6082)==wgGetPreviewRowParent(va8866); } else { if (!v63350.PreviewRowVisible) return wgIsSameColumnSetRow(ve6082,va8866); else return wgIsSameColumnSetRow(wgGetPreviewRowParent(ve6082),va8866); } } else return false; return false;}function wgIsSameColumnSetRow(vb5674,v6e014){ if (vb5674.type =="PR") { var vdb554 =wg4a444.m4dc24(vb5674); vb5674 =wgGetPreviousRow(vdb554,vb5674); } if (v6e014.type =="PR") { var vb4d5 =wg4a444.m4dc24(v6e014); v6e014 =wgGetPreviousRow(vb4d5,v6e014); } var vf9467 =wgGetColumnSetRow(vb5674); var ve8356 =wgGetColumnSetRow(v6e014); if (vf9467 ==ve8356) return true; return false;}function wgIsRecordRow(v6d393){ if (v6d393.type =="Record" ||v6d393.type =="CSRecord") return true; return false;}function wgGetHierRecord(v2c068){ var v87329 =wg4a444.m4dc24(v2c068); var v53093 =wgGetGridById(v87329.gridId); var vbee19 =v53093.Tables[v87329.tblName]; var v33e21 =0; if (vbee19.IsUseColumnSet) v33e21 +=vbee19.ColumnSetSettings.RowCount -1; if (vbee19.PreviewRowVisible) v33e21 +=1; v33e21 +=1; var vef623 =wgGetRootRow(v2c068); for (var va6752=0; va6752<v33e21; va6752++) vef623 =wgGetNextRow(v87329,vef623); if (vef623 &&vef623.type =="HierRecord") return vef623; return null;}function wgGetRowByGroup(v6c423,vd9d92,v41238,v4d948){ var vc2c40 =0; if (v4d948) vc2c40 =v4d948.rowIndex; for (var v39251=vc2c40; v39251<v6c423.rows.length; v39251++) { var v3e089 =v6c423.rows[v39251]; wg4a444.mc4f43(v3e089); if (v3e089.type =="GroupHeader" &&v3e089.groupIndex ==vd9d92 &&v3e089.position ==v41238) return v3e089; } return null;}function wgSetSelectedObject(vaae84,v23527){ var vec279 =ISXml.CreateXmlDocument(); vec279.loadXML(v23527); var vc5071 =vec279.selectSingleNode("//Object"); var v9b723 =vc5071.getAttribute("parentIndex"); var v81c51 =wgGetGridById(vaae84); var vb4c66 =v81c51.Tables[vc5071.getAttribute("tblName")]; var v8d385 =null; var v9f039; if (vb4c66.IsRootTable) { v9f039 =vb4c66.GetElement(WG40.BODY,WG40.HTMLTABLE); } else { var v23a27 =vc5071.getAttribute("tblSubId"); var v0bd56 =vb4c66.GetSubTableById(v23a27); v9f039 =v0bd56.GetElement(WG40.BODY,WG40.HTMLTABLE); } if (v9b723 !="") { var v2d279 =v9b723.split("_"); for (var v3f980=0; v3f980<v2d279.length; v3f980++) { var vfbd47 =wgGetRowByGroup(v9f039,v3f980,v2d279[v3f980],v8d385); if (vfbd47) { if (vfbd47.childrenLoaded =="True") { wgExpandGroupRow(vfbd47); } } v8d385 =vfbd47; } } var v8aa54 =null;  if (v81c51.BindingOperationMode =="ClientBinding" &&v8d385 ==null) { var v8b723 =vb4c66.GetRowByKeyValues(vc5071.getAttribute("keyValue"));  if (v8b723 !=null) { v8aa54 =v8b723.GetElement();  if (vb4c66.GroupedColumns.length >0) v8b723.ExpandGroupRowsToThisRow(); } }  if (v8aa54 ==null) v8aa54 =wgGetRowByPositionExact(v9f039,parseFloat(vc5071.getAttribute("pos")),(v8d385 ? v8d385.rowIndex +1 : null),true); if (v8aa54) { var v6f220 =null; if (v8aa54.srLevel) { if (v8aa54.currentStyle.display =="none") { var v0a436 =wgGetPreviousRow(v9f039,v8aa54); var v6ac52 =new Array(); while (v0a436) { if (v0a436.srRC>0 &&v0a436.srLevel<v8aa54.srLevel) v6ac52[v6ac52.length] =v0a436; v0a436 =wgGetPreviousRow(v9f039,v0a436); if (!v0a436) break; if (v0a436.srLevel ==0) { v6ac52[v6ac52.length] =v0a436; break; } } v6ac52 =v6ac52.reverse(); for (var v3f980=0; v3f980<v6ac52.length; v3f980++) { wg11c43.m34536(wg11c43.m72440(vb4c66,v6ac52[v3f980])); } } } if (vb4c66.Get("CellClickAction")=="RowSelect") v6f220 =wgGetCellByPosition(v8aa54,0); else if (vb4c66.Get("CellClickAction")=="CellSelect") { if (!vb4c66.IsUseColumnSet) { if (vb4c66.LastAECIndex !=-1) v6f220 =v8aa54.cells[vb4c66.LastAECIndex]; else v6f220 =wgGetCellByPosition(v8aa54,0); } else { if (vb4c66.LastCSIndex) v6f220 =wgGetCSCellByPosition(v8aa54,vb4c66.LastCSIndex[0],vb4c66.LastCSIndex[1],vb4c66.LastCSIndex[2]); }  if (v6f220 ==null) v6f220 =wgGetCellByPosition(v8aa54,0); } if (v6f220) { wg54045.ma4226(v6f220,true); wg54045.m88958(v81c51,v6f220); } }}function wgExpandSelfRefRow(v9f020){ var v04520 =wg4a444.m4dc24(v9f020); var v09996 =wgGetGridById(v04520.gridId).Tables[v04520.tblName]; v9f020.srExpanded ="False"; wg11c43.m34536(wg11c43.m72440(v09996,v9f020));}function wgCollapseSelfRefRow(v63a4){ var v2b64 =wg4a444.m4dc24(v63a4); var v38f37 =wgGetGridById(v2b64.gridId).Tables[v2b64.tblName]; v63a4.srExpanded ="True"; wg11c43.m34536(wg11c43.m72440(v38f37,v63a4));}function wgToggleSelfRefRow(vab54){ if (vab54.srExpanded =="True") wgCollapseSelfRefRow(vab54); else wgExpandSelfRefRow(vab54);}function wgGetKeyValues(va9c59){ var v6694 =wg4a444.m4dc24(va9c59); var v99937 =wgGetGridById(v6694.gridId); var vcd680 =v99937.Tables[v6694.tblName]; if (vcd680.HasMultiPrimaryKey) { var v60645 =vcd680.GetDataKeyFieldsCount(); var v59431 =new Array(); for (var v1b734=0; v1b734<v60645; v1b734++) { v59431[v59431.length] =va9c59.getAttribute("keyValue" +v1b734); } return v59431; } return null;}function wgIsFilterRow(v96859){ return v96859.type =="FilterRow";}function wgIsNewRow(vb6759){ return vb6759.type =="NewRow";}function wgRemoveRow(v35395,v4f385){ var v97259 =wgGetHierRecord(v4f385); var v8b316 =null; if (v35395.PreviewRowVisible) v8b316 =wgGetPreviewRow(v4f385); if (v97259 &&v97259.type !="HierRecord") v97259 =null; if (wgIsColumnSetRow(v4f385)) { var v6f965 =wgGetColumnSetRows(v4f385); for (var v32c49=0; v32c49<v6f965.length; v32c49++) { v6f965[v32c49].removeNode(true); } } else { v4f385.removeNode(true); } if (v8b316) v8b316.removeNode(true); if (v97259) v97259.removeNode(true);}function wgGetGridByElement(v88631){ return wg4a444.mbca94(v88631);}function wgGetTableByElement(va0914){ return wg4a444.m5e07(va0914);}function wgGetColumnByElement(v24314){ return wg4a444.m5c40(v24314);}function wgGetCellByElement(v76214){ return wg4a444.m2fe62(v76214);}function wgGetRowByElement(vf3514){ wg4a444.mc4f43(vf3514); return wg4a444.mb6356(vf3514);}var wg4a444 = { Initialized: false, m0aa57:function(v1cf40) { var v79f56 =new WebGrid(v1cf40); wg4a444.m3ba83(v79f56); wg4a444.m54a25(v79f56); wg4a444.m41f48(v79f56);  v79f56.IsInit =true; return v79f56; }, m3ba83:function(v80b40) { if (v80b40 ==null) return; if (!v80b40.IsInit) { var v01c40 =ISXml.GetNode(v80b40.XmlDt,"//WebGrid"); if (v01c40 ==null) v01c40 =v80b40.XmlDt.documentElement; if (v01c40 !=null) {  IS.SetPropertiesRecursive(v80b40,v01c40); v80b40.LayoutSettings.StatusBarCommandStyle =DynamicStyleEngine.Assign(ISXml.GetNode(v80b40.XmlDt,"//StatusBarCommandStyle")); } } }, m54a25:function(vb4876) { window.attachEvent("onload",function() { wg4a444.m63731(vb4876); }); window.attachEvent("onunload",function() { if (wg4a444 !=null) wg4a444.m88e49(vb4876); });  if (vb4876.LayoutSettings.AllowBatchUpdate) { window.attachEvent("onbeforeunload",function() { wg04140.m1f450(vb4876); }); } if (!wg4a444.Initialized) { var v2d476 =document.body; Listener.Add(v2d476,"onresize",wg4a444.m36c36); window.attachEvent("onload",wg4a444.mfd120); window.attachEvent("onbeforeprint",wg4a444.m94461); window.attachEvent("onafterprint",wg4a444.m7f056); v2d476.attachEvent("onmousemove",wg4a444.m15125); v2d476.attachEvent("onmouseup",wg4a444.mc2628); v2d476.attachEvent("onmousedown",wg4a444.mb9b85); wg4a444.Initialized =true; } wg4a444.ma7724(vb4876); wg4a444.mf1a70(vb4876); wg4a444.m56139(vb4876); vb4876.XmlHttp =ISXmlHttpEngine.Create(vb4876,function() { wg4a444.md0b65(vb4876); }); },  m56139:function(vbb131) { if (vbb131.LayoutSettings.StatusBarVisible) { var vebb95 =vbb131.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); Listener.Add(vebb95,"onmouseover",function() { wg11c43.m0166(vbb131); }); Listener.Add(vebb95,"onmouseout",function() { wg11c43.m0166(vbb131); }); Listener.Add(vebb95,"onmousedown",function() { wg11c43.m0166(vbb131); }); Listener.Add(vebb95,"onmouseup",function() { wg11c43.m0166(vbb131); }); } }, ma7724:function(v71f31) { v71f31.FrameObj.attachEvent("onbeforedeactivate",function() { wg4a444.m18e96(v71f31.Id); }); v71f31.FrameObj.attachEvent("onactivate",function() { wg4a444.mce983(v71f31.Id); }); v71f31.FrameObj.attachEvent("onmouseover",function() { wg4a444.me6250(v71f31); }); v71f31.FrameObj.attachEvent("onfocus",function() { wg4a444.m51d17(v71f31); }); v71f31.FrameObj.attachEvent("oncontextmenu",function() { wg4a444.m28c32(v71f31);   if (IS.safari) return false; }); v71f31.FrameObj.attachEvent("onmouseup",function() { wg4a444.m28c32(v71f31); });  if (IS.ie) Listener.Add(v71f31.FrameObj,"onresize",wg11c43.m72695,v71f31); },  m41f48:function(v50431) { if (!IS.ie) { v50431.FrameObj.style.MozUserFocus ="normal"; v50431.FrameObj.attachEvent("onblur",function() { wga4d9.md2794(v50431); });  var v8d131 =v50431.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); wga4d9.m11670(v8d131.childNodes[0]); window.attachEvent("onresize",function() { wg4a444.m36c36(); }); if (typeof (WebPaneManager)=="undefined") wga4d9.mc1799(v50431,true); wga4d9.m16d47(v50431); wga4d9.mbc445(v50431);  if (IsGecko30()&&typeof(wg08d15)=="object") wg08d15.me0147(v50431); } else { if (IS.GetIEVersion()<8) { var v08093 =v50431.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); var v74887 =v50431.RootTable.GetElement(WG40.COLHEADER,WG40.HTMLTABLE);  v08093.cellPadding =0; v74887.cellPadding =0;  v08093.style.paddingLeft ="1px"; } } },  m33d58:function(vef115) { var v33c31 =vef115.TotalLoadedRows; var v85293 =vef115.TotalRows; if (v85293<v33c31) v33c31 =v85293;  if (!vef115.LayoutSettings.StatusBarVisible) { if (v33c31 ==0 ||v85293 ==0) wg11c43.m0c697(vef115); else wg11c43.m7f837(vef115); } }, mf1a70:function(v0f525) { var vac215 =v0f525.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); Listener.Add(vac215,"onresize",function() { wg4a444.m5d938(vac215); }); Listener.Add(vac215,"onscroll",function() { wg4a444.ma0336(v0f525); }); if (v0f525.IsInProgress &&!IS.ie) { var v2b833 =v0f525.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); wga4d9.m11670(v2b833.childNodes[0]); wga4d9.mc0e2(v0f525); }  if (v0f525.LayoutSettings.AllowColumnFreezing =="Yes") { var v43136 =v0f525.GetFreezeOuterDivElement(); Listener.Add(v43136,"onscroll",wg11c43.m1e762,v0f525); }  if (IS.safari) { Listener.Add(document.body,"oncontextmenu",function() { if (v0f525.FrameObj.contains(event.srcElement)) { var vc1824 =event.srcElement;  if (vc1824.tagName =="TEXTAREA" ||vc1824.tagName =="SELECT") return; if (vc1824.tagName =="INPUT" &&vc1824.type =="checkbox" &&vc1824.className !="DefChkBox") return;  if (vc1824.tagName =="INPUT" &&vc1824.type =="text") return;  event.returnValue =false; event.cancelBubble =true; return false; } } ); } }, m4fc1:function(v2b181) { v2b181.FrameObj.detachEvent("onbeforedeactivate",function() { wg4a444.m18e96(v2b181.Id); }); v2b181.FrameObj.detachEvent("onactivate",function() { wg4a444.mce983(v2b181.Id); }); v2b181.FrameObj.detachEvent("onmouseover",function() { wg4a444.me6250(v2b181); }); v2b181.FrameObj.detachEvent("onfocus",function() { wg4a444.m51d17(v2b181); }); v2b181.FrameObj.detachEvent("oncontextmenu",function() { wg4a444.m28c32(v2b181); }); v2b181.FrameObj.detachEvent("onmouseup",function() { wg4a444.m28c32(v2b181); }); if (IS.ie) Listener.Unload(v2b181.FrameObj.parentElement);  Listener.Unload(v2b181.FrameObj); Listener.Unload(v2b181.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV)); if (v2b181.LayoutSettings.StatusBarVisible) { var vcc361 =v2b181.GetElement(WG40.STATUSBARCOMMAND,WG40.HTMLCELL); Listener.Unload(vcc361);  var v89f61 =v2b181.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); Listener.Unload(v89f61); } if (IS.moz) v2b181.FrameObj.detachEvent("onblur",function() { wga4d9.md2794(v2b181); }); }, m4cc65:function(vc0f17) { Listener.Unload(vc0f17.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV)); vc0f17.RootTable._tableCache =null; vc0f17.RootTable._colIndexCache =null; vc0f17.RootTable._colIndexCache2 =null; vc0f17.RootTable._headerRowCache =null;  if (vc0f17.LayoutSettings.AllowColumnFreezing =="Yes") { var vd6081 =vc0f17.GetFreezeOuterDivElement();  if (vd6081 !=null) Listener.Unload(vd6081); } }, mdcd26:function(v4f717) { wg4a444.m4fc1(v4f717); }, m63731:function(vd4d0) { if (!IS.ie) { var vebc17 =vd4d0.FrameObj.style.height; vd4d0.FrameObj.style.height ="0px"; vd4d0.FrameObj.style.height =vebc17; wga4d9.mc0e2(vd4d0);  if (vd4d0.LayoutSettings.AllowColumnFreezing =="Yes") { wg11c43.m9ad14(vd4d0); } }  vd4d0.IsLoaded =true; wg4a444.mb648(true); },  OnOuterFrameResize: function() {  }, mc4f43:function(v5520) { if (!IS.ie) wga4d9.m11670(v5520); }, SetMenuCssFile: function(v7a536,v62449) { if (typeof (Menu)!="undefined") v7a536.cssFile =v62449; }, m94461:function() { var va2720 =wg4a444.m9686(); for (var grid in va2720) { var vfd190 =va2720[grid]; if (typeof (vfd190)=="function") continue; var vadc25 =vfd190.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); if (ISEvent.Raise(vfd190.LayoutSettings.ClientSideEvents.OnBeforePrint,vfd190.Id)) { vadc25.style.display =""; if (vfd190.BrowserPrintSettings.GridLayout =="AsDisplayedInBrowser") vadc25.style.overflow ="hidden"; else vadc25.style.overflow ="visible"; if (!vfd190.BrowserPrintSettings.PrintStatusBar) { var v77d56 =vfd190.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); if (v77d56) v77d56.style.display ="none"; } } } }, m7f056:function() { var v3d586 =wg4a444.m9686(); for (var grid in v3d586) { var v49c27 =v3d586[grid]; if (typeof (v49c27)=="function") continue; var v96981 =v49c27.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); if (ISEvent.Raise(v49c27.LayoutSettings.ClientSideEvents.OnAfterPrint,v49c27.Id)) { v96981.style.overflow ="auto"; if (!v49c27.BrowserPrintSettings.PrintStatusBar) { var ve7b66 =v49c27.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); if (ve7b66) ve7b66.style.display =""; } } } }, m28c32:function(vd4b97) { if (event.type =="contextmenu" ||event.button ==2) { var v0f041 =event.srcElement; if (v0f041 &&v0f041.tagName) { if (v0f041.tagName =="INPUT" ||v0f041.tagName =="IMG" ||v0f041.tagName =="SELECT" ||v0f041.tagName =="TEXTAREA") return true; } var v81a6 =vd4b97.GetElement(WG40.STATUSBOX,WG40.HTMLDIV); if (v81a6 &&v81a6.contains(v0f041)) return false; event.cancelBubble =true; event.returnValue =false; return false; } }, m18e96:function(v37a8,v00f43) { var va0c97 =ISGetObject(v37a8); if (va0c97.IsOnBlur) return; try { var v59885 =event.srcElement; var va8f51 =event.toElement; if ((v59885.tagName =="DIV" &&(v59885.id ==v37a8 +IS.FRAMESUFFIX)&&va8f51.tagName =="BODY") ||(va8f51.tagName =="BODY" &&v59885.tagName =="TD")) { window.setTimeout(function() { va0c97.EnsureActiveEditCellFocus(); },200); return; } var vb1572 =va0c97.FrameObj; if (!vb1572.contains(va8f51)) { var v76328 =wg11c43.m15943(va0c97,va8f51); if (!v76328) { wg4a444.m23147(va0c97,va8f51); wg_Global.ActiveGrid =null; } } } catch (e) { } }, mce983:function(vd9827) { var v94d8 =wgGetActiveGrid(); if (!v94d8 ||vd9827 !=v94d8) { wg_Global.ActiveGrid =vd9827; wg4a444.mb9417(ISGetObject(vd9827)); } }, mfd120:function() { var v6d527 =wg4a444.m9686(); for (var vdb453=0; vdb453<v6d527.length; vdb453++) { var v8f489 =v6d527[vdb453]; var v55c40 =v8f489.FrameObj; if (v8f489.NeedFocus) { wg4a444.mb9417(v8f489,true); v8f489.NeedFocus =false; }  if (IsGecko30()) wg4a444.m41f48(v8f489); for (var v08671=0; v08671<v8f489.WebCombos.length; v08671++) { if (typeof (wcGetComboById)!="function") break; v8f489.WebCombos[v08671].Id =v8f489.WebCombos[v08671].Id.replace(/\$/g,"_"); var v4f521 =wcGetComboById(v8f489.WebCombos[v08671].Id); if (v4f521) { v4f521.FrameObj.style.display ="none"; v55c40.insertAdjacentElement("beforeEnd",v4f521.FrameObj); if (v4f521.MajorVersion =="4.0" &&typeof(wg08d15)=="object") wg08d15.m94e11(v8f489,v4f521); } } if (v8f489.LayoutSettings.AutoFitColumns) wg11c43.m30d84(v8f489);  if (v8f489.IsClassicPaging()&&v8f489.LayoutSettings.PagingStyleUI =="Slider") wg99e57.md671(v8f489);  if (v8f489.LayoutSettings.InitialView =="PivotChartView" ||v8f489.LayoutSettings.InitialView =="PivotChartViewExclusive") v8f489.SwitchToPivotChartView(); else if (v8f489.LayoutSettings.InitialView =="Both") wg03e66.m61511(v8f489,true,true);  setTimeout(function() { if (v8f489.CurrentViewMode =="PivotChartView") { wg03e66.m4a765(v8f489,false,true); } } ,100);  if (v8f489.BindingOperationMode =="ClientBinding") { wg14b67.mc0476(v8f489);  if (v8f489.ClientBindingSettings.FetchDataOnPageLoad) v8f489.LoadData(); }  wg4a444.mcfb51(v8f489); } wg4a444.m36c36(); }, m88e49:function(v1ad58) { var vb7358 =document.body; vb7358.onresize =null; window.detachEvent("onload",wg4a444.mfd120); window.detachEvent("onload",function() { wg4a444.m63731(v1ad58); }); window.detachEvent("onresize",function() { wg4a444.m36c36(); });  if (v1ad58.LayoutSettings !=null &&v1ad58.LayoutSettings.AllowBatchUpdate) { window.detachEvent("onbeforeunload",function() { wg04140.m1f450(v1ad58); }); } vb7358.detachEvent("onmousemove",wg4a444.m15125); vb7358.detachEvent("onmouseup",wg4a444.mc2628); vb7358.detachEvent("onmousedown",wg4a444.mb9b85); }, m15125:function() { wg11c43.mc0676(); }, mc2628:function() { wg11c43.mfe495(); }, mb9b85:function() { wg11c43.ma5e45(); }, md1780:function(v30058) { v30058.style.left =plGetCurX()-25; v30058.style.top =plGetCurY()-25; }, me6250:function() { if (event.button ==0) { var v00758 =event.srcElement; if (v00758 &&((v00758.tagName =="TD" &&v00758.currentStyle.textOverflow =="ellipsis")||v00758.tagName =="NOBR" ||(v00758.tagName =="SPAN" &&typeof (v00758.content)!="undefined"))) { if (wg_Global.TTId !=0) clearTimeout(wg_Global.TTId); wg_Global.TTId =setTimeout(function() { wg11c43.m85e79(v00758); },wg_Global.ToolTipDelay); } } }, m51d17:function(vfc477) { if (vfc477.IsOnBlur) return; if (!IS.ie) { if (!vfc477.HasFocus()) wg4a444.mb9417(vfc477,true); } if (!vfc477.LastSelObj) { if (IS.safari) return;  var v8e958 =vfc477.GetRootTable(); if (v8e958.GetElement(WG40.BODY,WG40.HTMLTABLE).rows.length>0) v8e958.SelectRow(0); } else { if (vfc477.ActiveEditCell) { vfc477.EnsureActiveEditCellFocus(); } else { try { if (vfc477.LastSelObj.type =="Row") { var v94920 =wgGetCellByPosition(vfc477.LastSelObj.element,0); v94920.setActive(); } else { vfc477.LastSelObj.element.setActive(); } } catch (e) { } } } }, m5d938:function(veae13) { var v62f77 =ISGetObject(veae13.childNodes[0].gridId); if (v62f77.LayoutSettings.AutoWidth) wg4a444.m26916(veae13.childNodes[0]); if (v62f77.FreezePaneActive &&!v62f77.IsInProgress) { var v56830 =wg11c43.ma1438(v62f77,0);  if (v56830 >0) { wg11c43.mb5030(v62f77,v56830,true);  if (wg11c43.m2ce85(v62f77)!=v56830) { setTimeout(function() { wg11c43.mb5030(v62f77,v56830,true); } ,100); } } } if (IS.moz) wga4d9.mc1799(v62f77); }, ma0336:function(v30818,v77856,vf7e1) { var v20e13 =v30818.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); var vcdf99 =v20e13.scrollTop +v20e13.offsetHeight; wg4a444.mc4f43(v20e13.childNodes[0]); var ve7e11 =ISGetObject(v20e13.childNodes[0].gridId); var v11312 =ve7e11.Tables[v20e13.childNodes[0].tblName]; var v39b37 =v11312.GetElement(WG40.COLHEADER,WG40.HTMLDIV); if (ve7e11.LayoutSettings.AutoFitColumns) v39b37.scrollLeft =0; if (v39b37.scrollLeft !=v20e13.scrollLeft ||v77856) { var v25d52 =v20e13.scrollLeft;  if (v77856) v25d52 =vf7e1;  wg4a444.m26916(v20e13.childNodes[0]); v39b37.scrollLeft =v25d52; if (v11312.Get("ColumnFooters")=="Yes") { var v9ed62 =v11312.GetElement(WG40.COLFOOTER,WG40.HTMLDIV); v9ed62.scrollLeft =v25d52; } } if (ve7e11.LastEditObj) { var v51251 =ve7e11.LastEditObj.element; ve7e11.ExitEditMode(); }  if (!ISEvent.Raise(ve7e11.LayoutSettings.ClientSideEvents.OnScroll,ve7e11.Id)) return;  if (v20e13.scrollSource !="_OnFreezeScroll") {  if (ve7e11.LayoutSettings.AllowColumnFreezing =="Yes" &&!ve7e11.FreezePaneActive) { v20e13.scrollSource ="OnTableScroll"; wg11c43.mb5030(ve7e11,v20e13.scrollLeft); setTimeout(function(){v20e13.scrollSource =null;},10); } }  var vbea21 =(wg4a444.m88163(v20e13)&&!IS.opera ? 17 : 0)+v20e13.scrollHeight; if (v20e13.scrollHeight <v20e13.offsetHeight) return;  if (!IS.ie &&v20e13.scrollHeight <=v20e13.offsetHeight) return; if (vcdf99 +2>=vbea21) { if (v11312.GroupedColumns.length>0) return; if (!ve7e11.IsInProgress &&ve7e11.LayoutSettings.PagingMode =="VirtualLoad") wg4a444.mb4941(v20e13.childNodes[0].gridId,"More"); }  }, m36c36:function() { if (WG40.ForceBogusResize) wg4a444.mb648(); if (wg_Global.GlobalResizeID !=0) { clearTimeout(wg_Global.GlobalResizeID); wg_Global.GlobalResizeID =0; } else wg4a444.mb648();  wg_Global.GlobalResizeID =setTimeout("wg4a444.mb648()",50); }, mb648:function(vda213) { var vf6b38 =wg4a444.m9686(); for (var veb665=0; veb665<vf6b38.length; veb665++) { var vf3268 =vf6b38[veb665]; if (IS.ie) { if (vf3268.LayoutSettings.AutoHeight) { vf3268.NeedHeightResize =true; wg11c43.m25354(vf3268.FrameObj); } else { if (vf3268.FrameObj.style.height !="") { if (vf3268.FrameObj.style.height.indexOf("%")>0) { vf3268.CacheTBodyHeight =null; } } } if (vf3268.LayoutSettings.AutoWidth) { vf3268.NeedWidthResize =true; wg11c43.m69289(vf3268.FrameObj); } var v2866 =vf3268.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV);  if (v2866 !=null &&v2866.scrollLeft >(v2866.scrollWidth -v2866.clientWidth -17)) wg4a444.ma0336(vf3268); } else { wga4d9.mc1799(vf3268); } if (vf3268.LayoutSettings.AutoFitColumns &&vf3268.FrameObj.style.width.indexOf("%")>=0) { if (vf3268.TempResizeID !=0) clearTimeout(vf3268.TempResizeID); setTimeout("wg11c43.m73d62('" +vf3268.Name +"')",500); }  if (vf3268.LayoutSettings.AllowColumnFreezing =="Yes") { wg11c43.m9ad14(vf3268); }  if (vda213 &&vf3268.CacheTBodyHeight ==null) { wg11c43.m45796(vf3268.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV)); } } }, mf2931:function(v53787) { if ((v53787.LastEditObj ||v53787.ActiveEditCell)&&!v53787.IsExitingEdit) { var v08548 =v53787.LastEditObj; var v83924 =v53787.ActiveEditCell; var vd4338 =v53787.Tables[((v08548)? v08548.tblName : v83924.tblName)]; var v5a712 =vd4338.Get("AllowEdit")=="Yes"; var v3b646; if (v08548) v3b646 =v08548.cellElement.parentElement; else v3b646 =v83924.rowElement; if (v5a712 &&v3b646.type =="Record") { if (v08548) wg08d15.maf456(v08548); } } }, mbc762:function(v30023) { v30023.IsInProgress =true; v30023.SetBusy(); }, mb9417:function(vc0a18,vee110) { var vd9359 =vc0a18.LastSelObj; if (vc0a18.IsOnBlur) return; if (!vc0a18.Get("Visible")) return; if (!ISEvent.Raise(vc0a18.LayoutSettings.ClientSideEvents.OnFocus,vc0a18.Id)) return; if (vee110) wg_Global.ActiveGrid =vc0a18.Name; if (wg4a444.m03819(vd9359)) { var v90d82 =vc0a18.Tables[vd9359.tblName]; var ve8c9 =v90d82.Get("CellClickAction"); if (vd9359.type =="Row" ||ve8c9 =="RowSelect") { wg54045.m5a732(vd9359.GetRowElement(),""); var v24819 =vc0a18.ActiveEditCell; if (v24819 &&wgIsSameRow(v24819.rowElement,vd9359.GetRowElement())) { wg08d15.m71c24(v24819.element,"Redraw"); vc0a18.EnsureActiveEditCellFocus(); } else { var vd1690 =wgGetCellByPosition(vd9359.element,0);  if (vd1690 !=null) vd1690.setActive(); } } else { var v90d82 =vc0a18.Tables[vd9359.tblName]; wg54045.mab578(vd9359.element,v90d82.GetSelRowStyle(),v90d82.GetFocusCellStyle(),"",true); vd9359.element.setActive(); } } else { if (vee110) { wg_Global.ActiveGrid =vc0a18.Name; var v92670 =vc0a18.GetRootTable().GetElement(WG40.BODY,WG40.HTMLTABLE); if (v92670.rows.length>0) { if (IS.safari) return;  if (wgIsRecordRow(v92670.rows[0])) { wg54045.ma4226(wgGetCellByPosition(v92670.rows[0],0),true); wgGetCellByPosition(v92670.rows[0],0).setActive(); } } } } }, m9686:function() { var va3f90 =new Array(); for (var vc4a49=0; vc4a49<IS.RuntimeObjects.length; vc4a49++) { var v15b46 =IS.RuntimeObjects[vc4a49]; if (typeof(v15b46)=="object" &&v15b46.ClassName =="WebGrid" &&v15b46.Version =="7.0.7200") va3f90[va3f90.length] =v15b46; } return va3f90; }, mbca94:function(vb0493) { var v6089 =wg4a444.maa781(vb0493); var v3b659 =ISGetObject(v6089); return v3b659; }, m5e07:function(v44c64) { var vaa629 =wg4a444.meba49(v44c64); var v83569 =wg4a444.maa781(v44c64); var v46f80 =ISGetObject(v83569); var va3a10 =v46f80.Tables[vaa629]; return va3a10; }, m5c40:function(vece84) { var v6c748 =wgGetColNameByCell(vece84); var v86878 =vece84.parentElement; if (v6c748) { var vce847 =ISGetObject(wg4a444.maa781(v86878)); var ve9572 =vce847.Tables[wg4a444.meba49(v86878)]; return ve9572.Columns.GetNamedItem(v6c748); } return null; }, m2fe62:function(v93539) { var v3b620 =wg4a444.m10964(v93539); if (v3b620) { var v08817 =wg4a444.mb6356(v3b620); if (v08817) { var v78783 =wgGetColNameByCell(v93539); return v08817.GetCell(v78783); } } return null; }, mb6356:function(va1495) { var vb6939 =wg4a444.m10964(va1495); if (vb6939) { var vcba27 =wg4a444.meba49(vb6939); var v68a50 =wg4a444.maa781(vb6939); var v52817 =ISGetObject(v68a50); var ve9176 =v52817.Tables[vcba27]; if (ve9176.IsUseColumnSet) vb6939 =wgGetRootRow(vb6939); return ve9176.ToRowObject(vb6939); } return null; },  m74119:function(v40750,v2bc85) { for (var v94378=0; v94378<v2bc85.length; v94378++) { if (v2bc85[v94378].RowElement ==v40750) return v2bc85[v94378];  if (v2bc85[v94378].Children !=null) { var vc2446 =wg4a444.m74119(v40750,v2bc85[v94378].Children);  if (vc2446) return vc2446; } } }, m03819:function(ve4b89) { if (ve4b89) { if (ve4b89.element) { try { var v2ca53 =ve4b89.GetRowElement(); var vfc135 =ve4b89.element; if (ve4b89.type =="Row") { if (v2ca53.rowIndex !=-1) { return true; } } else { if (vfc135.cellIndex !=-1 &&vfc135.parentElement !=null) return true; } } catch (e) { return false; } } } return false; }, m5c199:function(v5579) { if (v5579.tagName =="TR" ||v5579.tagName =="TD") return wg4a444.m4dc24(v5579).subId; else if (v5579.tagName =="TABLE") return v5579.subId; }, maa781:function(va9445) { return wg4a444.m4dc24(va9445).gridId; }, meba49:function(v55245) { return wg4a444.m4dc24(v55245).tblName; }, m4dc24:function(ve140) { var v33045 =ve140.parentElement; while (v33045 &&v33045.tagName !="TABLE") { v33045 =v33045.parentElement; } if (v33045 &&!IS.ie) wga4d9.m11670(v33045); return v33045; }, m26916:function(v8dd11) { var v0e60 =ISGetObject(v8dd11.gridId); var vcc262 =v0e60.Tables[v8dd11.tblName]; var v84a25 =vcc262.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v50f53 =v84a25.rows[0].cells[v84a25.rows[0].cells.length -1]; if (wg4a444.m88163(v8dd11.parentElement)||(v0e60.LayoutSettings.AllowColumnFreezing =="Yes" &&!v0e60.FreezePaneActive)) { if (!v0e60.IsRightToLeft()) { if (!v50f53.locked) wg4a444.m7d086(vcc262,v50f53,(IS.ie ? '17px' : '23px')); } } else { if (!v50f53.locked) { wg4a444.m7d086(vcc262,v50f53,'100%');  if (IS.moz) { wg4a444.m7d086(vcc262,v50f53,'99%'); setTimeout(function(){wg4a444.m7d086(vcc262,v50f53,'100%');},10); } } } if (v0e60.LayoutSettings.Hierarchical) { if (v0e60.GetMaxWidth()>v0e60.FrameObj.offsetWidth) { if (!v50f53.locked) { v0e60.FixPadColumnWidth(); } } else { var v37d63 =v0e60.GetRootTable(); var v05134 =v37d63.GetElement(WG40.COLGROUP); var v7d662 =v05134.childNodes[v05134.childNodes.length -1]; v7d662.width ="100%"; wg4a444.m7d086(vcc262,v50f53,'100%'); v50f53.locked =false; } } }, m91485:function(v65d14,v36170) { var vfb111 =v65d14.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); var v48620 =vfb111.getElementsByTagName("tbody"); for (var v56395=0; v56395<v48620.length; v56395++) { if (v48620[v56395].id ==v36170.id) return v48620[v56395]; } return null; },  mb4d97:function(v96886,v2d69,ve7948) { var v98914 =v96886.GetElement(WG40.STATUSBOX,WG40.HTMLDIV);  if (v98914 ==null) return;  var v70270 =v98914.children[0]; var vd9911 =v70270.rows[0].cells;  for (var vd3141=0; vd3141<vd9911.length; vd3141++) { var ved584 =vd9911[vd3141];  if (IS.GetAttr(ved584,"type")==v2d69) { return ved584.children[0].rows[0].cells[ve7948]; } }  return null; },  me8496:function(v8ad25) { return (v8ad25 ? "True": "False"); },  m03d8:function(vccd25) { if (typeof(ISCultureInfo)=="function") { vccd25.CultureInfo =CultureInfoEngine.GetDefaultCulture(); return vccd25.CultureInfo; }  return null; }, m88163:function(v0a744) { if (v0a744.offsetHeight !=v0a744.clientHeight) return true; else return false; }, HasHSBar: function(v73780) { if (v73780.offsetWidth !=v73780.clientWidth) return true; else return false; }, m7d086:function(vead16,v9e177,v36885) { if (vead16.IsUseColumnSet) { var vd3e80 =vead16.GetElement(WG40.COLHEADERGROUP); var v33c7 =vd3e80.childNodes[vd3e80.childNodes.length -1]; v33c7.width =v36885; } else { v9e177.style.width =v36885; } if (vead16.Get("ColumnFooters")=="Yes") { var vd3e80 =vead16.GetElement(WG40.COLFOOTERGROUP); var v33c7 =vd3e80.childNodes[vd3e80.childNodes.length -1]; v33c7.width =v36885; } }, mc2986:function(v87336) { if (!v87336) return null; while (v87336.tagName !="TD") { try { v87336 =v87336.parentElement; if (!v87336) return null; } catch (e) { return null; } } return v87336; },  ma8124:function(v76355) { if (!v76355) return null; while (v76355.tagName !="TD" &&v76355.tagName !="TH") { try { v76355 =v76355.parentElement; if (!v76355) return null; } catch (e) { return null; } } return v76355; }, m10964:function(vfa955) { while (vfa955 &&vfa955.tagName !="TR") vfa955 =vfa955.parentElement; return vfa955; },  m23253:function(v9d855) { var ve0255 =v9d855.rows[0];  while (ve0255 !=null &&ve0255.type !="Record") ve0255 =v9d855.rows[ve0255.rowIndex+1];  if (ve0255 !=null) return ve0255.rowIndex; else return -1; },  mc3371:function(v49a75,v3435) { var vebd75 =v49a75.Grid;  if (vebd75.FreezePaneActive) { if (IS.ie) cellIndex =wg4a444.m1b593(v3435); else { if (vebd75.FreezeConfig !=null) cellIndex =v3435.cellIndex -vebd75.FreezeConfig[0].length; else cellIndex =v3435.cellIndex; } } else cellIndex =v3435.cellIndex;  return cellIndex; }, m03334:function(v65a30,vb0385) { var vc8a46 =v65a30.parentElement; for (var vb2f44=0; vb2f44<vb0385 -1; vb2f44++) vc8a46 =vc8a46.parentElement; return vc8a46; }, m63036:function(v5522,v2dd24) { if (v2dd24.rowIndex ==v5522.rows.length -1) return null; var v06430 =v5522.rows[v2dd24.rowIndex +1]; if (v06430) wg4a444.mc4f43(v06430); return v06430; }, mc4519:function(ve852,v57e24) { if (v57e24.rowIndex ==0) return null; var v8ef2 =ve852.rows[v57e24.rowIndex -1]; if (v8ef2) wg4a444.mc4f43(v8ef2); return v8ef2; }, GetChildNodes: function(v51921,v09033) { var va8a2 =v51921.childNodes[0]; for (var vbe024=0; vbe024<v09033 -1; vbe024++) va8a2 =va8a2.childNodes[0]; return va8a2; }, mb4941:function(vf7f52,va6d1,v9aa12,va1293) { var v9d141 =ISGetObject(vf7f52); var v7c743 =v9d141.XmlHttp; var vafe41 =""; var v23986 =vf7f52; if (v9d141.IsPreviewMode) { alert("Not supported in Preview mode!"); return; } v9d141.XmlReq =ISXmlHttpEngine.CreateRequestXml(v9d141.GetType()); wg4a444.mf2931(v9d141); var v74137 =ISXml.GetNode(v9d141.XmlReq,"//request"); v9d141.RequestId =0; if (v9d141.IsInProgress) { if (va6d1 =="More" &&v9d141.LastAction =="AddRow") return; if ((va6d1 =="UpdateRow" &&v9d141.LastAction =="LoadChild") ||(va6d1 =="RowChanged" &&v9d141.LastAction =="UpdateRow")) { v9d141.NextQueue = [ va6d1, v9aa12 ]; return; } if (v9d141.LayoutSettings.InProgressUIBehavior =="DisplayMessageBox") alert(v9d141.GetString("MessageBoxText/InProgress")); return; } if (!ISEvent.Raise(v9d141.LayoutSettings.ClientSideEvents.OnBeforeRequest,v23986,va6d1,v9aa12)) return; v74137.setAttribute("id",v23986); v9d141.TempLRO =v9aa12;  if (v9d141.BindingOperationMode =="ClientBinding") { var vb4a38 =v9d141.ClientBindingSettings.DataSourceType;  if (v9d141.EnableSection508Standards) wg14b67.mc0476(v9d141,true);  if (vb4a38 =="ClientDataSource") { wg14b67.mdcf89(v9d141,va6d1,va1293,v9aa12); return; } else if (vb4a38 =="WebService" ||vb4a38 =="WcfService" ||vb4a38 =="AdoDataService") { wg81461.maf374(v9d141,va6d1,va1293,v9aa12); return; } }  switch (va6d1) { case "More": if (!wgde359.mf6395(v9d141,v74137,v23986)) return false; break; case "LoadGroup": if (!wgde359.mec31(v9d141,v74137,v23986,v9aa12)) return false; break; case "ColumnSort": if (!wgde359.m2b292(v9d141,v74137,v23986,v9aa12)) return false; break; case "Group": if (!wgde359.m52539(v9d141,v74137,v23986,v9aa12,"Group")) return false; break; case "Ungroup": if (!wgde359.m52539(v9d141,v74137,v23986,v9aa12,"Ungroup")) return false; break; case "ChangeGroup": if (!wgde359.m52539(v9d141,v74137,v23986,v9aa12,"ChangeGroup")) return false; break; case "ColumnFilter": if (!wgde359.mde070(v9d141,v74137,v23986,v9aa12)) return false; break; case "LoadChild": if (!wg10e8.md6010(v9d141,v74137,v23986,v9aa12)) return false; break; case "ColumnChange": if (!wgde359.mc1b92(v9d141,v74137,v23986,v9aa12)) return false; break; case "LoadData": if (!wg14b67.mdce41(v9d141,v74137,v23986)) return false; break; case "Refresh": if (!wgde359.m2a248(v9d141,v74137,v23986)) return false; break; case "RefreshAll": if (!wgde359.m57211(v9d141,v74137,v23986)) return false; break; case "Custom": if (!wgde359.mcfd56(v9d141,v74137,v23986)) return false; break; case "AddRow": if (!wg08d15.mabd94(v9d141,v74137,v23986,v9aa12)) return false; break; case "UpdateRow": if (!wg08d15.m50c42(v9d141,v74137,v23986,v9aa12)) return false; break; case "DeleteRow": if (!wg08d15.mbcd95(v9d141,v74137,v23986,v9aa12)) return false; break; case "Export": if (!wgde359.m57351(v9d141,v74137,v23986,v9aa12)) return false; break; case "ButtonClick": if (!wgde359.ma1018(v9d141,v74137,v23986,v9aa12)) return false; break; case "ChildTableRefresh": if (!wg10e8.mae782(v9d141,v74137,v9aa12)) return false; break; case "LoadSelfRefChild": if (!wgde359.mc6e12(v9d141,v74137,v23986,v9aa12)) return false; break;  case "LoadPreviewRow": if (!wgde359.m98a91(v9d141,v74137,v23986,v9aa12)) return false;  break;  case "RowChanged": if (!wgde359.mbe756(v9d141,v74137,v23986,v9aa12)) return false;  break;  case "PagingNext": case "PagingPrev": case "PagingTo": if (!wg99e57.m26917(v9d141,v74137,v23986,va6d1,v9aa12)) return false;  break;  case "Charting":  if (!wg03e66.me677(v9d141,v74137,v23986,v9aa12)) return false;   break;   case "RetrievePivotData":  if (!wg03e66.m30443(v9d141,v74137,v23986,v9aa12)) return false;  break;  case "BatchUpdate": if (!wg04140.me4063(v9d141,v74137,v23986,v9aa12)) return false;  break; } v9d141.LastRequestObj =v9aa12; v9d141.LastAction =va6d1;  if (v74137 !=null &&v9d141.IsClassicPaging()) v74137.setAttribute("totalPages",v9d141.GetTotalPages()); var vafd54 =v9d141.XmlHttp.Asynchronous; v7c743.Send(); if (vafd54) { wg4a444.mbc762(v9d141); } }, me9216:function(v8c727,v0a789) { v8c727.LastError =v0a789; if (!ISEvent.Raise(v8c727.LayoutSettings.ClientSideEvents.OnUnhandledError,v8c727.Name,v8c727.LastAction,v8c727.LastRequestObj,v8c727.LastError)) return; var vbee91 =v0a789; var v23320 =v8c727.XmlHttp.XmlHttp; if (vbee91.indexOf("Server Error")>=0 ||vbee91.indexOf("Stack Trace")>=0 ||(v23320 !=null &&v23320.status ==500)) { if (v8c727.LayoutSettings.DisplayDetailsOnUnhandledError) wg11c43.mc4369(v8c727,v0a789,v8c727.GetString("MessageBoxText/UnhandledError")); } else { if (vbee91 !="") { var v5c745 =IS.GetFormAction(vbee91); window.location =v5c745; return; } else { v8c727.LastError ="Unable to communicate with server.";  if (v8c727.LayoutSettings.DisplayDetailsOnUnhandledError) wg11c43.mc4369(v8c727,v8c727.LastError,"Unhandled exception."); } } v8c727.IsInProgress =false; v8c727.SetIdle(); v8c727.SetStatus1("","readyerror","CommonText/ReadyError"); v8c727.SetStatusIcon("Failed"); v8c727.IsStatusLocked =true; v8c727.IsUnhandledError =true; }, md0b65:function(v11976,v85467,v77968) { var v1c646 =v11976.XmlResp; var v4cb99; var vdb131;   if (v77968) { v4cb99 =v85467.status; vdb131 =v85467.error; } else { v4cb99 =ISXml.GetNodeText(v1c646,"//status"); vdb131 =ISXml.GetNodeText(v1c646,"//error"); } if (!ISEvent.Raise(v11976.LayoutSettings.ClientSideEvents.OnResponse,v11976.Id,v4cb99)) return; if (v4cb99 =="Error") { alert(vdb131.replace(/\\n/ig,"\n")); wg4a444.m6f980(v11976); v11976.SetStatus1("","ready","CommonText/Ready"); v11976.SetIdle(); v11976.IsInProgress =false; return; } if (v77968) { if (v11976.ClientBindingSettings.DataSourceType =="ServerDataSource") v1c646 =wg14b67.mff363(v11976,v85467); else { wg81461.m4bd96(v11976,v85467); return; } }  var v45019 =ISXml.GetNodeText(v1c646,"//action"); if (!ISEvent.Raise(v11976.LayoutSettings.ClientSideEvents.OnActionDispatched,v11976.Id,v45019)) return; switch (v45019) { case "More": wgde359.m78b98(v11976,v1c646); break; case "LoadGroup": wgde359.m0c98(v11976,v1c646); break; case "ColumnSort": wgde359.m89741(v11976,v1c646); break; case "Group": case "Ungroup": case "ChangeGroup": case "ColumnChange": wgde359.m8911(v11976,v1c646); break; case "ColumnFilter": wgde359.m1ac82(v11976,v1c646); break; case "LoadChild": wg10e8.mb5126(v11976,v1c646); break; case "Refresh": case "LoadData": wgde359.m0f617(v11976,v1c646); break; case "RefreshAll": wgde359.m6e540(v11976,v1c646); break; case "Custom": if (typeof (wgCustomActionResponse)=="function") wgCustomActionResponse(v11976,v1c646); break; case "AddRow": wg08d15.m7f582(v11976,v1c646); break; case "UpdateRow": wg08d15.m5f050(v11976,v1c646); break; case "DeleteRow": wg08d15.m52196(v11976,v1c646); break; case "Export": wgde359.m24670(v11976,v1c646); break; case "ButtonClick": wgde359.mcdd15(v11976,v1c646); break; case "ChildTableRefresh": wg10e8.m7e519(v11976,v1c646); break; case "LoadSelfRefChild": wgde359.ma5f67(v11976,v1c646); break;  case "LoadPreviewRow": wgde359.md2517(v11976,v1c646);  break;  case "Paging": wg99e57.m07a71(v11976,v1c646);  break;  case "Charting": case "RetrievePivotData": wg03e66.m7ae80(v11976,v1c646);  break;  case "BatchUpdate": wg04140.mea47(v11976,v1c646);  break;  } v11976.IsInProgress =false; wg4a444.m33d58(v11976); var v2552 =v1c646.selectSingleNode("//clientScripts"); if (v2552) { var v93078 =v2552.text; if (v93078 !="") { var v7ac49 =v93078.split(");"); for (var v28485=0; v28485<v7ac49.length; v28485++) { if (v7ac49[v28485] !="") { var vfc592 =v7ac49[v28485]; if (vfc592.indexOf("(")>=0) vfc592 +=")"; eval(vfc592); } } } } if (!ISEvent.Raise(v11976.LayoutSettings.ClientSideEvents.OnAfterResponseProcess,v11976.Name,v45019,v11976.LastRequestObj,v1c646)) return; v11976.LastRequestObj =null; v11976.TempLRO =null; v11976.IsUnhandledError =false; v11976.IsStatusLocked =false; v11976.SetIdle(); if (v11976.NextQueue) { wg4a444.mb4941(v11976.Name,v11976.NextQueue[0],v11976.NextQueue[1]); v11976.NextQueue =null; } }, m23147:function(v5f923,vae894) { var v6a432 =v5f923.LastSelObj; v5f923.IsOnBlur =true; if (!ISEvent.Raise(v5f923.LayoutSettings.ClientSideEvents.OnLostFocus,v5f923.Name)) return; if ((v5f923.LastEditObj ||v5f923.ActiveEditCell)&&!v5f923.IsExitingEdit) { var vaf446 =v5f923.LastEditObj; var v18a53 =v5f923.ActiveEditCell; var v31e91; if (vaf446) v31e91 =vaf446.cellElement.parentElement; else v31e91 =v18a53.rowElement; if (wgIsRowDirty(v31e91)||wgIsRowMarkedEdit(v31e91)) { var v9b168 =v5f923.ExitEdit(3)[2]; if (!v9b168) { if (v31e91.type =="NewRow") { wg08d15.m71c24(v18a53.element,"Clear",v18a53.element); wg08d15.mac373(v5f923,v31e91); } wg54045.m37715(v31e91,v5f923.GetCurSelImage()); } try { vae894.focus(); } catch (e) { } } else { v5f923.ExitEditMode(true); } } if (v6a432) { if (v6a432.type =="Row") wg54045.m5a732(v6a432.GetRowElement(),"",true); else { wg54045.mab578(v6a432.element,v5f923.GetBlurRowStyle(),"0px","",true); } }  if (v5f923.LayoutSettings.AllowBatchUpdate) { if (v5f923.LayoutSettings.BatchUpdateSettings.NotifyOnLostFocus &&v5f923.GetChangesCount()>0) wg04140.m66752(v5f923); } var v76510 =function() { v5f923.IsOnBlur =false; }; window.setTimeout(v76510,50); }, m94c55:function(v90c62,vb8414) { for (var va9526=0; va9526<v90c62.attributes.length; va9526++) { if (vb8414.indexOf(v90c62.attributes[va9526].name)==-1) { v90c62.removeAttribute(v90c62.attributes[va9526].name); va9526--; } } }, m70c12:function(vce128) { var v9e282 =vce128.XmlDt; var v47d23 =v9e282.documentElement; var v8c757 =vce128.LastSelObj; if (v8c757 &&v8c757.element) { var v37220 =ISXml.GetNode(v9e282,"//selectedObject"); if (v37220) v47d23.removeChild(v37220); var vda711 =v9e282.createNode(1,"selectedObject",""); var v39b42 =v8c757.GetRowElement(); if (!v39b42 ||v39b42.rowIndex ==-1 ||v39b42.type =="NewRow" ||v39b42.type =="FilterRow") return; v39b42 =wgGetRootRow(v39b42); vda711.setAttribute("tblName",v8c757.tblName); vda711.setAttribute("type",v8c757.type); vda711.setAttribute("rowIndex",v39b42.position); vda711.setAttribute("cellIndex",v8c757.cellIndex); vda711.setAttribute("parentIndex",wg11c43.m84e16(v39b42)); ISXml.CreateCDATA(v9e282,vda711,"keyValue",(v39b42.keyValue ? v39b42.keyValue : "")); var v5f045 =vce128.Tables[v8c757.tblName]; if (v5f045.HasMultiPrimaryKey &&v39b42.type =="Record") { var vd6540 =wgGetKeyValues(v39b42); vda711.setAttribute("keyCount",vd6540.length); for (var v93350=0; v93350<vd6540.length; v93350++) { ISXml.CreateCDATA(v9e282,vda711,"keyValue" +v93350,vd6540[v93350]); } } v47d23.appendChild(vda711); } else { ISXml.RemoveNode(v47d23,"selectedObject"); } }, mfad87:function(vcb489) { var v6e228 =vcb489.StateRestorationLevel; var v09f51 =vcb489.GetXml().xml; if (v6e228 !="High") { var ve4f46 =ISXml.CreateXmlDocument(); ISXml.LoadXml(ve4f46,vcb489.XmlDt.xml); var vee768 =ISXml.GetNode(ve4f46,"//LayoutSettings"); var vc0978 ="TotalLoadedRows,TotalRows,CurrentPageIndex,TotalPages"; for (var ve2c55=0; ve2c55<vee768.childNodes.length; ve2c55++) { vee768.removeChild(vee768.childNodes[ve2c55]); ve2c55--; } if (v6e228 =="Low") { var vf6c74 ="Name,DataMember,IsRootTable,DataKeyField"; var v33f59 ="FilterBarVisible,Culture,Hierarchical"; var vabb11 = "Name,IsGrouped,IsSorted,Visible,Width,EditType,WebComboID,ColumnType,FilterEditType"; var v42589 = [ "BrowserPrintSettings", "FlyPostBackSettings", "UtilizedCustomEditors", "WebCombos" ]; var v7779 = [ "PreviewRowSettings", "ColumnSetSettings", "SelfReferencingSettings", "FocusCellStyle" ]; wg4a444.m94c55(ve4f46.documentElement,vc0978); wg4a444.m94c55(vee768,v33f59); for (sTbl in vcb489.Tables) { var v8f219 =vcb489.Tables[sTbl]; var v9e743 =null; if (typeof (v8f219)=="function") continue; if (v8f219.IsRootTable) v9e743 =ve4f46.selectSingleNode("//RootTable"); else v9e743 =ve4f46.selectSingleNode("//WebGridTable[@Name='" +v8f219.Id +"']"); wg4a444.m94c55(v9e743,vf6c74); for (var tNode in v7779) ISXml.RemoveNode(v9e743,v7779[tNode]); var v42f88 =v9e743.selectNodes("Columns/WebGridColumn"); for (var ve1a30=0; ve1a30<v42f88.length; ve1a30++) wg4a444.m94c55(v42f88[ve1a30],vabb11); } for (var node in v42589) ISXml.RemoveNode(ve4f46.documentElement,v42589[node]); } v09f51 =ve4f46.xml; ve4f46 =null; } vcb489.CustomStateString =v09f51; var vab487 =document.getElementById(vcb489.xmlInputHiddenUniqueID); if (vab487 ==null) vab487 =document.getElementById(vcb489.xmlInputHiddenUniqueID.replace(/:/g,"_")); if (vab487 ==null) vab487 =document.getElementById(vcb489.xmlInputHiddenUniqueID.replace(/\$/g,"_")); if (vab487 !=null) vab487.value =escape(v09f51); }, m6f980:function(ve4328) { switch (ve4328.LastAction) { case "AddRow": case "Insert": var vcb289 =ve4328.LayoutSettings.ResetNewRowValuesOnError; var v33b86 =ve4328.LastSelObj.GetRowElement(); var vca021 =ve4328.LastRequestObj.RowElement; if (vcb289 ||(vca021 &&!wgIsSameRow(v33b86,vca021))) { try { wg08d15.mac373(ve4328,vca021); if (wgIsSameRow(v33b86,vca021)) wg54045.m37715(vca021,ve4328.GetCurSelImage()); } catch (e) { } ; } break; case "UpdateRow": case "Update": var vca021 =ve4328.LastRequestObj; wg08d15.mce13(vca021.RowElement); break; } }, m97a30:function(v07450) { var v19e64 =v07450.XmlDt; for (table in v07450.Tables) { var v87c75 =v07450.Tables[table]; if (typeof (v87c75)=="function") continue; var va4e73 =v87c75.GetRowCheckerColumn(); if (va4e73 ||v87c75.Get("AllowMultipleSelection")=="Yes") { var v25469 =v07450.LayoutSettings.RestoreRowSelection; var v67d86 =v87c75.GetCheckedRows(); if (v67d86.length>0) { var vcf819 =v87c75.XmlNode; ISXml.RemoveNode(vcf819,"checkedRows"); var vee770 =ISXml.GetNode(vcf819,"checkedRows"); if (!vee770) vee770 =ISXml.CreateNodeOnly(v19e64,"checkedRows",""); for (var vd5d14=0; vd5d14<v67d86.length; vd5d14++) { var vfc669 =ISXml.CreateNode(v19e64,vee770,"rowKV",""); if (v87c75.HasMultiPrimaryKey) { var v29a84 =wgGetKeyValues(v67d86[vd5d14]); for (var v54c73=0; v54c73<v29a84.length; v54c73++) { ISXml.CreateCDATA(v19e64,vfc669,"keyValue" +v54c73,v29a84[v54c73]); } } else { ISXml.CreateCDATA(v19e64,vfc669,"keyValue",v67d86[vd5d14].keyValue); }  if (v25469 !="Disabled") { if ((v25469 =="RootTableOnly" &&v87c75.IsRootTable)||(v25469 =="ChildTableOnly" &&!v87c75.IsRootTable)||v25469 =="All") { if (!v87c75.Storage.SelectedRows.Contains(v67d86[vd5d14])) v87c75.Storage.SelectedRows.Add(v67d86[vd5d14]); } } }  if (v25469 =="Disabled") vcf819.appendChild(vee770); } else { var vcf819 =v87c75.XmlNode; ISXml.RemoveNode(vcf819,"checkedRows"); } } } }, ReplaceXmlNode: function(v7705,v0271,va0381) { var vb2050 =v0271.indexOf("<" +v7705 +">"); var vc4622 =v0271.indexOf("</" +v7705 +">"); if (vb2050>=0 &&vc4622>=0 &&vc4622>vb2050) { var vefb96 =v0271.substring(0,vb2050); var v78d40 =v0271.substring(vc4622 +v7705.length +3); return vefb96 +"<" +v7705 +">" +va0381 +"</" +v7705 +">" +v78d40; } }, mb8e3:function(v9cd63,v3eb30,vbf282,v4a629) { var v99824 =v9cd63.Grid; var va2410 =false;  if (v99824.LastClientAction) { if (v99824.LastClientAction.indexOf("ClientService")==-1) { va2410 =true; v3eb30 =v99824.LastClientAction;  if (v3eb30.indexOf("Paging")>-1) v3eb30 ="Paging"; else if (v3eb30 =="Group" ||v3eb30 =="Ungroup" ||v3eb30 =="ColumnChange") v3eb30 ="ColumnGroup"; } }  switch (v3eb30) { case "ColumnSort": case "ColumnFilter": case "Refresh": case "BatchUpdate": if (v9cd63.IsRootTable) { if (v99824.FreezePaneActive &&v99824.FrozenColumns !=null) { if (!vbf282) { vbf282 =new WebGridPartOption(); vbf282.Body =true; }  if (v99824.RequireInvalidateFreezeContainer) { wg11c43.m9ad14(v99824); v99824.RequireInvalidateFreezeContainer =false; }  wg11c43.mf7053(v99824); wg11c43.m41725(v99824,true,vbf282); } else if (v99824.LayoutSettings.AllowColumnFreezing =="Yes" &&!v99824.FreezePaneActive) { wg11c43.m9ad14(v99824); wg11c43.mb5030(v99824,0,true,false,true); } } v99824.NeedHeightResize =true; break;  case "ColumnGroup": case "RefreshAll": case "Paging": case "LoadData":  if (v3eb30 =="RefreshAll") { wg4a444.m4c077(v99824); }  if (typeof (v4a629)=="undefined") { var v49f48 =false;  if ((IS.ie ||v3eb30 =="Paging")&&va2410) { if (v99824.FreezePaneActive &&v99824.FrozenColumns !=null) { v49f48 =true; vbf282 =new WebGridPartOption(); vbf282.Body =true; wg11c43.m41725(v99824,true,vbf282); wg11c43.mf7053(v99824,true,v9cd63.GetElement(WG40.BODY,WG40.HTMLTABLE).rows); } }  if (!v49f48) { if (v99824.FreezePaneActive &&v99824.FrozenColumns !=null) { if (!vbf282) vbf282 =new WebGridPartOption(true); wg11c43.m88a34(v99824,true); wg11c43.m9ad14(v99824); } else if (v99824.LayoutSettings.AllowColumnFreezing =="Yes" &&!v99824.FreezePaneActive) { wg11c43.m9ad14(v99824); wg11c43.mb5030(v99824,0,true,false,true); } }  if (!IS.ie &&v99824.BindingOperationMode =="ClientBinding") { if (v99824.FreezePaneActive &&v99824.FreezeConfig !=null) { if (v9cd63.Get("ColumnFooters")=="Yes") { var v0f65 =v9cd63.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE); wg11c43.m33f3(v9cd63,v0f65.children[0]); } } } } else if (v4a629 ==0) {  } v99824.NeedHeightResize =true; wg11c43.m35f55(v99824); break; case "AddRow": case "UpdateRow": { if (v99824.FreezePaneActive &&v99824.FrozenColumns !=null) { if (!vbf282) { vbf282 =new WebGridPartOption(); vbf282.Footer =true; }  wg11c43.m41725(v99824,true,vbf282); } } }   if (IsIE8StandardMode()) { v99824.NeedHeightResize =true; wg11c43.m72695(v99824); }   if (v9cd63.Get("AllowMultipleSelection")=="Yes") wg4a444.md8978(v99824);  if (v99824.LayoutSettings.AllowBatchUpdate) { wg04140.m37633(v9cd63,v99824.XmlResp); wg04140.mfc780(v9cd63,v4a629); } if (v99824.BindingOperationMode =="ClientBinding") wg14b67.m87891(v9cd63);  if (v9cd63.Storage !=null) v9cd63.Storage.RefreshUI(v4a629); },  m03328:function(v37138,v8e318,v07434) { var v3ca38 =v37138.Grid;  switch (v8e318) { case "More": case "LoadGroup": case "AddRow": break; } if (v3ca38.BindingOperationMode =="ClientBinding") { wg14b67.m87891(v37138,v37138._PartialRows,v07434); if (v37138.Storage !=null) v37138.Storage.RefreshUI(v07434); }  v37138._PartialRows =null; },  md8978:function(v6e394) { for (var table in this.Tables) { if (table !=null &&typeof(table)=="string") { var v4f810 =this.Tables[table];  if (typeof(v4f810)!="function" &&v4f810 !=null) v4f810.ClearSelectedRows(); } } },  m1b593:function(v79b49) { var vf7430 =v79b49.parentElement; var vb2967 =0;  for (var v0ab37=0; v0ab37<vf7430.cells.length; v0ab37++) { if (vf7430.cells[v0ab37] ==v79b49) return vb2967;  vb2967++; }  return -1; },  m1f046:function(v3dd15,vdfd14,vdef60) { var v5d085 =v3dd15._tableCache;  if (v5d085 ==null) v5d085 =v3dd15.GetElement(WG40.BODY,WG40.HTMLTABLE,vdfd14);  var ve2946 =-1; var v8b123 =null;  if (!v5d085) return null;  if (typeof(vdef60)=="string") { if (v3dd15.IsUseColumnSet) return wgGetCSCellByName(vdfd14,vdef60);  if (v3dd15.IsRootTable) { if (v3dd15._colIndexCache &&typeof(v3dd15._colIndexCache[vdef60])=="number") { ve2946 =v3dd15._colIndexCache[vdef60]; } else { if (v3dd15._headerRowCache) v8b123 =v3dd15._headerRowCache; else { v8b123 =v3dd15.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vdfd14).rows[0]; v3dd15._headerRowCache =v8b123; } } } else v8b123 =v3dd15.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vdfd14).rows[0];  if (v8b123) { var v84041 =v8b123.cells.length;  for (var v40961=0; v40961<v84041; v40961++) { v4d955 =v8b123.cells[v40961]; wg4a444.mc4f43(v4d955); if ((v4d955.type =="Column")&&v4d955.colName ==vdef60) { if (!v3dd15._colIndexCache) v3dd15._colIndexCache =[];  v3dd15._colIndexCache[vdef60] =v40961;  ve2946 =v40961; break; } } } }  else { var vc8814 =vdfd14.cells; var v91c73 =-1;  for (var v40961=0; v40961<vc8814.length; v40961++) { var v4d955 =vc8814[v40961]; var v69922 =""; wg4a444.mc4f43(v4d955); v69922 =v4d955.type;  wg4a444.mc4f43(v4d955); if (v69922 =="Cell" ||v69922 =="GroupCell" ||v69922 =="FilterColumn") v91c73++; if (vdef60 ==v91c73) { ve2946 =v40961; break; } } }  if (ve2946>=0) return vdfd14.cells[ve2946];  return null; },  m28c66:function(vdb585,v8d71) { var v03954 =v8d71.parentElement; var v81333 =vdb585.Grid; var vd4394 =null; var v51a33 =false; if (!vdb585.IsUseColumnSet) { var vff43 =null; var v30556 =v8d71.cellIndex;  if (IS.ie &&vdb585.IsRootTable &&v81333.FreezePaneActive &&v81333.FreezeConfig !=null && (wgIsRecordRow(v03954)||v8d71.style.display =="none")) v51a33 =true;  if (vdb585.IsRootTable) { if (!v51a33 &&vdb585._colIndexCache2 &&typeof(vdb585._colIndexCache2["index" +v30556])=="string") { return vdb585._colIndexCache2["index" +v30556]; } else { if (vdb585._headerRowCache) vd4394 =vdb585._headerRowCache; else { vd4394 =vdb585.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v03954).rows[0]; vdb585._headerRowCache =vd4394; } } } else vd4394 =vdb585.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v03954).rows[0];  if (vd4394) vff43 =vd4394.cells;  for (var v71d52=0; v71d52<vff43.length; v71d52++) { var v77c80 =vff43[v71d52]; var v20f68 =v77c80.cellIndex;  if (!IS.ie) wga4d9.m11670(v77c80);  if (v51a33) v20f68 =wg4a444.m1b593(v77c80);  if (v8d71.style.display =="none") v30556 =wg4a444.m1b593(v8d71);  if (v77c80.type =="Column" &&v20f68 ==v30556) { if (!v51a33) { if (!vdb585._colIndexCache2) vdb585._colIndexCache2 =[];  vdb585._colIndexCache2["index" +v30556] =v77c80.colName; }  return v77c80.colName; } } } else { if (typeof (v8d71.cs)=="undefined") return null; return vdb585.GetColNameByRowLayout(v8d71.cs,v8d71.r,v8d71.c); } },  m5ec11:function(v5b396,v89259,vad11) { if (!v89259) return false;  var v6c040 =v89259.parentElement; var vb5b80 =false;  if (typeof(vad11)=="number") vb5b80 =true;  var v05316 =v5b396.Table.Grid;  if (v05316.LayoutSettings.AllowBatchUpdate &&v5b396.IsAutoIncrement) return false;  if (wgIsFilterRow(v6c040)) return v5b396.GetFilterEditType()!="NoEdit";  else if (wgIsRecordRow(v6c040)) return v5b396.EditType !="NoEdit" &&(v89259.noEdit !="true" &&v89259.noEdit !="True" )&& (!vb5b80 ||(vb5b80 &&vad11 <v6c040.cells.length));  else if (wgIsNewRow(v6c040)) return v5b396.GetNewRowEditType()!="NoEdit";  return false; },  mb4467:function(vc226,ve5f17) { var v95351 =vc226.XmlDt; var vce638 =ISXml.CreateNodeOnly(v95351,"Storage",""); var v49e87 =false; for (var tableName in vc226.Tables) { var v2e710 =vc226.Tables[tableName];  if (typeof(v2e710)=="object") { var v17013 =v2e710.Storage.SerializeToXml(ve5f17);  if (v17013 !=null) { v49e87 =true; vce638.appendChild(v17013); } } }  ISXml.RemoveNode(vc226.XmlNode,"Storage");  if (v49e87) { vc226.XmlNode.appendChild(vce638); } },  m4c077:function(v29662) { for (var tableName in v29662.Tables) { var v5be26 =v29662.Tables[tableName];  if (typeof(v5be26)=="object") v5be26.Storage.Initialize(); } },  mcfb51:function(v41a45) { var v75862 =ISXml.GetNode(v41a45.XmlDt,"//Storage");  if (v75862 !=null) { for (var tableName in v41a45.Tables) { var v82896 =v41a45.Tables[tableName];  if (typeof(v82896)=="object") { var v9f257 =ISXml.GetNode(v75862,"//Table[@Name='" +tableName +"']");  if (v9f257 !=null) v82896.Storage.Deserialize(v9f257); } } } },  mb1f69:function(v6201,veb715,v5b591,v69140) { var vaa081 =veb715.GetElement(WG40.BODY,WG40.HTMLTABLE,v5b591); var v3dc5 =v6201; var v56e24 =new Array(); if (vaa081.rows.length ==0) return null; while (v3dc5) { if (v3dc5.type =="GroupHeader" &&v3dc5.groupIndex =="0") return v3dc5; else if (v3dc5.type =="GroupHeader" &&v69140) wgExpandGroupRow(v3dc5); v3dc5 =wgGetPreviousRow(vaa081,v3dc5); } return null; },  m33861:function(v5b776,vf674) { for (var ved456=vf674.Position; ved456 >-1; ved456--) { var vbc494 =v5b776.Columns[ved456];  if (vbc494 !=null &&vbc494.Visible) return vbc494; }  return null; },  m33c96:function(vdde67,vf5852) { var vf9931 =""; if (vdde67.HasMultiPrimaryKey) vf9931 =wgGetKeyValues(vf5852).join("\03"); else vf9931 =vf5852.keyValue;  if (typeof(vf9931)=="undefined") vf9931 ="";  return vf9931; },  me8d69:function(v03522,v03531) { if (v03522 ==v03531) return true;  var vb4451 =v03522.replace("\r","").replace("\n",""); var v43e92 =v03531.replace("\r","").replace("\n","");  if (vb4451 ==v43e92) return true;  return false; },  mc0c81:function(vf1942) { return (vf1942 ==" " ||escape(vf1942)=="%A0"); },  m2b42:function(v27a78,v34210) { if (v27a78.HasValueList &&v27a78.Get("UseValueListForSorting")=="Yes") return "Text";  switch (v27a78.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 (v34210) 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(vb1950,v44a64){ var v45550 =wg4a444.m0aa57(vb1950); v45550.NeedFocus =v44a64; v45550.IsLoaded =true; v45550.OnInitialize();  if (IS.OnAJAXInitialization) { if (v45550.WebCombos.length >0 ||v45550.IsClassicPaging()) setTimeout(wg4a444.mfd120,50);  if (!IS.ie) wg4a444.m63731(v45550); }}var posLib2 = { getLeftAbs: function(v89b28,vf8f32) { if (!IS.ie) { var v8d844 =ISPosLib.getLeftNonIE(v89b28); if (vf8f32) { if (vf8f32.PosRelativeTo) { v8d844 +=ISPosLib.getLeftNonIE(vf8f32.PosRelativeTo); } } return v8d844; } if (vf8f32 &&vf8f32.LayoutSettings.UseRelativePositioning) { return ISPosLib.getLeft(v89b28); } var v8d844 =v89b28.style.posLeft; var v6bc65 =v89b28.parentElement; v8d844 +=ISPosLib.getBorderLeftWidth(v89b28); if (v6bc65) { if (v6bc65.style.position.toLowerCase()=="absolute") v8d844 +=v6bc65.style.posLeft; } if (vf8f32) { if (vf8f32.PosRelativeTo) { v8d844 +=ISPosLib.getLeft(vf8f32.PosRelativeTo); } } return v8d844; }, getTopAbs: function(v6c764,va2c2) { if (!IS.ie) { var v2ec28 =ISPosLib.getTopNonIE(v6c764); if (va2c2) { if (va2c2.LayoutSettings.UseRelativePositioning) { return v2ec28; } if (va2c2.PosRelativeTo) { v2ec28 +=ISPosLib.getTopNonIE(va2c2.PosRelativeTo); } if (va2c2.FrameObj.style.position !="absolute") return 0; } if (v6c764.style.position =="absolute" ||v6c764.style.position =="relative") return v2ec28; else return 0; } if (va2c2 &&va2c2.LayoutSettings.UseRelativePositioning) { return ISPosLib.getTop(v6c764); } var v2ec28 =v6c764.style.posTop; var vaf114 =v6c764.parentElement; v2ec28 +=ISPosLib.getBorderTopWidth(v6c764); if (vaf114) { if (vaf114.style.position.toLowerCase()=="absolute") v2ec28 +=vaf114.style.posTop; } if (va2c2) { if (va2c2.PosRelativeTo) { v2ec28 +=ISPosLib.getLeft(va2c2.PosRelativeTo); } } return v2ec28; } };function _FixAmpChar(v6eb6){ v6eb6 =v6eb6.replace(/&/g,"&amp;"); return v6eb6;}function WebGridCoreDestructor(){ wg_Global =null; delete wg_Global; delete wg4a444; window.detachEvent("onunload",WebGridCoreDestructor); IS.RegisterUnloadVariables("wg4a444");}window.attachEvent("onunload",WebGridCoreDestructor);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();