public ObservableCollection <RefundTrade> Select(RefundTrade rt) { ObservableCollection <RefundTrade> temp = new ObservableCollection <RefundTrade>(); List <RefundTrade> list = service.Select(rt).ToList <RefundTrade>(); list.ForEach(p => temp.Add(p)); return(temp); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); AuthConfig.RegisterAuth(); //模块初始化工作 //ListCreate.Main(); DBExamination.CheckDB(); PreTradeModule.getInstance().Run(); StockTradeThread.Main(); FutureMonitor FM = new FutureMonitor(); FM.Main(); StrategyMonitorClass strategyMonitor = new StrategyMonitorClass(); strategyMonitor.Run(); MarketInfo marketInfo = new MarketInfo(); marketInfo.Run(); TestClass t = new TestClass(); t.Run(); UpdateMarketPanel MarketMonitor = new UpdateMarketPanel(); MarketMonitor.Run(); RefundTrade.Main(); Entrust_Query.Instance.Run(); ThreadHeartBeatControl.Run(); SystemMonitorClass.getInstance().Run(); riskmonitor.Init(); accountMonitor.RUN(); BatchTrade_MarketReciver.Run(); AuthorizedStrategy.RUN(); Thread.Sleep(3000); }
public bool Update_DbAndPF(DayBalance db, FundPayment obj, RefundTrade rt) { BaseDao.SqlMap.BeginTransaction(); daoPay.Update(obj); daort.Add(rt); daoday.Update(db); try { BaseDao.SqlMap.CommitTransaction(); return(true); } catch { BaseDao.SqlMap.RollBackTransaction(); return(false); } }
public List <RefundTrade> Select(RefundTrade rt) { return(daoHelp.Select(rt) as List <RefundTrade>); }
public bool Add(RefundTrade o) { return(daoHelp.Add(o)); }
/// <summary> ///添加退票 更新每日余额和支付表的数据库事务 /// </summary> /// <param name="db"></param> /// <param name="i"></param> /// <param name="obj"></param> /// <returns></returns> public bool Update_DbAndPF(FundsRegulatoryClient.SqlTransSvr.DayBalance db, FundPayment obj, RefundTrade rt) { return(service.Update_DbAndPF(db, obj, rt)); }
/// <summary> ///添加退票 更新每日余额和存款表的数据库事务 /// </summary> /// <param name="db"></param> /// <param name="i"></param> /// <param name="obj"></param> /// <returns></returns> public bool Update_DbAndDF(FundsRegulatoryClient.SqlTransSvr.DayBalance db, RefundTrade rt, DepositFund obj) { return(service.Update_DbAndDF(db, obj, rt)); }
/// <summary> ///增加退票信息 /// </summary> public bool Add(RefundTrade m) { return(service.Add(m)); }