public static object[] getNumberSchemes(VDF.Vault.Currency.Connections.Connection connection, string objType, NumSchmType numSchemeType) { try { LibNotes(); switch (objType) { case "File": { DocumentService fserv = connection.WebServiceManager.DocumentService; nSchemes = fserv.GetAllFileNamingSchemes(); return(nSchemes); } case "Change Order": { ChangeOrderService cOrder = connection.WebServiceManager.ChangeOrderService; nSchemes = cOrder.GetNumberingSchemesByType(numSchemeType); return(nSchemes); } case "Item": { ItemService iServ = connection.WebServiceManager.ItemService; nSchemes = iServ.GetNumberingSchemesByType(numSchemeType); return(nSchemes); } case "All": { DocumentService fserv = connection.WebServiceManager.DocumentService; nSchemes = fserv.GetAllFileNamingSchemes(); ChangeOrderService cOrder = connection.WebServiceManager.ChangeOrderService; nSchemes = cOrder.GetNumberingSchemesByType(numSchemeType); ItemService iServ = connection.WebServiceManager.ItemService; nSchemes = iServ.GetNumberingSchemesByType(numSchemeType); break; } } } catch (SystemException ex) { Debug.Write(ex.ToString()); } return(nSchemes); }
/// <remarks/> public void GetNumberingSchemesByTypeAsync(NumSchmType nst, object userState) { if ((this.GetNumberingSchemesByTypeOperationCompleted == null)) { this.GetNumberingSchemesByTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNumberingSchemesByTypeOperationCompleted); } this.InvokeAsync("GetNumberingSchemesByType", new object[] { nst}, this.GetNumberingSchemesByTypeOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginGetNumberingSchemesByType(NumSchmType nst, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetNumberingSchemesByType", new object[] { nst}, callback, asyncState); }
/// <remarks/> public void GetNumberingSchemesByTypeAsync(NumSchmType nst) { this.GetNumberingSchemesByTypeAsync(nst, null); }
public NumSchm[] GetNumberingSchemesByType(NumSchmType nst) { object[] results = this.Invoke("GetNumberingSchemesByType", new object[] { nst}); return ((NumSchm[])(results[0])); }