public getDocStatusResponse getDocStatus([System.Xml.Serialization.XmlElementAttribute("getDocStatus", Namespace = "http://IccCftBudget/IccDocStatus")] getDocStatus getDocStatus1) { object[] results = this.Invoke("getDocStatus", new object[] { getDocStatus1 }); return((getDocStatusResponse)(results[0])); }
/// <remarks/> public void getDocStatusAsync(getDocStatus getDocStatus1, object userState) { if ((this.getDocStatusOperationCompleted == null)) { this.getDocStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetDocStatusOperationCompleted); } this.InvokeAsync("getDocStatus", new object[] { getDocStatus1 }, this.getDocStatusOperationCompleted, userState); }
/// <remarks/> public void getDocStatusAsync(getDocStatus getDocStatus1, object userState) { if ((this.getDocStatusOperationCompleted == null)) { this.getDocStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetDocStatusOperationCompleted); } this.InvokeAsync("getDocStatus", new object[] { getDocStatus1}, this.getDocStatusOperationCompleted, userState); }
/// <remarks/> public void getDocStatusAsync(getDocStatus getDocStatus1) { this.getDocStatusAsync(getDocStatus1, null); }
/// <remarks/> public System.IAsyncResult BegingetDocStatus(getDocStatus getDocStatus1, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("getDocStatus", new object[] { getDocStatus1}, callback, asyncState); }
public BillDemandExternalState GetBillDemandExternalStaus(Guid billDemandUid) { using (var client = new IccCftGetDocStatusService()) { var request = new getDocStatus() { getDocStatusRequest = new DocStatusRequest() { docNum = billDemandUid.ToString("N") } }; DocStatusResponse response = null; #if DEBUG response = new DocStatusResponse() { status = "4", payDocDate = DateTime.Now, payDocNum = "A123", descr = "Все плохо" }; #else try { response = client.getDocStatus(request).getDocStatusResponse1; } catch (Exception ex) { Logger.Log.Error("Ошибка вызова сервиса проверки статуса РД",ex); throw; } #endif var status = BillDemandExternalStatus.All.FirstOrDefault( p => p.Code == int.Parse(response.status, CultureInfo.InvariantCulture)); if (status == null) status = BillDemandExternalStatus.Unknown; return new BillDemandExternalState { DocumentNumber = response.payDocNum, PaymentDate = response.payDocDate, Status = status, Description = response.descr }; } }
/// <remarks/> public System.IAsyncResult BegingetDocStatus(getDocStatus getDocStatus1, System.AsyncCallback callback, object asyncState) { return(this.BeginInvoke("getDocStatus", new object[] { getDocStatus1 }, callback, asyncState)); }