public void Clear() { try { UserID = 0; OrderID = 0; OrderType = RemotingInterface.RI_Type.None; OrderStatus = RemotingInterface.RI_Status.Unknown; Side = false; StockCode = ""; StockMarket = RemotingInterface.RI_Market.Unknown; OrderVolume = 0; OrderPrice = 0; TradePrice = 0; Curr = RI_Currency.Unknown; OrderDate = DateTime.MinValue; UpdatedDate = DateTime.MinValue; ExpiredDate = DateTime.MaxValue; } catch { } }
/// <summary> /// 导入单个订单 /// </summary> /// <param name="data"></param> /// <returns></returns> public bool Import(RI_Order data) { try { OrderID = data.OrderID; OrderType = data.OrderType; OrderStatus = data.OrderStatus; Side = data.Side; StockCode = data.StockCode; StockMarket = data.StockMarket; OrderVolume = data.OrderVolume; OrderPrice = data.OrderPrice; TradePrice = data.TradePrice; OrderDate = data.OrderDate; Curr = data.Curr; UpdatedDate = data.UpdatedDate; ExpiredDate = data.ExpiredDate; return(true); } catch { return(false); } }
public void Clear() { try { OrderID = 0; OrderType = RemotingInterface.RI_Type.None; OrderStatus = RemotingInterface.RI_Status.Unknown; Side = false; StockCode = ""; StockMarket = RemotingInterface.RI_Market.Unknown; OrderVolume = 0; OrderPrice = 0; TradePrice = 0; Curr = RI_Currency.Unknown; OrderDate = DateTime.MinValue; UpdatedDate = DateTime.MinValue; ExpiredDate = DateTime.MaxValue; } catch { } }
/// <summary> /// 导入单个订单 /// </summary> /// <param name="data"></param> /// <returns></returns> public bool Import(RI_Order data) { try { OrderID = data.OrderID; OrderType = data.OrderType; OrderStatus = data.OrderStatus; Side = data.Side; StockCode = data.StockCode; StockMarket = data.StockMarket; OrderVolume = data.OrderVolume; OrderPrice = data.OrderPrice; TradePrice = data.TradePrice; OrderDate = data.OrderDate; Curr = data.Curr; UpdatedDate = data.UpdatedDate; ExpiredDate = data.ExpiredDate; return true; } catch { return false; } }