private void LoadBrokerCode()
        {
            ProductEquityBo productEquityBo = new ProductEquityBo();

            try
            {
                DataTable dt = productEquityBo.GetBrokerCode(portfolioId, ddlTradeAcc.SelectedItem.Text.ToString());
                txtBroker.Text = XMLBo.GetBrokerName(path, dt.Rows[0]["XB_BrokerCode"].ToString());
            }
            catch (BaseApplicationException ex)
            {
                throw ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "ViewEquityTransaction.ascx:LoadBrokerCode()");
                object[] objects = new object[2];
                objects[0]   = portfolioId;
                objects[1]   = path;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
Beispiel #2
0
        public string[] GetScripList(string prefixText)
        {
            ProductEquityBo productEquityBo = new ProductEquityBo();
            DataTable       dtEquityScrips  = new DataTable();
            int             i = 0;

            dtEquityScrips = productEquityBo.GetEquityScripPrefix(prefixText);
            string[] equityScripList = new string[dtEquityScrips.Rows.Count];

            foreach (DataRow dr in dtEquityScrips.Rows)
            {
                equityScripList[i] = dr["PEM_CompanyName"].ToString();
                i++;
            }
            return(equityScripList);
        }