//get the data from the referenced searches internal int lGetSearchData(string rsFrom) { int result = 0; ProFitData.gFRWKSVC.SysLog("frmCollectionLetter::lGetSearchData", LogLevel.logAudit2); try { int lSeaStatus = 0; //status result from search PFTFramework.CMessage oMsg = null; //Message object if (string.Compare(rsFrom, "BESEARCH", true) == 0) { aBE_id = new double[3]; aBE_display = new string[] { String.Empty, String.Empty, String.Empty }; //Get the search data from account search lSeaStatus = oBESearch.lGetBEData(ref aBE_id, ref aBE_display, ref lCount); this.Cursor = Cursors.WaitCursor; if (lSeaStatus == ProFitData.PFT_SUCCESS) { if (lCount > 0) { mParent.Data.BillingEntityID = aBE_id[0]; txtBillingEntity.Text = aBE_display[0]; } } else { ProFitData.gFRWKSVC.SysLog("We got back a failure from lGetBEData", LogLevel.logDebug3); result = lSeaStatus; return(result); } //send a message to the AcctSearch to destroy itself oMsg = new PFTFramework.CMessage(); oMsg.MessageType = eMessageType.MSG_DESTROY; oBESearch.Message(ref oMsg); oBESearch = null; oMsg = null; cmdBESearch.Enabled = true; cmbDunningCd.Text = System.String.Empty; cmbDunningCd.Enabled = true; for (int n = 1; n <= 15; n++) { txtLetter[n].Text = System.String.Empty; } result = ProFitData.PFT_SUCCESS; ProFitData.gFRWKSVC.SysLog("frmCollectionLetter::lGetSearchData:Normal termination", LogLevel.logAudit2); return(result); } } catch (System.Exception _exception_) { Cerner.Foundations.Logging.ExceptionReporting.ReportException(_exception_); ProFitData.gFRWKSVC.SysLog("frmCollectionLetter::lGetSearchData:Error", LogLevel.logAudit2); } finally { this.Cursor = Cursors.Default; } return(result); }