public void LoadEquityTradeNumbers() { try { if (ddlTradeAcc.Items.Count == 0) { DataSet dsEqutiyTradeNumbers = customerAccountBo.GetCustomerEQAccounts(portfolioId, "DE"); DataTable dtCustomerAccounts = dsEqutiyTradeNumbers.Tables[0]; ddlTradeAcc.DataSource = dtCustomerAccounts; ddlTradeAcc.DataTextField = "CETA_TradeAccountNum"; ddlTradeAcc.DataValueField = "CETA_AccountId"; ddlTradeAcc.DataBind(); ddlTradeAcc.Items.Insert(0, new ListItem("Select the Trade Number", "Select the Trade Number")); } } catch (BaseApplicationException ex) { throw ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ViewEquityTransaction.ascx:LoadEquityTradeNumbers()"); object[] objects = new object[1]; objects[0] = portfolioId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
public void LoadEquityTradeNumbers() { DataSet dsEqutiyTradeNumbers; dsEqutiyTradeNumbers = customerAccountBo.GetCustomerEQAccounts(portfolioId, "DE"); DataTable dtCustomerAccounts = dsEqutiyTradeNumbers.Tables[0]; ddlAccountNo.DataSource = dtCustomerAccounts; ddlAccountNo.DataTextField = "CETA_TradeAccountNum"; ddlAccountNo.DataValueField = "CETA_AccountId"; ddlAccountNo.DataBind(); ddlAccountNo.Items.Insert(0, new ListItem("Select the Trade Number", "Select the Trade Number")); }