
// 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**
function wgActiveCell(v88259,v81598,v3af31){ this.element =v3af31; this.tblName =v81598; this.gridId =v88259; if (v3af31) this.cellIndex =v3af31.cellIndex; this.rowElement =null; this.rowChanged =false; this.GetColSetRowElement =function() { var v1a523 =wgGetGridById(this.gridId); var vca228 =v1a523.Tables[this.tblName]; if (vca228.IsUseColumnSet) { return wgGetColumnSetRow(this.element); } return null; }; this.GetColSetRowsElement =function() { var v1a523 =wgGetGridById(this.gridId); var vca228 =v1a523.Tables[this.tblName]; if (vca228.IsUseColumnSet) { return wgGetColumnSetRows(this.element); } return null; }; return this;}function wgSetLastAEC(v54769){ var v9cd78 =wg4a444.m4dc24(v54769); var v93f8 =ISGetObject(v9cd78.gridId); var v23798 =v93f8.Tables[v9cd78.tblName]; if (v23798.LastAECIndex !=-1) { if (v54769.cells.length>v23798.LastAECIndex) { var v8cf68 =v54769.cells[v23798.LastAECIndex]; if (v8cf68.type =="Cell" ||v8cf68.type =="FilterColumn") wg08d15.m71c24(v8cf68); else wg08d15.mbdc89(v54769); } } else { wg08d15.mbdc89(v54769); }}function wgGetFirstEditableCell(v13d44){ if (wgIsColumnSetRow(v13d44)) return wgGetCSFirstEditableCell(v13d44); var v1ce53 =wg4a444.m4dc24(v13d44); var v0df96 =ISGetObject(v1ce53.gridId); var v94d50 =v0df96.Tables[v1ce53.tblName]; var vef933 =v94d50.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v13d44).cells; var v52b19 =-1; for (var v00b50=0; v00b50<vef933.length; v00b50++) { wg4a444.mc4f43(vef933[v00b50]); if (vef933[v00b50].type =="Column") { var vfb638 =v94d50.Columns.GetNamedItem(vef933[v00b50].colName); if (wg4a444.m5ec11(vfb638,v13d44.cells[v00b50],v00b50)) { v52b19 =v00b50; break; } } } return v52b19;}function wgGetNextEditableRow(v1cb64,vb0354){ var v48d28 =wgGetNextVisibleRow(v1cb64,vb0354); if (v48d28) { while (!(v48d28 &&v48d28.element &&!v48d28.element.noEdit)) { if (v48d28 ==null) return null;  v48d28 =wgGetNextVisibleRow(v1cb64,v48d28.element); } } return v48d28;}function wgGetPrevEditableRow(va9683,v35764){ var ve910 =wgGetPrevVisibleRow(va9683,v35764); if (ve910) { while (!(ve910 &&ve910.element &&!ve910.element.noEdit)) ve910 =wgGetPrevVisibleRow(va9683,ve910.element); } return ve910;}function wgGetNextEditableCell(v00e89,ve9120){ var v81083 =v00e89.parentElement; if (!v81083) v81083 =ve9120; var ve5464 =false; if (wgIsColumnSetRow(v81083)) { var v55788 =wgGetCSNextEditableCell(v00e89,v81083); if (v55788 &&v55788.rowElement) { if (v55788.rowElement.type !="GroupHeader" &&v55788.rowElement.type !="GroupTotalRow") return v55788; else ve5464 =true; } } var v4bf1 =wg4a444.m4dc24(v81083); var v33463 =ISGetObject(v4bf1.gridId); var vaa374 =v33463.Tables[v4bf1.tblName]; var v43339 =vaa374.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v81083).cells; var vc5320 =-1; var v5fa83 =new wgActiveCell(v4bf1.gridId,v4bf1.tblName); var vaf072 =v00e89.cellIndex;  if (IS.ie &&vaa374.IsRootTable &&v33463.FreezePaneActive &&(wgIsFilterRow(v81083)||wgIsNewRow(v81083))) vaf072 =wg4a444.m1b593(v00e89); if (!ve5464) { for (var v30f10=vaf072 +1; v30f10<v43339.length; v30f10++) { wg4a444.mc4f43(v43339[v30f10]); if (v43339[v30f10].type =="Column") { var v84510 =vaa374.GetColumn(v43339[v30f10].colName); if (wg4a444.m5ec11(v84510,v81083.cells[v30f10],v30f10)) { vc5320 =v30f10; break; } } } } if (vc5320 ==-1) { var v8d976 =wgGetNextEditableRow(v4bf1,v81083); if (v8d976 &&v8d976.element &&vaa374.Get("AllowEdit")=="Yes") { v5fa83.rowChanged =true; v5fa83.rowElement =v8d976.element; if (v8d976.element.type =="Record" ||v8d976.element.type =="NewRow") { vc5320 =wgGetFirstEditableCell(v8d976.element); if (typeof (vc5320)=="object") { v5fa83.element =vc5320; } else { if (vc5320 ==-1) vc5320 =vaa374.LastAECIndex; if (vc5320>=v8d976.element.cells.length) vc5320 =v8d976.element.cells.length -1; v5fa83.element =v8d976.element.cells[vc5320]; } v5fa83.cellIndex =v5fa83.element.cellIndex; } else { vc5320 =0; v5fa83.element =null; v5fa83.cellIndex =null; } } } else { v5fa83.rowElement =v81083; v5fa83.element =v81083.cells[vc5320]; v5fa83.cellIndex =v5fa83.element.cellIndex; } if (vc5320 ==-1) { v5fa83.element =v00e89; v5fa83.rowElement =v81083; v5fa83.cellIndex =v5fa83.element.cellIndex; } return v5fa83;}function wgGetPrevEditableCell(v5eb16,v5b738){ var vb0b89 =v5eb16.parentElement; if (!vb0b89) vb0b89 =v5b738; if (wgIsColumnSetRow(vb0b89)) { var v40a20 =wgGetCSPrevEditableCell(v5eb16,vb0b89); if (v40a20 &&v40a20.rowElement) { if (v40a20.rowElement.type !="GroupHeader") return v40a20; } } var vbed77 =wg4a444.m4dc24(vb0b89); var vf4d34 =ISGetObject(vbed77.gridId); var v75428 =vf4d34.Tables[vbed77.tblName]; var v88014 =v75428.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vb0b89).cells; var v77634 =-1; var v1aa4 =new wgActiveCell(vbed77.gridId,vbed77.tblName); var vd8994 =v5eb16.cellIndex;  if (IS.ie &&v75428.IsRootTable &&vf4d34.FreezePaneActive &&(wgIsFilterRow(vb0b89)||wgIsNewRow(vb0b89))) vd8994 =wg4a444.m1b593(v5eb16); for (var v74158=vd8994 -1; v74158>=0; v74158--) { wg4a444.mc4f43(v88014[v74158]); if (v88014[v74158].type =="Column") { var ve7265 =v75428.Columns.GetNamedItem(v88014[v74158].colName); if (wg4a444.m5ec11(ve7265,vb0b89.cells[v74158],v74158)) { v77634 =v74158; break; } } } if (v77634 ==-1) { var v08658 =wgGetPrevEditableRow(vbed77,vb0b89); if (v08658 &&v08658.element &&v75428.Get("AllowEdit")=="Yes") { v1aa4.rowChanged =true; v1aa4.rowElement =v08658.element; if (v08658.element.type =="Record" ||v08658.element.type =="NewRow") { if (v08658.element.type =="NewRow") v1aa4.element =wgGetFirstEditableCell(v08658.element); else v1aa4.element =wgGetLastEditableCell(v08658.element); if (v1aa4.element) v77634 =v1aa4.element.cellIndex; else { v77634 =v75428.LastAECIndex; v1aa4.element =v08658.element.cells[v77634]; } v1aa4.cellIndex =v77634; } else { v77634 =0; v1aa4.element =null; v1aa4.cellIndex =null; } } } else { v1aa4.rowElement =vb0b89; v1aa4.element =vb0b89.cells[v77634]; v1aa4.cellIndex =v1aa4.element.cellIndex; } if (v77634 ==-1) { v1aa4.element =v5eb16; v1aa4.rowElement =vb0b89; v1aa4.cellIndex =v1aa4.element.cellIndex; } return v1aa4;}function wgGetLastEditableCell(v17819){ if (wgIsColumnSetRow(v17819)) return wgGetCSLastEditableCell(v17819); var v7f416 =wg4a444.m4dc24(v17819); var v6cc38 =ISGetObject(v7f416.gridId); var v04699 =v6cc38.Tables[v7f416.tblName]; var v93720 =v04699.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,v17819).cells; var v9df95 =-1; for (var v66b18=v93720.length -1; v66b18>=0; v66b18--) { wg4a444.mc4f43(v93720[v66b18]); if (v93720[v66b18].type =="Column") { var ve8f74 =v04699.Columns.GetNamedItem(v93720[v66b18].colName); if (ve8f74.EditType !="NoEdit" &&(v66b18<v17819.cells.length &&v17819.cells[v66b18].noEdit !="True")) { v9df95 =v66b18; break; } } } if (v9df95 !=-1) return v17819.cells[v9df95]; else return null;}function wgActiveCellValid(vaa519,vab588){ if (vaa519.ActiveEditCell) { if (wgIsSameRow(vaa519.ActiveEditCell.element.parentElement,vab588)) { return true; } } return false;}function wgIsRowEditable(vb6d10){ if (!vb6d10) return false; if (wgIsColumnSetRow(vb6d10)) { var vd7e74 =wgGetColumnSetRow(vb6d10);  if (vd7e74.rowState =="Deleted") return false;  return vd7e74.noEdit !="True"; } else { if (vb6d10.rowState =="Deleted") return false;  return vb6d10.noEdit !="True"; }}function wgGetUnMask(v27e51,vdad62,vd6626,v4f421,vff73){ var va8810 =vdad62.DataType; var vbb337; var v57e18 =false; if (vff73) vbb337 =vff73; else { v57e18 =true; vbb337 =vd6626.innerText; } if (!va8810) return vbb337; if (vd6626 &&wgIsFilterRow(vd6626.parentElement)) return vbb337; var v23e47 =vdad62.DataFormatString; var v69716 =new ISClientData(null,va8810,v23e47); v27e51.ValEngine.CheckType(v69716); var v5f543 =v69716.Type; var v27a58 =vdad62.EditType;  if (v5f543 =="number" &&v27a58 =="TextBox") { if (v57e18 &&vd6626.cellValue) vbb337 =vd6626.cellValue;  v69716.NewValue =vbb337; return v27e51.ValEngine.UnMask(v69716,v27e51.CultureInfo); } else if (v27a58 =="Checkbox") { return vd6626.childNodes[0].checked; } else { if (vd6626.cellValue &&!v4f421) return vd6626.cellValue; else return vbb337; }}function wgGetMask(v9511,vfb940,va2030,v2a351,vc0246,vee914){ var v05d7; var vb6c42; if (vfb940) { v05d7 =vfb940.cellElement; vb6c42 =v9511.Tables[vfb940.tblName]; } else { v05d7 =vc0246; vb6c42 =v2a351; } if (wgIsFilterRow(v05d7.parentElement)) return va2030; var v74c11 =vb6c42.GetColumn(wgGetColNameByCell(v05d7)); if (!v74c11) return; var v69d24 =v74c11.DataType; if (!v69d24) return va2030; var vd9025 =v74c11.DataFormatString; var v3b289 =new ISClientData(null,v69d24,vd9025); v9511.ValEngine.CheckType(v3b289); var v74a76 =v3b289.Type; if ((v74a76 =="number" ||v74a76 =="datetime")&&typeof (va2030)!="undefined") { v3b289.NewValue =va2030; if (v74a76 =="datetime" &&vd9025 =="") v3b289.Format ="G"; if (v74a76 =="number" &&vd9025 =="") v3b289.Format ="g"; v9511.ValEngine.Validate(v3b289,v9511.CultureInfo); if (v3b289.IsValid) { if (!vee914) return v3b289.FormattedValue; else return [true,v3b289.FormattedValue]; } else { if (typeof (v05d7.oldCellValue)!="undefined") { v3b289.NewValue =v05d7.oldCellValue; if (v3b289.NewValue ==" ") v3b289.NewValue =""; if (!vee914) return v9511.ValEngine.Mask(v3b289,v9511.CultureInfo); else return [false,v9511.ValEngine.Mask(v3b289,v9511.CultureInfo),v05d7.oldCellValue]; } else return ""; } } else { return va2030; }}function wgEditObj(v8ea76,v32828,ve6282,v34316,vd6b68){ this.element =ve6282; this.type =v34316; this.gridId =v8ea76; this.tblName =v32828; this.cellElement =vd6b68;  this.ToCellObject =function() { return wgGetCellByElement(this.cellElement); };  return this;}function wgDispObjGeneric(v9f531,v4438,v2b268,v4c619,va0d90,v41538,v23161,v44120){ wg08d15.macc57(v9f531,v4438,v2b268,v4c619,va0d90,v41538,v23161,v44120);}function wgIsRowMarkedEdit(vd2971){ if (vd2971.parentElement ==null) return false; var v47d87 =wgGetRootRow(vd2971); return v47d87.markedEdit;}function wgIsRowDirty(vfc342){ var vbcb71 =new Array(); if (wgIsColumnSetRow(vfc342)) { vbcb71 =wgGetColumnSetRows(vfc342); } else { vbcb71[0] =vfc342; } for (var v0ff27=0; v0ff27<vbcb71.length; v0ff27++) { var v9571 =vbcb71[v0ff27]; for (var ve0f42=0; ve0f42<v9571.cells.length; ve0f42++) { if (v9571.cells[ve0f42].cellModified) return true; } } return false;}function wgAddNewRow(vd1f26){ wg4a444.mb4941(vd1f26.Grid.Id,"AddRow",vd1f26);}function wgUpdateRow(v44a26){ wg4a444.mb4941(v44a26.Grid.Id,"UpdateRow",v44a26);}function wgDeleteRow(vf4a98){ wg4a444.mb4941(vf4a98.Grid.Id,"DeleteRow",vf4a98);}function wgHighlightEditCell(v9a381,v53485,vd0372){ wg08d15.m71c24(v9a381,v53485,vd0372);}function wgActivateEditMode(v15a17){ v15a17.ActivateEditMode();}var wg08d15 = { mbdc89:function(v86752) { if (wgIsColumnSetRow(v86752)) { wgeb383.me5627(v86752); return; } var v3d952 =wgGetFirstEditableCell(v86752); if (v3d952 !=-1) wg08d15.m71c24(v86752.cells[v3d952]); }, mb0f18:function(v6708) { var v49888 =v6708.parentElement; if (!v49888) return; var v70354 =wg4a444.m4dc24(v49888); var v24542 =ISGetObject(v70354.gridId); if (!v24542.ActiveEditCell) return; wg08d15.m71c24(v24542.ActiveEditCell.element,"Clear",v6708); v24542.ExitEdit(); v24542.ActiveEditCell =null; }, m71c24:function(vd1f74,vcf51,v10d64) { var v93c44 =vd1f74.parentElement; if (!v93c44) return; var vc7b33 =wg4a444.m4dc24(v93c44); if (!vc7b33) return; var vcbc27 =ISGetObject(vc7b33.gridId); var v73789 =vcbc27.Tables[vc7b33.tblName]; var v4ff89 =vcbc27.LayoutSettings.RowHighlightType; if (vcbc27.ActiveEditCell &&vcbc27.ActiveEditCell.element ==vd1f74 &&vcf51 !="Clear" &&vcf51 !="Redraw") return; if (!v73789.IsUseColumnSet &&((vd1f74.type !="Cell" &&vd1f74.type !="FilterColumn") ||(vcbc27.Tables[vc7b33.tblName].IsRootTable &&vd1f74.style.display !="none"  &&vd1f74.cellIndex ==v93c44.cells.length -1))) return; if (vcf51 !="Clear") { vd1f74.selStyle =vd1f74.runtimeStyle.cssText; if (vcf51 !="Nodraw") { with (vd1f74.runtimeStyle) { var v0f516 =borderLeft; var v71d29 =borderTop; var vbb364 =borderRight; var vb3234 =borderBottom; cssText =vcbc27.GetEditFocusStyle(); if (IS.moz) vbb364 =vd1f74.style.borderRight; if (IS.moz &&vbb364 =="") vbb364 ="0px"; if (v4ff89 =="EntireRow") { borderLeft =v0f516; borderTop =v71d29; borderRight =vbb364; borderBottom =vb3234; } } } if (vcf51 !="Redraw") { var vc2974 =vd1f74.cellIndex;  if (vcbc27.ActiveEditCell &&vcbc27.ActiveEditCell.element !=vd1f74) wg08d15.m71c24(vcbc27.ActiveEditCell.element,"Clear",vd1f74);  if (vcbc27.FreezePaneActive &&v73789.IsRootTable &&(wgIsFilterRow(v93c44)||wgIsNewRow(v93c44))) vc2974 =wg4a444.m1b593(vd1f74); vcbc27.ActiveEditCell =new wgActiveCell(vc7b33.gridId,vc7b33.tblName,vd1f74); vcbc27.ActiveEditCell.rowElement =v93c44; vcbc27.Tables[vc7b33.tblName].LastAECIndex =vc2974; vcbc27.ResetStatus();  if (vcbc27.LayoutSettings.VerboseEditingInformation &&!vcbc27.IsInProgress) wg08d15.m8d279(vcbc27.Tables[vc7b33.tblName],vd1f74); } wg54045.m88958(vcbc27,vd1f74); } else { if (vd1f74 &&wgIsSameRow(v93c44,v10d64.parentElement)) { var v3cd46 =null;  if (!IS.ie) { if (vd1f74.currentStyle.display =="none" ||vd1f74.style.display =="none") v3cd46 ==false; else v3cd46 =true; }  vd1f74.runtimeStyle.cssText =vd1f74.selStyle;  if (!IS.ie) { if (v3cd46) vd1f74.style.display =""; else vd1f74.style.display ="none"; } } } },  m8d279:function(v27b24,v6e878) { var vf7e49 =v6e878.parentElement; var v42d90 =v27b24.ToRowObject(vf7e49); var v31f16 =v42d90.GetCell(wgGetColNameByCell(v6e878)); var vaf822 =v31f16.Column; var v70354 =vaf822.Table.Grid;  if (vaf822.EditType =="NoEdit") { var v62d56 =v70354.GetString("CommonText/ReadOnlyCell");  if (vaf822.EditInfoText !="") v62d56 +=" " +vaf822.EditInfoText;  v70354.SetStatus1(v62d56); v70354.SetStatusIcon("ReadOnly"); } else { v70354.SetIdle(); if (vf7e49.rowState =="Deleted") { v70354.SetStatus1("","","CommonText/DeletedRowNoEdit"); v70354.SetStatusIcon("ReadOnly"); } else { if (vaf822.EditInfoText !="") v70354.SetStatus1(vaf822.EditInfoText); else { if (v6e878.cellModified) v70354.SetStatus1("","","CommonText/ModifiedCell"); else v70354.SetStatus1("","ready","CommonText/Ready"); }  if (vaf822.EditInfoImage !="") v70354.SetStatusIcon(vaf822.EditInfoImage,true); { if (v6e878.cellModified) v70354.SetStatusIcon("Edit"); } } } }, mac373:function(v67735,va1537) { if (wgIsColumnSetRow(va1537)) { wgeb383.m3b199(v67735,va1537); return; } if (va1537.type =="NewRow") { var v06f43 =va1537.cells; var v5e088 =v67735.Tables[wg4a444.meba49(va1537)]; var v66a35 =null; if (!v5e088.IsRootTable) { var v9e548 =v5e088.GetSubTableById(wg4a444.m4dc24(va1537).subId); v66a35 =ISXml.CreateXmlDocument(); ISXml.LoadXml(v66a35,v9e548.RelNames); } if (va1537.rowValidated) va1537.rowValidated =false; for (var v6a875=0; v6a875<v06f43.length; v6a875++) { if (v06f43[v6a875].type =="Cell") { var v79481 =wgGetColNameByCell(v06f43[v6a875]); if (v79481) wg08d15.mdd536(v67735,v5e088,v79481,v06f43[v6a875],v66a35); } } v66a35 =null; } }, mf3c53:function(vaa690) { var vf2f18; if (vaa690 &&vaa690.type !="NewRow") return; var v85c77 =vaa690.cells; for (var v1f588=0; v1f588<v85c77.length; v1f588++) { if (v85c77[v1f588].type =="NewRowInfoCell") { vf2f18 =v85c77[v1f588]; break; } } if (vaa690.type =="NewRow" &&vf2f18) vf2f18.innerText =vaa690.infoText; }, mdd536:function(v71d4,v24f23,vecf10,vf1e84,vb2962) { if (v24f23) { var v12410 =v24f23.Columns.GetNamedItem(vecf10); var v5be25 =v12410.DefaultValue; var v83691 =v12410.EditType; var vfa358 =v12410.DefaultText; var vdac41 =false; if (vfa358 ==null) vfa358 =""; if (v5be25 =="") v5be25 =" "; if (vfa358 !="" ||v5be25 !=" ") vdac41 =true; if (vb2962) { var va8d3 =vb2962.selectSingleNode("//DataColumn[@name='" +(v12410.ParentKeyName ? v12410.ParentKeyName : vecf10)+"']"); if (va8d3) v5be25 =ISXml.DecodeString(va8d3.text); }  if (v71d4.LayoutSettings.AllowBatchUpdate) { if (v12410.IsAutoIncrement) vfa358 ="(Auto)"; else if (!v24f23.IsRootTable) { var v3d326 =v24f23.Parent.Columns.GetNamedItem(vecf10);  if (v3d326 !=null &&v3d326.IsAutoIncrement) vfa358 ="(Auto)"; } } if (v83691 =="Checkbox") { vf1e84.innerHTML ="<input type=checkbox class='DefChkBox' " +(v5be25.toLowerCase()=="true" ? "checked" : "")+">"; if (v5be25.toLowerCase()=="true") vf1e84.cellValue =true; else vf1e84.cellValue =false; } else if (v83691 =="DropdownList" ||v83691 =="WebComboNET") { if (v5be25 !=" ") { if (vfa358 =="") vfa358 =v5be25; vf1e84.cellValue =v5be25; vf1e84.innerText =vfa358; } else { vf1e84.innerText =v5be25; vf1e84.cellValue =v5be25; } } else { if (vfa358 !="") vf1e84.innerText =vfa358; else vf1e84.innerText =v5be25; if (IS.moz &&v5be25 ==" ") vf1e84.innerHTML ="&nbsp;"; vf1e84.cellValue =v5be25; } vf1e84.cellModified =false; if (!v71d4.LayoutSettings.MarkDefaultValuesAsDirty) vdac41 =false;  if (vdac41) { var vacd90 =vf1e84.parentElement; if (!wgIsRowMarkedEdit(vacd90)) { vacd90.markedEdit =true; setTimeout(function() { wg08d15.m25737(v71d4); },50); } vf1e84.cellModified =true; } } else vf1e84.innerText =" "; }, mc4c94:function(v22151,vff851) { if (v22151.tagName =="INPUT" &&v22151.type =="checkbox" &&!v22151.editHandler) { if (!vff851) return; var v51e59 =vff851.parentElement; if (!v51e59 ||v51e59.tagName !="TR") return; var v48f3 =wg4a444.m4dc24(v51e59); if (!v48f3 ||(v48f3 &&!v48f3.gridId)) return; var vb5495 =ISGetObject(v48f3.gridId); var v8bb87 =vb5495.Tables[v48f3.tblName]; if ((v51e59.type =="NewRow" &&v8bb87.Get("AllowAddNew")=="Yes")||(wgIsRecordRow(v51e59)&&v8bb87.Get("AllowEdit")=="Yes")) { if (v51e59.noEdit) return; if (!vff851.oldCellValue) vff851.oldCellValue =v22151.checked; wg08d15.m79826(vb5495,v22151); } } }, m23116:function(v83640,vec548) { var v6de70 =v83640.ActiveEditCell; var v85261 =false; var vab766 =null; var v7c594 =null; var v43128 =""; var ve9251 =null; var v4b928 =null; if (v83640.IsPreviewMode) { alert("Not supported in Preview mode!"); return; } if (v6de70 &&v6de70.element) { v7c594 =v6de70.element; vab766 =v83640.Tables[v6de70.tblName]; ve9251 =vab766.Columns.GetNamedItem(wgGetColNameByCell(v7c594));  if (v83640.LastSelObj) v4b928 =v83640.LastSelObj.GetRowElement(); else v4b928 =v7c594.parentElement; if (!ve9251) return; if (v7c594.noEdit =="True" ||!wg4a444.m5ec11(ve9251,v7c594)||!wgIsRowEditable(v4b928)) return false; v43128 =ve9251.EditType; if (wgIsFilterRow(v4b928)) { if (ve9251.FilterEditType !="SameAsEditType") v43128 =ve9251.FilterEditType; } else if (wgIsNewRow(v4b928)) { if (ve9251.NewRowEditType !="SameAsEditType") v43128 =ve9251.NewRowEditType; } if (v83640.LastEditObj) { var v85261 =v83640.ExitEditMode(); if (!v85261) return false; } if (!wgIsRowDirty(v4b928)) { if (v4b928.rowValidated) v4b928.rowValidated =false; if (!ISEvent.Raise(v83640.LayoutSettings.ClientSideEvents.OnBeginRowEditing,v83640.Name,vab766.ToRowObject(v4b928))) return; } var v69c31 =false; var v19f97 =false; switch (v43128) { case "CalendarDropdown": v69c31 =true; v19f97 =true; case "CalendarCombo": v69c31 =true; case "TextBox": v85261 =wg08d15.m68f11(v6de70,ve9251,"",vec548,v69c31,v19f97); break; case "WebComboNET": v85261 =wg08d15.mc8456(v6de70,ve9251,"",vec548); break; case "Checkbox": v85261 =wg08d15.mbde46(v6de70,ve9251,"",vec548); break; case "DropdownList": v85261 =wg08d15.m75551(v6de70,ve9251,"",vec548); break; case "MultilineTextbox": v85261 =wg08d15.m0ad55(v6de70,ve9251,"",vec548); break;  case "ResizableTextbox": v85261 =wgc9652.mb8453(v6de70,ve9251,"",vec548);  break; case "Custom": var vb5438 =v83640.CustomEditors[ve9251.CustomEditorName]; v85261 =vb5438.EnterEditMode(v6de70,ve9251,"",vec548); break; } } if (v85261) { v83640.IsInEditMode =true; if (v7c594.parentElement.type =="NewRow" ||wgIsFilterRow(v7c594.parentElement)) { vab766.IsAdding =true; v7c594.oldText =v7c594.innerText; if (v7c594.cellValue) v7c594.oldCellValue =v7c594.cellValue; } else { vab766.IsEditing =true; if (!v7c594.oldText) { if (v43128 =="MultilineTextbox") v7c594.oldText =v7c594.innerHTML; else { v7c594.oldText =v7c594.innerText; if (ve9251.ColumnType =="ImageAndText" &&v7c594.oldText &&v7c594.oldText.substring(0,1)==" ") v7c594.oldText =v7c594.oldText.substring(1); } } if (!v7c594.oldCellValue) { var v05d81 =wgGetUnMask(v83640,ve9251,v7c594); if (typeof (v05d81)!="undefined") { v7c594.oldCellValue =v05d81; } } } v83640.LastEditObj =new wgEditObj(v83640.Name,vab766.Id,v85261,v43128,v7c594); if (!ISEvent.Raise(v83640.LayoutSettings.ClientSideEvents.OnEnterEditMode,v83640.Name,vab766.Id,v83640.LastEditObj)) return; setTimeout(function() { wg08d15.mc0887(v83640); },100); } return v85261; }, m5f286:function(vfb445,va714,v53126,va1218) { var vb5611 =vfb445.ActiveEditCell; var v0f687 =vfb445.LastEditObj; var v35274 =false; var ve2868 =true; var va1f16; var v83989 =true; if (!vb5611) return true; if (va714 ==-1) { if (v0f687 &&v0f687.cellElement) va1f16 =v0f687.cellElement.parentElement; if (!va1f16) va1f16 =vb5611.rowElement; if (va1f16) { var ve5840 =va1f16.type; var v52219 =vfb445.Tables[vb5611.tblName]; if (ve5840 =="NewRow") wg08d15.mac373(vfb445,va1f16); else { if (!ISEvent.Raise(vfb445.LayoutSettings.ClientSideEvents.OnCancelRowEditing,vfb445.Name,v52219.ToRowObject(va1f16))) return; wg08d15.mce13(va1f16); } wg54045.m37715(va1f16,vfb445.GetCurSelImage()); } } else { if (v0f687 &&v0f687.cellElement) { va1f16 =v0f687.cellElement.parentElement; ve2868 =wg08d15.maf456(v0f687); } if (ve2868) { if (!va1f16) va1f16 =vb5611.rowElement; ve2868 =(wgIsRowMarkedEdit(va1f16)&&wgIsRowDirty(va1f16)); if (!ve2868) v35274 =true; } if (ve2868) { var v5aa40 =vfb445.LayoutSettings.NewRowLostFocusAction; var v7fd73 =vfb445.LayoutSettings.RowLostFocusAction; var ve5840 =va1f16.type; var vb6179 =false; var v52219 =vfb445.Tables[vb5611.tblName]; if (!ISEvent.Raise(vfb445.LayoutSettings.ClientSideEvents.OnEndRowEditing,vfb445.Name,v52219.ToRowObject(va1f16))) return;  vfb445.IsExitingEdit =true; if (ve5840 =="NewRow") { if (va714 !=0) { if (v5aa40 =="AlwaysPrompt") v83989 =vb6179 =confirm(vfb445.GetString("MessageBoxText/AddNewRow")); else if (v5aa40 =="AlwaysUpdate") vb6179 =true; } else vb6179 =true; if (vb6179) { v35274 =wg08d15.mefe72(vfb445,va1f16); if (v35274) wg08d15.mddd72(vfb445,v53126,va714 =="0"); } else v35274 =true; } else if (wgIsRecordRow(va1f16)) { if (va714 !=0) { if (v7fd73 =="AlwaysPrompt") v83989 =vb6179 =confirm(vfb445.GetString("MessageBoxText/UpdateRow")); else if (v7fd73 =="AlwaysUpdate") vb6179 =true; } else vb6179 =true; if (vb6179) { v35274 =wg08d15.mefe72(vfb445,va1f16); if (v35274) wg08d15.mb1c43(vfb445); } else { wg08d15.mce13(va1f16); v35274 =true; } } else if (wgIsFilterRow(va1f16)) { if (va714 ==0) { var ve615 =vb5611.element; var v52219 =vfb445.Tables[vb5611.tblName]; if (ISEvent.Raise(vfb445.LayoutSettings.ClientSideEvents.OnColumnFilter,vfb445.Id,v52219)) { wg11c43.m27863(v52219); wg54045.m37715(ve615.parentElement,vfb445.GetCurSelImage()); wg08d15.mf5899(va1f16); wg4a444.mb4941(vfb445.Name,"ColumnFilter",v52219.Id); } } else { if (v0f687) wg08d15.maf456(v0f687,true); wg08d15.mce13(va1f16); v35274 =true; } } vfb445.IsExitingEdit =false; } } return [v35274,v83989,vb6179]; }, mc0887:function(v56b36) { var v8a40 =v56b36.LastEditObj; if (v8a40) { if (v8a40.type =="TextBox") { if (IS.safari) v8a40.element.select(); else v8a40.element.focus(); } else if (v8a40.type =="WebComboNET") { if (IS.safari) v8a40.element.TextObj.select(); else v8a40.element.TextObj.focus(); } } },  EnsureWebComboElementExist: function(v17372,v30b22) { var va3036 =v30b22.FrameObj; if (!va3036.parentElement) { v17372.FrameObj.insertAdjacentElement("beforeEnd",v30b22.FrameObj); } }, macc57:function(vd6577,vd9c78,v5c238,vcf537,ve3768,v47177,vb3a37,v25945) { var v5ef56 =posLib2.getLeftAbs(vd6577.FrameObj); var vd7062 =posLib2.getTopAbs(vd6577.FrameObj); var v49597 =vd6577.LayoutSettings.RowHighlightType; var v17b24; var vf6380; var vfe347; var v85d14;  with (vd9c78.style) { if (v47177) { if (wgIsFilterRow(v5c238.parentElement)) vcf537 -=20; } var v7fb14 =parseInt(vd6577.FrameObj.currentStyle.borderWidth); if (vd6577.FrameObj.style.position =="absolute") v7fb14 =0; if (isNaN(v7fb14)) v7fb14 =0;  if (IS.opera) v7fb14 =0; vf6380 =ISPosLib.getLeft(v5c238)+(vcf537 ? vcf537 : 0)-v5ef56 +vd6577.EditCtlLeftAdj +v7fb14; v17b24 =ISPosLib.getTop(v5c238)+(ve3768 ? ve3768 : 0)-vd7062 +vd6577.EditCtlTopAdj +v7fb14; var vdb219 =vd6577.FrameObj.parentElement; var vfc545 =false;  if (v49597 =="BackgroundOnly" &&(vd9c78.tagName =="INPUT" ||vd9c78.tagName =="TEXTAREA"  ||vb3a37 =="WebComboNET" ||vb3a37 =="WebInputNET" ||vb3a37 =="ResizableTextbox")) vfc545 =true; if (vd6577.PosRelativeTo !=null) vdb219 =vd6577.PosRelativeTo;  if (vfc545) { var v63496 =parseFloat(vd9c78.currentStyle.borderLeftWidth);  if (isNaN(v63496)) v63496 =0;  if (v63496 >0) { vf6380 =vf6380 -v63496 -1 -(!IS.ie ? 1 : 0); v17b24 =v17b24 -v63496 -1 -(!IS.ie ? 1 : 0); } }  if (!vd6577.LayoutSettings.UseRelativePositioning) { if (vdb219 &&(vdb219.tagName =="DIV" &&vdb219.currentStyle.hasLayout  &&vdb219.currentStyle.position !="absolute") ||(vd6577.PosRelativeTo)) { var v5c568 =ISPosLib.getLeft(vdb219); var v8aa44 =ISPosLib.getTop(vdb219);  vf6380 =vf6380 -v5c568; v17b24 =v17b24 -v8aa44; } } else { if (IS.ie) { vf6380 =vf6380 -posLib2.getLeftAbs(vd6577.FrameObj,vd6577); v17b24 =v17b24 -posLib2.getTopAbs(vd6577.FrameObj,vd6577); } else if (IS.safari) { v17b24 =v17b24 -(v5c238.offsetTop -v5c238.parentElement.offsetTop); } } if (vb3a37 =="DropdownList") { var v19391 =v17b24; top ="0px";  visibility ="hidden";  setTimeout(function() { vd9c78.style.top =v19391 +"px"; vd9c78.style.visibility ="visible"; if (vd9c78.style.display !="none") vd9c78.focus(); },1); } var v69488 =vd6577.IsRightToLeft(); position ="absolute"; if (vd9c78.tagName !="TEXTAREA") overflow ="hidden"; if (!v47177) { vfe347 =v5c238.offsetWidth -(vcf537 ? (vcf537 *2): 0)-(v25945 &&vd6577.BuiltInDropDown ? 16 : 0); v85d14 =v5c238.offsetHeight -2; if (wgIsFilterRow(v5c238.parentElement)&&parseInt(vfe347)>36) { vfe347 -=20; if (v69488) vf6380 +=20; }  if (vfc545) { var v63496 =parseFloat(vd9c78.currentStyle.borderLeftWidth);  if (isNaN(v63496)) v63496 =0;  if (v63496 >0) { vfe347 +=(v63496*2)+1; v85d14 +=(v63496*2)+1; } } else { if (IS.moz &&ve3768 ==1) v85d14 -=1; } } display ="";  if (typeof(v17b24)!="undefined") top =v17b24 +"px"; if (typeof(vf6380)!="undefined") left =vf6380 +"px"; if (typeof(vfe347)!="undefined") width =vfe347 +"px"; if (typeof(v85d14)!="undefined") height =v85d14 +"px"; vd9c78.origLeft =posLeft; vd9c78.origTop =posTop; if (zIndex ==0) zIndex =199; } }, m75551:function(vbe147,v61465,v4ff9,v20d28) { var vc8572 =v61465.Name; var v4cc77 =document.getElementById(vbe147.gridId +"_" +vbe147.tblName +"_" +vc8572); var v03f57 =ISGetObject(vbe147.gridId); var v8a064 =vbe147.element; if (v4cc77) { if (v03f57.DefaultStyleMode =="Elegant") { v4cc77.style.fontFamily ="Segoe UI, Tahoma"; v4cc77.style.fontSize ="9pt"; } else { v4cc77.style.fontFamily ="Verdana"; v4cc77.style.fontSize ="8pt"; }  if (v03f57.BindingOperationMode =="ClientBinding" &&v03f57.IsClientBinding("ClientService")) { var vede89 =v61465.ValueList;  if (vede89 !=null &&vede89.IsValid()&&!vede89.DataRetrieved) { v4cc77.desiredValue =v8a064.cellValue; wg4a444.mb4941(v03f57.Id,"ClientService_Select",v61465.ValueList,"ValueList"); } }  wgDispObjGeneric(v03f57,v4cc77,v8a064,0,0,null,"DropdownList"); if (!v4cc77.KBHandlerInit) { if (IS.moz) v4cc77.attachEvent("onkeyup",function() { wg08d15.me7998(v03f57,v4cc77); }); v4cc77.attachEvent("onkeydown",function() { wg08d15.mc832(v03f57); }); v4cc77.attachEvent("onchange",function() { wg08d15.m37644(v03f57,v4cc77); }); v4cc77.KBHandlerInit =true; } v4cc77.value =v8a064.cellValue; if (v20d28) v4cc77.isDirty =true; else v4cc77.isDirty =false; if (v4cc77.style.visibility =="visible") v4cc77.focus(); } return v4cc77; }, me7998:function(v20566,v18675) { wg08d15.m37644(v20566,v18675); }, m37644:function(va0138,vfd714) { wg08d15.m25737(va0138); vfd714.isDirty =true; var v4eb2 =vfd714.parentElement; v4eb2.cellModified =true; v4eb2.cellValue =vfd714.value; }, mb0a90:function(vd8657,vf0a23) { var va5c38 =ISGetObject(vd8657); for (var vdc414=0; vdc414<va5c38.WebCombos.length; vdc414++) { var v00913 =va5c38.WebCombos[vdc414]; if (v00913.Id.indexOf(vf0a23)>-1) return v00913.Id; } return ""; }, me0c83:function(v9a518,v9f559,v97254,vffe71) { var v6cf93 =wg08d15.mb0a90(v9a518.gridId,v9f559.WebComboID); var vf0893 =ISGetObject(v6cf93); if (vf0893) { var v8ab98 =vf0893.FrameObj; var vbad76 =v9a518.element; var vbdd77 =vbad76.parentElement.type =="NewRow"; var v3a732 =ISGetObject(v9a518.gridId); var vd7444 =v3a732.Tables[v9a518.tblName]; var v94545 =vffe71;  wg4a444.mc4f43(vbad76); wgDispObjGeneric(v3a732,v8ab98,vbad76,(wg08d15.m2fb59(v3a732,vf0893)? 1 : 0),1,null,"WebComboNET"); vf0893.DoResize(); vf0893.Grid =v3a732; with (vf0893.TextObj) { style.paddingLeft ="1px"; style.paddingTop ="1px"; value =(vbad76.innerText ==" " ? "" : vbad76.innerText);  if ((v9f559.ColumnType =="Custom" ||v9f559.ColumnType =="Image")&&value =="") value =vbad76.cellValue; if (v9f559.ColumnType =="ImageAndText" &&value.substring(0,1)==" ") value =value.substring(1);  if (v94545) vf0893.TextObj.isDirty =true; else vf0893.TextObj.isDirty =false; if (!vf0893.KBHandlerInit) { attachEvent("onkeydown",function() { wg08d15.mc832(v3a732); }); attachEvent("onselectstart",function() { event.cancelBubble =true; }); attachEvent("onpaste",function() { wg08d15.mfa254(v3a732); }); if (vf0893.LayoutSettings.ClientSideEvents.OnAfterItemSelected =="") vf0893.LayoutSettings.ClientSideEvents.OnAfterItemSelected ="WGUI.WCIS('" +v3a732.Name +"', '" +vf0893.Name +"')"; else vf0893.LayoutSettings.ClientSideEvents.OnAfterItemSelected +=";" +"WGUI.WCIS('" +v3a732.Name +"', '" +vf0893.Name +"')";  if (vf0893.MajorVersion =="4.0") vf0893.LayoutSettings.ClientSideEvents.OnItemChecked ="WGUI.WCIC('" +v3a732.Name +"', '" +vf0893.Name +"')"; vf0893.KBHandlerInit =true; } }  vf0893.LastSelectedIndex =vf0893.SelectedIndex =-1; vf0893.IsDirty =true; vf0893.NeedClearList =true; if (vf0893.LinkSettings.Enabled) { if (vf0893.LinkSettings.ParentWebCombo ==null) vf0893.LinkSettings.ResolveParentWebCombo(); var v73919 =null; if (vf0893.LinkSettings.ParentWebCombo !=null) { for (var v6bc29=0; v6bc29<vf0893.LinkSettings.ParentWebCombo.length; v6bc29++) { if (vf0893.LinkSettings.ParentWebCombo[v6bc29].Id ==vf0893.LinkSettings.ParentWebComboID) { v73919 =vf0893.LinkSettings.ParentWebCombo[v6bc29]; break; } } } if (v73919 !=null) { var v8b227 =null; for (var v6bc29=0; v6bc29<vd7444.Columns.length; v6bc29++) { var vf5685 =vd7444.Columns[v6bc29]; if (vf5685.Visible &&vf5685.EditType =="WebComboNET" &&vf5685.WebComboID ==vf0893.LinkSettings.ResolvedParentWebComboID) { v8b227 =vf5685; break; } } if (v8b227 ==null) { alert("The ParentWebCombo '" +vf0893.LinkSettings.ParentWebComboID +"' which this WebCombo is linked to does not bound to any Column in this Grid."); } else { var v91624 =v9a518.rowElement; v73919.Text =wgGetCellByName(v91624,vf5685.Name).innerText; v73919.Value =wgGetCellByName(v91624,vf5685.Name).cellValue; v73919.UpdateState(); vf0893.RequireLinkRefresh =true; } } } if (!vf0893.IsDataBound &&vf0893.UnboundDataInitialized) { try { var v97b37 =vf0893.GetTData(); if (v97b37) { for (var v6bc29=0; v6bc29<v97b37.rows.length; v6bc29++) { vf0893.UnhighlightRow(v97b37.rows[v6bc29]); } } } catch (e) { } } if (vf0893.MultipleSelectionSettings.Enabled) { vf0893.SetMultipleValues(vbad76.innerText,(vbad76.cellValue ? vbad76.cellValue : vbad76.innerText)); vf0893.RefreshValueItems(); }  if (vbad76.cellValue) { if (!vf0893.MultipleSelectionSettings.Enabled) { vf0893.Value =vbad76.cellValue; var va9226 =vbad76.innerText; if (v9f559.ColumnType =="ImageAndText") { if (va9226.substring(0,1)==" ") va9226 =va9226.substring(1);  if (typeof(vf0893.Value)=="string" &&vf0893.Value.substring(0,1)==" ") vf0893.Value =vf0893.Value.substring(1); }  vf0893.Text =va9226; } if (!vf0893.IsDataBound &&vf0893.AllowAdd) { if (!vf0893.UnboundDataInitialized) vf0893.InitializeUnboundMode(); vf0893.SearchUnbound(); } } else { if (vbad76.innerText !="" &&vbad76.innerText !=" " &&escape(vbad76.innerText)!="%A0") { var va9226 =vbad76.innerText; if (v9f559.ColumnType =="ImageAndText" &&va9226.substring(0,1)==" ") va9226 =va9226.substring(1); vf0893.Text =va9226; vf0893.Value =va9226; if (!vf0893.IsDataBound &&vf0893.AllowAdd) { if (!vf0893.UnboundDataInitialized) vf0893.InitializeUnboundMode(); vf0893.SearchUnbound(); } } else { vf0893.Value =null; vf0893.Text ="";  if (vf0893.MultipleSelectionSettings.Enabled) { vf0893.SetMultipleValues("",""); vf0893.RefreshValueItems(); } } } v9f559.GetGrid().PreparePostBackData(); return vf0893; } else { alert("Can't find WebCombo.NET instance with ID '" +v6cf93 +"'"); return false; } },  m2fb59:function(v2b773,v43c38) { return (v43c38.UseDefaultStyle &&v2b773.UseDefaultStyle &&v2b773.DefaultStyleMode =="Elegant"); },  m94e11:function(vca493,v3e648) { if (wg08d15.m2fb59(vca493,v3e648)) { var v68993 =v3e648.FrameObj.style; var v4ef48 =v3e648.TextObj.style;  v3e648.LayoutSettings.EnableAnimation =false; v68993.border ="2px #FFBD69 solid"; v68993.paddingLeft ="1px"; v68993.paddingTop="0px"; v68993.backgroundColor ="white"; v4ef48.fontSize ="9pt";  if (v3e648.SearchObj) v3e648.SearchObj.style.borderLeftWidth ="0px"; } }, mc8456:function(v77143,va1525,vd8510,va2765) { var v66793 =va1525.WebComboID; var v3d448 =wcGetComboById(v66793); if (v3d448) { if (v3d448.MajorVersion &&(v3d448.MajorVersion =="3.0" ||v3d448.MajorVersion =="4.0")) { return wg08d15.me0c83(v77143,va1525,vd8510,va2765) } wcFrame =v3d448.FrameObj; var v7d16 =v77143.element; var v9bd36 =v7d16.parentElement.type =="NewRow"; var v30464 =ISGetObject(v77143.gridId); wgDispObjGeneric(v30464,wcFrame,v7d16,0,1,null,"WebComboNET"); wcres(v66793); with (v3d448.TextObj) { style.paddingLeft ="1px"; style.paddingTop ="1px"; value =(v7d16.innerText ==" " ? "" : v7d16.innerText); if (va2765) va2765 =true; else va2765 =false; if (!v3d448.KBHandlerInit) { attachEvent("onkeydown",function() { wg08d15.mc832(v30464); }); attachEvent("onselectstart",function() { event.cancelBubble =true; }); attachEvent("onpaste",function() { wg08d15.mfa254(v30464); }); if (ISXml.GetNodeText(v3d448.XmlObj,"//events/onafteritemselected")=="") sxt(v3d448,"//events/onafteritemselected","WGUI.WCIS('" +v30464.Name +"', '" +v3d448.Name +"')"); else sxt(v3d448,"//events/onafteritemselected",ISXml.GetNodeText(v3d448.XmlObj,"//events/onafteritemselected")+";" +"WGUI.WCIS('" +v30464.Name +"', '" +v3d448.Name +"')"); v3d448.KBHandlerInit =true; } } v3d448.LastSelectedIndex =v3d448.SelectedIndex =-1; v3d448.IsDirty =true; v3d448.NeedClearList =true; if (!v3d448.IsDataBound &&v3d448.UnboundDataInitialized) { try { var ve2d97 =v3d448.GetTData(); if (ve2d97) { for (var v63724=0; v63724<ve2d97.rows.length; v63724++) { wcrcsel(v66793,ve2d97.rows[v63724]); } } } catch (e) { } } if (v7d16.cellValue) { v3d448.Value =v7d16.cellValue; var vfe698 =v7d16.innerText; if (va1525.ColumnType =="ImageAndText" &&vfe698.substring(0,1)==" ") vfe698 =vfe698.substring(1); v3d448.Text =vfe698; if (!v3d448.IsDataBound &&v3d448.AllowAdd) { if (!v3d448.UnboundDataInitialized) { if (typeof (wcInitUnbound)=="function") wcInitUnbound(v66793); } wcuseek(v66793); } } else { if (v7d16.innerText !="" &&v7d16.innerText !=" ") { v3d448.Value =v7d16.innerText; var vfe698 =v7d16.innerText; if (va1525.ColumnType =="ImageAndText" &&vfe698.substring(0,1)==" ") vfe698 =vfe698.substring(1); v3d448.Text =vfe698; if (!v3d448.IsDataBound &&v3d448.AllowAdd) { if (!v3d448.UnboundDataInitialized) { if (typeof (wcInitUnbound)=="function") wcInitUnbound(v66793); } wcuseek(v66793); } } else { v3d448.Value =null; v3d448.Text =""; } } va1525.GetGrid().PreparePostBackData(); return v3d448; } else { alert("Can't find WebCombo.NET instance with ID '" +v66793 +"'"); return false; } }, mce286:function(v4f898,vdb64) { var v7f215 =ISGetObject(v4f898); var v67364 =wcGetComboById(vdb64); wg08d15.m25737(v7f215); v67364.TextObj.isDirty =true; },  m6f973:function(v1b034,vc3a73) { var v76934 =ISGetObject(v1b034); var v3fa73 =wcGetComboById(vc3a73); wg08d15.m25737(v76934); v3fa73.TextObj.isDirty =true; }, m68f11:function(v18064,v4a441,v1ce51,v5a878,v0da95,vbfb59) { var v69d34 =v18064.element; var ved773 =ISGetObject(v18064.gridId); if (!ved773.TBObj) { var vceb14 =document.getElementById(v18064.gridId +"_TB"); vceb14.name =vceb14.id; vceb14.autocomplete ="off"; vceb14.attachEvent("onfocus",wg08d15.m4311); vceb14.onselectstart =function() { event.cancelBubble =true; return true; }; vceb14.onkeydown =function() { wg08d15.mc832(ved773); };  if (IS.opera) { vceb14.attachEvent("onkeypress",function() { if (event.keyCode ==13) { event.cancelBubble =true; event.returnValue =false; } }); } vceb14.attachEvent("onpaste",function() { wg08d15.mfa254(ved773); });  vceb14.attachEvent("oncut",function() { wg08d15.mfa254(ved773); });  ved773.TBObj =vceb14; } var vcb110 =ved773.TBObj; var v51951 =null; vcb110.readOnly =(vbfb59); vcb110.className =ved773.LayoutSettings.TextBoxClass; if (v0da95) { if (!ved773.CalDDObj) { var v44036 =document.getElementById(ved773.Name +"_CalDD"); if (ved773.CalDDImg) v44036.src =ved773.ResolveImagePathEx(ved773.CalDDImg);  else if (wg_Global.CalDDImg !="CalendarDD.gif") v44036.src =ved773.ResolveImagePathEx(wg_Global.CalDDImg); ved773.CalDDObj =v44036; } ved773.CalDDObj.DtObj =vcb110; ved773.CalDDObj.DtFormat =v4a441.DataFormatString; v51951 =ved773.CalDDObj; } wgDispObjGeneric(ved773,vcb110,v69d34,1,1,null,null,v51951); if (v0da95) { wgDispObjGeneric(ved773,v51951,v69d34,v69d34.offsetWidth  -(ved773.BuiltInDropDown ? 16 : 0) +(ved773.DefaultStyleMode =="Elegant" ? 1 : 0) ,2,true); v51951.style.cursor ="hand"; } if (v4a441.TextboxMaxlength) vcb110.maxLength =v4a441.TextboxMaxlength; else vcb110.maxLength =2147483647; var v69f36 =(wg4a444.mc0c81(v69d34.innerText)? "" : wgGetUnMask(ved773,v4a441,v69d34,true)); if (v4a441.ColumnType =="ImageAndText" &&wg4a444.mc0c81(v69f36.substring(0,1))) v69f36 =v69f36.substring(1); vcb110.value =v69f36; vcb110.style.textAlign =v69d34.currentStyle.textAlign; if (v5a878) vcb110.isDirty =true; else vcb110.isDirty =false; if (IS.ie) vcb110.focus(); return vcb110; },  me0147:function(vb2675) { var v2fd3 =wg_Global.CalFrObj;  if (!v2fd3) { var vbe560 =vb2675.ResolveScriptPath(vb2675.LayoutSettings.ScriptDirectory,wg_Global.CalFile); v2fd3 =document.createElement("IFRAME"); v2fd3.src =vbe560; v2fd3.id ="ISDefCal"; v2fd3.style.cssText ="position:absolute;top:-100px;left:-100px;height:10px;width:10px"; document.body.appendChild(v2fd3); v2fd3 =document.getElementById("ISDefCal"); wg_Global.CalFrObj =v2fd3; } }, m90087:function(vfc09,v16e17) { var vcb975 =wg_Global.CalFrObj; var vb6a99 =wg_Global.CalPopObj; if (!vcb975 &&!vb6a99 &&!IsGecko30()) { var vab022 =ISGetObject(v16e17); var v73485 =vab022.ResolveScriptPath(vab022.LayoutSettings.ScriptDirectory,wg_Global.CalFile); if (IS.ie) vcb975 =document.createElement("<IFRAME id='ISDefCal' src='" +v73485 +"'></IFRAME>"); else { vcb975 =document.createElement("IFRAME"); vcb975.src =v73485; vcb975.id ="ISDefCal"; } vcb975.style.cssText ="position:absolute;top:-100px;left:-100px;height:10px;width:10px"; document.body.appendChild(vcb975); vcb975 =document.getElementById("ISDefCal"); wg_Global.CalFrObj =vcb975; setTimeout("WGUI.TGCALDD(null, '" +v16e17 +"')",100); return; } if (!vb6a99) { var v0d739 =""; if (IS.ie) { try { v0d739 =vcb975.contentWindow.document.body.parentElement.outerHTML; } catch (e) { setTimeout("wg08d15.m90087(null, '" +v16e17 +"')",100); return; } } else { try { v0d739 =vcb975.contentWindow.document.firstChild.innerHTML;  if (v0d739 =="" ||v0d739 ==null ||typeof(v0d739)=="undefined") { setTimeout("wg08d15.m90087(null, '" +v16e17 +"')",100); return; }  v0d739 ="<html>" +v0d739 +"</html>"; v0d739 =v0d739.replace(new RegExp("parent.","g"),""); } catch (e) { setTimeout("wg08d15.m90087(null, '" +v16e17 +"')",100); return; } } vb6a99 =window.createPopup(); var v65674 =vb6a99.document; v65674.estWidth =vcb975.document.body.scrollWidth; v65674.estHeight =vcb975.document.body.scrollHeight +vcb975.document.body.offsetHeight; v65674.open("text/html","replace"); v65674.write(v0d739); v65674.close(); document.getElementById("ISDefCal").removeNode(true); vcb975 =wg_Global.CalFrObj =null; wg_Global.CalPopObj =vb6a99; setTimeout("WGUI.TGCALDD(null, '" +v16e17 +"')",100); return; } else { if (IsGecko30()) { var v23949 =vb6a99.document.getElementById("cbYear");  if (!v23949) { wg_Global.CalPopObj =null; setTimeout("wg08d15.m90087(null, '" +v16e17 +"')",100); return; } } } var v65674 =vb6a99.document; var vab022 =ISGetObject(v16e17); var v00885 =vab022.CalDDObj.DtObj; if (!isCAL.isCalLoaded) loadDatePicker(v65674,vab022); setObject(v00885,vab022); isCAL.curFormat =vab022.CalDDObj.DtFormat; var vcc982 =new Date(); if (v00885.value !="") { var v7d186 =new ISClientData(null,"datetime",isCAL.curFormat); v7d186.NewValue =v00885.value; vab022.ValEngine.Validate(v7d186,vab022.CultureInfo); if (v7d186.IsValid) { vcc982 =new Date(v7d186.DateData.Year,v7d186.DateData.Month,v7d186.DateData.Day); } } setDate(vcc982); vb6a99.show(ISPosLib.getScreenLeft(v00885),ISPosLib.getScreenTop(v00885)+v00885.offsetHeight,170,147 +isCAL.adjHeight,null,true); }, m0ad55:function(v42019,v2f175,vbd545,v79241) { var v89880 =v42019.element; var v9d256 =ISGetObject(v42019.gridId); if (!v9d256.TBMLObj) { var v6e311 =document.getElementById(v42019.gridId +"_TBML"); v6e311.name =v6e311.id; v6e311.attachEvent("onfocus",wg08d15.m4311); v6e311.onselectstart =function() { event.cancelBubble =true; return true; }; v6e311.onkeydown =function() { wg08d15.mc832(v9d256); }; v6e311.attachEvent("onpaste",function() { wg08d15.mfa254(v9d256); }); if (IsGecko30()) { v6e311.style.overflowX ="hidden"; } v9d256.TBMLObj =v6e311; } var v55417 =v9d256.TBMLObj; v55417.className =v9d256.LayoutSettings.TextBoxClass; wgDispObjGeneric(v9d256,v55417,v89880,1,1); if (v2f175.TextboxMaxlength) v55417.maxLength =v2f175.TextboxMaxlength; if (IsGecko30()) { if (ISPosLib.getHeight(v55417)<40) { v55417.style.height ="40px"; } }  v55417.value =(v89880.innerText ==" " ? "" : v89880.innerText);  if (IS.moz) v55417.style.overflowY ="scroll"; if (v79241) v55417.isDirty =true; else v55417.isDirty =false; v55417.focus(); return v55417; },  mbde46:function(va5111,v27723,vfe549,v03486) { var v66155 =va5111.element; var vaf244 =wg08d15.maa734(v66155); var v14d63 =ISGetObject(va5111.gridId); wg08d15.m79826(v14d63,vaf244); if (v03486) vaf244.isDirty =true; else vaf244.isDirty =false; vaf244.focus(); return vaf244; }, maa734:function(v06b66) { var v62530 =v06b66.parentElement; if (wgIsFilterRow(v62530)) return v06b66.childNodes[0].childNodes[0]; else return v06b66.childNodes[0]; }, m79826:function(v83766,vfde3) { if (!vfde3.editHandler) { vfde3.editHandler =true; vfde3.onkeydown =function() { wg08d15.mc832(v83766); }; vfde3.onclick =function() { wg08d15.m3c76(v83766,vfde3); }; } }, m3c76:function(ve8669,v50352) { wg08d15.m25737(ve8669); v50352.isDirty =true; var v40050 =wg4a444.mc2986(v50352); var vf5143 =wg4a444.m4dc24(v40050.parentElement); v40050.cellModified =true; v40050.cellValue =v50352.checked; if (!ISEvent.Raise(ve8669.LayoutSettings.ClientSideEvents.OnCheckBoxClick,ve8669.Name,vf5143.tblName,wgGetColNameByCell(v40050),v50352.checked)) return; }, m4311:function() { var v5355 =event.srcElement; try { v5355.select(); } catch (e) { } },  md6f1:function(vfb55,v22222,vf9c68) { if (vfb55.TreatMarkupAsLiteralText) { v22222 =v22222.replace(/[<]/g,"&lt;"); v22222 =v22222.replace(/[>]/g,"&gt;"); } else v22222 =_FixAmpChar(v22222);  if (vf9c68) v22222 =v22222.replace(/[\n]/g,"<br />");  return v22222; }, maf456:function(v26a91,v17023) { if (!v26a91) return; var vf0f25 =v26a91.element; var v5c731 =v26a91.cellElement; var v00335 =v26a91.type; var vd3a74 =ISGetObject(v26a91.gridId); var vc7068 =""; var v56c72 =""; var v4f518 =true; var vfe650 =true; var v26888 =null; var v34043 =false; if (!ISEvent.Raise(vd3a74.LayoutSettings.ClientSideEvents.OnExitEditMode,vd3a74.Name,v26a91.tblName,vd3a74.LastEditObj)) return; var v7e761 =v5c731.parentElement; var v83423 =vd3a74.Tables[v26a91.tblName]; var v26888 =v83423.GetColumn(wgGetColNameByCell(v5c731)); var v30491 =false; if (v00335 =="WebComboNET") { var vaf394 =ISGetObject(v26888.WebComboID);  vf0f25.FrameObj.style.display ="none"; if (vf0f25.AllowAdd) { if (vf0f25.Text =="" ||vf0f25.Text ==null ||vf0f25.Text ==" " ||vf0f25.SelectedIndex ==-1) vf0f25.Text =vf0f25.TextObj.value; if (vf0f25.Value =="" ||vf0f25.Value ==null ||vf0f25.Value ==" " ||vf0f25.SelectedIndex ==-1) vf0f25.Value =vf0f25.Text; } if (vaf394.MultipleSelectionSettings.Enabled) { vc7068 =vaf394.GetMultipleValuesText(); v56c72 =vaf394.GetMultipleValuesValue(); } else { vc7068 =(vf0f25.Text ==null ? "" : vf0f25.Text); v56c72 =(vf0f25.Value ==null ? "" : vf0f25.Value); }  if (vf0f25.TextObj.isDirty ||(v5c731.innerText !=vf0f25.Text)) { v5c731.cellModified =true; v34043 =true; }  vaf394.IsTextObjFocused =false; vaf394.LastEventType ="";  } else if (v00335 =="Checkbox") { vfe650 =false; if (!v17023) { v5c731.cellValue =wg08d15.maa734(v5c731).checked; if (wgIsFilterRow(v7e761)) wg11c43.mcd619(v5c731.childNodes[0]); } else { v5c731.cellValue =v5c731.oldCellValue; wg08d15.maa734(v5c731).checked =v5c731.cellValue; } } else if (v00335 =="Custom") { var vdce45 =vd3a74.CustomEditors[v26888.CustomEditorName]; v4f518 =vdce45.ImplementationObject.OnExitEditMode(v17023); vc7068 =vdce45.ImplementationObject.GetText(); v56c72 =vdce45.ImplementationObject.GetValue(); if (typeof (vdce45.ImplementationObject.ShouldProcessExitEditModeDefaultBehavior)=="function") vfe650 =vdce45.ImplementationObject.ShouldProcessExitEditModeDefaultBehavior(); if (typeof (vdce45.ImplementationObject.GetContentMode)=="function") v5c731.contentMode =vdce45.ImplementationObject.GetContentMode(); } else { if (vf0f25.style.display !="none") vf0f25.style.display ="none"; if (v00335 =="CalendarDropdown" ||v00335 =="CalendarCombo") { if (vd3a74.CalDDObj) vd3a74.CalDDObj.style.display ="none"; } if (v00335 =="TextBox" ||v00335 =="MultilineTextbox" ||v00335 =="CalendarCombo" ||v00335 =="CalendarDropdown") { if (vf0f25.isDirty) { vc7068 =v56c72 =(vf0f25.value ==null ? "" : vf0f25.value); if (vc7068 !="") { if (v00335 =="MultilineTextbox") v30491 =true; else { var v0ab26 =wgGetMask(vd3a74,v26a91,vc7068,null,null,true);  if (v0ab26 instanceof Array) { if (v0ab26[0]) vc7068 =v0ab26[1]; else { vc7068 =v0ab26[1]; v56c72 =v0ab26[2]; } } else vc7068 =v0ab26; } }  v5c731.cellModified =true; } } else if (v00335 =="ResizableTextbox") { vc7068 =v56c72 =(vf0f25.children[0].value ==null ? "" : vf0f25.children[0].value);  if (vc7068 !="") vc7068 =wgGetMask(vd3a74,v26a91,vc7068);  if (v26888.AllowMultiLine) v30491 =true;  if (vf0f25.children[0].isDirty) { v5c731.cellModified =true; v34043 =true; } } else { v56c72 =vf0f25.value; try { vc7068 =vf0f25.options[vf0f25.selectedIndex].text; } catch (e) { vc7068 =""; }  if (vf0f25.isDirty) v5c731.cellModified =true; } } var va7398 =v5c731.innerHTML.toUpperCase().indexOf("NOBR")>0; var vf1950 =wg54045.m52d30(v5c731); var v9f72 =true; if (vf1950) va7398 =vf1950.innerHTML.toUpperCase().indexOf("NOBR")>0;  if ((!vf0f25.isDirty &&!v34043)&&vc7068 =="") v9f72 =false; if (vfe650 &&(v00335 =="Custom" ||(v5c731.cellModified &&v9f72))) { var v5b731 =""; var v83423 =vd3a74.Tables[v26a91.tblName]; var v26888 =v83423.GetColumn(wgGetColNameByCell(v5c731)); if (!v17023) { if (v26888.ColumnType =="ImageAndText" &&wgIsRecordRow(v7e761)) { try { v5b731 =v5c731.childNodes[0].childNodes[0].outerHTML; } catch (e) { } }  var vf6a35 =(va7398 ? "<NOBR>" : "")+v5b731 +(vc7068 =="" ? "&nbsp;" : wg08d15.md6f1(v26888,vc7068,v30491))+(va7398 ? "</NOBR>" : ""); if (vf1950) vf1950.innerHTML =vf6a35; else v5c731.innerHTML =vf6a35; if (!IS.ie &&wgIsFilterRow(v7e761)) wga4d9.m7f537(v5c731,v5c731.offsetWidth); v5c731.cellValue =v56c72; var v83423 =vd3a74.Tables[v26a91.tblName]; v26888 =v83423.GetColumn(wgGetColNameByCell(v5c731)); if (v56c72 !="" &&v00335 =="TextBox") { v56c72 =wgGetUnMask(vd3a74,v26888,v5c731); v5c731.cellValue =v56c72; } if (vf0f25.isDirty) v5c731.cellModified =true; if (wgIsFilterRow(v7e761)) wg11c43.mcd619(v5c731.childNodes[0]); else { var v82120 =v83423.Formulas; for (var vefc97=0; vefc97<v82120.length; vefc97++) { if (v82120[vefc97].IsCellAccounted(v5c731)) { v82120[vefc97].ProcessResult(v5c731.parentElement,v5c731); } } } } else { if (v26888.ColumnType =="ImageAndText" &&wgIsRecordRow(v7e761)) { try { v5b731 =v5c731.childNodes[0].childNodes[0].outerHTML; } catch (e) { } } if (v5c731.oldText) { var vf6a35 =(va7398 ? "<NOBR>" : "")+v5b731 +(v5c731.oldText =="" ||v5c731.oldText ==" " ? "&nbsp;" : v5c731.oldText)+(va7398 ? "</NOBR>" : ""); if (!vf1950) v5c731.innerHTML =vf6a35; else vf1950.innerHTML =vf6a35; } if (v5c731.cellValue) v5c731.cellValue =v5c731.oldCellValue; }  if (vd3a74.IsClientBinding()||vd3a74.IsClientBinding("ClientDataSource")) { var v7fc88 =v83423.ToRowObject(v7e761); var v5f540 =v7fc88.GetCell(v26888.Name);  v5f540.Setup(v5f540.GetElement()); } } if (IS.moz ||IS.safari) wga4d9.m8d631(vd3a74,v5c731);  if (!wgIsRowMarkedEdit(v7e761)&&v5c731.cellModified) v5c731.cellModified =false; ISEvent.Raise(vd3a74.LayoutSettings.ClientSideEvents.OnAfterExitEditMode,vd3a74.Name,v26a91.tblName,vd3a74.LastEditObj);  vd3a74.LastEditObj =null; vd3a74.IsInEditMode =false; return v4f518; }, mce13:function(v38e87) { var v9de62 =wg4a444.m4dc24(v38e87); var v8b762 =ISGetObject(v9de62.gridId); var v42f35 =v8b762.Tables[v9de62.tblName]; var v12226 =new Array(); if (wgIsColumnSetRow(v38e87)) v12226 =wgGetColumnSetRows(v38e87); else v12226[0] =v38e87; for (var veab65=0; veab65<v12226.length; veab65++) { var vf9456 =v12226[veab65].cells; for (var v5a149=0; v5a149<vf9456.length; v5a149++) { var v5c982 =vf9456[v5a149]; if (v5c982.type =="Cell" ||v5c982.type =="FilterColumn") { if (v5c982.cellModified) { var v1e288 =v42f35.GetColumn(wgGetColNameByCell(v5c982)); if (v1e288.EditType =="Checkbox" ||v1e288.FilterEditType =="Checkbox") { v5c982.cellValue =v5c982.oldCellValue; wg08d15.maa734(v5c982).checked =v5c982.cellValue; } else { var vf7527 =v5c982.innerHTML.toUpperCase().indexOf("NOBR")>0; var v38a92 =wg54045.m52d30(v5c982); var v73a88 =v5c982.oldText; var v9ac58 =""; var vee323 =true; if (wgIsFilterRow(v12226[veab65])) { v73a88 =v5c982.childNodes[0].getAttribute("value"); if (v73a88 =="") { var ve4042 =v42f35.FilteredColumns.GetNamedItem(v1e288.Name); if (ve4042) v42f35.FilteredColumns.Remove(ve4042); } }  if (v1e288.ColumnType =="Custom") { if ((v73a88 =="" ||v73a88 ==" ")&&v5c982.innerHTML.toLowerCase().indexOf("<img")>-1) vee323 =false; } if (vee323) { if (v38a92) vf7527 =v38a92.innerHTML.toUpperCase().indexOf("NOBR")>0; if (v1e288.ColumnType =="ImageAndText" &&wgIsRecordRow(v38e87)) { try { v9ac58 =v5c982.childNodes[0].childNodes[0].outerHTML; } catch (e) { } } var vc5334 =(vf7527 ? "<NOBR>" : "")+v9ac58 +((v73a88 =="" ||v73a88 ==" ")? "&nbsp;" : v73a88)+(vf7527 ? "</NOBR>" : ""); if (v38a92) v38a92.innerHTML =vc5334; else v5c982.innerHTML =vc5334; if (typeof(v5c982.cellValue)!="undefined") v5c982.cellValue =v5c982.oldCellValue; if (wgIsFilterRow(v12226[veab65])&&!IS.ie) wga4d9.m7f537(v5c982,v5c982.offsetWidth); } } }  v5c982.cellModified =false; } } }  if (v8b762.LayoutSettings.VerboseEditingInformation) { if (v8b762.LayoutSettings.StatusBarVisible &&!v8b762.IsStatusLocked) { var v48b14 =document.getElementById("tdStatIcon_" +v8b762.Name).childNodes[0];  if (v48b14.src.indexOf(v8b762.LayoutSettings.ImageSettings.EditImage)>-1) v48b14.style.visibility ="hidden"; } }  if (v8b762.LayoutSettings.AllowBatchUpdate) { if (v38e87.rowState) wg54045.mee231(v38e87,v38e87.rowState +"RowIndicator"); } if (v38e87.rowValidated) v38e87.rowValidated =false;  v8b762.ResetStatus(); }, mf5899:function(v61598,v58e86) { var v66723 =wg4a444.m4dc24(v61598); var v74298 =ISGetObject(v66723.gridId); var v7de10 =v61598.cells;  v61598.markedEdit =false;  for (var v63562=0; v63562<v7de10.length; v63562++) { var vcd852 =v7de10[v63562];  if (vcd852.type =="Cell") { if (vcd852.cellModified) vcd852.cellModified =false; } } if (v74298.LayoutSettings.VerboseEditingInformation) { if (v74298.LayoutSettings.StatusBarVisible &&!v74298.IsStatusLocked) { var vb794 =document.getElementById("tdStatIcon_" +v74298.Name).childNodes[0]; if (vb794.src.indexOf(v74298.LayoutSettings.ImageSettings.EditImage)>-1) vb794.style.visibility ="hidden"; } } var vb794 =v74298.ResolveImagePathEx(v74298.LayoutSettings.ImageSettings.CurrentRowImage); wg54045.m37715(v61598,vb794);  v74298.ResetStatus(); }, mddd72:function(vabc17,v32f96,v3cc29) { var v97381 =vabc17.ActiveEditCell; if (wg08d15.m1f826(vabc17)) { if (!v3cc29) { wg08d15.mac373(vabc17,v97381.rowElement); wg54045.m37715(v97381.rowElement,vabc17.GetCurSelImage()); } if (v32f96) wg08d15.mbdc89(v97381.rowElement); wg08d15.m66983(vabc17); } }, mb1c43:function(v99437) { var v30237 =v99437.ActiveEditCell; if (wg08d15.mf9f54(v99437)) { } }, m66983:function(v06c92,vd6e85) { var v4a137 =v06c92.ActiveEditCell; if (v4a137) { if (v06c92.LastEditObj) return; if (document.activeElement ==v4a137.element ||!v06c92.HasFocus()) return; v4a137.element.setActive(); if (!vd6e85) setTimeout(function() { wg08d15.m66983(v06c92,true); },200); } else { var v3945 =v06c92.LastSelObj; if (v3945 &&v3945.element) { var v44b96 =wgGetCellByPosition(v3945.element,0); if (v44b96 &&v06c92.HasFocus()) v44b96.setActive(); } } }, mfa254:function(v72d28) { wg08d15.m25737(v72d28); event.srcElement.isDirty =true; }, mc832:function(v98797,vd3841) { var vd6628 =0; var v8af54 =false; var v0870 =false; vd6628 =event.keyCode; if (!ISEvent.Raise(v98797.LayoutSettings.ClientSideEvents.OnEditKeyDown,v98797.Name,vd6628)) return; vd6628 =event.keyCode;  if (vd6628 ==9) { var vde295 =v98797.ActiveEditCell; var vdcb18 =vde295.element; var v03f44 =true; if (!event.shiftKey &&vdcb18 ==wgGetLastEditableCell(vde295.rowElement)) { v03f44 =wg08d15.m5f286(v98797,0,true,vd6628)[0]; if (vde295.rowElement.type =="NewRow" ||v98797.IsInProgress) v03f44 =false; } if (v03f44) { var v8e946 =null; if (IS.ie) { v8e946 =document.createEventObject(); v8e946.keyCode =vd6628; v8e946._srcElement =vdcb18; v8e946.shiftKey =event.shiftKey; v8e946.ctrlKey =event.ctrlKey; vdcb18.fireEvent("onkeydown",v8e946); } else { v8e946 =new Object(); v8e946.srcElement =vdcb18; v8e946.shiftKey =event.shiftKey; v8e946.ctrlKey =event.ctrlKey; v8e946.keyCode =vd6628; wg54045.mda09(v8e946); } if (!event.ctrlKey) v98797.ActivateEditMode(); if (IS.moz) { setTimeout(function() { if (!v98797.LastEditObj) v98797.ActivateEditMode(); },50); } } v8af54 =true; } else if (vd6628 ==27) { var vdcb18 =v98797.ActiveEditCell.element; wg08d15.maf456(v98797.LastEditObj,true); vdcb18.setActive(); v8af54 =true; } else if (vd6628 ==13) { var vde295 =v98797.ActiveEditCell; var vdcb18 =vde295.element; var vcbc66 =v98797.LastEditObj; if (!event.shiftKey) { if (vcbc66.type !="MultilineTextbox" &&vcbc66.type !="ResizableTextbox") { var v83754 =true; if (vcbc66.type =="WebComboNET") { var v0c299 =v98797.Tables[vde295.tblName].GetColumn(wgGetColNameByCell(vdcb18)); var v44191 =wcGetComboById(v0c299.WebComboID); if (v44191.EntryMode =="InstantLookup") v83754 =false; } if (v83754) { if (vde295.rowElement.type =="FilterRow" &&v98797.LayoutSettings.ApplyFiltersKey =="Enter") wg08d15.m5f286(v98797,0,false); else wg08d15.maf456(vcbc66); vdcb18.setActive(); v8af54 =true; } } else { v8af54 =false; v0870 =true; } } else { if (!vcbc66 ||vcbc66.type !="MultilineTextbox") wg08d15.m5f286(v98797,0,false); else { wg08d15.maf456(vcbc66); vdcb18.setActive(); } v8af54 =true; } } else if (vd6628 ==115) { var vde295 =v98797.ActiveEditCell; var vdcb18 =vde295.element; var v58956 =vdcb18.parentElement; if (wgIsFilterRow(v58956)) { wg11c43.me4940(vdcb18.childNodes[0]); event.keyCode =0; v8af54 =true; } }  if (vd6628>=46 &&vd6628<=57 ||vd6628>=54 &&vd6628<=90 ||vd6628>=96 &&vd6628<=111 ||vd6628>=186 &&vd6628<=192 ||vd6628>=219 &&vd6628<=222 ||vd6628 ==113 ||vd6628 ==8 ||vd6628 ==229 ||vd6628 ==32 ||v0870) { wg08d15.m25737(v98797); event.srcElement.isDirty =true; } if (vd3841) { vd3841 =v98797.CustomEditors[vd3841]; vd3841.ImplementationObject.OnKeyDown(event.keyCode); } if (v8af54) { event.cancelBubble =true; event.returnValue =false; } }, m25737:function(v0e18) { var v35f53 =v0e18.ActiveEditCell.rowElement; if (wgIsColumnSetRow(v35f53)) v35f53 =wgGetColumnSetRow(v35f53); else if (v35f53.type =="PR") v35f53 =wgGetPreviewRowParent(v35f53); if (!v35f53.markedEdit) { var vbe120 =wgGetRowHeader(v35f53); if (vbe120) vbe120.innerHTML ="<img align=absmiddle src='" +v0e18.ResolveImagePathEx( v0e18.LayoutSettings.ImageSettings.EditImage)+"'>"; v35f53.markedEdit =true; }  if (v0e18.LayoutSettings.VerboseEditingInformation &&!v0e18.ActiveEditCell.editImageDisplayed) { var vbb856 =wgGetColNameByCell(v0e18.ActiveEditCell.element); var v40089 =v0e18.Tables[v0e18.ActiveEditCell.tblName]; var veb782 =v40089.Columns.GetNamedItem(vbb856); if (veb782.EditInfoImage =="") v0e18.SetStatusIcon("Edit");  if (veb782.EditInfoText =="") v0e18.SetStatus1("","","CommonText/EditedCell"); v0e18.ActiveEditCell.editImageDisplayed =true; } }, mefe72:function(v2cc3,va3897) {  var v3bd44 =wgGetRootRow(va3897); if (v2cc3.LayoutSettings.AllowBatchUpdate) { var vce969 =wg4a444.mb6356(v3bd44);  if (!vce969.Table.IsRootTable) { var v85460 =vce969.GetParentRow();  while (v85460 !=null) { if (v85460.GetRowState()=="Deleted") { alert(v2cc3.GetString("MessageBoxText/DeletedRowEditException")); wg08d15.mce13(v3bd44); return false; }  v85460 =v85460.GetParentRow(); } }  if (vce969.GetRowState()=="Added" &&wgIsRecordRow(v3bd44)&&vce969.Table.GetChildTables().length >0) { var vab934 =vce969.GetCells();  for (var vb1227=0; vb1227<vab934.length; vb1227++) { if (vab934[vb1227] !=null &&vab934[vb1227].Modified &&vab934[vb1227].Column.IsPrimaryKey()) { alert(v2cc3.GetString("MessageBoxText/PrimaryKeyEditException")); return false; } } } }  if (v3bd44.rowValidated) return true; var v4a099 =true; wg_Global.LastValRowObj =v3bd44; v4a099 =ISEvent.Raise(v2cc3.LayoutSettings.ClientSideEvents.OnRowValidate,v3bd44);  if (v4a099) v4a099 =wg08d15.m2a886(v2cc3,va3897);  if (v4a099) v3bd44.rowValidated =true; return v4a099; },  m2a886:function(v9f933,v26c65) { var ve4d74 =wgGetRootRow(v26c65); var v39836 =wg4a444.m4dc24(ve4d74); var v67d97 =v9f933.Tables[v39836.tblName]; var v6232 =v67d97.ToRowObject(ve4d74); var vb2970 =v6232.GetCells(); var v20622 =false;  for(var v72453=0; v72453<vb2970.length; v72453++) { var vc7179 =vb2970[v72453];  if (!vc7179) continue;  var v5ee13 =vc7179.Column;  if (v5ee13.InputRequired) { if (vc7179.Text =="" ||vc7179.Text =="\xA0" ||(vc7179.Text !=null &&escape(vc7179.Text)!="" &&vc7179.Text.length <3 &&escape(vc7179.Text).indexOf("%0A")>-1)) { if (vc7179.Column.ColumnType =="Custom" &&vc7179.Value !=null &&vc7179.Value.replace(" ","")!="") continue; wg08d15.m30391(v9f933,vc7179);  if (!v20622) v20622 =true; } } } if (v20622) { if (v9f933.FreezePaneActive &&v9f933.FreezeConfig !=null) wg11c43.mb5030(v9f933,0,false,null,true);  v9f933.SetStatus1("","","CommonText/InputRequiredStatus"); v9f933.SetStatusIcon("Warning"); v9f933.IsStatusLocked =true; }  return (!v20622); },  m30391:function(v88460,v4bb83) { var v3555 =v4bb83.GetElement(); var vb764 =v88460.LayoutSettings.ImageSettings.RequiredImage;  if (v3555.children.length >0 &&v3555.children[v3555.children.length -1].tagName =="DIV") { v3555.children[v3555.children.length -1].style.display =""; } else { var vec334 =document.createElement("DIV"); vec334.style.cssText ="position:relative; width:100%";  var v39e70 =document.createElement("IMG");  v39e70.src =v88460.ResolveImagePathEx(vb764); v39e70.style.cssText ="position:absolute; right:2px"; v39e70.title =(v4bb83.Column.InputRequiredErrorText !="" ? v4bb83.Column.InputRequiredErrorText : v88460.GetString("Tooltip/InputRequired"));  vec334.appendChild(v39e70); v3555.insertAdjacentElement("afterBegin",vec334); } }, m1f826:function(va1140) { var v6bb80 =va1140.ActiveEditCell; var vbed93 =v6bb80.rowElement; var v5ef86 =null; var v3e535 =wgGetRootRow(vbed93); if (wgIsRowDirty(vbed93)&&wg08d15.mefe72(va1140,vbed93)) { var vbd235 =va1140.Tables[v6bb80.tblName]; var v55163 =null; if (!vbd235.IsRootTable) v55163 =vbd235.GetSubTableById(wg4a444.m4dc24(vbed93).subId); var v11b49 =vbd235.NewRow(v55163); var v38264 =v11b49.Cells; for (var ve7f25=0; ve7f25<v38264.length; ve7f25++) { var v72079 =v38264[ve7f25]; var v3ec12 =v72079.Name; var v29f49 =wgGetCellByName(vbed93,v3ec12); if (v29f49) { var v2af65 =v29f49.contentMode; var vbfd7 =""; if (v2af65 =="HTML") { vbfd7 =v29f49.innerHTML; if (vbfd7 !="") { var ve9399 =new RegExp("\r\n","g"); vbfd7 =vbfd7.replace(ve9399,""); } } else vbfd7 =v29f49.innerText; v72079.Text =vbfd7; if (v29f49.cellValue) v72079.Value =v29f49.cellValue; else v72079.Value =v72079.Text; if ((v72079.Value =="" ||v72079.Value ==" ")&&v2af65 =="HTML") v72079.Value =v72079.Text; if (v72079.Value ==" ") v72079.Value =""; if (v72079.Text ==" ") v72079.Text ="";  v72079.Modified =(v29f49.cellModified ==true ||vbfd7 !=" "); v72079.DataChanged =true; v72079.OldValue =v72079.OldText =""; v72079._UIState ="Changed"; } } if (va1140.LayoutSettings.AllowBatchUpdate) { if (vbd235.DataKeyFieldsCount ==1) { wg04140.mcf081(vbd235,v11b49,vbd235.DataKeyFields); } else { var vdb358 =vbd235.DataKeyFields.split(',');  for (var ve7f25=0; ve7f25<vdb358.length; ve7f25++) { var v21c4 =vdb358[ve7f25]; wg04140.mcf081(vbd235,v11b49,v21c4,true); } }  v11b49.Update(); return false; } else { v11b49.RowElement =vbed93; v11b49.Update(); } return true; } return false; }, ma4986:function(v86879,v85447) { var vf7324 =wg4a444.m4dc24(v85447); var v2d568 =v86879.Tables[vf7324.tblName]; var v23710 =v86879.LayoutSettings; v85447 =wgGetRootRow(v85447); var v8ce91 =wg4a444.mb6356(v85447);  if (!v23710.AllowBatchUpdate) v8ce91.Delete(); else { var v83c0 =v8ce91.GetRowState();  if (v83c0 =="Added") v8ce91.UndoChanges(); else v8ce91.Delete(); } }, mf9f54:function(vedb71) { var vc9851 =vedb71.ActiveEditCell; var v41b86 =vc9851.rowElement; var v08a32 =null; var vf1777 =wgGetRootRow(v41b86); if (wgIsRowDirty(v41b86)&&wg08d15.mefe72(vedb71,v41b86)) { var vfda67 =wg4a444.mb6356(v41b86); vfda67._UIState ="Changed"; vfda67.Update(); return true; } return false; }, mabd94:function(v03e26,va5675,vc3684,v59642) { va5675.setAttribute("action","AddRow"); va5675.setAttribute("tblName",v59642.Table.Id); if (!ISEvent.Raise(v03e26.LayoutSettings.ClientSideEvents.OnBeforeAdd,v03e26.Name,v59642.Table.Id,v03e26.TempLRO)) return; var v21b54 =v03e26.XmlReq; if (va5675.selectSingleNode("//newRowData")) va5675.removeChild(va5675.selectSingleNode("//newRowData")); ISXml.CreateCDATA(v21b54,va5675,"newRowData",v59642.ToXml()); if (v59642.SubTable) { var v18636 =v59642.SubTable.GetParentRow(); v18636 =wgGetPreviousRow(v03e26.Tables[wg4a444.meba49(v18636)].GetElement(WG40.BODY,WG40.HTMLTABLE,v18636),v18636); v18636 =wgGetRootRow(v18636); wg10e8.m34673(v03e26,va5675,v18636); va5675.setAttribute("tblSubId",v59642.SubTable.SubId); } v03e26.SetStatus1("","addrow","CommonText/AddRow"); return true; }, m50c42:function(vb6d81,vce754,v08669,v7c145) { vce754.setAttribute("action","UpdateRow"); vce754.setAttribute("tblName",v7c145.Table.Name); vce754.setAttribute("position",v7c145.Position); if (!ISEvent.Raise(vb6d81.LayoutSettings.ClientSideEvents.OnBeforeUpdate,vb6d81.Name,v7c145.tblName,vb6d81.TempLRO)) return; var vc7246 =vb6d81.XmlReq; if (vce754.selectSingleNode("//RowData")) vce754.removeChild(vce754.selectSingleNode("//RowData")); ISXml.CreateCDATA(vc7246,vce754,"RowData",v7c145.ToXml()); if (v7c145.SubTable) { var v74285 =v7c145.SubTable.GetParentRow(); v74285 =wgGetPreviousRow(vb6d81.Tables[wg4a444.meba49(v74285)].GetElement(WG40.BODY,WG40.HTMLTABLE,v74285),v74285); v74285 =wgGetRootRow(v74285); wg10e8.m3a793(vb6d81,vce754,v74285); vce754.setAttribute("tblSubId",v7c145.SubTable.SubId); } vce754.setAttribute("parentPos",v7c145.GetParentPos()); vb6d81.SetStatus1("","updaterow","CommonText/UpdateRow"); return true; }, mbcd95:function(v99621,v9ec73,v4e83,v37869) { v9ec73.setAttribute("action","DeleteRow"); v9ec73.setAttribute("tblName",v37869.Table.Name); v9ec73.setAttribute("position",v37869.Position); v9ec73.setAttribute("keyValue",(v37869.KeyValue ? ISXml.EncodeString(v37869.KeyValue): "")); if (!ISEvent.Raise(v99621.LayoutSettings.ClientSideEvents.OnBeforeDelete,v99621.Name,v37869.Table.Name,v99621.TempLRO)) return; if (v37869.SubTable) { var v38e85 =v37869.SubTable.GetParentRow(); v38e85 =wgGetPreviousRow(v99621.Tables[wg4a444.meba49(v38e85)].GetElement(WG40.BODY,WG40.HTMLTABLE,v38e85),v38e85); if (v38e85.type =="CSRecord") v38e85 =wgGetRootRow(v38e85); wg10e8.m3a793(v99621,v9ec73,v38e85); v9ec73.setAttribute("tblSubId",v37869.SubTable.SubId); } v9ec73.setAttribute("parentPos",v37869.GetParentPos()); v99621.SetStatus1("","deleterow","CommonText/DeleteRow"); return true; }, m52196:function(v1ab26,v12d30) { var v67076 =v1ab26.LastRequestObj; var v13852 =v1ab26.Tables[v67076.Table.Name]; var v0ed88 =v67076.RowElement; var vdd272 =v13852.GetElement(WG40.BODY,WG40.HTMLTABLE,v0ed88); var v9e931 =parseFloat(v1ab26.TotalLoadedRows); var v73e74 =parseFloat(v1ab26.TotalRows); var v25b47 =v1ab26.LayoutSettings.PagingMode; var v9a861 =wgGetRootRow(v0ed88); var v56f75 =v9a861.rowIndex; var v62793 =false; if (!ISEvent.Raise(v1ab26.LayoutSettings.ClientSideEvents.OnAfterDelete,v1ab26.Name,v67076.tblName,v1ab26.LastRequestObj,v1ab26.XmlResp)) return; if (v67076.ParentPos =="") { wg08d15.me6893(v1ab26,v13852,vdd272,v0ed88,vb4778,v9e931,v73e74); } else { var v07195 =v13852.GetElement(WG40.BODY,WG40.HTMLDIV,v0ed88); var vda574 =ISXml.GetNodeText(v12d30,"//htmlTB"); v07195.outerHTML =vda574; if (v13852.IsRootTable) { v1ab26.ClearChildTables(); wg4a444.mf1a70(v1ab26); } else { var v7650 =v13852.GetSubTableById(vdd272.subId); var vb4778 =v7650.GetParentRow(); v1ab26.ClearChildTables(v13852.Id); } v1ab26.ActiveEditCell =null; v1ab26.LastSelObj =null; } var v0b558 =ISXml.GetNodeText(v12d30,"//footerString"); if (v0b558 !="") { if (v13852.IsRootTable) wg11c43.mf3a46(v1ab26,v13852,null,v0b558); else { var v7650 =v13852.GetSubTableById(vdd272.subId); wg11c43.mf3a46(v1ab26,null,v7650,v0b558); } } if (v1ab26.LayoutSettings.VerboseEditingInformation) { v1ab26.SetStatus1("","","CommonText/DeleteSuccess"); v1ab26.SetStatusIcon("Success"); v1ab26.IsStatusLocked =true; } else { v1ab26.SetStatus1("","ready","CommonText/Ready"); } }, m5f050:function(vbbc29,vc7952) { var v93845 =""; try { v93845 =ISXml.GetNodeText(vc7952,"//grouplevel"); } catch (e) { } var v57939 =vbbc29.LastRequestObj; var v6c559 =vbbc29.Tables[v57939.Table.Name]; var va3c63 =v57939.RowElement; var v81774 =v6c559.GetElement(WG40.BODY,WG40.HTMLTABLE,va3c63); var vc6b16 =parseFloat(vbbc29.TotalLoadedRows); var vf6925 =parseFloat(vbbc29.TotalRows); var v34443 =vbbc29.LayoutSettings.PagingMode; var v3ba89 =ISXml.GetNodeText(vc7952,"//needReposition"); var v82188 =ISXml.GetNodeText(vc7952,"//keyValue"); var v7d772 =vbbc29.LastSelObj; var vada74 =false; var v09d55 =ISXml.GetNodeText(vc7952,"//htmlTB"); var vb756 =false; var vd6047 =false; var vd4733 =null; if (!ISEvent.Raise(vbbc29.LayoutSettings.ClientSideEvents.OnAfterUpdate,vbbc29.Name,v57939.Table.Id,vbbc29.LastRequestObj,vbbc29.XmlResp)) return; if (v3ba89 =="True" ||(v93845 !="" &&v09d55 !="")) { if (v93845 =="") { var v29f86 =wgGetRootRow(va3c63); var vfd334 =v29f86.position; var v71552 =v29f86.rowIndex; var v1c943 =wgGetHierRecord(va3c63); var v2ff63 =null; if (v1c943 &&v1c943.type !="HierRecord") v1c943 =null; if (v6c559.PreviewRowVisible) v2ff63 =wgGetPreviewRow(va3c63); if (wgIsColumnSetRow(va3c63)) { var vd0a59 =wgGetColumnSetRows(va3c63); for (var vc7396=0; vc7396<vd0a59.length; vc7396++) { vd0a59[vc7396].removeNode(true); } } else { va3c63.removeNode(true); } if (v2ff63) v2ff63.removeNode(true); if (v1c943) v1c943.removeNode(true); var v0f763 =parseFloat(ISXml.GetNodeText(vc7952,"//position")); if (!v6c559.IsRootTable ||v34443 =="ClassicPaging" ||v34443 =="None" ||(v34443 =="VirtualLoad" &&(vc6b16 ==vf6925 ||v0f763<=vc6b16))) { var v0e872 =ISXml.GetNodeText(vc7952,"//htmlRow"); wg11c43.m27d46("<table>" +v0e872 +"</table>"); var v56b53 =wg11c43.md8d48(); var newt,hiert; var v23251 =v81774.tBodies[v81774.tBodies.length -1]; if (!v6c559.IsRootTable) { try { vc6b16 =parseFloat(v81774.rows[v81774.rows.length -1].position)+1; } catch (e) { vc6b16 =0; } } else { wg11c43.md2f73(vbbc29,v56b53.rows); } newt =v23251.appendChild(v56b53.rows[0]);  if (vbbc29.BindingOperationMode =="ClientBinding") { vd6047 =true; vd4733 =newt; } var ve6046 =v56b53.rows.length; var v0a490 =0; for (var vc7396=0; vc7396<ve6046; vc7396++) { var vc9740 =v56b53.rows[0]; wg4a444.mc4f43(vc9740); if (vc9740.type !="HierRecord") { v23251.appendChild(vc9740); v0a490++; } } if (v1c943 &&va3c63.childExpanded =="True") { if (va3c63.relNames !=newt.relNames) { va3c63.childExpanded ="False"; v1c943 =v23251.appendChild(v56b53.rows[0]); } } if (v0f763<vc6b16) { var vc4315 =(v0f763>vfd334 ? v0f763 +1 : v0f763); hiert =v1c943; if (hiert) v23251.appendChild(hiert); if (vc4315<vc6b16) { var v05848 =parseFloat(newt.rowIndex); v81774.moveRow(newt.rowIndex,wgGetRowByPositionExact(v81774,vc4315).rowIndex); if (v0a490>0) { for (var v32180=0; v32180<v0a490; v32180++) { v81774.moveRow(v05848 +v32180 +1,newt.rowIndex +v32180 +1); } } if (hiert) v81774.moveRow(hiert.rowIndex,newt.rowIndex +v0a490 +1); } if (v0f763 ==vc6b16 -1) wg08d15.m7c663(vbbc29,v6c559,v81774,newt); wg08d15.m97531(vbbc29,va3c63,newt); vada74 =true; } } else { if (v6c559.IsRootTable) { vc6b16--; vbbc29.Set("TotalLoadedRows",vc6b16);  if (vbbc29.IsClassicPaging()) wg99e57.meee51(vbbc29); else vbbc29.SetStatus2("","loaded",vc6b16,vf6925); } } wgRefreshHierPosition(vbbc29,v81774,v81774.rows[0],0,hiert); var v53c79 =false; try { var v2f829 =vbbc29.LastSelObj.getRowElement(); var v72874 =wg4a444.m4dc24(v2f829);  if (v72874 ==null) v53c79 =true; } catch (e) { v53c79 =true; } if (v53c79) { vbbc29.ActiveEditCell =null; vbbc29.LastSelObj =null; wg54045.ma4226(v81774.rows[v71552].cells[v6c559.LastAECIndex],false,true); } } else { var v9252 =v6c559.GetElement(WG40.BODY,WG40.HTMLDIV,v57939.RowElement); var v0e872 =ISXml.GetNodeText(vc7952,"//htmlTB"); var v71552 =va3c63.rowIndex; v9252.outerHTML =v0e872; if (v6c559.IsRootTable) { vbbc29.ClearChildTables(); wg4a444.mf1a70(vbbc29); } else { var vfc344 =v6c559.GetSubTableById(v81774.subId); var v1c943 =vfc344.GetParentRow(); vbbc29.ClearChildTables(v6c559.Id); } var v37489 =v93845.split("_"); var ve2185; v9252 =document.getElementById(v9252.id); v81774 =v9252.childNodes[0]; for (var vc7396=0; vc7396<v37489.length; vc7396++) { var vd7784 =wgGetRowByGroup(v81774,vc7396,v37489[vc7396],ve2185); if (vd7784) { if (vd7784.childrenLoaded =="True") { wgExpandGroupRow(vd7784); } } ve2185 =vd7784; }  if (vbbc29.BindingOperationMode =="ClientBinding") vb756 =true; vbbc29.ActiveEditCell =null; vbbc29.LastSelObj =null; var vdde63 =v81774.rows[v71552]; var v5e547 =v6c559.LastAECIndex; if (vdde63) { if (v5e547>=vdde63.cells.length) v5e547 =vdde63.cells.length -1; wg54045.ma4226(v81774.rows[v71552].cells[v5e547],false,true); vada74 =true; } } } else { vada74 =true; var v0e872 =ISXml.GetNodeText(vc7952,"//htmlRow"); if (v0e872 =="RowRemoved") { wg08d15.me6893(vbbc29,v6c559,v81774,va3c63,v1c943,vc6b16,vf6925); } else { wg11c43.m27d46("<table>" +v0e872 +"</table>"); var v56b53 =wg11c43.md8d48(); var va4883 =v56b53.rows[0]; var v41b58 =wgGetRootRow(va3c63); var vbe536; if (v6c559.IsRootTable) wg11c43.md2f73(vbbc29,v56b53.rows); v41b58.replaceNode(va4883); vbe536 =va4883; if (vbbc29.BindingOperationMode =="ClientBinding") { vd6047 =true; vd4733 =va4883; }   var v1ff80 =va4883; var ve6046 =v56b53.rows.length; for (var v94585=0; v94585<ve6046; v94585++) { v1ff80 =wgGetNextRow(v81774,v1ff80); var vc9740 =v56b53.rows[0]; wg4a444.mc4f43(vc9740); if (v1ff80.type !="HierRecord" &&v1ff80.type !="GroupTotalRow") { if (v1ff80.type ==vc9740.type) { v1ff80.replaceNode(vc9740); v1ff80 =null; v1ff80 =vc9740; var v29f86 =v41b58; if (v41b58.srLevel) { v29f86 =wgGetRootRow(wg11c43.m10946(v81774,vc9740)); if (v29f86.srLevel ==v41b58.srLevel) v29f86 =v41b58; } if ((!vc9740.srLevel &&vc9740.style.display !="") ||(typeof (v41b58.srLevel)!="undefined" &&(v41b58.srExpanded =="True" ||v41b58.style.display ==""))) vc9740.style.display =""; vbe536 =v1ff80; } } } va4883.style.display =""; if (v7d772 &&v7d772.GetRowElement().rowIndex ==-1) { vbbc29.ActiveEditCell =null; vbbc29.LastSelObj =null; try { if (typeof (va4883.srLevel)!="undefined" &&vbbc29.LayoutSettings.EditOnClick) { var v4ac90 =v81774.rows[oldLSO.rowIndex]; vbbc29.LastEditObj.cellElement =v4ac90.cells[v6c559.LastAECIndex]; wg54045.ma4226(vbbc29.LastEditObj.cellElement,false,true); } else wg54045.ma4226(va4883.cells[v6c559.LastAECIndex],false,true); } catch (e) { } } if (v41b58.childExpanded =="True") { if (v41b58.relNames !=va4883.relNames) { v41b58.childExpanded ="False"; v1c943 =wgGetNextRow(v81774,vbe536); v1c943.replaceNode(v56b53.rows[0]); } } wg11c43.m44737(); wg08d15.m97531(vbbc29,v41b58,va4883); wg08d15.m95140(vbbc29,v6c559,v41b58,va4883); va3c63 =null; } } var va9720 =ISXml.GetNodeText(vc7952,"//footerString"); if (va9720 !="") { if (v6c559.IsRootTable) { wg11c43.mf3a46(vbbc29,v6c559,null,va9720); vb756 =true; } else { var vfc344 =v6c559.GetSubTableById(v81774.subId); wg11c43.mf3a46(vbbc29,null,vfc344,va9720); } }  if (va4883 !=null) wg08d15.m58388(vc7952,va4883); if (vbbc29.LastEditObj) wg08d15.mc0887(vbbc29); else { if (vada74) wg08d15.m66983(vbbc29); } if (vb756) wg4a444.mb8e3(v6c559,"UpdateRow"); else if (vd6047) wg4a444.m03328(v6c559,"UpdateRow",vd4733); if (vbbc29.LayoutSettings.VerboseEditingInformation) { vbbc29.SetStatus1("","","CommonText/UpdateSuccess"); vbbc29.SetStatusIcon("Success"); vbbc29.IsStatusLocked =true; } else { vbbc29.SetStatus1("","ready","CommonText/Ready"); } },  m58388:function(v15388,v4c581) { var va5c49 =ISXml.GetNodeText(v15388,"//groupFooterCount"); var v5eb62 =null; var v66d24 =-1;  if (va5c49 !="") { va5c49 =parseInt(va5c49);  for (var v40984=0; v40984<va5c49; v40984++) {  if (v5eb62 ==null) { v5eb62 =wg08d15.m84a83(v4c581); v66d24 =parseInt(v5eb62.groupIndex); v5eb62 =wg08d15.mfe229(v15388,v5eb62,v40984); continue; }  v66d24--; v5eb62 =wg11c43.m25627(v5eb62,v66d24,"next","GroupTotalRow"); v5eb62 =wg08d15.mfe229(v15388,v5eb62,v40984); } } },  mfe229:function(vd4a34,vbbf9,v1b447) { var v0d060 =ISXml.GetNodeText(vd4a34,"//groupFooterString_" +v1b447);  if (v0d060 !="") { wg11c43.m27d46("<table>" +v0d060 +"</table>"); var v5c120 =wg11c43.md8d48(); var va4194 =v5c120.rows[0]; var v1df91 =wgGetRootRow(vbbf9); v1df91.replaceNode(va4194); va4194.style.display =""; var v76567 =va4194; var v5892 =v5c120.rows.length; for (var vec065=0; vec065<v5892; vec065++) { v76567 =wgGetNextRow(tb,v76567); var vc0c16 =v5c120.rows[0]; wg4a444.mc4f43(vc0c16); v76567.replaceNode(vc0c16); vc0c16.style.display =""; v76567 =null; v76567 =vc0c16; }  wg11c43.m44737();  return va4194; } },  m84a83:function(v4b374) { var v4d654 =wg4a444.m4dc24(v4b374); var vceb18 =wgGetNextRow(v4d654,v4b374);  while (vceb18 !=null) { if (vceb18.type =="GroupTotalRow") return vceb18;  vceb18 =wgGetNextRow(v4d654,vceb18); }  return null; }, me6893:function(v1ac84,v3a986,vd9751,vc5285,ve6e32,v18451,v1ea49) { var vac874 =wgGetRootRow(vc5285); var v00c28 =vac874.rowIndex; var vdea80 =false; var v35279 =false; if (v1ac84.LastSelObj &&v1ac84.LastSelObj.GetRowElement()!=vc5285) v35279 =true; wgRemoveRow(v3a986,vc5285); if (vd9751.rows.length>0) { if (typeof(v18451)!="undefined") wgRefreshHierPosition(v1ac84,vd9751,vd9751.rows[0],0,ve6e32); var v38c88 =vd9751.rows[v00c28]; var v10a37 =v3a986.LastAECIndex; if (!v38c88) { var v3aa38 =wgGetLastVisibleRow(vd9751); if (v3aa38) { v38c88 =v3aa38.GetRowElement(); if (v38c88) { if (v38c88.type !="NewRow" &&ve6e32) wg08d15.ma9156(v1ac84,v3a986,vd9751,v38c88); } } } }  if (!v35279) { v1ac84.ActiveEditCell =null; v1ac84.LastSelObj =null; } if (v38c88 &&!v35279) { if (v10a37>=v38c88.cells.length ||v10a37 ==-1) { var v3aa38 =wg11c43.m9be32(v38c88); if (v3aa38) v10a37 =v3aa38.cellIndex; else v10a37 =v38c88.cells.length -1; } wg54045.ma4226(v38c88.cells[v10a37],false,true); if (v1ac84.LastEditObj) wg08d15.maf456(v1ac84.LastEditObj,true); vdea80 =true; } if (vdea80) wg08d15.m66983(v1ac84); if (typeof(v18451)!="undefined") { if (v3a986.IsRootTable) { v1ea49--; v18451--; v1ac84.Set("TotalLoadedRows",v18451); v1ac84.Set("TotalRows",v1ea49);  if (v1ac84.IsClassicPaging()) wg99e57.meee51(v1ac84); else v1ac84.SetStatus2("","loaded",v18451,v1ea49); } } vc5285 =null; ve6e32 =null; }, m7f582:function(vd9041,v99326) { var v4c095 =""; try { v4c095 =ISXml.GetNodeText(v99326,"//grouplevel"); } catch (e) { } var v1e244 =vd9041.LastRequestObj; var vf4521 =vd9041.Tables[v1e244.Table.Id]; var v84091 =parseFloat(vd9041.TotalLoadedRows); var v48476 =parseFloat(vd9041.TotalRows); var v92166 =vd9041.LayoutSettings.PagingMode; var v91961 =null; var vdd572 =false; var v5f314 =false; var v9ff38 =null; if (vf4521.IsRootTable) v91961 =vf4521.GetElement(WG40.BODY,WG40.HTMLTABLE); else v91961 =v1e244.SubTable.GetElement(WG40.BODY,WG40.HTMLTABLE); var v40067 =vd9041.LayoutSettings.ResetNewRowValuesOnError; try { if (v1e244.RowElement) { wg08d15.mac373(vd9041,v1e244.RowElement); if (vd9041.LastSelObj.GetRowElement().type =="NewRow") wg54045.m37715(v1e244.RowElement,vd9041.GetCurSelImage()); } } catch (e) { } if (!ISEvent.Raise(vd9041.LayoutSettings.ClientSideEvents.OnAfterAdd,vd9041.Name,v1e244.tblName,vd9041.LastRequestObj,vd9041.XmlResp)) return; if (v4c095 !="") { var va8051 =null; if (vf4521.IsRootTable) va8051 =vf4521.GetElement(WG40.BODY,WG40.HTMLDIV);  else va8051 =v1e244.SubTable.GetElement(WG40.BODY,WG40.HTMLDIV); var v94a48 =ISXml.GetNodeText(v99326,"//htmlTB"); va8051.outerHTML =v94a48; if (vf4521.IsRootTable) wg4a444.mf1a70(vd9041); if (vf4521.IsRootTable) vd9041.ClearChildTables(); else vd9041.ClearChildTables(vf4521.Id); var vc1661 =v4c095.split("_"); var v97c43; for (var va5c68=0; va5c68<vc1661.length; va5c68++) { var v52155 =wgGetRowByGroup(v91961,va5c68,vc1661[va5c68],v97c43); if (v52155) { if (v52155.childrenLoaded =="True") { wgExpandGroupRow(v52155); } } v97c43 =v52155; } if (vd9041.BindingOperationMode =="ClientBinding") vdd572 =true;  if (v92166 =="None") v84091++; else v84091 =vd9041.LayoutSettings.VirtualPageSize; } else { var vb7454 =-1; var v94a48 =""; try { vb7454 =parseFloat(ISXml.GetNodeText(v99326,"//position")); v94a48 =ISXml.GetNodeText(v99326,"//htmlRow"); } catch (e) { } var vb763 =false; if (v94a48 =="") { vd9041.SetStatus1("","ready","CommonText/Ready"); return; } if (!vf4521.IsRootTable ||v92166 =="None" ||v92166 =="ClassicPaging" ||(v92166 =="VirtualLoad" &&(v84091 ==v48476 ||vb7454<=v84091))) { wg11c43.m27d46("<table>" +v94a48 +"</table>"); var v53633 =wg11c43.md8d48(); var newt,hiert; var v8ea25 =null; if (v91961.tBodies.length>0) v8ea25 =v91961.tBodies[v91961.tBodies.length -1]; else { v8ea25 =document.createElement("TBODY"); v91961.appendChild(v8ea25); } if (!vf4521.IsRootTable) { try { v84091 =parseFloat(v91961.rows[v91961.rows.length -1].position)+1; } catch (e) { v84091 =0; } } else { wg11c43.md2f73(vd9041,v53633.rows); } newt =v8ea25.appendChild(v53633.rows[0]); var ve0481 =v53633.rows.length; for (var ve9b74=0; ve9b74<ve0481; ve9b74++) { if (v53633.rows[0].type =="HierRecord") { hiert =v53633.rows[0]; ve0481--; } v8ea25.appendChild(v53633.rows[0]); } if (vd9041.BindingOperationMode =="ClientBinding") { v5f314 =true; v9ff38 =newt; } var vbdf1 =newt.rowIndex; if (vb7454<v84091) { v91961.moveRow(newt.rowIndex,wgGetRowByPositionExact(v91961,vb7454).rowIndex); for (var va5c68=0; va5c68<ve0481; va5c68++) { v91961.moveRow(vbdf1 +va5c68 +1,newt.rowIndex +va5c68 +1); } if (hiert) v91961.moveRow(hiert.rowIndex,newt.rowIndex +(ve0481)+1); wgRefreshHierPosition(vd9041,v91961,wgGetNextRow(v91961,(hiert ? hiert : newt)),vb7454 +1,hiert); vb763 =true; } var vff679 =wgGetCellByPosition(newt,0); if (vd9041.HasFocus()) vff679.setActive(); wg54045.m88958(vd9041,vff679); wg11c43.m44737(); if (vf4521.IsRootTable) v84091 +=1; if (!vb763) { wg08d15.m7c663(vd9041,vf4521,v91961,newt); } } } if (vf4521.IsRootTable) { v48476 +=1; if (v84091>v48476) v84091 =v48476; vd9041.Set("TotalLoadedRows",v84091); vd9041.Set("TotalRows",v48476); if (vd9041.IsClassicPaging()) wg99e57.meee51(vd9041); else vd9041.SetStatus2("","loaded",v84091,v48476); } if (newt !=null) wg08d15.m58388(v99326,newt); var v63712 =ISXml.GetNodeText(v99326,"//footerString"); if (v63712 !="") { if (vf4521.IsRootTable) { wg11c43.mf3a46(vd9041,vf4521,null,v63712); vdd572 =true; } else { var va0255 =vf4521.GetSubTableById(v91961.subId); wg11c43.mf3a46(vd9041,null,va0255,v63712); } } if (vdd572) wg4a444.mb8e3(vf4521,"AddRow"); else if (v5f314) wg4a444.m03328(vf4521,"AddRow",v9ff38); if (vd9041.LayoutSettings.VerboseEditingInformation) { vd9041.SetStatus1("","","CommonText/AddSuccess"); vd9041.SetStatusIcon("Success"); vd9041.IsStatusLocked =true; } else { vd9041.SetStatus1("","ready","CommonText/Ready"); } }, ma9156:function(v67d16,v7b215,v32171,vd7a64) { if (wgIsRecordRow(vd7a64)) { var v9eb61 =wg10e8.m29217(vd7a64); var v14d36 =wgGetHierRecord(vd7a64); if (v14d36 &&v14d36.type !="HierRecord") v14d36 =null; if (v9eb61) wg10e8.m85230(v67d16,v9eb61.childNodes[0],v14d36); if (v14d36) { var v41f85 =wg10e8.m5ae53(v14d36); v41f85.innerHTML =""; } } }, m7c663:function(v9f655,v4be34,vf344,v50687) { var ve6a0 =wgGetPreviousRow(vf344,v50687); if (ve6a0 &&ve6a0.type =="HierRecord") { var v34955 =wg10e8.m5ae53(ve6a0); wg10e8.m6ef42(v9f655,v34955); ve6a0 =wgGetPreviousRow(vf344,ve6a0); ve6a0 =wgGetRootRow(ve6a0); if (ve6a0 &&ve6a0.type =="Record") { var vcee19 =wg10e8.m29217(ve6a0); wg10e8.m51f79(v9f655,vcee19.childNodes[0]); } } else if (ve6a0 &&wgIsRecordRow(ve6a0)&&!v4be34.IsRootTable) { ve6a0 =wgGetRootRow(ve6a0); var vcee19 =wg10e8.m29217(ve6a0); wg10e8.m51f79(v9f655,vcee19.childNodes[0],true); } }, m97531:function(vefd27,v95373,v19b41) { if (v95373.childExpanded &&v95373.childExpanded =="True") { var v37f91 =wg10e8.m29217(v19b41); if (v37f91) { wg10e8.mee892(vefd27,v37f91,"False"); v19b41.childExpanded ="True"; } } if (v95373.tblName) v19b41.tblName =v95373.tblName; }, m95140:function(v4b447,ve7483,vfd98,v0d132) { if (vfd98.srLevel &&vfd98.srExpanded =="True") { var vc3f27 =wg11c43.m72440(ve7483,v0d132); if (vc3f27) { vc3f27.src =v4b447.ResolveImagePathEx(v4b447.LayoutSettings.ImageSettings.CollapseImage); v0d132.srExpanded ="True"; } } }, m1a416:function(vc5586,vc2a2,v3bc42) { var vc3286 =wgGetGridById(vc2a2); var v1ea2 =vc3286.CustomEditors[v3bc42]; v1ea2.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(){ wg08d15.m25737(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.EnterEditMode =function(ac,colXml,mode,isDirty){ var be; var grid =this.Grid; if (this.ControlType =="DHTMLClientControl") { be =this.GetBaseEditorElement(); if (be !=null &&this.BaseEditorType =="Textbox") { if (!be.initialized) { var ceName =this.Name; be.attachEvent("onfocus",wg08d15.m4311); be.onselectstart =function() { event.cancelBubble =true; return true; }; be.onkeydown =function() { wg08d15.mc832(grid,ceName); }; be.className =grid.LayoutSettings.TextBoxClass; } wgDispObjGeneric(grid,be,ac.element,1,1,null,null,this.HasDropdownButton); } } if (this.HasDropdownButton) { var dd =this.GetDropdownButtonElement(); if (this.DropdownButtonType =="Image" &&dd !=null) { dd.style.cursor ="hand"; wgDispObjGeneric(grid,dd,ac.element,ac.element.offsetWidth -this.DropdownButtonWidth,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 vbce1 =delete wg08d15;}window.attachEvent("onunload",WebGridEditDestructor);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();