protected void showResults(RgWsBasStoixNRtUser pBasStoixNRec_out, decimal pCallSeqId_out, GenWsErrorRtUser pErrorRec_out) { txtActivityDescr.Text = pBasStoixNRec_out.actLongDescr; txtZipCode.Text = pBasStoixNRec_out.postalZipCode; if (pBasStoixNRec_out.facActivity.HasValue == true) txtActivity.Text = pBasStoixNRec_out.facActivity.Value.ToString(); if (pBasStoixNRec_out.registDate.HasValue == true) txtStartDate.Text = pBasStoixNRec_out.registDate.Value.ToString(); if (pBasStoixNRec_out.stopDate.HasValue == true) txtEndDate.Text = pBasStoixNRec_out.stopDate.Value.ToString(); txtDoyDescr.Text = pBasStoixNRec_out.doyDescr; txtArea.Text = pBasStoixNRec_out.parDescription; if (pBasStoixNRec_out.deactivationFlag == "1") rdbtListTaxnoValid.SelectedValue = "Yes"; else if (pBasStoixNRec_out.deactivationFlag == "2") rdbtListTaxnoValid.SelectedValue = "No"; txtStreetName.Text = pBasStoixNRec_out.postalAddress; txtDoyCode.Text = pBasStoixNRec_out.doy; txtPhone.Text = pBasStoixNRec_out.firmPhone; txtBrandName.Text = pBasStoixNRec_out.commerTitle; txtFax.Text = pBasStoixNRec_out.firmFax; txtTaxnoOut.Text = pBasStoixNRec_out.afm; txtActivity.Text = pBasStoixNRec_out.onomasia; lblXactionId.Text = pCallSeqId_out.ToString(); }
protected void btnCallWS_Click(object sender, EventArgs e) { if (txtTaxnoIn != null) { RgWsBasStoixNRtUser pBasStoixNRec_out = new RgWsBasStoixNRtUser(); decimal pCallSeqId_out; GenWsErrorRtUser pErrorRec_out = new GenWsErrorRtUser(); pBasStoixNRec_out.registDate = new DateTime(2011, 1, 1); pBasStoixNRec_out.stopDate = new DateTime(2011, 1, 1); pBasStoixNRec_out.deactivationFlag = "1"; pBasStoixNRec_out.facActivity = 0; pCallSeqId_out = 0; RgWsBasStoixN request = new RgWsBasStoixN(); try { request.rgWsBasStoixN(txtTaxnoIn.Text, ref pBasStoixNRec_out, ref pCallSeqId_out, ref pErrorRec_out); } catch(Exception) { throw; } if (pErrorRec_out.errorCode == null) showResults(pBasStoixNRec_out, pCallSeqId_out, pErrorRec_out); else throw new Exception(pErrorRec_out.errorCode + ": " + pErrorRec_out.errorDescr); } }
public void rgWsBasStoixN(string pAfm, ref RgWsBasStoixNRtUser pBasStoixNRec_out, ref decimal pCallSeqId_out, ref GenWsErrorRtUser pErrorRec_out) { object[] results = this.Invoke("rgWsBasStoixN", new object[] { pAfm, pBasStoixNRec_out, pCallSeqId_out, pErrorRec_out}); pBasStoixNRec_out = ((RgWsBasStoixNRtUser)(results[0])); pCallSeqId_out = ((decimal)(results[1])); pErrorRec_out = ((GenWsErrorRtUser)(results[2])); }
/// <remarks/> public void rgWsBasStoixNAsync(string pAfm, RgWsBasStoixNRtUser pBasStoixNRec_out, decimal pCallSeqId_out, GenWsErrorRtUser pErrorRec_out) { this.rgWsBasStoixNAsync(pAfm, pBasStoixNRec_out, pCallSeqId_out, pErrorRec_out, null); }
/// <remarks/> public void rgWsBasStoixNAsync(string pAfm, RgWsBasStoixNRtUser pBasStoixNRec_out, decimal pCallSeqId_out, GenWsErrorRtUser pErrorRec_out, object userState) { if ((this.rgWsBasStoixNOperationCompleted == null)) { this.rgWsBasStoixNOperationCompleted = new System.Threading.SendOrPostCallback(this.OnrgWsBasStoixNOperationCompleted); } this.InvokeAsync("rgWsBasStoixN", new object[] { pAfm, pBasStoixNRec_out, pCallSeqId_out, pErrorRec_out}, this.rgWsBasStoixNOperationCompleted, userState); }