Ejemplo n.º 1
0
 public TrainOrder(TrainStation StartTrainStation, TrainStation EndTrainStation, CustomerInfo CustomerInfo, IList <TrainOrderItem> TrainOrderItems) : base()
 {
     this.OrderNo           = GenerateOrderNoHelp.GenerateOrderNo();
     this.StartTrainStation = StartTrainStation;
     this.EndTrainStation   = EndTrainStation;
     this.CustomerInfo      = CustomerInfo;
     this.Status            = OrderStatusType.PrePay;
     this.TrainOrderItems   = TrainOrderItems;
 }
Ejemplo n.º 2
0
        public TrainOrder(TrainStation StartTrainStation, TrainStation EndTrainStation, CustomerInfo CustomerInfo, IList <TrainOrderItem> TrainOrderItems)
        {
            Id                     = Guid.NewGuid();
            this.OrderNo           = GenerateOrderNoHelp.GenerateOrderNo();
            this.StartTrainStation = StartTrainStation;
            this.EndTrainStation   = EndTrainStation;
            this.CustomerInfo      = CustomerInfo;
            this.Status            = OrderStatusType.PrePay;
            this.TrainOrderItems   = TrainOrderItems;


            AddTime      = DateTimeOffset.Now;
            UpdateTime   = DateTimeOffset.Now;
            AddUserId    = UserHelper.User.Id;
            UpdateUserId = UserHelper.User.Id;
        }