
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/11/2009 3:13:45 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**
function wgActiveCell(vef061,vb1680,ve8411){ this.element =ve8411; this.tblName =vb1680; this.gridId =vef061; if (ve8411) this.cellIndex =ve8411.cellIndex; this.rowElement =null; this.rowChanged =false;  this.ToCellObject =function() { var vfad42 =wgGetGridById(this.gridId); var v23071 =vfad42.Tables[this.tblName]; var ve5244 =v23071.ToRowObject(this.rowElement);  if (ve5244 !=null) return ve5244.GetCell(wg4a378.mb2364(v23071,this.element)); }; this.GetColSetRowElement =function() { var vfad42 =wgGetGridById(this.gridId); var v23071 =vfad42.Tables[this.tblName]; if (v23071.IsUseColumnSet) { return wgGetColumnSetRow(this.element); } return null; }; this.GetColSetRowsElement =function() { var vfad42 =wgGetGridById(this.gridId); var v23071 =vfad42.Tables[this.tblName]; if (v23071.IsUseColumnSet) { return wgGetColumnSetRows(this.element); } return null; }; return this;}function wgSetLastAEC(v8f672){ var vae917 =wg4a378.m33a20(v8f672); var v31a59 =ISGetObject(vae917.gridId); var v9c596 =v31a59.Tables[vae917.tblName]; if (v9c596.LastAECIndex !=-1) { if (v8f672.cells.length>v9c596.LastAECIndex) { var v27d66 =v8f672.cells[v9c596.LastAECIndex]; if (v27d66.type =="Cell" ||v27d66.type =="FilterColumn") wg2f128.mc9757(v27d66); else wg2f128.m4c417(v8f672); } } else { wg2f128.m4c417(v8f672); }}function wgGetFirstEditableCell(vf4463){ if (wgIsColumnSetRow(vf4463)) return wgGetCSFirstEditableCell(vf4463); var v60f72 =wg4a378.m33a20(vf4463); var v36d38 =ISGetObject(v60f72.gridId); var v3fc82 =v36d38.Tables[v60f72.tblName]; var v7dc69 =v3fc82.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vf4463).cells; var vd693 =-1; for (var v25f56=0; v25f56<v7dc69.length; v25f56++) { wg4a378.mb6b61(v7dc69[v25f56]); if (v7dc69[v25f56].type =="Column") { var v7741 =v3fc82.Columns.GetNamedItem(v7dc69[v25f56].colName); if (wg4a378.m09a64(v7741,vf4463.cells[v25f56],v25f56)) { vd693 =v25f56; break; } } } return vd693;}function wgGetNextEditableRow(va4466,v4b037){ var vcc883 =wgGetNextVisibleRow(va4466,v4b037); if (vcc883) { while (!(vcc883 &&vcc883.element &&!vcc883.element.noEdit)) { if (vcc883 ==null) return null;  vcc883 =wgGetNextVisibleRow(va4466,vcc883.element); } } return vcc883;}function wgGetPrevEditableRow(v89538,v09276){ var ve7166 =wgGetPrevVisibleRow(v89538,v09276); if (ve7166) { while (!(ve7166 &&ve7166.element &&!ve7166.element.noEdit)) ve7166 =wgGetPrevVisibleRow(v89538,ve7166.element); } return ve7166;}function wgGetNextEditableCell(v46f24,vc7922){ var ve0638 =v46f24.parentElement; if (!ve0638) ve0638 =vc7922; var v76176 =false; if (wgIsColumnSetRow(ve0638)) { var vfd337 =wgGetCSNextEditableCell(v46f24,ve0638); if (vfd337 &&vfd337.rowElement) { if (vfd337.rowElement.type !="GroupHeader" &&vfd337.rowElement.type !="GroupTotalRow") return vfd337; else v76176 =true; } } var v7ed79 =wg4a378.m33a20(ve0638); var v64f69 =ISGetObject(v7ed79.gridId); var vbc078 =v64f69.Tables[v7ed79.tblName]; var vca319 =vbc078.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,ve0638).cells; var vecf37 =-1; var vd8375 =new wgActiveCell(v7ed79.gridId,v7ed79.tblName); var vf5f99 =v46f24.cellIndex;  if (IS.ie &&vbc078.IsRootTable &&v64f69.FreezePaneActive &&(wgIsFilterRow(ve0638)||wgIsNewRow(ve0638))) vf5f99 =wg4a378.m59d2(v46f24); if (!v76176) { for (var v43355=vf5f99 +1; v43355<vca319.length; v43355++) { wg4a378.mb6b61(vca319[v43355]); if (vca319[v43355].type =="Column") { var vfe890 =vbc078.GetColumn(vca319[v43355].colName); if (wg4a378.m09a64(vfe890,ve0638.cells[v43355],v43355)) { vecf37 =v43355; break; } } } } if (vecf37 ==-1) { var vead68 =wgGetNextEditableRow(v7ed79,ve0638); if (vead68 &&vead68.element &&vbc078.Get("AllowEdit")=="Yes") { vd8375.rowChanged =true; vd8375.rowElement =vead68.element; if (vead68.element.type =="Record" ||vead68.element.type =="NewRow") { vecf37 =wgGetFirstEditableCell(vead68.element); if (typeof (vecf37)=="object") { vd8375.element =vecf37; } else { if (vecf37 ==-1) vecf37 =vbc078.LastAECIndex; if (vecf37>=vead68.element.cells.length) vecf37 =vead68.element.cells.length -1; vd8375.element =vead68.element.cells[vecf37]; } vd8375.cellIndex =vd8375.element.cellIndex; } else { vecf37 =0; vd8375.element =null; vd8375.cellIndex =null; } } } else { vd8375.rowElement =ve0638; vd8375.element =ve0638.cells[vecf37]; vd8375.cellIndex =vd8375.element.cellIndex; } if (vecf37 ==-1) { vd8375.element =v46f24; vd8375.rowElement =ve0638; vd8375.cellIndex =vd8375.element.cellIndex; } return vd8375;}function wgGetPrevEditableCell(vbbf13,v9d919){ var v9f643 =vbbf13.parentElement; if (!v9f643) v9f643 =v9d919; if (wgIsColumnSetRow(v9f643)) { var v8d232 =wgGetCSPrevEditableCell(vbbf13,v9f643); if (v8d232 &&v8d232.rowElement) { if (v8d232.rowElement.type !="GroupHeader") return v8d232; } } var v16c27 =wg4a378.m33a20(v9f643); var vb3d12 =ISGetObject(v16c27.gridId); var vc4034 =vb3d12.Tables[v16c27.tblName]; var vcc618 =vc4034.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v9f643).cells; var v73214 =-1; var v59f21 =new wgActiveCell(v16c27.gridId,v16c27.tblName); var v64a87 =vbbf13.cellIndex;  if (IS.ie &&vc4034.IsRootTable &&vb3d12.FreezePaneActive &&(wgIsFilterRow(v9f643)||wgIsNewRow(v9f643))) v64a87 =wg4a378.m59d2(vbbf13); for (var v19384=v64a87 -1; v19384>=0; v19384--) { wg4a378.mb6b61(vcc618[v19384]); if (vcc618[v19384].type =="Column") { var v30411 =vc4034.Columns.GetNamedItem(vcc618[v19384].colName); if (wg4a378.m09a64(v30411,v9f643.cells[v19384],v19384)) { v73214 =v19384; break; } } } if (v73214 ==-1) { var v68b38 =wgGetPrevEditableRow(v16c27,v9f643); if (v68b38 &&v68b38.element &&vc4034.Get("AllowEdit")=="Yes") { v59f21.rowChanged =true; v59f21.rowElement =v68b38.element; if (v68b38.element.type =="Record" ||v68b38.element.type =="NewRow") { if (v68b38.element.type =="NewRow") v59f21.element =wgGetFirstEditableCell(v68b38.element); else v59f21.element =wgGetLastEditableCell(v68b38.element); if (v59f21.element) v73214 =v59f21.element.cellIndex; else { v73214 =vc4034.LastAECIndex; v59f21.element =v68b38.element.cells[v73214]; } v59f21.cellIndex =v73214; } else { v73214 =0; v59f21.element =null; v59f21.cellIndex =null; } } } else { v59f21.rowElement =v9f643; v59f21.element =v9f643.cells[v73214]; v59f21.cellIndex =v59f21.element.cellIndex; } if (v73214 ==-1) { v59f21.element =vbbf13; v59f21.rowElement =v9f643; v59f21.cellIndex =v59f21.element.cellIndex; } return v59f21;}function wgGetLastEditableCell(v71824){ if (wgIsColumnSetRow(v71824)) return wgGetCSLastEditableCell(v71824); var v82e49 =wg4a378.m33a20(v71824); var v9aa88 =ISGetObject(v82e49.gridId); var v98616 =v9aa88.Tables[v82e49.tblName]; var v32644 =v98616.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v71824).cells; var v0ac99 =-1; for (var v97c59=v32644.length -1; v97c59>=0; v97c59--) { wg4a378.mb6b61(v32644[v97c59]); if (v32644[v97c59].type =="Column") { var v56710 =v98616.Columns.GetNamedItem(v32644[v97c59].colName); if (v56710.EditType !="NoEdit" &&(v97c59<v71824.cells.length &&v71824.cells[v97c59].noEdit !="True")) { v0ac99 =v97c59; break; } } } if (v0ac99 !=-1) return v71824.cells[v0ac99]; else return null;}function wgActiveCellValid(v64124,v98977){ if (v64124.ActiveEditCell) { if (wgIsSameRow(v64124.ActiveEditCell.element.parentElement,v98977)) { return true; } } return false;}function wgIsRowEditable(v97b43){ if (!v97b43) return false; if (wgIsColumnSetRow(v97b43)) { var vf8e43 =wgGetColumnSetRow(v97b43);  if (vf8e43.rowState =="Deleted") return false;  return vf8e43.noEdit !="True"; } else { if (v97b43.rowState =="Deleted") return false;  return v97b43.noEdit !="True"; }}function wgGetUnMask(v08f54,vccd45,vf926,v38a77,ve4b64){ var v7e843 =vccd45.DataType; var v97187; var v2b235 =false; if (ve4b64) v97187 =ve4b64; else { v2b235 =true; v97187 =vf926.innerText; } if (!v7e843) return v97187; if (vf926 &&wgIsFilterRow(vf926.parentElement)) return v97187; var vb4b71 =vccd45.DataFormatString; var vc7b20 =new ISClientData(null,v7e843,vb4b71); v08f54.ValEngine.CheckType(vc7b20); var vb5684 =vc7b20.Type; var v34194 =vccd45.EditType;  if (vb5684 =="number" &&v34194 =="TextBox") { if (v2b235 &&vf926.cellValue) v97187 =vf926.cellValue;  vc7b20.NewValue =v97187; return v08f54.ValEngine.UnMask(vc7b20,v08f54.CultureInfo); } else if (v34194 =="Checkbox") { return vf926.childNodes[0].checked; } else { if (vf926.cellValue &&!v38a77) return vf926.cellValue; else return v97187; }}function wgGetMask(va274,vef422,v79010,v41c7,vfc27,v3a431){ var vdaf73; var v3eb54; if (vef422) { vdaf73 =vef422.cellElement; v3eb54 =va274.Tables[vef422.tblName]; } else { vdaf73 =vfc27; v3eb54 =v41c7; } if (wgIsFilterRow(vdaf73.parentElement)) return v79010; var v81d73 =v3eb54.GetColumn(wgGetColNameByCell(vdaf73)); if (!v81d73) return; var vfcc39 =v81d73.DataType; if (!vfcc39) return v79010; var v58864 =v81d73.DataFormatString; var v3fc8 =new ISClientData(null,vfcc39,v58864); va274.ValEngine.CheckType(v3fc8); var va9f94 =v3fc8.Type; if ((va9f94 =="number" ||va9f94 =="datetime")&&typeof (v79010)!="undefined") { v3fc8.NewValue =v79010; if (va9f94 =="datetime" &&v58864 =="") v3fc8.Format ="G"; if (va9f94 =="number" &&v58864 =="") v3fc8.Format ="g"; va274.ValEngine.Validate(v3fc8,va274.CultureInfo); if (v3fc8.IsValid) { if (!v3a431) return v3fc8.FormattedValue; else return [true,v3fc8.FormattedValue]; } else { if (typeof (vdaf73.oldCellValue)!="undefined") { v3fc8.NewValue =vdaf73.oldCellValue; if (v3fc8.NewValue ==" ") v3fc8.NewValue =""; if (!v3a431) return va274.ValEngine.Mask(v3fc8,va274.CultureInfo); else return [false,va274.ValEngine.Mask(v3fc8,va274.CultureInfo),vdaf73.oldCellValue]; } else return ""; } } else { return v79010; }}function wgEditObj(v65579,vab211,ve5562,v30c72,va9a29){ this.element =ve5562; this.type =v30c72; this.gridId =v65579; this.tblName =vab211; this.cellElement =va9a29;  this.ToCellObject =function() { return wgGetCellByElement(this.cellElement); };  return this;}function wgDispObjGeneric(v23134,v2e490,vdb447,vc1f75,v7a651,vfd055,v98f96,v16e87){ wg2f128.m77984(v23134,v2e490,vdb447,vc1f75,v7a651,vfd055,v98f96,v16e87);}function wgIsRowMarkedEdit(vbc389){ if (vbc389.parentElement ==null) return false; var vf5189 =wgGetRootRow(vbc389); return vf5189.markedEdit;}function wgIsRowDirty(v2fb45){ var v7ca25 =new Array(); if (wgIsColumnSetRow(v2fb45)) { v7ca25 =wgGetColumnSetRows(v2fb45); } else { v7ca25[0] =v2fb45; } for (var vc4938=0; vc4938<v7ca25.length; vc4938++) { var v10e51 =v7ca25[vc4938]; for (var v4ec20=0; v4ec20<v10e51.cells.length; v4ec20++) { if (v10e51.cells[v4ec20].cellModified) return true; } } return false;}function wgAddNewRow(v2e345){ wg4a378.m71658(v2e345.Grid.Id,"AddRow",v2e345);}function wgUpdateRow(vc0064){ wg4a378.m71658(vc0064.Grid.Id,"UpdateRow",vc0064);}function wgDeleteRow(v7cc64){ wg4a378.m71658(v7cc64.Grid.Id,"DeleteRow",v7cc64);}function wgHighlightEditCell(v14a0,vdb527,v94d3){ wg2f128.mc9757(v14a0,vdb527,v94d3);}function wgActivateEditMode(v19136){ v19136.ActivateEditMode();}var wg2f128 = { m4c417:function(v35a4) { if (wgIsColumnSetRow(v35a4)) { wg17710.m67f50(v35a4); return; } var vc714 =wgGetFirstEditableCell(v35a4); if (vc714 !=-1) wg2f128.mc9757(v35a4.cells[vc714]); }, m04345:function(v91424) { var v79e88 =v91424.parentElement; if (!v79e88) return; var v0dc59 =wg4a378.m33a20(v79e88); var v83a48 =ISGetObject(v0dc59.gridId); if (!v83a48.ActiveEditCell) return; wg2f128.mc9757(v83a48.ActiveEditCell.element,"Clear",v91424); v83a48.ExitEdit(); v83a48.ActiveEditCell =null; }, mc9757:function(v31173,v2c86,v83571) { var v47943 =v31173.parentElement; if (!v47943) return; var vf9c38 =wg4a378.m33a20(v47943); if (!vf9c38) return; var vf6c33 =ISGetObject(vf9c38.gridId); var vc1465 =vf6c33.Tables[vf9c38.tblName]; var v1a314 =vf6c33.LayoutSettings.RowHighlightType; if (vf6c33.ActiveEditCell &&vf6c33.ActiveEditCell.element ==v31173 &&v2c86 !="Clear" &&v2c86 !="Redraw") return; if (!vc1465.IsUseColumnSet &&((v31173.type !="Cell" &&v31173.type !="FilterColumn") ||(vf6c33.Tables[vf9c38.tblName].IsRootTable &&v31173.style.display !="none"  &&v31173.cellIndex ==v47943.cells.length -1))) return; if (v2c86 !="Clear") { v31173.selStyle =v31173.runtimeStyle.cssText; if (v2c86 !="Nodraw") { with (v31173.runtimeStyle) { var vc9596 =borderLeft; var v87657 =borderTop; var v7bf21 =borderRight; var vac049 =borderBottom; cssText =vf6c33.GetEditFocusStyle(); if (IS.moz) v7bf21 =v31173.style.borderRight; if (IS.moz &&v7bf21 =="") v7bf21 ="0px"; if (v1a314 =="EntireRow") { borderLeft =vc9596; borderTop =v87657; borderRight =v7bf21; borderBottom =vac049; } } } if (v2c86 !="Redraw") { var vbb970 =v31173.cellIndex;  if (vf6c33.ActiveEditCell &&vf6c33.ActiveEditCell.element !=v31173) wg2f128.mc9757(vf6c33.ActiveEditCell.element,"Clear",v31173);  if (vf6c33.FreezePaneActive &&vc1465.IsRootTable &&(wgIsFilterRow(v47943)||wgIsNewRow(v47943))) vbb970 =wg4a378.m59d2(v31173); vf6c33.ActiveEditCell =new wgActiveCell(vf9c38.gridId,vf9c38.tblName,v31173); vf6c33.ActiveEditCell.rowElement =v47943; vf6c33.Tables[vf9c38.tblName].LastAECIndex =vbb970; vf6c33.ResetStatus();  if (vf6c33.LayoutSettings.VerboseEditingInformation &&!vf6c33.IsInProgress) wg2f128.mdbc54(vf6c33.Tables[vf9c38.tblName],v31173); } wgdee10.mfb068(vf6c33,v31173); } else { if (v31173 &&wgIsSameRow(v47943,v83571.parentElement)) { var v8e126 =null;  if (!IS.ie) { if (v31173.currentStyle.display =="none" ||v31173.style.display =="none") v8e126 ==false; else v8e126 =true; }  v31173.runtimeStyle.cssText =v31173.selStyle;  if (!IS.ie) { if (v8e126) v31173.style.display =""; else v31173.style.display ="none"; } } } },  mdbc54:function(v0074,ve8a74) { var vda265 =ve8a74.parentElement; var v7c355 =v0074.ToRowObject(vda265); var v26174 =v7c355.GetCell(wgGetColNameByCell(ve8a74)); var v82377 =v26174.Column; var v35d2 =v82377.Table.Grid;  if (v82377.EditType =="NoEdit") { var v94525 =v35d2.GetString("CommonText/ReadOnlyCell");  if (v82377.EditInfoText !="") v94525 +=" " +v82377.EditInfoText;  v35d2.SetStatus1(v94525); v35d2.SetStatusIcon("ReadOnly"); } else { v35d2.SetIdle(); if (vda265.rowState =="Deleted") { v35d2.SetStatus1("","","CommonText/DeletedRowNoEdit"); v35d2.SetStatusIcon("ReadOnly"); } else { if (v82377.EditInfoText !="") v35d2.SetStatus1(v82377.EditInfoText); else { if (ve8a74.cellModified) v35d2.SetStatus1("","","CommonText/ModifiedCell"); else v35d2.SetStatus1("","ready","CommonText/Ready"); }  if (v82377.EditInfoImage !="") v35d2.SetStatusIcon(v82377.EditInfoImage,true); { if (ve8a74.cellModified) v35d2.SetStatusIcon("Edit"); } } } }, m09f77:function(v24715,v0aa32) { if (wgIsColumnSetRow(v0aa32)) { wg17710.md9625(v24715,v0aa32); return; } if (v0aa32.type =="NewRow") { var v59b59 =v0aa32.cells; var vdd553 =v24715.Tables[wg4a378.m97d49(v0aa32)]; var v2c693 =null; if (!vdd553.IsRootTable) { var v1454 =vdd553.GetSubTableById(wg4a378.m33a20(v0aa32).subId); v2c693 =ISXml.CreateXmlDocument(); ISXml.LoadXml(v2c693,v1454.RelNames); } if (v0aa32.rowValidated) v0aa32.rowValidated =false; for (var vb2623=0; vb2623<v59b59.length; vb2623++) { if (v59b59[vb2623].type =="Cell") { var v54851 =wgGetColNameByCell(v59b59[vb2623]); if (v54851) wg2f128.m08610(v24715,vdd553,v54851,v59b59[vb2623],v2c693); } } v2c693 =null; } }, m18e69:function(v31990) { var vf2115; if (v31990 &&v31990.type !="NewRow") return; var vcc032 =v31990.cells; for (var v37478=0; v37478<vcc032.length; v37478++) { if (vcc032[v37478].type =="NewRowInfoCell") { vf2115 =vcc032[v37478]; break; } } if (v31990.type =="NewRow" &&vf2115) vf2115.innerText =v31990.infoText; }, m08610:function(v35756,v4d958,v9dd86,v4f281,v92f33) { if (v4d958) { var veea9 =v4d958.Columns.GetNamedItem(v9dd86); var vf1b30 =veea9.DefaultValue; var va1f97 =veea9.EditType; var vd2234 =veea9.DefaultText; var v1e566 =false; if (vd2234 ==null) vd2234 =""; if (vf1b30 =="") vf1b30 =" "; if (vd2234 !="" ||vf1b30 !=" ") v1e566 =true; if (v92f33) { var vfd383 =v92f33.selectSingleNode("//DataColumn[@name='" +(veea9.ParentKeyName ? veea9.ParentKeyName : v9dd86)+"']"); if (vfd383) vf1b30 =ISXml.DecodeString(vfd383.text); }  if (v35756.LayoutSettings.AllowBatchUpdate) { if (veea9.IsAutoIncrement) vd2234 ="(Auto)"; else if (!v4d958.IsRootTable) { var vaa054 =v4d958.Parent.Columns.GetNamedItem(v9dd86);  if (vaa054 !=null &&vaa054.IsAutoIncrement) vd2234 ="(Auto)"; } } if (va1f97 =="Checkbox") { v4f281.innerHTML ="<input type=checkbox class='DefChkBox' " +(vf1b30.toLowerCase()=="true" ? "checked" : "")+">"; if (vf1b30.toLowerCase()=="true") v4f281.cellValue =true; else v4f281.cellValue =false; } else if (va1f97 =="DropdownList" ||va1f97 =="WebComboNET") { if (vf1b30 !=" ") { if (vd2234 =="") vd2234 =vf1b30; v4f281.cellValue =vf1b30; v4f281.innerText =vd2234; } else { v4f281.innerText =vf1b30; v4f281.cellValue =vf1b30; } } else { if (vd2234 !="") v4f281.innerText =vd2234; else v4f281.innerText =vf1b30; if (IS.moz &&vf1b30 ==" ") v4f281.innerHTML ="&nbsp;"; v4f281.cellValue =vf1b30; } v4f281.cellModified =false; if (!v35756.LayoutSettings.MarkDefaultValuesAsDirty) v1e566 =false;  if (v1e566) { var ved147 =v4f281.parentElement; if (!wgIsRowMarkedEdit(ved147)) { ved147.markedEdit =true; setTimeout(function() { wg2f128.m8de51(v35756); },50); } v4f281.cellModified =true; } } else v4f281.innerText =" "; }, mcf845:function(v6b450,ve9156) { if (v6b450.tagName =="INPUT" &&v6b450.type =="checkbox" &&!v6b450.editHandler) { if (!ve9156) return; var vf6395 =ve9156.parentElement; if (!vf6395 ||vf6395.tagName !="TR") return; var vb8e77 =wg4a378.m33a20(vf6395); if (!vb8e77 ||(vb8e77 &&!vb8e77.gridId)) return; var v8bc20 =ISGetObject(vb8e77.gridId); var v8fb5 =v8bc20.Tables[vb8e77.tblName]; if ((vf6395.type =="NewRow" &&v8fb5.Get("AllowAddNew")=="Yes")||(wgIsRecordRow(vf6395)&&v8fb5.Get("AllowEdit")=="Yes")) { if (vf6395.noEdit) return; if (!ve9156.oldCellValue) ve9156.oldCellValue =v6b450.checked; wg2f128.m4c837(v8bc20,v6b450); } } }, m13c95:function(ve8f11,v25592) { var v8016 =ve8f11.ActiveEditCell; var vccf35 =false; var v8ca91 =null; var v47d11 =null; var vc2976 =""; var va9929 =null; var ve3273 =null; if (ve8f11.IsPreviewMode) { alert("Not supported in Preview mode!"); return; } if (v8016 &&v8016.element) { v47d11 =v8016.element; v8ca91 =ve8f11.Tables[v8016.tblName]; va9929 =v8ca91.Columns.GetNamedItem(wgGetColNameByCell(v47d11));  if (ve8f11.LastSelObj) ve3273 =ve8f11.LastSelObj.GetRowElement(); else ve3273 =v47d11.parentElement; if (!va9929) return; if (v47d11.noEdit =="True" ||!wg4a378.m09a64(va9929,v47d11)||!wgIsRowEditable(ve3273)) return false; vc2976 =va9929.EditType; if (wgIsFilterRow(ve3273)) { if (va9929.FilterEditType !="SameAsEditType") vc2976 =va9929.FilterEditType; } else if (wgIsNewRow(ve3273)) { if (va9929.NewRowEditType !="SameAsEditType") vc2976 =va9929.NewRowEditType; } if (ve8f11.LastEditObj) { var vccf35 =ve8f11.ExitEditMode(); if (!vccf35) return false; } if (!wgIsRowDirty(ve3273)) { if (ve3273.rowValidated) ve3273.rowValidated =false; if (!ISEvent.Raise(ve8f11.LayoutSettings.ClientSideEvents.OnBeginRowEditing,ve8f11.Name,v8ca91.ToRowObject(ve3273))) return; } var v98c44 =false; var vbf783 =false; switch (vc2976) { case "CalendarDropdown": v98c44 =true; vbf783 =true; case "CalendarCombo": v98c44 =true; case "TextBox": vccf35 =wg2f128.m55d10(v8016,va9929,"",v25592,v98c44,vbf783); break; case "WebComboNET": vccf35 =wg2f128.m1d186(v8016,va9929,"",v25592); break; case "Checkbox": vccf35 =wg2f128.m6b834(v8016,va9929,"",v25592); break; case "DropdownList": vccf35 =wg2f128.ma6f82(v8016,va9929,"",v25592); break; case "MultilineTextbox": vccf35 =wg2f128.m19331(v8016,va9929,"",v25592); break;  case "ResizableTextbox": vccf35 =wgb7875.m82567(v8016,va9929,"",v25592);  break; case "Custom": var v13497 =ve8f11.CustomEditors[va9929.CustomEditorName]; vccf35 =v13497.EnterEditMode(v8016,va9929,"",v25592); break; } } if (vccf35) { ve8f11.IsInEditMode =true; if (v47d11.parentElement.type =="NewRow" ||wgIsFilterRow(v47d11.parentElement)) { v8ca91.IsAdding =true; v47d11.oldText =v47d11.innerText; if (v47d11.cellValue) v47d11.oldCellValue =v47d11.cellValue; } else { v8ca91.IsEditing =true; if (!v47d11.oldText) { if (vc2976 =="MultilineTextbox") v47d11.oldText =v47d11.innerHTML; else { v47d11.oldText =v47d11.innerText; if (va9929.ColumnType =="ImageAndText" &&v47d11.oldText &&v47d11.oldText.substring(0,1)==" ") v47d11.oldText =v47d11.oldText.substring(1); } } if (!v47d11.oldCellValue) { var v59043 =wgGetUnMask(ve8f11,va9929,v47d11); if (typeof (v59043)!="undefined") { v47d11.oldCellValue =v59043; } } } ve8f11.LastEditObj =new wgEditObj(ve8f11.Name,v8ca91.Id,vccf35,vc2976,v47d11); if (!ISEvent.Raise(ve8f11.LayoutSettings.ClientSideEvents.OnEnterEditMode,ve8f11.Name,v8ca91.Id,ve8f11.LastEditObj)) return; setTimeout(function() { wg2f128.mb5b98(ve8f11); },100); } return vccf35; }, md2226:function(vdb796,vcae38,v57a3,v53e15) { var vbce30 =vdb796.ActiveEditCell; var v14c1 =vdb796.LastEditObj; var vcd347 =false; var v5626 =true; var v04f41; var vc7578 =true; if (!vbce30) return true; if (vcae38 ==-1) { if (v14c1 &&v14c1.cellElement) v04f41 =v14c1.cellElement.parentElement; if (!v04f41) v04f41 =vbce30.rowElement; if (v04f41) { var v1ca57 =v04f41.type; var vef831 =vdb796.Tables[vbce30.tblName]; if (v1ca57 =="NewRow") wg2f128.m09f77(vdb796,v04f41); else { if (!ISEvent.Raise(vdb796.LayoutSettings.ClientSideEvents.OnCancelRowEditing,vdb796.Name,vef831.ToRowObject(v04f41))) return; wg2f128.m01e94(v04f41); } wgdee10.m0d99(v04f41,vdb796.GetCurSelImage()); } } else { if (v14c1 &&v14c1.cellElement) { v04f41 =v14c1.cellElement.parentElement; v5626 =wg2f128.m97a96(v14c1); } if (v5626) { if (!v04f41) v04f41 =vbce30.rowElement; v5626 =(wgIsRowMarkedEdit(v04f41)&&wgIsRowDirty(v04f41)); if (!v5626) vcd347 =true; } if (v5626) { var v73f39 =vdb796.LayoutSettings.NewRowLostFocusAction; var va9a12 =vdb796.LayoutSettings.RowLostFocusAction; var v1ca57 =v04f41.type; var va6d12 =false; var vef831 =vdb796.Tables[vbce30.tblName]; if (!ISEvent.Raise(vdb796.LayoutSettings.ClientSideEvents.OnEndRowEditing,vdb796.Name,vef831.ToRowObject(v04f41))) return;  vdb796.IsExitingEdit =true; if (v1ca57 =="NewRow") { if (vcae38 !=0) { if (v73f39 =="AlwaysPrompt") vc7578 =va6d12 =confirm(vdb796.GetString("MessageBoxText/AddNewRow")); else if (v73f39 =="AlwaysUpdate") va6d12 =true; } else va6d12 =true; if (va6d12) { vcd347 =wg2f128.mf2a19(vdb796,v04f41); if (vcd347) wg2f128.m45669(vdb796,v57a3,vcae38 =="0"); } else vcd347 =true; } else if (wgIsRecordRow(v04f41)) { if (vcae38 !=0) { if (va9a12 =="AlwaysPrompt") vc7578 =va6d12 =confirm(vdb796.GetString("MessageBoxText/UpdateRow")); else if (va9a12 =="AlwaysUpdate") va6d12 =true; } else va6d12 =true; if (va6d12) { vcd347 =wg2f128.mf2a19(vdb796,v04f41); if (vcd347) wg2f128.m9c344(vdb796); } else { wg2f128.m01e94(v04f41); vcd347 =true; } } else if (wgIsFilterRow(v04f41)) { if (vcae38 ==0) { var vf7734 =vbce30.element; var vef831 =vdb796.Tables[vbce30.tblName]; if (ISEvent.Raise(vdb796.LayoutSettings.ClientSideEvents.OnColumnFilter,vdb796.Id,vef831)) { wg91c62.m08457(vef831); wgdee10.m0d99(vf7734.parentElement,vdb796.GetCurSelImage()); wg2f128.m69e45(v04f41); wg4a378.m71658(vdb796.Name,"ColumnFilter",vef831.Id); } } else { if (v14c1) wg2f128.m97a96(v14c1,true); wg2f128.m01e94(v04f41); vcd347 =true; } } vdb796.IsExitingEdit =false; } } return [vcd347,vc7578,va6d12]; }, mb5b98:function(v30580) { var vdb780 =v30580.LastEditObj; if (vdb780) { if (vdb780.type =="TextBox") { if (IS.safari) vdb780.element.select(); else vdb780.element.focus(); } else if (vdb780.type =="WebComboNET") { if (IS.safari) vdb780.element.TextObj.select(); else vdb780.element.TextObj.focus(); } } },  EnsureWebComboElementExist: function(vbf216,v01d48) { var v5df80 =v01d48.FrameObj; if (!v5df80.parentElement) { vbf216.FrameObj.insertAdjacentElement("beforeEnd",v01d48.FrameObj); } }, m77984:function(v34696,v60093,ve8b11,v23e75,v35693,v84666,v31354,v54457) { var vb9316 =posLib2.getLeftAbs(v34696.FrameObj); var vb3348 =posLib2.getTopAbs(v34696.FrameObj); var vce369 =v34696.LayoutSettings.RowHighlightType; var v00577; var v6386; var v2719; var v70264;  with (v60093.style) { if (v84666) { if (wgIsFilterRow(ve8b11.parentElement)) v23e75 -=20; } var v6bf60 =parseInt(v34696.FrameObj.currentStyle.borderWidth); if (v34696.FrameObj.style.position =="absolute") v6bf60 =0; if (isNaN(v6bf60)) v6bf60 =0;  if (IS.opera) v6bf60 =0; v6386 =ISPosLib.getLeft(ve8b11)+(v23e75 ? v23e75 : 0)-vb9316 +v34696.EditCtlLeftAdj +v6bf60; v00577 =ISPosLib.getTop(ve8b11)+(v35693 ? v35693 : 0)-vb3348 +v34696.EditCtlTopAdj +v6bf60; var vf4767 =v34696.FrameObj.parentElement; var v1c854 =false;  if (vce369 =="BackgroundOnly" &&(v60093.tagName =="INPUT" ||v60093.tagName =="TEXTAREA"  ||v31354 =="WebComboNET" ||v31354 =="WebInputNET" ||v31354 =="ResizableTextbox")) v1c854 =true; if (v34696.PosRelativeTo !=null) vf4767 =v34696.PosRelativeTo;  if (v1c854) { var v1778 =parseFloat(v60093.currentStyle.borderLeftWidth);  if (isNaN(v1778)) v1778 =0;  if (v1778 >0) { v6386 =v6386 -v1778 -1 -(!IS.ie ? 1 : 0); v00577 =v00577 -v1778 -1 -(!IS.ie ? 1 : 0); } }  if (!v34696.LayoutSettings.UseRelativePositioning) { if (vf4767 &&(vf4767.tagName =="DIV" &&vf4767.currentStyle.hasLayout  &&vf4767.currentStyle.position !="absolute") ||(v34696.PosRelativeTo)) { var v22740 =ISPosLib.getLeft(vf4767); var vb6374 =ISPosLib.getTop(vf4767);  v6386 =v6386 -v22740; v00577 =v00577 -vb6374; } } else { if (IS.ie) { v6386 =v6386 -posLib2.getLeftAbs(v34696.FrameObj,v34696); v00577 =v00577 -posLib2.getTopAbs(v34696.FrameObj,v34696); } else if (IS.safari) { v00577 =v00577 -(ve8b11.offsetTop -ve8b11.parentElement.offsetTop); } } if (v31354 =="DropdownList") { var v7b182 =v00577; top ="0px";  visibility ="hidden";  setTimeout(function() { v60093.style.top =v7b182 +"px"; v60093.style.visibility ="visible"; if (v60093.style.display !="none") v60093.focus(); },1); } var vd3a9 =v34696.IsRightToLeft(); position ="absolute"; if (v60093.tagName !="TEXTAREA") overflow ="hidden"; if (!v84666) { v2719 =ve8b11.offsetWidth -(v23e75 ? (v23e75 *2): 0)-(v54457 &&v34696.BuiltInDropDown ? 16 : 0); v70264 =ve8b11.offsetHeight -2; if (IS.ie &&IS.GetIEVersion()==7 &&IS.IsXHTMLDocType()) v70264 -=2;  if (wgIsFilterRow(ve8b11.parentElement)&&parseInt(v2719)>36) { v2719 -=20; if (vd3a9) v6386 +=20; }  if (v1c854) { var v1778 =parseFloat(v60093.currentStyle.borderLeftWidth);  if (isNaN(v1778)) v1778 =0;  if (v1778 >0) { v2719 +=(v1778*2)+1; v70264 +=(v1778*2)+1; } } else { if (IS.moz &&v35693 ==1) v70264 -=1; } } display ="";  if (typeof(v00577)!="undefined") top =v00577 +"px"; if (typeof(v6386)!="undefined") left =v6386 +"px"; if (typeof(v2719)!="undefined") width =v2719 +"px"; if (typeof(v70264)!="undefined") height =v70264 +"px"; v60093.origLeft =posLeft; v60093.origTop =posTop; if (zIndex ==0) zIndex =199; } }, ma6f82:function(v0f326,v52e61,v42748,v66b43) { var v26543 =v52e61.Name; var v02c21 =document.getElementById(v0f326.gridId +"_" +v0f326.tblName +"_" +v26543); var v7c50 =ISGetObject(v0f326.gridId); var v8c323 =v0f326.element; if (v02c21) { if (v7c50.DefaultStyleMode =="Elegant") { v02c21.style.fontFamily ="Segoe UI, Tahoma"; v02c21.style.fontSize ="9pt"; } else { v02c21.style.fontFamily ="Verdana"; v02c21.style.fontSize ="8pt"; }  if (v7c50.BindingOperationMode =="ClientBinding" &&v7c50.IsClientBinding("ClientService")) { var v5fc59 =v52e61.ValueList;  if (v5fc59 !=null &&v5fc59.IsValid()&&!v5fc59.DataRetrieved) { v02c21.desiredValue =v8c323.cellValue; wg4a378.m71658(v7c50.Id,"ClientService_Select",v52e61.ValueList,"ValueList"); } }  wgDispObjGeneric(v7c50,v02c21,v8c323,0,0,null,"DropdownList"); if (!v02c21.KBHandlerInit) { if (IS.moz) v02c21.attachEvent("onkeyup",function() { wg2f128.m14a77(v7c50,v02c21); }); v02c21.attachEvent("onkeydown",function() { wg2f128.m33769(v7c50); }); v02c21.attachEvent("onchange",function() { wg2f128.m1e07(v7c50,v02c21); }); v02c21.KBHandlerInit =true; } v02c21.value =v8c323.cellValue; if (v66b43) v02c21.isDirty =true; else v02c21.isDirty =false; if (v02c21.style.visibility =="visible") v02c21.focus(); } return v02c21; }, m14a77:function(va7598,vec50) { wg2f128.m1e07(va7598,vec50); }, m1e07:function(v89f18,vc2f9) { wg2f128.m8de51(v89f18); vc2f9.isDirty =true; var vbe718 =vc2f9.parentElement; vbe718.cellModified =true; vbe718.cellValue =vc2f9.value; }, m77f77:function(va8337,vd7d19) { var v97e1 =ISGetObject(va8337); for (var v63849=0; v63849<v97e1.WebCombos.length; v63849++) { var v1f90 =v97e1.WebCombos[v63849]; if (v1f90.Id.indexOf(vd7d19)>-1) return v1f90.Id; } return ""; }, m33b25:function(ve1823,ve4b66,v2bb41,v5a520) { var vef293 =wg2f128.m77f77(ve1823.gridId,ve4b66.WebComboID); var v14498 =ISGetObject(vef293); if (v14498) { var vfc44 =v14498.FrameObj; var vdb052 =ve1823.element; var vf2d2 =vdb052.parentElement.type =="NewRow"; var v37c12 =ISGetObject(ve1823.gridId); var v93272 =v37c12.Tables[ve1823.tblName]; var v5652 =v5a520;  wg4a378.mb6b61(vdb052); wgDispObjGeneric(v37c12,vfc44,vdb052,(wg2f128.m99682(v37c12,v14498)? 1 : 0),1,null,"WebComboNET"); v14498.DoResize(); v14498.Grid =v37c12; with (v14498.TextObj) { style.paddingLeft ="1px"; style.paddingTop ="1px"; value =(vdb052.innerText ==" " ? "" : vdb052.innerText);  if ((ve4b66.ColumnType =="Custom" ||ve4b66.ColumnType =="Image")&&value =="") value =vdb052.cellValue; if (ve4b66.ColumnType =="ImageAndText" &&value.substring(0,1)==" ") value =value.substring(1);  if (v5652) v14498.TextObj.isDirty =true; else v14498.TextObj.isDirty =false; if (!v14498.KBHandlerInit) { attachEvent("onkeydown",function() { wg2f128.m33769(v37c12); }); attachEvent("onselectstart",function() { event.cancelBubble =true; }); attachEvent("onpaste",function() { wg2f128.mee680(v37c12); }); if (v14498.LayoutSettings.ClientSideEvents.OnAfterItemSelected =="") v14498.LayoutSettings.ClientSideEvents.OnAfterItemSelected ="WGUI.WCIS('" +v37c12.Name +"', '" +v14498.Name +"')"; else v14498.LayoutSettings.ClientSideEvents.OnAfterItemSelected +=";" +"WGUI.WCIS('" +v37c12.Name +"', '" +v14498.Name +"')";  if (v14498.MajorVersion =="4.0") v14498.LayoutSettings.ClientSideEvents.OnItemChecked ="WGUI.WCIC('" +v37c12.Name +"', '" +v14498.Name +"')"; v14498.KBHandlerInit =true; } }  v14498.LastSelectedIndex =v14498.SelectedIndex =-1; v14498.IsDirty =true; v14498.NeedClearList =true; if (v14498.LinkSettings.Enabled) { if (v14498.LinkSettings.ParentWebCombo ==null) v14498.LinkSettings.ResolveParentWebCombo(); var v2b935 =null; if (v14498.LinkSettings.ParentWebCombo !=null) { for (var v00c25=0; v00c25<v14498.LinkSettings.ParentWebCombo.length; v00c25++) { if (v14498.LinkSettings.ParentWebCombo[v00c25].Id ==v14498.LinkSettings.ParentWebComboID) { v2b935 =v14498.LinkSettings.ParentWebCombo[v00c25]; break; } } } if (v2b935 !=null) { var ve5e7 =null; for (var v00c25=0; v00c25<v93272.Columns.length; v00c25++) { var vaab78 =v93272.Columns[v00c25]; if (vaab78.Visible &&vaab78.EditType =="WebComboNET" &&vaab78.WebComboID ==v14498.LinkSettings.ResolvedParentWebComboID) { ve5e7 =vaab78; break; } } if (ve5e7 ==null) { alert("The ParentWebCombo '" +v14498.LinkSettings.ParentWebComboID +"' which this WebCombo is linked to does not bound to any Column in this Grid."); } else { var vc6340 =ve1823.rowElement; v2b935.Text =wgGetCellByName(vc6340,vaab78.Name).innerText; v2b935.Value =wgGetCellByName(vc6340,vaab78.Name).cellValue; v2b935.UpdateState(); v14498.RequireLinkRefresh =true; } } } if (!v14498.IsDataBound &&v14498.UnboundDataInitialized) { try { var v83f97 =v14498.GetTData(); if (v83f97) { for (var v00c25=0; v00c25<v83f97.rows.length; v00c25++) { v14498.UnhighlightRow(v83f97.rows[v00c25]); } } } catch (e) { } } if (v14498.MultipleSelectionSettings.Enabled) { v14498.SetMultipleValues(vdb052.innerText,(vdb052.cellValue ? vdb052.cellValue : vdb052.innerText)); v14498.RefreshValueItems(); }  if (vdb052.cellValue) { if (!v14498.MultipleSelectionSettings.Enabled) { v14498.Value =vdb052.cellValue; var veb987 =vdb052.innerText; if (ve4b66.ColumnType =="ImageAndText") { if (veb987.substring(0,1)==" ") veb987 =veb987.substring(1);  if (typeof(v14498.Value)=="string" &&v14498.Value.substring(0,1)==" ") v14498.Value =v14498.Value.substring(1); }  v14498.Text =veb987; } if (!v14498.IsDataBound &&v14498.AllowAdd) { if (!v14498.UnboundDataInitialized) v14498.InitializeUnboundMode(); v14498.SearchUnbound(); } } else { if (vdb052.innerText !="" &&vdb052.innerText !=" " &&escape(vdb052.innerText)!="%A0") { var veb987 =vdb052.innerText; if (ve4b66.ColumnType =="ImageAndText" &&veb987.substring(0,1)==" ") veb987 =veb987.substring(1); v14498.Text =veb987; v14498.Value =veb987; if (!v14498.IsDataBound &&v14498.AllowAdd) { if (!v14498.UnboundDataInitialized) v14498.InitializeUnboundMode(); v14498.SearchUnbound(); } } else { v14498.Value =null; v14498.Text ="";  if (v14498.MultipleSelectionSettings.Enabled) { v14498.SetMultipleValues("",""); v14498.RefreshValueItems(); } } } ve4b66.GetGrid().PreparePostBackData(); return v14498; } else { alert("Can't find WebCombo.NET instance with ID '" +vef293 +"'"); return false; } },  m99682:function(vac643,ve8975) { return (ve8975.UseDefaultStyle &&vac643.IsElegantDefaultStyle()); },  md8043:function(v56362,v00c85) { if (wg2f128.m99682(v56362,v00c85)) { var vf5678 =v00c85.FrameObj.style; var v45a45 =v00c85.TextObj.style;  v00c85.LayoutSettings.EnableAnimation =false; v56362.ApplyDefaultStyleBorder(vf5678);  vf5678.paddingLeft ="1px"; vf5678.paddingTop="0px"; vf5678.backgroundColor ="white"; v45a45.fontSize ="9pt";  if (v00c85.SearchObj) v00c85.SearchObj.style.borderLeftWidth ="0px"; } }, m1d186:function(v7c520,vfd371,v96535,vb2b98) { var v2ed98 =vfd371.WebComboID; var v68254 =wcGetComboById(v2ed98); if (v68254) { if (v68254.MajorVersion &&(v68254.MajorVersion =="3.0" ||v68254.MajorVersion =="4.0")) { return wg2f128.m33b25(v7c520,vfd371,v96535,vb2b98) } wcFrame =v68254.FrameObj; var v59094 =v7c520.element; var v02585 =v59094.parentElement.type =="NewRow"; var v4c368 =ISGetObject(v7c520.gridId); wgDispObjGeneric(v4c368,wcFrame,v59094,0,1,null,"WebComboNET"); wcres(v2ed98); with (v68254.TextObj) { style.paddingLeft ="1px"; style.paddingTop ="1px"; value =(v59094.innerText ==" " ? "" : v59094.innerText); if (vb2b98) vb2b98 =true; else vb2b98 =false; if (!v68254.KBHandlerInit) { attachEvent("onkeydown",function() { wg2f128.m33769(v4c368); }); attachEvent("onselectstart",function() { event.cancelBubble =true; }); attachEvent("onpaste",function() { wg2f128.mee680(v4c368); }); if (ISXml.GetNodeText(v68254.XmlObj,"//events/onafteritemselected")=="") sxt(v68254,"//events/onafteritemselected","WGUI.WCIS('" +v4c368.Name +"', '" +v68254.Name +"')"); else sxt(v68254,"//events/onafteritemselected",ISXml.GetNodeText(v68254.XmlObj,"//events/onafteritemselected")+";" +"WGUI.WCIS('" +v4c368.Name +"', '" +v68254.Name +"')"); v68254.KBHandlerInit =true; } } v68254.LastSelectedIndex =v68254.SelectedIndex =-1; v68254.IsDirty =true; v68254.NeedClearList =true; if (!v68254.IsDataBound &&v68254.UnboundDataInitialized) { try { var vb1d52 =v68254.GetTData(); if (vb1d52) { for (var v99f68=0; v99f68<vb1d52.rows.length; v99f68++) { wcrcsel(v2ed98,vb1d52.rows[v99f68]); } } } catch (e) { } } if (v59094.cellValue) { v68254.Value =v59094.cellValue; var vb6486 =v59094.innerText; if (vfd371.ColumnType =="ImageAndText" &&vb6486.substring(0,1)==" ") vb6486 =vb6486.substring(1); v68254.Text =vb6486; if (!v68254.IsDataBound &&v68254.AllowAdd) { if (!v68254.UnboundDataInitialized) { if (typeof (wcInitUnbound)=="function") wcInitUnbound(v2ed98); } wcuseek(v2ed98); } } else { if (v59094.innerText !="" &&v59094.innerText !=" ") { v68254.Value =v59094.innerText; var vb6486 =v59094.innerText; if (vfd371.ColumnType =="ImageAndText" &&vb6486.substring(0,1)==" ") vb6486 =vb6486.substring(1); v68254.Text =vb6486; if (!v68254.IsDataBound &&v68254.AllowAdd) { if (!v68254.UnboundDataInitialized) { if (typeof (wcInitUnbound)=="function") wcInitUnbound(v2ed98); } wcuseek(v2ed98); } } else { v68254.Value =null; v68254.Text =""; } } vfd371.GetGrid().PreparePostBackData(); return v68254; } else { alert("Can't find WebCombo.NET instance with ID '" +v2ed98 +"'"); return false; } }, m3af4:function(v5c194,v26259) { var v02959 =ISGetObject(v5c194); var v93790 =wcGetComboById(v26259); wg2f128.m8de51(v02959); v93790.TextObj.isDirty =true; },  m48457:function(v6c378,v99899) { var ve7e78 =ISGetObject(v6c378); var v59399 =wcGetComboById(v99899); wg2f128.m8de51(ve7e78); v59399.TextObj.isDirty =true; }, m55d10:function(v6be75,vebe4,v62a28,ve1d60,vc4664,v60754) { var v56f78 =v6be75.element; var v7e199 =ISGetObject(v6be75.gridId); if (!v7e199.TBObj) { var v02d35 =document.getElementById(v6be75.gridId +"_TB"); v02d35.name =v02d35.id; v02d35.autocomplete ="off"; v02d35.attachEvent("onfocus",wg2f128.m08c23); v02d35.onselectstart =function() { event.cancelBubble =true; return true; }; v02d35.onkeydown =function() { wg2f128.m33769(v7e199); };  if (IS.opera) { v02d35.attachEvent("onkeypress",function() { if (event.keyCode ==13) { event.cancelBubble =true; event.returnValue =false; } }); } v02d35.attachEvent("onpaste",function() { wg2f128.mee680(v7e199); });  v02d35.attachEvent("oncut",function() { wg2f128.mee680(v7e199); });  v7e199.TBObj =v02d35; } var v89683 =v7e199.TBObj; var v06654 =null; v89683.readOnly =(v60754); v89683.className =v7e199.LayoutSettings.TextBoxClass; if (vc4664) { if (!v7e199.CalDDObj) { var ve768 =document.getElementById(v7e199.Name +"_CalDD"); if (v7e199.CalDDImg) ve768.src =v7e199.ResolveImagePathEx(v7e199.CalDDImg);  else if (wg_Global.CalDDImg !="CalendarDD.gif") ve768.src =v7e199.ResolveImagePathEx(wg_Global.CalDDImg); v7e199.CalDDObj =ve768; } v7e199.CalDDObj.DtObj =v89683; v7e199.CalDDObj.DtFormat =vebe4.DataFormatString; v06654 =v7e199.CalDDObj; } wgDispObjGeneric(v7e199,v89683,v56f78,1,1,null,null,v06654); if (vc4664) { wgDispObjGeneric(v7e199,v06654,v56f78,v56f78.offsetWidth  -(v7e199.BuiltInDropDown ? 16 : 0) +(v7e199.IsElegantDefaultStyle()? 1 : 0) ,2,true); v06654.style.cursor ="hand"; } if (vebe4.TextboxMaxlength) v89683.maxLength =vebe4.TextboxMaxlength; else v89683.maxLength =2147483647; var va2d58 =(wg4a378.m84894(v56f78.innerText)? "" : wgGetUnMask(v7e199,vebe4,v56f78,true)); if (vebe4.ColumnType =="ImageAndText" &&wg4a378.m84894(va2d58.substring(0,1))) va2d58 =va2d58.substring(1); v89683.value =va2d58; v89683.style.textAlign =v56f78.currentStyle.textAlign; if (ve1d60) v89683.isDirty =true; else v89683.isDirty =false; if (IS.ie) v89683.focus(); return v89683; },  m77a85:function(vd7169) { var vbc349 =wg_Global.CalFrObj;  if (!vbc349) { var v47393 =vd7169.ResolveScriptPath(vd7169.LayoutSettings.ScriptDirectory,wg_Global.CalFile); vbc349 =document.createElement("IFRAME"); vbc349.src =v47393; vbc349.id ="ISDefCal"; vbc349.style.cssText ="position:absolute;top:-100px;left:-100px;height:10px;width:10px"; document.body.appendChild(vbc349); vbc349 =document.getElementById("ISDefCal"); wg_Global.CalFrObj =vbc349; } }, m1a684:function(v28174,ve0859) { var v6365 =wg_Global.CalFrObj; var v1a172 =wg_Global.CalPopObj; if (!v6365 &&!v1a172 &&!IsGecko30()) { var vd0766 =ISGetObject(ve0859); var v5a728 =vd0766.ResolveScriptPath(vd0766.LayoutSettings.ScriptDirectory,wg_Global.CalFile); if (IS.ie) v6365 =document.createElement("<IFRAME id='ISDefCal' src='" +v5a728 +"'></IFRAME>"); else { v6365 =document.createElement("IFRAME"); v6365.src =v5a728; v6365.id ="ISDefCal"; } v6365.style.cssText ="position:absolute;top:-100px;left:-100px;height:10px;width:10px"; document.body.appendChild(v6365); v6365 =document.getElementById("ISDefCal"); wg_Global.CalFrObj =v6365; setTimeout("WGUI.TGCALDD(null, '" +ve0859 +"')",100); return; } if (!v1a172) { var v90b7 =""; if (IS.ie) { try { v90b7 =v6365.contentWindow.document.body.parentElement.outerHTML; } catch (e) { setTimeout("wg2f128.m1a684(null, '" +ve0859 +"')",100); return; } } else { try { v90b7 =v6365.contentWindow.document.firstChild.innerHTML;  if (v90b7 =="" ||v90b7 ==null ||typeof(v90b7)=="undefined") { setTimeout("wg2f128.m1a684(null, '" +ve0859 +"')",100); return; }  v90b7 ="<html>" +v90b7 +"</html>"; v90b7 =v90b7.replace(new RegExp("parent.","g"),""); } catch (e) { setTimeout("wg2f128.m1a684(null, '" +ve0859 +"')",100); return; } } v1a172 =window.createPopup(); var vfbf78 =v1a172.document; vfbf78.estWidth =v6365.document.body.scrollWidth; vfbf78.estHeight =v6365.document.body.scrollHeight +v6365.document.body.offsetHeight; vfbf78.open("text/html","replace"); vfbf78.write(v90b7); vfbf78.close(); document.getElementById("ISDefCal").removeNode(true); v6365 =wg_Global.CalFrObj =null; wg_Global.CalPopObj =v1a172; setTimeout("WGUI.TGCALDD(null, '" +ve0859 +"')",100); return; } else { if (IsGecko30()) { var v3a477 =v1a172.document.getElementById("cbYear");  if (!v3a477) { wg_Global.CalPopObj =null; setTimeout("wg2f128.m1a684(null, '" +ve0859 +"')",100); return; } } } var vfbf78 =v1a172.document; var vd0766 =ISGetObject(ve0859); var v39091 =vd0766.CalDDObj.DtObj; if (!isCAL.isCalLoaded) loadDatePicker(vfbf78,vd0766); setObject(v39091,vd0766); isCAL.curFormat =vd0766.CalDDObj.DtFormat; var vd7a71 =new Date(); if (v39091.value !="") { var v4ad57 =new ISClientData(null,"datetime",isCAL.curFormat); v4ad57.NewValue =v39091.value; vd0766.ValEngine.Validate(v4ad57,vd0766.CultureInfo); if (v4ad57.IsValid) { vd7a71 =new Date(v4ad57.DateData.Year,v4ad57.DateData.Month,v4ad57.DateData.Day); } } setDate(vd7a71); v1a172.show(ISPosLib.getScreenLeft(v39091),ISPosLib.getScreenTop(v39091)+v39091.offsetHeight,170,147 +isCAL.adjHeight,null,true); }, m19331:function(vfe666,v3828,veb540,v13765) { var v32110 =vfe666.element; var v6c629 =ISGetObject(vfe666.gridId); if (!v6c629.TBMLObj) { var vcb455 =document.getElementById(vfe666.gridId +"_TBML"); vcb455.name =vcb455.id; vcb455.attachEvent("onfocus",wg2f128.m08c23); vcb455.onselectstart =function() { event.cancelBubble =true; return true; }; vcb455.onkeydown =function() { wg2f128.m33769(v6c629); }; vcb455.attachEvent("onpaste",function() { wg2f128.mee680(v6c629); }); if (IsGecko30()) { vcb455.style.overflowX ="hidden"; } v6c629.TBMLObj =vcb455; } var vb0e61 =v6c629.TBMLObj; vb0e61.className =v6c629.LayoutSettings.TextBoxClass; wgDispObjGeneric(v6c629,vb0e61,v32110,1,1); if (v3828.TextboxMaxlength) vb0e61.maxLength =v3828.TextboxMaxlength; if (IsGecko30()) { if (ISPosLib.getHeight(vb0e61)<40) { vb0e61.style.height ="40px"; } }  vb0e61.value =(v32110.innerText ==" " ? "" : v32110.innerText);  if (IS.moz) vb0e61.style.overflowY ="scroll"; if (v13765) vb0e61.isDirty =true; else vb0e61.isDirty =false; vb0e61.focus(); return vb0e61; },  m6b834:function(v5de5,v63c27,vb1b74,vcaa88) { var ve2f85 =v5de5.element; var vcc017 =wg2f128.mea00(ve2f85); var v4257 =ISGetObject(v5de5.gridId); wg2f128.m4c837(v4257,vcc017); if (vcaa88) vcc017.isDirty =true; else vcc017.isDirty =false; vcc017.focus(); return vcc017; }, mea00:function(v5cb40) { var v27340 =v5cb40.parentElement; if (wgIsFilterRow(v27340)) return v5cb40.childNodes[0].childNodes[0]; else return v5cb40.childNodes[0]; }, m4c837:function(va8740,vb8896) { if (!vb8896.editHandler) { vb8896.editHandler =true; vb8896.onkeydown =function() { wg2f128.m33769(va8740); }; vb8896.onclick =function() { wg2f128.mda660(va8740,vb8896); }; } }, mda660:function(ve8f76,v37966) { wg2f128.m8de51(ve8f76); v37966.isDirty =true; var v89576 =wg4a378.m2c14(v37966); var vb3c66 =wg4a378.m33a20(v89576.parentElement); v89576.cellModified =true; v89576.cellValue =v37966.checked; if (!ISEvent.Raise(ve8f76.LayoutSettings.ClientSideEvents.OnCheckBoxClick,ve8f76.Name,vb3c66.tblName,wgGetColNameByCell(v89576),v37966.checked)) return; }, m08c23:function() { var v38a60 =event.srcElement; try { v38a60.select(); } catch (e) { } },  madf60:function(v9f560,v57f6,vbce59) { if (v9f560.TreatMarkupAsLiteralText) { v57f6 =v57f6.replace(/[<]/g,"&lt;"); v57f6 =v57f6.replace(/[>]/g,"&gt;"); } else v57f6 =_FixAmpChar(v57f6);  if (vbce59) v57f6 =v57f6.replace(/[\n]/g,"<br />");  return v57f6; }, m97a96:function(vff473,vde325) { if (!vff473) return; var vaef15 =vff473.element; var vf9285 =vff473.cellElement; var v9c744 =vff473.type; var vee594 =ISGetObject(vff473.gridId); var vab538 =""; var vf5358 =""; var v5a369 =true; var ve1968 =true; var ve7f83 =null; var v6b262 =false; if (!ISEvent.Raise(vee594.LayoutSettings.ClientSideEvents.OnExitEditMode,vee594.Name,vff473.tblName,vee594.LastEditObj)) return; var va7e82 =vf9285.parentElement; var vf3654 =vee594.Tables[vff473.tblName]; var ve7f83 =vf3654.GetColumn(wgGetColNameByCell(vf9285)); var vafb85 =false; if (v9c744 =="WebComboNET") { var v37464 =ISGetObject(ve7f83.WebComboID);  vaef15.FrameObj.style.display ="none"; if (vaef15.AllowAdd) { if (vaef15.Text =="" ||vaef15.Text ==null ||vaef15.Text ==" " ||vaef15.SelectedIndex ==-1) vaef15.Text =vaef15.TextObj.value; if (vaef15.Value =="" ||vaef15.Value ==null ||vaef15.Value ==" " ||vaef15.SelectedIndex ==-1) vaef15.Value =vaef15.Text; } if (v37464.MultipleSelectionSettings.Enabled) { vab538 =v37464.GetMultipleValuesText(); vf5358 =v37464.GetMultipleValuesValue(); } else { vab538 =(vaef15.Text ==null ? "" : vaef15.Text); vf5358 =(vaef15.Value ==null ? "" : vaef15.Value); }  if (vaef15.TextObj.isDirty ||(vf9285.innerText !=vaef15.Text)) { vf9285.cellModified =true; v6b262 =true; }  v37464.IsTextObjFocused =false; v37464.LastEventType ="";  } else if (v9c744 =="Checkbox") { ve1968 =false; if (!vde325) { vf9285.cellValue =wg2f128.mea00(vf9285).checked; if (wgIsFilterRow(va7e82)) wg91c62.m74418(vf9285.childNodes[0]); } else { vf9285.cellValue =vf9285.oldCellValue; wg2f128.mea00(vf9285).checked =vf9285.cellValue; } } else if (v9c744 =="Custom") { var v08064 =vee594.CustomEditors[ve7f83.CustomEditorName]; v5a369 =v08064.ImplementationObject.OnExitEditMode(vde325); vab538 =v08064.ImplementationObject.GetText(); vf5358 =v08064.ImplementationObject.GetValue(); if (typeof (v08064.ImplementationObject.ShouldProcessExitEditModeDefaultBehavior)=="function") ve1968 =v08064.ImplementationObject.ShouldProcessExitEditModeDefaultBehavior(); if (typeof (v08064.ImplementationObject.GetContentMode)=="function") vf9285.contentMode =v08064.ImplementationObject.GetContentMode(); } else { if (vaef15.style.display !="none") vaef15.style.display ="none"; if (v9c744 =="CalendarDropdown" ||v9c744 =="CalendarCombo") { if (vee594.CalDDObj) vee594.CalDDObj.style.display ="none"; } if (v9c744 =="TextBox" ||v9c744 =="MultilineTextbox" ||v9c744 =="CalendarCombo" ||v9c744 =="CalendarDropdown") { if (vaef15.isDirty) { vab538 =vf5358 =(vaef15.value ==null ? "" : vaef15.value); if (vab538 !="") { if (v9c744 =="MultilineTextbox") vafb85 =true; else { var v93535 =wgGetMask(vee594,vff473,vab538,null,null,true);  if (v93535 instanceof Array) { if (v93535[0]) vab538 =v93535[1]; else { vab538 =v93535[1]; vf5358 =v93535[2]; } } else vab538 =v93535; } }  vf9285.cellModified =true; } } else if (v9c744 =="ResizableTextbox") { vab538 =vf5358 =(vaef15.children[0].value ==null ? "" : vaef15.children[0].value);  if (vab538 !="") vab538 =wgGetMask(vee594,vff473,vab538);  if (ve7f83.AllowMultiLine) vafb85 =true;  if (vaef15.children[0].isDirty) { vf9285.cellModified =true; v6b262 =true; } } else { vf5358 =vaef15.value; try { vab538 =vaef15.options[vaef15.selectedIndex].text; } catch (e) { vab538 =""; }  if (vaef15.isDirty) vf9285.cellModified =true; } } var v56442 =vf9285.innerHTML.toUpperCase().indexOf("NOBR")>0; var v57072 =wgdee10.m33461(vf9285); var v61278 =true; if (v57072) v56442 =v57072.innerHTML.toUpperCase().indexOf("NOBR")>0;  if ((!vaef15.isDirty &&!v6b262)&&vab538 =="") v61278 =false; if (ve1968 &&(v9c744 =="Custom" ||(vf9285.cellModified &&v61278))) { var v0c115 =""; var vf3654 =vee594.Tables[vff473.tblName]; var ve7f83 =vf3654.GetColumn(wgGetColNameByCell(vf9285)); if (!vde325) { if (ve7f83.ColumnType =="ImageAndText" &&wgIsRecordRow(va7e82)) { try { v0c115 =vf9285.childNodes[0].childNodes[0].outerHTML; } catch (e) { } }  var v1e016 =(v56442 ? "<NOBR>" : "")+v0c115 +(vab538 =="" ? "&nbsp;" : wg2f128.madf60(ve7f83,vab538,vafb85))+(v56442 ? "</NOBR>" : ""); if (v57072) v57072.innerHTML =v1e016; else vf9285.innerHTML =v1e016; if (!IS.ie &&wgIsFilterRow(va7e82)) wgd2488.md9747(vf9285,vf9285.offsetWidth); vf9285.cellValue =vf5358; var vf3654 =vee594.Tables[vff473.tblName]; ve7f83 =vf3654.GetColumn(wgGetColNameByCell(vf9285)); if (vf5358 !="" &&v9c744 =="TextBox") { vf5358 =wgGetUnMask(vee594,ve7f83,vf9285); vf9285.cellValue =vf5358; } if (vaef15.isDirty) vf9285.cellModified =true; if (wgIsFilterRow(va7e82)) wg91c62.m74418(vf9285.childNodes[0]); else { var v1b540 =vf3654.Formulas; for (var v9d712=0; v9d712<v1b540.length; v9d712++) { if (v1b540[v9d712].IsCellAccounted(vf9285)) { v1b540[v9d712].ProcessResult(vf9285.parentElement,vf9285); } } } } else { if (ve7f83.ColumnType =="ImageAndText" &&wgIsRecordRow(va7e82)) { try { v0c115 =vf9285.childNodes[0].childNodes[0].outerHTML; } catch (e) { } } if (vf9285.oldText) { var v1e016 =(v56442 ? "<NOBR>" : "")+v0c115 +(vf9285.oldText =="" ||vf9285.oldText ==" " ? "&nbsp;" : vf9285.oldText)+(v56442 ? "</NOBR>" : ""); if (!v57072) vf9285.innerHTML =v1e016; else v57072.innerHTML =v1e016; } if (vf9285.cellValue) vf9285.cellValue =vf9285.oldCellValue; }  if (vee594.IsClientBinding()||vee594.IsClientBinding("ClientDataSource")) { var v0bd23 =vf3654.ToRowObject(va7e82); var vaf74 =v0bd23.GetCell(ve7f83.Name);  vaf74.Setup(vaf74.GetElement()); } } if (IS.moz ||IS.safari) wgd2488.mfe581(vee594,vf9285);  if (!wgIsRowMarkedEdit(va7e82)&&vf9285.cellModified) vf9285.cellModified =false; ISEvent.Raise(vee594.LayoutSettings.ClientSideEvents.OnAfterExitEditMode,vee594.Name,vff473.tblName,vee594.LastEditObj);  vee594.LastEditObj =null; vee594.IsInEditMode =false; return v5a369; }, m01e94:function(v0553) { var v1b328 =wg4a378.m33a20(v0553); var v2d34 =ISGetObject(v1b328.gridId); var v11d97 =v2d34.Tables[v1b328.tblName]; var v00911 =new Array(); if (wgIsColumnSetRow(v0553)) v00911 =wgGetColumnSetRows(v0553); else v00911[0] =v0553; for (var v6f156=0; v6f156<v00911.length; v6f156++) { var v07958 =v00911[v6f156].cells; for (var vfa394=0; vfa394<v07958.length; vfa394++) { var vca113 =v07958[vfa394]; if (vca113.type =="Cell" ||vca113.type =="FilterColumn") { if (vca113.cellModified) { var ve1548 =v11d97.GetColumn(wgGetColNameByCell(vca113)); if (ve1548.EditType =="Checkbox" ||ve1548.FilterEditType =="Checkbox") { vca113.cellValue =vca113.oldCellValue; wg2f128.mea00(vca113).checked =vca113.cellValue; } else { var v84623 =vca113.innerHTML.toUpperCase().indexOf("NOBR")>0; var v58d60 =wgdee10.m33461(vca113); var v72e9 =vca113.oldText; var v02c44 =""; var vdc175 =true; if (wgIsFilterRow(v00911[v6f156])) { v72e9 =vca113.childNodes[0].getAttribute("value"); if (v72e9 =="") { var v2c172 =v11d97.FilteredColumns.GetNamedItem(ve1548.Name); if (v2c172) v11d97.FilteredColumns.Remove(v2c172); } }  if (ve1548.ColumnType =="Custom") { if ((v72e9 =="" ||v72e9 ==" ")&&vca113.innerHTML.toLowerCase().indexOf("<img")>-1) vdc175 =false; } if (vdc175) { if (v58d60) v84623 =v58d60.innerHTML.toUpperCase().indexOf("NOBR")>0; if (ve1548.ColumnType =="ImageAndText" &&wgIsRecordRow(v0553)) { try { v02c44 =vca113.childNodes[0].childNodes[0].outerHTML; } catch (e) { } } var vfba24 =(v84623 ? "<NOBR>" : "")+v02c44 +((v72e9 =="" ||v72e9 ==" ")? "&nbsp;" : v72e9)+(v84623 ? "</NOBR>" : ""); if (v58d60) v58d60.innerHTML =vfba24; else vca113.innerHTML =vfba24; if (typeof(vca113.cellValue)!="undefined") vca113.cellValue =vca113.oldCellValue; if (wgIsFilterRow(v00911[v6f156])&&!IS.ie) wgd2488.md9747(vca113,vca113.offsetWidth); } } }  vca113.cellModified =false; } } }  if (v2d34.LayoutSettings.VerboseEditingInformation) { if (v2d34.LayoutSettings.StatusBarVisible &&!v2d34.IsStatusLocked) { var v9b81 =document.getElementById("tdStatIcon_" +v2d34.Name).childNodes[0];  if (v9b81.src.indexOf(v2d34.LayoutSettings.ImageSettings.EditImage)>-1) v9b81.style.visibility ="hidden"; } }  if (v2d34.LayoutSettings.AllowBatchUpdate) { if (v0553.rowState) wgdee10.m60595(v0553,v0553.rowState +"RowIndicator"); } if (v0553.rowValidated) v0553.rowValidated =false;  v2d34.ResetStatus(); }, m69e45:function(v7d678,vc8582) { var v2a83 =wg4a378.m33a20(v7d678); var v37493 =ISGetObject(v2a83.gridId); var v7be50 =v7d678.cells;  v7d678.markedEdit =false;  for (var vd3076=0; vd3076<v7be50.length; vd3076++) { var v6b978 =v7be50[vd3076];  if (v6b978.type =="Cell") { if (v6b978.cellModified) v6b978.cellModified =false; } } if (v37493.LayoutSettings.VerboseEditingInformation) { if (v37493.LayoutSettings.StatusBarVisible &&!v37493.IsStatusLocked) { var v9ff75 =document.getElementById("tdStatIcon_" +v37493.Name).childNodes[0]; if (v9ff75.src.indexOf(v37493.LayoutSettings.ImageSettings.EditImage)>-1) v9ff75.style.visibility ="hidden"; } } var v9ff75 =v37493.ResolveImagePathEx(v37493.LayoutSettings.ImageSettings.CurrentRowImage); wgdee10.m0d99(v7d678,v9ff75);  v37493.ResetStatus(); }, m45669:function(v42f33,vc1b61,v17687) { var v0ab97 =v42f33.ActiveEditCell; if (wg2f128.mfd246(v42f33)) { if (!v17687) { wg2f128.m09f77(v42f33,v0ab97.rowElement); wgdee10.m0d99(v0ab97.rowElement,v42f33.GetCurSelImage()); } if (vc1b61) wg2f128.m4c417(v0ab97.rowElement); wg2f128.mfea6(v42f33); } }, m9c344:function(v15717) { var v89617 =v15717.ActiveEditCell; if (wg2f128.m73158(v15717)) { } }, mfea6:function(v87b89,v91940) { var v67c17 =v87b89.ActiveEditCell; if (v67c17) { if (v87b89.LastEditObj) return; if (document.activeElement ==v67c17.element ||!v87b89.HasFocus()) return; v67c17.element.setActive(); if (!v91940) setTimeout(function() { wg2f128.mfea6(v87b89,true); },200); } else { var vd321 =v87b89.LastSelObj; if (vd321 &&vd321.element) { var vc7b35 =wgGetCellByPosition(vd321.element,0); if (vc7b35 &&v87b89.HasFocus()) vc7b35.setActive(); } } }, mee680:function(v31d72) { wg2f128.m8de51(v31d72); event.srcElement.isDirty =true; }, m33769:function(v13a63,va1283) { var vf7f19 =0; var vad08 =false; var v39110 =false; vf7f19 =event.keyCode; if (!ISEvent.Raise(v13a63.LayoutSettings.ClientSideEvents.OnEditKeyDown,v13a63.Name,vf7f19)) return; vf7f19 =event.keyCode;  if (vf7f19 ==9) { var vc3315 =v13a63.ActiveEditCell; var va9087 =vc3315.element; var v79329 =true; if (!event.shiftKey &&va9087 ==wgGetLastEditableCell(vc3315.rowElement)) { v79329 =wg2f128.md2226(v13a63,0,true,vf7f19)[0]; if (vc3315.rowElement.type =="NewRow" ||v13a63.IsInProgress) v79329 =false; } if (v79329) { var v86d96 =null; if (IS.ie) { v86d96 =document.createEventObject(); v86d96.keyCode =vf7f19; v86d96._srcElement =va9087; v86d96.shiftKey =event.shiftKey; v86d96.ctrlKey =event.ctrlKey; va9087.fireEvent("onkeydown",v86d96); } else { v86d96 =new Object(); v86d96.srcElement =va9087; v86d96.shiftKey =event.shiftKey; v86d96.ctrlKey =event.ctrlKey; v86d96.keyCode =vf7f19; wgdee10.m93043(v86d96); } if (!event.ctrlKey) v13a63.ActivateEditMode(); if (IS.moz) { setTimeout(function() { if (!v13a63.LastEditObj) v13a63.ActivateEditMode(); },50); } } vad08 =true; } else if (vf7f19 ==27) { var va9087 =v13a63.ActiveEditCell.element; wg2f128.m97a96(v13a63.LastEditObj,true); va9087.setActive(); vad08 =true; } else if (vf7f19 ==13) { var vc3315 =v13a63.ActiveEditCell; var va9087 =vc3315.element; var v2c188 =v13a63.LastEditObj; if (!event.shiftKey) { if (v2c188.type !="MultilineTextbox" &&v2c188.type !="ResizableTextbox") { var v29685 =true; if (v2c188.type =="WebComboNET") { var v89b23 =v13a63.Tables[vc3315.tblName].GetColumn(wgGetColNameByCell(va9087)); var ve1d85 =wcGetComboById(v89b23.WebComboID); if (ve1d85.EntryMode =="InstantLookup") v29685 =false; } if (v29685) { if (vc3315.rowElement.type =="FilterRow" &&v13a63.LayoutSettings.ApplyFiltersKey =="Enter") wg2f128.md2226(v13a63,0,false); else wg2f128.m97a96(v2c188); va9087.setActive(); vad08 =true; } } else { vad08 =false; v39110 =true; } } else { if (!v2c188 ||v2c188.type !="MultilineTextbox") wg2f128.md2226(v13a63,0,false); else { wg2f128.m97a96(v2c188); va9087.setActive(); } vad08 =true; } } else if (vf7f19 ==115) { var vc3315 =v13a63.ActiveEditCell; var va9087 =vc3315.element; var v48264 =va9087.parentElement; if (wgIsFilterRow(v48264)) { wg91c62.m98686(va9087.childNodes[0]); event.keyCode =0; vad08 =true; } }  if (vf7f19>=46 &&vf7f19<=57 ||vf7f19>=54 &&vf7f19<=90 ||vf7f19>=96 &&vf7f19<=111 ||vf7f19>=186 &&vf7f19<=192 ||vf7f19>=219 &&vf7f19<=222 ||vf7f19 ==113 ||vf7f19 ==8 ||vf7f19 ==229 ||vf7f19 ==32 ||v39110) { wg2f128.m8de51(v13a63); event.srcElement.isDirty =true; } if (va1283) { va1283 =v13a63.CustomEditors[va1283]; va1283.ImplementationObject.OnKeyDown(event.keyCode); } if (vad08) { event.cancelBubble =true; event.returnValue =false; } }, m8de51:function(vf6f10) { var v37e54 =vf6f10.ActiveEditCell.rowElement; if (wgIsColumnSetRow(v37e54)) v37e54 =wgGetColumnSetRow(v37e54); else if (v37e54.type =="PR") v37e54 =wgGetPreviewRowParent(v37e54); if (!v37e54.markedEdit) { var v40332 =wgGetRowHeader(v37e54); if (v40332) v40332.innerHTML ="<img align=absmiddle src='" +vf6f10.ResolveImagePathEx( vf6f10.LayoutSettings.ImageSettings.EditImage)+"'>"; v37e54.markedEdit =true; }  if (vf6f10.LayoutSettings.VerboseEditingInformation &&!vf6f10.ActiveEditCell.editImageDisplayed) { var v3eb36 =wgGetColNameByCell(vf6f10.ActiveEditCell.element); var v4e616 =vf6f10.Tables[vf6f10.ActiveEditCell.tblName]; var vaaa96 =v4e616.Columns.GetNamedItem(v3eb36); if (vaaa96.EditInfoImage =="") vf6f10.SetStatusIcon("Edit");  if (vaaa96.EditInfoText =="") vf6f10.SetStatus1("","","CommonText/EditedCell"); vf6f10.ActiveEditCell.editImageDisplayed =true; } }, mf2a19:function(v57b40,vc0978) {  var v05529 =wgGetRootRow(vc0978); if (v57b40.LayoutSettings.AllowBatchUpdate) { var v0e320 =wg4a378.mbe051(v05529);  if (!v0e320.Table.IsRootTable) { var v65788 =v0e320.GetParentRow();  while (v65788 !=null) { if (v65788.GetRowState()=="Deleted") { alert(v57b40.GetString("MessageBoxText/DeletedRowEditException")); wg2f128.m01e94(v05529); return false; }  v65788 =v65788.GetParentRow(); } }  if (v0e320.GetRowState()=="Added" &&wgIsRecordRow(v05529)&&v0e320.Table.GetChildTables().length >0) { var v33e81 =v0e320.GetCells();  for (var v52b17=0; v52b17<v33e81.length; v52b17++) { if (v33e81[v52b17] !=null &&v33e81[v52b17].Modified &&v33e81[v52b17].Column.IsPrimaryKey()) { alert(v57b40.GetString("MessageBoxText/PrimaryKeyEditException")); return false; } } } }  if (v05529.rowValidated) return true; var v14f10 =true; wg_Global.LastValRowObj =v05529; v14f10 =ISEvent.Raise(v57b40.LayoutSettings.ClientSideEvents.OnRowValidate,v05529);  if (v14f10) v14f10 =wg2f128.m18073(v57b40,vc0978);  if (v14f10) v05529.rowValidated =true; return v14f10; },  m18073:function(vc4c54,vf3a86) { var vb8924 =wgGetRootRow(vf3a86); var vbd519 =wg4a378.m33a20(vb8924); var v0dc7 =vc4c54.Tables[vbd519.tblName]; var v17c8 =v0dc7.ToRowObject(vb8924); var v4f739 =v17c8.GetCells(); var vab135 =false;  for(var vb3e71=0; vb3e71<v4f739.length; vb3e71++) { var va7f63 =v4f739[vb3e71];  if (!va7f63) continue;  var v33d59 =va7f63.Column;  if (v33d59.InputRequired) { if (va7f63.Text =="" ||va7f63.Text =="\xA0" ||(va7f63.Text !=null &&escape(va7f63.Text)!="" &&va7f63.Text.length <3 &&escape(va7f63.Text).indexOf("%0A")>-1)) { if (va7f63.Column.ColumnType =="Custom" &&va7f63.Value !=null &&va7f63.Value.replace(" ","")!="") continue; wg2f128.mbdf31(vc4c54,va7f63);  if (!vab135) vab135 =true; } } } if (vab135) { if (vc4c54.FreezePaneActive &&vc4c54.FreezeConfig !=null) wg91c62.m4ce23(vc4c54,0,false,null,true);  vc4c54.SetStatus1("","","CommonText/InputRequiredStatus"); vc4c54.SetStatusIcon("Warning"); vc4c54.IsStatusLocked =true; }  return (!vab135); },  mbdf31:function(vde429,vab575) { var v8cf26 =vab575.GetElement(); var v67325 =vde429.LayoutSettings.ImageSettings.RequiredImage;  if (v8cf26.children.length >0 &&v8cf26.children[v8cf26.children.length -1].tagName =="DIV") { v8cf26.children[v8cf26.children.length -1].style.display =""; } else { var v77282 =document.createElement("DIV"); v77282.style.cssText ="position:relative; width:100%";  var vca459 =document.createElement("IMG");  vca459.src =vde429.ResolveImagePathEx(v67325); vca459.style.cssText ="position:absolute; right:2px"; vca459.title =(vab575.Column.InputRequiredErrorText !="" ? vab575.Column.InputRequiredErrorText : vde429.GetString("Tooltip/InputRequired"));  v77282.appendChild(vca459); v8cf26.insertAdjacentElement("afterBegin",v77282); } }, mfd246:function(v1d026) { var v16165 =v1d026.ActiveEditCell; var va6b44 =v16165.rowElement; var v8f115 =null; var vf3a82 =wgGetRootRow(va6b44); if (wgIsRowDirty(va6b44)&&wg2f128.mf2a19(v1d026,va6b44)) { var v20f26 =v1d026.Tables[v16165.tblName]; var vea474 =null; if (!v20f26.IsRootTable) vea474 =v20f26.GetSubTableById(wg4a378.m33a20(va6b44).subId); var v32984 =v20f26.NewRow(vea474); var vc8b50 =v32984.Cells; for (var v92f68=0; v92f68<vc8b50.length; v92f68++) { var v1d417 =vc8b50[v92f68]; var v09b64 =v1d417.Name; var v84590 =wgGetCellByName(va6b44,v09b64); if (v84590) { var ve8482 =v84590.contentMode; var v63b72 =""; if (ve8482 =="HTML") { v63b72 =v84590.innerHTML; if (v63b72 !="") { var v9ef99 =new RegExp("\r\n","g"); v63b72 =v63b72.replace(v9ef99,""); } } else v63b72 =v84590.innerText; v1d417.Text =v63b72; if (v84590.cellValue) v1d417.Value =v84590.cellValue; else v1d417.Value =v1d417.Text; if ((v1d417.Value =="" ||v1d417.Value ==" ")&&ve8482 =="HTML") v1d417.Value =v1d417.Text; if (v1d417.Value ==" ") v1d417.Value =""; if (v1d417.Text ==" ") v1d417.Text ="";  v1d417.Modified =(v84590.cellModified ==true ||v63b72 !=" "); v1d417.DataChanged =true; v1d417.OldValue =v1d417.OldText =""; v1d417._UIState ="Changed"; } } if (v1d026.LayoutSettings.AllowBatchUpdate) { if (v20f26.DataKeyFieldsCount ==1) { wg02f52.m5e950(v20f26,v32984,v20f26.DataKeyFields); } else { var v9b483 =v20f26.DataKeyFields.split(',');  for (var v92f68=0; v92f68<v9b483.length; v92f68++) { var va6e6 =v9b483[v92f68]; wg02f52.m5e950(v20f26,v32984,va6e6,true); } }  v32984.Update(); return false; } else { v32984.RowElement =va6b44; v32984.Update(); } return true; } return false; }, me2512:function(va3217,v9bf28) { var v80d61 =wg4a378.m33a20(v9bf28); var vbc849 =va3217.Tables[v80d61.tblName]; var vc018 =va3217.LayoutSettings; v9bf28 =wgGetRootRow(v9bf28); var v9bf60 =wg4a378.mbe051(v9bf28);  if (!vc018.AllowBatchUpdate) v9bf60.Delete(); else { var v0ed36 =v9bf60.GetRowState();  if (v0ed36 =="Added") v9bf60.UndoChanges(); else v9bf60.Delete(); } }, m73158:function(v24117) { var vb9e17 =v24117.ActiveEditCell; var vc3628 =vb9e17.rowElement; var v6fd94 =null; var vb7563 =wgGetRootRow(vc3628); if (wgIsRowDirty(vc3628)&&wg2f128.mf2a19(v24117,vc3628)) { var v2ce58 =wg4a378.mbe051(vc3628); v2ce58._UIState ="Changed"; v2ce58.Update(); return true; } return false; }, mdc587:function(va6217,v2a628,vaef94,ve4a63) { v2a628.setAttribute("action","AddRow"); v2a628.setAttribute("tblName",ve4a63.Table.Id); if (!ISEvent.Raise(va6217.LayoutSettings.ClientSideEvents.OnBeforeAdd,va6217.Name,ve4a63.Table.Id,va6217.TempLRO)) return; var vb2217 =va6217.XmlReq; if (v2a628.selectSingleNode("//newRowData")) v2a628.removeChild(v2a628.selectSingleNode("//newRowData")); ISXml.CreateCDATA(vb2217,v2a628,"newRowData",ve4a63.ToXml()); if (ve4a63.SubTable) { var v8ca28 =ve4a63.SubTable.GetParentRow(); v8ca28 =wgGetPreviousRow(va6217.Tables[wg4a378.m97d49(v8ca28)].GetElement(WG40.BODY,WG40.HTMLTABLE,v8ca28),v8ca28); v8ca28 =wgGetRootRow(v8ca28); wga3c88.me7447(va6217,v2a628,v8ca28); v2a628.setAttribute("tblSubId",ve4a63.SubTable.SubId); } va6217.SetStatus1("","addrow","CommonText/AddRow"); return true; }, m1ef56:function(vdf467,v44e6,v08798,vf6892) { v44e6.setAttribute("action","UpdateRow"); v44e6.setAttribute("tblName",vf6892.Table.Name); v44e6.setAttribute("position",vf6892.Position); if (!ISEvent.Raise(vdf467.LayoutSettings.ClientSideEvents.OnBeforeUpdate,vdf467.Name,vf6892.tblName,vdf467.TempLRO)) return; var v68f31 =vdf467.XmlReq; if (v44e6.selectSingleNode("//RowData")) v44e6.removeChild(v44e6.selectSingleNode("//RowData")); ISXml.CreateCDATA(v68f31,v44e6,"RowData",vf6892.ToXml()); if (vf6892.SubTable) { var v4a136 =vf6892.SubTable.GetParentRow(); v4a136 =wgGetPreviousRow(vdf467.Tables[wg4a378.m97d49(v4a136)].GetElement(WG40.BODY,WG40.HTMLTABLE,v4a136),v4a136); v4a136 =wgGetRootRow(v4a136); wga3c88.mf8c50(vdf467,v44e6,v4a136); v44e6.setAttribute("tblSubId",vf6892.SubTable.SubId); } v44e6.setAttribute("parentPos",vf6892.GetParentPos()); vdf467.SetStatus1("","updaterow","CommonText/UpdateRow"); return true; }, m33212:function(v0d742,vd1494,vc3b50,v70857) { vd1494.setAttribute("action","DeleteRow"); vd1494.setAttribute("tblName",v70857.Table.Name); vd1494.setAttribute("position",v70857.Position); vd1494.setAttribute("keyValue",(v70857.KeyValue ? ISXml.EncodeString(v70857.KeyValue): "")); if (!ISEvent.Raise(v0d742.LayoutSettings.ClientSideEvents.OnBeforeDelete,v0d742.Name,v70857.Table.Name,v0d742.TempLRO)) return; if (v70857.SubTable) { var vb5f6 =v70857.SubTable.GetParentRow(); vb5f6 =wgGetPreviousRow(v0d742.Tables[wg4a378.m97d49(vb5f6)].GetElement(WG40.BODY,WG40.HTMLTABLE,vb5f6),vb5f6); if (vb5f6.type =="CSRecord") vb5f6 =wgGetRootRow(vb5f6); wga3c88.mf8c50(v0d742,vd1494,vb5f6); vd1494.setAttribute("tblSubId",v70857.SubTable.SubId); } vd1494.setAttribute("parentPos",v70857.GetParentPos()); v0d742.SetStatus1("","deleterow","CommonText/DeleteRow"); return true; }, mdb174:function(v9f311,vfd381) { var ve0861 =v9f311.LastRequestObj; var v16b4 =v9f311.Tables[ve0861.Table.Name]; var v45c17 =ve0861.RowElement; var v0fb19 =v16b4.GetElement(WG40.BODY,WG40.HTMLTABLE,v45c17); var vbea22 =parseFloat(v9f311.TotalLoadedRows); var v33785 =parseFloat(v9f311.TotalRows); var v6db81 =v9f311.LayoutSettings.PagingMode; var vc0a47 =wgGetRootRow(v45c17); var v9b519 =vc0a47.rowIndex; var v86f31 =false; if (!ISEvent.Raise(v9f311.LayoutSettings.ClientSideEvents.OnAfterDelete,v9f311.Name,ve0861.tblName,v9f311.LastRequestObj,v9f311.XmlResp)) return; if (ve0861.ParentPos =="") { wg2f128.m9ae97(v9f311,v16b4,v0fb19,v45c17,vc0f42,vbea22,v33785); } else { var vc0447 =v16b4.GetElement(WG40.BODY,WG40.HTMLDIV,v45c17); var v4b115 =ISXml.GetNodeText(vfd381,"//htmlTB"); vc0447.outerHTML =v4b115; if (v16b4.IsRootTable) { v9f311.ClearChildTables(); wg4a378.m87f14(v9f311); } else { var vc4517 =v16b4.GetSubTableById(v0fb19.subId); var vc0f42 =vc4517.GetParentRow(); v9f311.ClearChildTables(v16b4.Id); } v9f311.ActiveEditCell =null; v9f311.LastSelObj =null; } var va3e57 =ISXml.GetNodeText(vfd381,"//footerString"); if (va3e57 !="") { if (v16b4.IsRootTable) wg91c62.mc4746(v9f311,v16b4,null,va3e57); else { var vc4517 =v16b4.GetSubTableById(v0fb19.subId); wg91c62.mc4746(v9f311,null,vc4517,va3e57); } } if (v9f311.LayoutSettings.VerboseEditingInformation) { v9f311.SetStatus1("","","CommonText/DeleteSuccess"); v9f311.SetStatusIcon("Success"); v9f311.IsStatusLocked =true; } else { v9f311.SetStatus1("","ready","CommonText/Ready"); } }, m0ce23:function(v02486,v02c98) { var v8f047 =""; try { v8f047 =ISXml.GetNodeText(v02c98,"//grouplevel"); } catch (e) { } var ve4e51 =v02486.LastRequestObj; var v14e39 =v02486.Tables[ve4e51.Table.Name]; var vccb90 =ve4e51.RowElement; var vb8c88 =v14e39.GetElement(WG40.BODY,WG40.HTMLTABLE,vccb90); var vad216 =parseFloat(v02486.TotalLoadedRows); var vde588 =parseFloat(v02486.TotalRows); var vff876 =v02486.LayoutSettings.PagingMode; var vd4747 =ISXml.GetNodeText(v02c98,"//needReposition"); var v3c473 =ISXml.GetNodeText(v02c98,"//keyValue"); var vdf019 =v02486.LastSelObj; var v0d543 =false; var v38e41 =ISXml.GetNodeText(v02c98,"//htmlTB"); var v6e691 =false; var ve9e97 =false; var v05322 =null; if (!ISEvent.Raise(v02486.LayoutSettings.ClientSideEvents.OnAfterUpdate,v02486.Name,ve4e51.Table.Id,v02486.LastRequestObj,v02486.XmlResp)) return; if (vd4747 =="True" ||(v8f047 !="" &&v38e41 !="")) { if (v8f047 =="") { var vd3c46 =wgGetRootRow(vccb90); var v9746 =vd3c46.position; var va8e28 =vd3c46.rowIndex; var v84c59 =wgGetHierRecord(vccb90); var ve3a96 =null; if (v84c59 &&v84c59.type !="HierRecord") v84c59 =null; if (v14e39.PreviewRowVisible) ve3a96 =wgGetPreviewRow(vccb90); if (wgIsColumnSetRow(vccb90)) { var vf9b35 =wgGetColumnSetRows(vccb90); for (var v41014=0; v41014<vf9b35.length; v41014++) { vf9b35[v41014].removeNode(true); } } else { vccb90.removeNode(true); } if (ve3a96) ve3a96.removeNode(true); if (v84c59) v84c59.removeNode(true); var v0af27 =parseFloat(ISXml.GetNodeText(v02c98,"//position")); if (!v14e39.IsRootTable ||vff876 =="ClassicPaging" ||vff876 =="None" ||(vff876 =="VirtualLoad" &&(vad216 ==vde588 ||v0af27<=vad216))) { var ve9f8 =ISXml.GetNodeText(v02c98,"//htmlRow"); wg91c62.m2e073("<table>" +ve9f8 +"</table>"); var vf6719 =wg91c62.mabe81(); var newt,hiert; var v0ee47 =vb8c88.tBodies[vb8c88.tBodies.length -1]; if (!v14e39.IsRootTable) { try { vad216 =parseFloat(vb8c88.rows[vb8c88.rows.length -1].position)+1; } catch (e) { vad216 =0; } } else { wg91c62.m0d324(v02486,vf6719.rows); } newt =v0ee47.appendChild(vf6719.rows[0]);  if (v02486.BindingOperationMode =="ClientBinding") { ve9e97 =true; v05322 =newt; } var v1fb38 =vf6719.rows.length; var vfe822 =0; for (var v41014=0; v41014<v1fb38; v41014++) { var vf7b95 =vf6719.rows[0]; wg4a378.mb6b61(vf7b95); if (vf7b95.type !="HierRecord") { v0ee47.appendChild(vf7b95); vfe822++; } } if (v84c59 &&vccb90.childExpanded =="True") { if (vccb90.relNames !=newt.relNames) { vccb90.childExpanded ="False"; v84c59 =v0ee47.appendChild(vf6719.rows[0]); } } if (v0af27<vad216) { var vddd33 =(v0af27>v9746 ? v0af27 +1 : v0af27); hiert =v84c59; if (hiert) v0ee47.appendChild(hiert); if (vddd33<vad216) { var vf473 =parseFloat(newt.rowIndex); vb8c88.moveRow(newt.rowIndex,wgGetRowByPositionExact(vb8c88,vddd33).rowIndex); if (vfe822>0) { for (var vc9733=0; vc9733<vfe822; vc9733++) { vb8c88.moveRow(vf473 +vc9733 +1,newt.rowIndex +vc9733 +1); } } if (hiert) vb8c88.moveRow(hiert.rowIndex,newt.rowIndex +vfe822 +1); } if (v0af27 ==vad216 -1) wg2f128.m40e88(v02486,v14e39,vb8c88,newt); wg2f128.maaf35(v02486,vccb90,newt); v0d543 =true; } } else { if (v14e39.IsRootTable) { vad216--; v02486.Set("TotalLoadedRows",vad216);  if (v02486.IsClassicPaging()) wg87896.mdb046(v02486); else v02486.SetStatus2("","loaded",vad216,vde588); } } wgRefreshHierPosition(v02486,vb8c88,vb8c88.rows[0],0,hiert); var v35551 =false; try { var vfd827 =v02486.LastSelObj.getRowElement(); var v35f47 =wg4a378.m33a20(vfd827);  if (v35f47 ==null) v35551 =true; } catch (e) { v35551 =true; } if (v35551) { v02486.ActiveEditCell =null; v02486.LastSelObj =null; wgdee10.ma3d97(vb8c88.rows[va8e28].cells[v14e39.LastAECIndex],false,true); } } else { var v6da85 =v14e39.GetElement(WG40.BODY,WG40.HTMLDIV,ve4e51.RowElement); var ve9f8 =ISXml.GetNodeText(v02c98,"//htmlTB"); var va8e28 =vccb90.rowIndex; v6da85.outerHTML =ve9f8; if (v14e39.IsRootTable) { v02486.ClearChildTables(); wg4a378.m87f14(v02486); } else { var v49814 =v14e39.GetSubTableById(vb8c88.subId); var v84c59 =v49814.GetParentRow(); v02486.ClearChildTables(v14e39.Id); } var v0b069 =v8f047.split("_"); var v67632; v6da85 =document.getElementById(v6da85.id); vb8c88 =v6da85.childNodes[0]; for (var v41014=0; v41014<v0b069.length; v41014++) { var vd1596 =wgGetRowByGroup(vb8c88,v41014,v0b069[v41014],v67632); if (vd1596) { if (vd1596.childrenLoaded =="True") { wgExpandGroupRow(vd1596); } } v67632 =vd1596; }  if (v02486.BindingOperationMode =="ClientBinding") v6e691 =true; v02486.ActiveEditCell =null; v02486.LastSelObj =null; var v0e540 =vb8c88.rows[va8e28]; var v97116 =v14e39.LastAECIndex; if (v0e540) { if (v97116>=v0e540.cells.length) v97116 =v0e540.cells.length -1; wgdee10.ma3d97(vb8c88.rows[va8e28].cells[v97116],false,true); v0d543 =true; } } } else { v0d543 =true; var ve9f8 =ISXml.GetNodeText(v02c98,"//htmlRow"); if (ve9f8 =="RowRemoved") { wg2f128.m9ae97(v02486,v14e39,vb8c88,vccb90,v84c59,vad216,vde588); } else { wg91c62.m2e073("<table>" +ve9f8 +"</table>"); var vf6719 =wg91c62.mabe81(); var v5f889 =vf6719.rows[0]; var v8c335 =wgGetRootRow(vccb90); var va5f71; if (v14e39.IsRootTable) wg91c62.m0d324(v02486,vf6719.rows); v8c335.replaceNode(v5f889); va5f71 =v5f889; if (v02486.BindingOperationMode =="ClientBinding") { ve9e97 =true; v05322 =v5f889; }   var vb2417 =v5f889; var v1fb38 =vf6719.rows.length; for (var v4a312=0; v4a312<v1fb38; v4a312++) { vb2417 =wgGetNextRow(vb8c88,vb2417); var vf7b95 =vf6719.rows[0]; wg4a378.mb6b61(vf7b95); if (vb2417.type !="HierRecord" &&vb2417.type !="GroupTotalRow") { if (vb2417.type ==vf7b95.type) { vb2417.replaceNode(vf7b95); vb2417 =null; vb2417 =vf7b95; var vd3c46 =v8c335; if (v8c335.srLevel) { vd3c46 =wgGetRootRow(wg91c62.m9ff85(vb8c88,vf7b95)); if (vd3c46.srLevel ==v8c335.srLevel) vd3c46 =v8c335; } if ((!vf7b95.srLevel &&vf7b95.style.display !="") ||(typeof (v8c335.srLevel)!="undefined" &&(v8c335.srExpanded =="True" ||v8c335.style.display ==""))) vf7b95.style.display =""; va5f71 =vb2417; } } } v5f889.style.display =""; if (vdf019 &&vdf019.GetRowElement().rowIndex ==-1) { v02486.ActiveEditCell =null; v02486.LastSelObj =null; try { if (typeof (v5f889.srLevel)!="undefined" &&v02486.LayoutSettings.EditOnClick) { var vac481 =vb8c88.rows[oldLSO.rowIndex]; v02486.LastEditObj.cellElement =vac481.cells[v14e39.LastAECIndex]; wgdee10.ma3d97(v02486.LastEditObj.cellElement,false,true); } else wgdee10.ma3d97(v5f889.cells[v14e39.LastAECIndex],false,true); } catch (e) { } } if (v8c335.childExpanded =="True") { if (v8c335.relNames !=v5f889.relNames) { v8c335.childExpanded ="False"; v84c59 =wgGetNextRow(vb8c88,va5f71); v84c59.replaceNode(vf6719.rows[0]); } } wg91c62.m0ce44(); wg2f128.maaf35(v02486,v8c335,v5f889); wg2f128.mae454(v02486,v14e39,v8c335,v5f889); vccb90 =null; } } var v3e568 =ISXml.GetNodeText(v02c98,"//footerString"); if (v3e568 !="") { if (v14e39.IsRootTable) { wg91c62.mc4746(v02486,v14e39,null,v3e568); v6e691 =true; } else { var v49814 =v14e39.GetSubTableById(vb8c88.subId); wg91c62.mc4746(v02486,null,v49814,v3e568); } }  if (v5f889 !=null) wg2f128.mbf497(v02c98,v5f889); if (v02486.LastEditObj) wg2f128.mb5b98(v02486); else { if (v0d543) wg2f128.mfea6(v02486); } if (v6e691) wg4a378.m8cc50(v14e39,"UpdateRow"); else if (ve9e97) wg4a378.m81946(v14e39,"UpdateRow",v05322); if (v02486.LayoutSettings.VerboseEditingInformation) { v02486.SetStatus1("","","CommonText/UpdateSuccess"); v02486.SetStatusIcon("Success"); v02486.IsStatusLocked =true; } else { v02486.SetStatus1("","ready","CommonText/Ready"); } },  mbf497:function(v4e20,v69e6) { var v55341 =ISXml.GetNodeText(v4e20,"//groupFooterCount"); var vb5d77 =null; var v5d816 =-1;  if (v55341 !="") { v55341 =parseInt(v55341);  for (var v7fa15=0; v7fa15<v55341; v7fa15++) {  if (vb5d77 ==null) { vb5d77 =wg2f128.m08c35(v69e6); v5d816 =parseInt(vb5d77.groupIndex); vb5d77 =wg2f128.m8a248(v4e20,vb5d77,v7fa15); continue; }  v5d816--; vb5d77 =wg91c62.m57f30(vb5d77,v5d816,"next","GroupTotalRow"); vb5d77 =wg2f128.m8a248(v4e20,vb5d77,v7fa15); } } },  m8a248:function(v7a046,v83433,v3266) { var v2b472 =ISXml.GetNodeText(v7a046,"//groupFooterString_" +v3266);  if (v2b472 !="") { wg91c62.m2e073("<table>" +v2b472 +"</table>"); var v84744 =wg91c62.mabe81(); var vde454 =v84744.rows[0]; var v29783 =v83433; v29783.replaceNode(vde454); vde454.style.display =""; var vc4611 =vde454; var va0882 =v84744.rows.length; for (var v6bd18=0; v6bd18<va0882; v6bd18++) { vc4611 =wgGetNextRow(tb,vc4611); var va2718 =v84744.rows[0]; wg4a378.mb6b61(va2718); vc4611.replaceNode(va2718); va2718.style.display =""; vc4611 =null; vc4611 =va2718; }  wg91c62.m0ce44();  return vde454; } },  m08c35:function(v1a82) { var v8d466 =wg4a378.m33a20(v1a82); var vc8f43 =wgGetNextRow(v8d466,v1a82);  while (vc8f43 !=null) { if (vc8f43.type =="GroupTotalRow") return vc8f43;  vc8f43 =wgGetNextRow(v8d466,vc8f43); }  return null; },  mbaf99:function(v6a685) { for (var va912=0; va912<v6a685.rows.length; va912++) { var v46112 =v6a685.rows[va912]; wg4a378.mb6b61(v46112); if (v46112.type =="Record") v46112.position =v46112.recordIndex =va912; } }, m9ae97:function(v58496,v65e10,v03510,vdcb78,va0576,v5df32,v2873) { var v05021 =wgGetRootRow(vdcb78); var v5dd22 =v05021.rowIndex; var v3e258 =false; var v2d613 =false; if (v58496.LastSelObj &&v58496.LastSelObj.GetRowElement()!=vdcb78) v2d613 =true; wgRemoveRow(v65e10,vdcb78); if (v03510.rows.length>0) { if (typeof(v5df32)!="undefined") wgRefreshHierPosition(v58496,v03510,v03510.rows[0],0,va0576); else wg2f128.mbaf99(v03510); var v92154 =v03510.rows[v5dd22]; var v94715 =v65e10.LastAECIndex; if (!v92154) { var vd3d8 =wgGetLastVisibleRow(v03510); if (vd3d8) { v92154 =vd3d8.GetRowElement(); if (v92154) { if (v92154.type !="NewRow" &&va0576) wg2f128.m4fb90(v58496,v65e10,v03510,v92154); } } } }  if (!v2d613) { v58496.ActiveEditCell =null; v58496.LastSelObj =null; } if (v92154 &&!v2d613) { if (v94715>=v92154.cells.length ||v94715 ==-1) { var vd3d8 =wg91c62.m0f568(v92154); if (vd3d8) v94715 =vd3d8.cellIndex; else v94715 =v92154.cells.length -1; } wgdee10.ma3d97(v92154.cells[v94715],false,true); if (v58496.LastEditObj) wg2f128.m97a96(v58496.LastEditObj,true); v3e258 =true; } if (v3e258) wg2f128.mfea6(v58496); if (typeof(v5df32)!="undefined") { if (v65e10.IsRootTable) { v2873--; v5df32--; v58496.Set("TotalLoadedRows",v5df32); v58496.Set("TotalRows",v2873);  if (v58496.IsClassicPaging()) wg87896.mdb046(v58496); else v58496.SetStatus2("","loaded",v5df32,v2873); } } vdcb78 =null; va0576 =null; }, mf6f86:function(v37d42,v5ca47) { var vb4c66 =""; try { vb4c66 =ISXml.GetNodeText(v5ca47,"//grouplevel"); } catch (e) { } var v4aa97 =v37d42.LastRequestObj; var ve2b81 =v37d42.Tables[v4aa97.Table.Id]; var v68a69 =parseFloat(v37d42.TotalLoadedRows); var va8819 =parseFloat(v37d42.TotalRows); var ve0673 =v37d42.LayoutSettings.PagingMode; var v17a82 =null; var vb8939 =false; var v12446 =false; var vb3824 =null; if (ve2b81.IsRootTable) v17a82 =ve2b81.GetElement(WG40.BODY,WG40.HTMLTABLE); else v17a82 =v4aa97.SubTable.GetElement(WG40.BODY,WG40.HTMLTABLE); var v83d77 =v37d42.LayoutSettings.ResetNewRowValuesOnError; try { if (v4aa97.RowElement) { wg2f128.m09f77(v37d42,v4aa97.RowElement); if (v37d42.LastSelObj.GetRowElement().type =="NewRow") wgdee10.m0d99(v4aa97.RowElement,v37d42.GetCurSelImage()); } } catch (e) { } if (!ISEvent.Raise(v37d42.LayoutSettings.ClientSideEvents.OnAfterAdd,v37d42.Name,v4aa97.tblName,v37d42.LastRequestObj,v37d42.XmlResp)) return; if (vb4c66 !="") { var vf0478 =null; if (ve2b81.IsRootTable) vf0478 =ve2b81.GetElement(WG40.BODY,WG40.HTMLDIV);  else vf0478 =v4aa97.SubTable.GetElement(WG40.BODY,WG40.HTMLDIV); var v8b638 =ISXml.GetNodeText(v5ca47,"//htmlTB"); vf0478.outerHTML =v8b638; if (ve2b81.IsRootTable) wg4a378.m87f14(v37d42); if (ve2b81.IsRootTable) v37d42.ClearChildTables(); else v37d42.ClearChildTables(ve2b81.Id); var v6bc6 =vb4c66.split("_"); var ve7a22; for (var v6bf21=0; v6bf21<v6bc6.length; v6bf21++) { var ve7f91 =wgGetRowByGroup(v17a82,v6bf21,v6bc6[v6bf21],ve7a22); if (ve7f91) { if (ve7f91.childrenLoaded =="True") { wgExpandGroupRow(ve7f91); } } ve7a22 =ve7f91; } if (v37d42.BindingOperationMode =="ClientBinding") vb8939 =true;  if (ve0673 =="None") v68a69++; else v68a69 =v37d42.LayoutSettings.VirtualPageSize; } else { var v7cd64 =-1; var v8b638 =""; try { v7cd64 =parseFloat(ISXml.GetNodeText(v5ca47,"//position")); v8b638 =ISXml.GetNodeText(v5ca47,"//htmlRow"); } catch (e) { } var v2d941 =false; if (v8b638 =="") { v37d42.SetStatus1("","ready","CommonText/Ready"); return; } if (!ve2b81.IsRootTable ||ve0673 =="None" ||ve0673 =="ClassicPaging" ||(ve0673 =="VirtualLoad" &&(v68a69 ==va8819 ||v7cd64<=v68a69))) { wg91c62.m2e073("<table>" +v8b638 +"</table>"); var v70897 =wg91c62.mabe81(); var newt,hiert; var ve9743 =null; if (v17a82.tBodies.length>0) ve9743 =v17a82.tBodies[v17a82.tBodies.length -1]; else { ve9743 =document.createElement("TBODY"); v17a82.appendChild(ve9743); } if (!ve2b81.IsRootTable) { try { v68a69 =parseFloat(v17a82.rows[v17a82.rows.length -1].position)+1; } catch (e) { v68a69 =0; } } else { wg91c62.m0d324(v37d42,v70897.rows); } newt =ve9743.appendChild(v70897.rows[0]); var v87d32 =v70897.rows.length; for (var vb2771=0; vb2771<v87d32; vb2771++) { if (v70897.rows[0].type =="HierRecord") { hiert =v70897.rows[0]; v87d32--; } ve9743.appendChild(v70897.rows[0]); } if (v37d42.BindingOperationMode =="ClientBinding") { v12446 =true; vb3824 =newt; } var vab628 =newt.rowIndex; if (v7cd64<v68a69) { v17a82.moveRow(newt.rowIndex,wgGetRowByPositionExact(v17a82,v7cd64).rowIndex); for (var v6bf21=0; v6bf21<v87d32; v6bf21++) { v17a82.moveRow(vab628 +v6bf21 +1,newt.rowIndex +v6bf21 +1); } if (hiert) v17a82.moveRow(hiert.rowIndex,newt.rowIndex +(v87d32)+1); wgRefreshHierPosition(v37d42,v17a82,wgGetNextRow(v17a82,(hiert ? hiert : newt)),v7cd64 +1,hiert); v2d941 =true; } var vf1777 =wgGetCellByPosition(newt,0); if (v37d42.HasFocus()) vf1777.setActive(); wgdee10.mfb068(v37d42,vf1777); wg91c62.m0ce44(); if (ve2b81.IsRootTable) v68a69 +=1; if (!v2d941) { wg2f128.m40e88(v37d42,ve2b81,v17a82,newt); } } } if (ve2b81.IsRootTable) { va8819 +=1; if (v68a69>va8819) v68a69 =va8819; v37d42.Set("TotalLoadedRows",v68a69); v37d42.Set("TotalRows",va8819); if (v37d42.IsClassicPaging()) wg87896.mdb046(v37d42); else v37d42.SetStatus2("","loaded",v68a69,va8819); } if (newt !=null) wg2f128.mbf497(v5ca47,newt); var v4a523 =ISXml.GetNodeText(v5ca47,"//footerString"); if (v4a523 !="") { if (ve2b81.IsRootTable) { wg91c62.mc4746(v37d42,ve2b81,null,v4a523); vb8939 =true; } else { var v00a70 =ve2b81.GetSubTableById(v17a82.subId); wg91c62.mc4746(v37d42,null,v00a70,v4a523); } } if (vb8939) wg4a378.m8cc50(ve2b81,"AddRow"); else if (v12446) wg4a378.m81946(ve2b81,"AddRow",vb3824); if (v37d42.LayoutSettings.VerboseEditingInformation) { v37d42.SetStatus1("","","CommonText/AddSuccess"); v37d42.SetStatusIcon("Success"); v37d42.IsStatusLocked =true; } else { v37d42.SetStatus1("","ready","CommonText/Ready"); } }, m4fb90:function(ve1017,v2ea36,v21e68,v5ce9) { if (wgIsRecordRow(v5ce9)) { var va1b14 =wga3c88.m17211(v5ce9); var vffb86 =wgGetHierRecord(v5ce9); if (vffb86 &&vffb86.type !="HierRecord") vffb86 =null; if (va1b14) wga3c88.mf6675(ve1017,va1b14.childNodes[0],vffb86); if (vffb86) { var v34d53 =wga3c88.ma0a89(vffb86); v34d53.innerHTML =""; } } }, m40e88:function(v7dd9,v71e85,v80072,vd7f54) { var v55d89 =wgGetPreviousRow(v80072,vd7f54); if (v55d89 &&v55d89.type =="HierRecord") { var v0db75 =wga3c88.ma0a89(v55d89); wga3c88.m4c433(v7dd9,v0db75); v55d89 =wgGetPreviousRow(v80072,v55d89); v55d89 =wgGetRootRow(v55d89); if (v55d89 &&v55d89.type =="Record") { var v22b5 =wga3c88.m17211(v55d89); wga3c88.mb2b86(v7dd9,v22b5.childNodes[0]); } } else if (v55d89 &&wgIsRecordRow(v55d89)&&!v71e85.IsRootTable) { v55d89 =wgGetRootRow(v55d89); var v22b5 =wga3c88.m17211(v55d89); wga3c88.mb2b86(v7dd9,v22b5.childNodes[0],true); } }, maaf35:function(v3c464,vd5c64,v03f57) { if (vd5c64.childExpanded &&vd5c64.childExpanded =="True") { var ve7128 =wga3c88.m17211(v03f57); if (ve7128) { wga3c88.m57926(v3c464,ve7128,"False"); v03f57.childExpanded ="True"; } } if (vd5c64.tblName) v03f57.tblName =vd5c64.tblName; }, mae454:function(va2c48,v0ea4,vcbb5,v05677) { if (vcbb5.srLevel &&vcbb5.srExpanded =="True") { var va7748 =wg91c62.m1c114(v0ea4,v05677); if (va7748) { va7748.src =va2c48.ResolveImagePathEx(va2c48.LayoutSettings.ImageSettings.CollapseImage); v05677.srExpanded ="True"; } } }, mc3c66:function(v42a39,ve4552,v22e9) { var vaae3 =wgGetGridById(ve4552); var v0fd83 =vaae3.CustomEditors[v22e9]; v0fd83.ImplementationObject.OnDropdown(); } };var ceProto =null;if (typeof(WebGridCustomEditor)=="undefined") ceProto =new Object();else ceProto =WebGridCustomEditor.prototype;ceProto.GetBaseEditorElement =function(){ if (this.baseEditor ==null) { if (this.BaseEditorType =="Textbox") this.baseEditor =document.getElementById(this.Grid.Name +"_TB" +this.Name); else this.baseEditor =this.ImplementationObject.GetBaseEditorElement(); } return this.baseEditor;};ceProto.GetEditCell =function(){ return this.Grid.GetActiveEditCell();};ceProto.GetEditCellElement =function(){ return this.GetEditCell().element;};ceProto.GetEditRowElement =function(){ return this.GetEditCell().rowElement;};ceProto.GetTable =function(){ var ac =this.Grid.GetActiveEditCell(); var table =this.Grid.Tables[ac.tblName]; return table;};ceProto.GetColumnXml =function(){ var table =this.GetTable(); return table.GetColumn(wgGetColNameByCell(this.GetEditCellElement()));};ceProto.GetColumnEditorProperties =function(){ var colXml =this.GetColumnXml(); return colXml.CustomEditorProperties;};ceProto.GetEditorClientID =function(){ var colXml =this.GetColumnXml(); return colXml.CustomEditorServerId;};ceProto.GetDropdownObject =function(){};ceProto.RowDirty =function(){ wg2f128.m8de51(this.Grid);};ceProto.CellDirty =function(){ this.GetEditCellElement().cellModified =true;};ceProto.IsRowDirty =function(){ return wgIsRowDirty(this.GetEditRowElement());};ceProto.GetDropdownButtonElement =function(){ if (this.DDObj ==null) { if (this.DropdownButtonType =="Image") this.DDObj =document.getElementById(this.Grid.Name +"_DD" +this.Name); else this.DDObj =this.ImplementationObject.GetDropdownButtonElement(); } return this.DDObj;};ceProto.InitializeBaseEditor =function(ac){ var be =this.GetBaseEditorElement(); var grid =this.Grid; if (be !=null &&this.BaseEditorType =="Textbox") { if (!be.initialized) { var ceName =this.Name; be.attachEvent("onfocus",wg2f128.m08c23);  be.onselectstart =function() { event.cancelBubble =true; return true; }; be.onkeydown =function() { wg2f128.m33769(grid,ceName); }; be.className =grid.LayoutSettings.TextBoxClass; } wgDispObjGeneric(grid,be,ac.element,1,1,null,null,this.HasDropdownButton); }};ceProto.EnterEditMode =function(ac,colXml,mode,isDirty){ var be; var grid =this.Grid; if (this.ControlType =="DHTMLClientControl") this.InitializeBaseEditor(ac); if (this.HasDropdownButton) { var dd =this.GetDropdownButtonElement(); if (this.DropdownButtonType =="Image" &&dd !=null) { var ddWidth =this.DropdownButtonWidth;  if (this.Behavior.SupportElegantStyles &&grid.IsElegantDefaultStyle()) ddWidth =-1;  dd.style.cursor ="hand"; wgDispObjGeneric(grid,dd,ac.element,ac.element.offsetWidth -ddWidth,2,true); } } var customResult =this.ImplementationObject.OnEnterEditMode(ac,colXml,isDirty); this.ImplementationObject.OnSetValue(ac.element.innerText,ac); if (isDirty) this.ImplementationObject.OnDirty(); if (!be) be =customResult; return be;};ceProto.ClearEditObject =function(){ this.Grid.LastEditObj =null; this.Grid.IsInEditMode =false;};function WebGridEditDestructor(){ var v4ca20 =delete wg2f128;}window.attachEvent("onunload",WebGridEditDestructor);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();
