// ----------------------------------------------------------------------------------------------- // Search ABRpublic without using the web service proxies. // ----------------------------------------------------------------------------------------------- private void UseSoapSearch() { string SearchPayload = ""; SoapSearch Search; if (this.radioButtonDocument.Checked) { Search = new SoapDocumentSearch(); } else { Search = new SoapRpcSearch(); } try { if (this.radioButtonAbn.Checked) { // SearchPayload response will contain a Buisness Entity when searching By ABN SearchPayload = Search.AbnSearch(this.textBoxCriteria.Text, SetFlag(this.checkBoxHistory.Checked), this.textBoxGuid.Text); this.richTextBoxResults.Text = SearchPayload; } else if (this.radioButtonAsic.Checked) { // SearchPayload response will contain a Buisness Entity when searching By ACN SearchPayload = Search.AsicSearch(this.textBoxCriteria.Text, SetFlag(this.checkBoxHistory.Checked), this.textBoxGuid.Text); this.richTextBoxResults.Text = SearchPayload; } else if (this.radioButtonName.Checked) { // SearchPayload response will contain a Search Results List when searching By name SearchPayload = Search.NameSearch(this.textBoxCriteria.Text, SetFlag(this.checkBoxAct.Checked), SetFlag(this.checkBoxNsw.Checked), SetFlag(this.checkBoxNt.Checked), SetFlag(this.checkBoxQld.Checked), SetFlag(this.checkBoxTas.Checked), SetFlag(this.checkBoxVic.Checked), SetFlag(this.checkBoxWa.Checked), SetFlag(this.checkBoxSa.Checked), this.textBoxPostcode.Text, SetFlag(this.checkBoxLegal.Checked), SetFlag(this.checkBoxTrading.Checked), this.textBoxGuid.Text); if (this.radioButtonDocument.Checked) { DisplayNamesInGrid(SearchPayload); } else { this.richTextBoxResults.Text = SearchPayload; } } else if (this.radioButtonPostcode.Checked) { // SearchPayload response will contain a ABN List when searching By postcode SearchPayload = Search.PostcodeSearch(this.textBoxCriteria.Text, this.textBoxGuid.Text); this.richTextBoxResults.Text = SearchPayload; } } catch (Exception e) { ShowException(e.ToString()); throw; } }