protected void txtScrip_TextChanged(object sender, EventArgs e) { DataSet ds = productEqutiyBo.GetScripCode(txtScrip.Text); if (ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0 && ds.Tables[0].Rows[0]["PEM_ScripCode"] != null) { hidScrip.Value = ds.Tables[0].Rows[0]["PEM_ScripCode"].ToString(); } //txtTicker.Text = ds.Tables[0].Rows[0]["PEM_Ticker"].ToString(); //scripCode = int.Parse(ds.Tables[0].Rows[0]["PEM_ScripCode"].ToString()); }
protected void txtScrip_TextChanged(object sender, EventArgs e) { DataSet ds = productEquityBo.GetScripCode(txtScrip.Text.ToString()); lblScripName.Visible = true; // scripCode = productEquityBo.GetScripCode(txtScrip.Text.ToString()); lblScripName.Text = txtScrip.Text; txtTicker.Text = ds.Tables[0].Rows[0]["PEM_Ticker"].ToString(); scripCode = int.Parse(ds.Tables[0].Rows[0]["PEM_ScripCode"].ToString()); trTransactionMode.Visible = true; }
private void LoadViewField() { try { SetViewFields(1); if (eqTransactionVo.IsSourceManual == 1) { LinkButton1.Visible = true; } else { LinkButton1.Visible = false; } // LoadExchangeType(path); ddlExchange.SelectedValue = eqTransactionVo.Exchange.ToString(); LoadTransactionType(path); if (eqTransactionVo.TransactionCode == 1) { ddlTranType.SelectedValue = "PUR"; } else if (eqTransactionVo.TransactionCode == 2) { ddlTranType.SelectedValue = "SELL"; } else if (eqTransactionVo.TransactionCode == 13) { ddlTranType.SelectedValue = "HOLD"; } LoadEquityTradeNumbers(); ddlTradeAcc.SelectedValue = eqTransactionVo.AccountId.ToString(); txtTradeDate.Text = eqTransactionVo.TradeDate.ToShortDateString().ToString(); if (eqTransactionVo.BrokerCode != "") { txtBroker.Text = XMLBo.GetBrokerName(path, eqTransactionVo.BrokerCode); } txtBrokerage.Text = eqTransactionVo.Brokerage.ToString(); txtNumShares.Text = eqTransactionVo.Quantity.ToString(); txtOtherCharge.Text = eqTransactionVo.OtherCharges.ToString(); txtRate.Text = eqTransactionVo.Rate.ToString(); txtRateIncBrokerage.Text = eqTransactionVo.RateInclBrokerage.ToString(); txtScrip.Text = productEqutiyBo.GetScripName(eqTransactionVo.ScripCode); txtSTT.Text = eqTransactionVo.STT.ToString(); txtTax.Text = eqTransactionVo.ServiceTax.ToString(); txtTotal.Text = eqTransactionVo.TradeTotal.ToString(); DataSet ds = productEqutiyBo.GetScripCode(txtScrip.Text.ToString()); txtTicker.Text = ds.Tables[0].Rows[0]["PEM_Ticker"].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:LoadViewField()"); object[] objects = new object[1]; objects[0] = eqTransactionVo; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }