Пример #1
0
        /// <summary>
        /// 获取订单销毁条件
        /// </summary>
        /// <param name="orderID"></param>
        /// <returns></returns>
        public OrderDisAppearData GetOrderDisAppearData(int orderID)
        {
            var order           = GetOrderDataByID(orderID);
            var disAppearConfig = orderConfig.FindOrderContent(order.OrderJsonConfig).disAppearConfig;

            if (disAppearConfig != null)
            {
                OrderDisAppearData data = new OrderDisAppearData(disAppearConfig);
                return(data);
            }
            return(null);
        }
Пример #2
0
        public OrderItemBase(int orderID)
        {
            var data = OrderModule.GetOrderDataByID(orderID);

            if (data == null)
            {
                return;
            }
            OrderID         = data.OrderID;
            belongDataModel = OrderModule.GetOrganizationBelong(OrderID);
            dataModel       = new OrderDataModel();
            dataModel.Create(OrderID);

            typeInfo   = OrderModule.GetOrderTypeInfo(data);
            orderState = OrderState.Create;
            OrderTime  = data.TimeLimit;
            remainTime = OrderTime;

            rewardData = OrderModule.Instance.GetOrderRewardData(data);

            appearData    = OrderModule.Instance.GetOrderAppearData(data.OrderID);
            disAppearData = OrderModule.Instance.GetOrderDisAppearData(data.OrderID);
        }