Example #1
0
        /// <summary>
        /// 更新委托表
        /// </summary>
        /// <param name="tet">委托表</param>
        /// <param name="rt">事务包装类</param>
        /// <returns>是否成功</returns>
        public static bool UpdateEntrustTable(QH_TodayEntrustTableInfo tet, ReckoningTransaction rt)
        {
            try
            {
                QH_TodayEntrustTableDal dal = new QH_TodayEntrustTableDal();
                dal.Update(tet, rt);
            }
            catch (Exception ex)
            {
                LogHelper.WriteError(ex.Message, ex);
                return(false);
            }

            return(true);
        }
Example #2
0
 /// <summary>
 /// 更新期货委托单
 /// </summary>
 /// <param name="stockOrder">委托单</param>
 public static void UpdateFutureOrder(QH_TodayEntrustTableInfo stockOrder)
 {
     try
     {
         //var sxtetp = new SqlQhTodayEntrustTableProvider(TransactionFactory.RC_ConnectionString, true,
         //string.Empty);
         // sxtetp.Update(stockOrder);
         QH_TodayEntrustTableDal dal = new QH_TodayEntrustTableDal();
         dal.Update(stockOrder);
     }
     catch (Exception ex)
     {
         LogHelper.WriteError(ex.Message, ex);
     }
 }