public bool AddEquityTransaction(EQTransactionVo eqTransactionVo, int userId) { bool bResult = false; try { EQSpeculativeDao eqSpeculativeDao = new EQSpeculativeDao(); bResult = eqSpeculativeDao.AddEquityTransaction(eqTransactionVo, userId); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "EQSpeculativeDao.cs:AddEquityTransaction()"); object[] objects = new object[2]; objects[0] = eqTransactionVo; objects[1] = userId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(bResult); }
public List <EQTransactionVo> GetEquityTransactionsForSpeculativeFlagging(int customerId, int accountId, int scripCode, string brokerCode, string tradeDate, string exchange) { List <EQTransactionVo> eqTransactionVoList = new List <EQTransactionVo>(); EQSpeculativeDao eqSpeculativeDao = new EQSpeculativeDao(); try { eqTransactionVoList = eqSpeculativeDao.GetEquityTransactionsForSpeculativeFlagging(customerId, accountId, scripCode, brokerCode, tradeDate, exchange); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "EQSpeculativeTradeBo.cs:GetEquityTransactionsForSpeculativeFlagging(int customerId, int accountId, int scripCode, string brokerCode, string tradeDate)"); object[] objects = new object[2]; objects[0] = eqTransactionVoList; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(eqTransactionVoList); }
public List <EQSpeculativeVo> GetEquitySpeculativeTradeGroups(DateTime tradeDate) { List <EQSpeculativeVo> eqSpeculativeVoList = new List <EQSpeculativeVo>(); EQSpeculativeDao eqSpeculativeDao = new EQSpeculativeDao(); try { eqSpeculativeVoList = eqSpeculativeDao.GetEquitySpeculativeTradeGroups(tradeDate); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "EQSpeculativeTradeBo.cs:GetEquitySpeculativeTradeGroups()"); object[] objects = new object[2]; objects[0] = eqSpeculativeVoList; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(eqSpeculativeVoList); }