private void getContactData(int bankId) { MyTreasuryDocsEntities entities = new MyTreasuryDocsEntities(); string storedProcedureCall = entities.BaseUri.ToString() + "/GetPrimaryContactsByBankId?bankId=" + bankId.ToString(); entities.BeginExecute<TDocs.Contacts>(new Uri(storedProcedureCall), FinishedGettingContactData, entities); }
private void getRulesData(string accountNumber) { MyTreasuryDocsEntities entities = new MyTreasuryDocsEntities(); string storedProcedureCall = entities.BaseUri.ToString() + "/GetEntitlementsByAccountNumber?accountNumber='" + accountNumber + "'"; entities.BeginExecute<TDocs.AccountSignerEntitlementsView>(new Uri(storedProcedureCall), FinishedGettingRulesData, entities); }
private void accountSignersDataForm_DeletingItem(object sender, CancelEventArgs e) { if ((sender as RadDataForm).CurrentItem != null) { TDocs.Accounts_Signers_Entitlements currentAccount = (TDocs.Accounts_Signers_Entitlements)(sender as RadDataForm).CurrentItem; MyTreasuryDocsEntities context = new MyTreasuryDocsEntities(); string storedProcCall = context.BaseUri.ToString() + "/RemoveAccountSignerEntitlement?accountSignerEntitlementId=" + currentAccount.account_signer_entitlementID_pk.ToString(); storedProcCall += "&username='******'"; context.BeginExecute<int>(new Uri(storedProcCall), FinishedDeletion, context); } }