public void SetEditable() { _Editable = true; colGLAccount.OptionsColumn.AllowEdit = true; colReference.OptionsColumn.AllowEdit = true; gcDetail.EmbeddedNavigator.Buttons.Edit.Visible = true; gcDetail.EmbeddedNavigator.Buttons.CancelEdit.Visible = true; gcDetail.EmbeddedNavigator.Buttons.EndEdit.Visible = true; if (!_WorkFlowApproval) { txtInvNo.Properties.ReadOnly = false; lueWHSE.Properties.ReadOnly = false; lueGST.Properties.ReadOnly = false; lciSave.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; lciSave.ShowInCustomizationForm = true; lciSave.Move(lciInvoiceInfo, DevExpress.XtraLayout.Utils.InsertType.Bottom); } GL_Repository = new GL_Account_Lookup_Rep.Repository_GL_Lookup(); GL_Repository.HideVailidation = true; //must be set before the hmconnection is set. GL_Repository.HideSubCode = true; GL_Repository.HMConnection = Connection; GL_Repository.DevXMgr = DevXMgr; GL_Repository.ValidateOnEnterKey = true; GL_Repository.EditValueChanged += new EventHandler(GL_Repository_EditValueChanged); colGLAccount.ColumnEdit = GL_Repository; }
private void SetupGLPicker() { GL_Repository = new GL_Account_Lookup_Rep.Repository_GL_Lookup(); GL_Repository.HideVailidation = true; //must be set before the hmconnection is set. GL_Repository.HideSubCode = true; GL_Repository.HMConnection = Connection; GL_Repository.DevXMgr = DevXMgr; GL_Repository.ValidateOnEnterKey = true; GL_Repository.EditValueChanged += new EventHandler(GL_Repository_EditValueChanged); colGLAccount.ColumnEdit = GL_Repository; }
private void LoadUserControls() { fGGBurdens = new TUC_GridG.GridG(hmConn.CompanyServer, hmConn.TRDB, gvBurden, daCostingBurden, dsCostingBurden1); fGGBurdens.AskBeforeDelete = false; fGGBurdens.AllowTabCreateNewRecord = true; fGGBurdens.AllowDelete += new TUC_GridG.GridG.AllowDeleteDelegate(fGGBurdens_AllowDelete); utilsWO = new WorkOrder_Utilities.woUtils(hmConn, hmDevMgr); Popups = new WS_Popups.frmPopup(hmDevMgr); GL_Repository = new GL_Account_Lookup_Rep.Repository_GL_Lookup(); GL_Repository.OpeningBalance = false; GL_Repository.HideVailidation = true; GL_Repository.HideSubCode = true; GL_Repository.HMConnection = this.hmConn; GL_Repository.DevXMgr = this.hmDevMgr; colgl_account.ColumnEdit = this.GL_Repository; }