Esempio n. 1
0
        public static void SaveReservationCanceledLog(RefundOrScrapApplyform refundOrScrapApplyform, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog {
                OrderId     = refundOrScrapApplyform.OrderId,
                ApplyformId = refundOrScrapApplyform.Id,
                Keyword     = "平台处理退/废票",
                Content     = "订座信息已处理,转出票方退/废票",
                Role        = OperatorRole.Platform,
                Company     = Service.Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                VisibleRole = OrderRole.Provider | OrderRole.Platform
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 2
0
        public static void SaveAgreeRefundOrScrapByProviderLog(RefundOrScrapApplyform refundOrScrapApplyform, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog {
                OrderId     = refundOrScrapApplyform.OrderId,
                ApplyformId = refundOrScrapApplyform.Id,
                Keyword     = "出票方处理退/废票",
                Content     = "同意退/废票",
                Role        = OperatorRole.Provider,
                Company     = refundOrScrapApplyform.Order.Provider.CompanyId,
                Account     = operatorAccount,
                VisibleRole = OrderRole.Provider | OrderRole.Platform
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 3
0
        public static void SaveReRefundLog(RefundOrScrapApplyform refundOrScrapApplyform, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog {
                OrderId     = refundOrScrapApplyform.OrderId,
                ApplyformId = refundOrScrapApplyform.Id,
                Keyword     = "平台处理拒绝退/废票",
                Content     = "重新处理退/废票",
                Role        = OperatorRole.Platform,
                Company     = Service.Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 4
0
        public static void SaveDenyRefundOrScrapByProviderLog(RefundOrScrapApplyform refundOrScrapApplyform, string reason, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog {
                OrderId     = refundOrScrapApplyform.OrderId,
                ApplyformId = refundOrScrapApplyform.Id,
                Keyword     = "出票方处理退/废票",
                Content     = "拒绝退/废票。原因:" + reason,
                Role        = OperatorRole.Provider,
                Company     = refundOrScrapApplyform.Order.Provider.CompanyId,
                Account     = operatorAccount,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 5
0
        public static void SaveOrderTimeoutLog(Order.Domain.Order order)
        {
            var log = new Log.Domain.OrderLog()
            {
                OrderId     = order.Id,
                Keyword     = "订单检查",
                Content     = "取消订单。原因:超出支付时限",
                Company     = Service.Organization.Domain.Platform.Instance.Id,
                Account     = "系统",
                Role        = OperatorRole.System,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 6
0
        public static void SaveCancelOrderLog(Order.Domain.Order order, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog()
            {
                OrderId     = order.Id,
                Keyword     = "处理拒绝出票",
                Content     = "取消订单",
                Company     = Service.Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                Role        = OperatorRole.Platform,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 7
0
        public static void SaveReRefundLog(RefundOrScrapApplyform refundOrScrapApplyform, IEnumerable <PlatformProcessRefundView> refundViews, string remark, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog {
                OrderId     = refundOrScrapApplyform.OrderId,
                ApplyformId = refundOrScrapApplyform.Id,
                Keyword     = "平台处理拒绝退/废票",
                Content     = "重新处理退/废票。" + "退还服务费:" + refundViews.Sum(v => v.ServiceCharge) + "。备注:" + remark,
                Role        = OperatorRole.Platform,
                Company     = Service.Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                VisibleRole = (refundOrScrapApplyform.Order.IsThirdRelation ? OrderRole.Supplier : OrderRole.Provider) | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 8
0
        public static void SaveDenyPostponeLog(PostponeApplyform postponeApplyform, string reason, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog()
            {
                OrderId     = postponeApplyform.OrderId,
                ApplyformId = postponeApplyform.Id,
                Keyword     = "改期处理",
                Content     = "拒绝改期。原因:" + reason,
                Company     = Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                Role        = OperatorRole.Platform,
                VisibleRole = OrderRole.Platform | OrderRole.Purchaser | OrderRole.Supplier | OrderRole.Provider | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 9
0
        public static void SaveAgreePostponeForFeeLog(PostponeApplyform postponeApplyform, IEnumerable <PostponeFeeView> postponeFeeViews, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog()
            {
                OrderId     = postponeApplyform.OrderId,
                ApplyformId = postponeApplyform.Id,
                Keyword     = "改期处理",
                Content     = "收取改期费。" + postponeFeeViews.Join("; ", item => string.Format("航段:[{0}] 改期费:{1}", item.AirportPair.ToString('-'), item.Fee)),
                Company     = Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                Role        = OperatorRole.Platform,
                VisibleRole = OrderRole.Platform | OrderRole.Purchaser
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 10
0
        public static void SaveDenyOutticketLog(Order.Domain.Order order, string reason, string operatorAccount)
        {
            var logContent = "拒绝出票。原因:" + reason;
            var log        = new Log.Domain.OrderLog()
            {
                OrderId     = order.Id,
                Keyword     = "出票",
                Content     = logContent,
                Company     = order.Provider.CompanyId,
                Account     = operatorAccount,
                Role        = OperatorRole.Provider,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 11
0
        public static void SaveUpdateCredentialsLog(Order.Domain.Order order, Passenger passenger, string originalCredentials, bool isPlatform, string operatorAccount)
        {
            var logContent = string.Format("修改证件号。乘机人:{0} 原证件号:{1} 新证件号:{2}", passenger.Name, originalCredentials, passenger.Credentials);
            var log        = new Log.Domain.OrderLog()
            {
                OrderId     = order.Id,
                Keyword     = "修改证件号",
                Content     = logContent,
                Company     = isPlatform ? Service.Organization.Domain.Platform.Instance.Id : order.Purchaser.CompanyId,
                Account     = operatorAccount,
                Role        = isPlatform ? OperatorRole.Platform : OperatorRole.Purchaser,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 12
0
        public static void SaveCancelPostponeLog(PostponeApplyform postponeApplyform, string operatorAccount)
        {
            var log = new Log.Domain.OrderLog()
            {
                OrderId     = postponeApplyform.OrderId,
                ApplyformId = postponeApplyform.Id,
                Keyword     = "改期处理",
                Content     = "取消改期",
                Company     = postponeApplyform.PurchaserId,
                Account     = operatorAccount,
                Role        = OperatorRole.Purchaser,
                VisibleRole = OrderRole.Platform | OrderRole.Purchaser | OrderRole.Supplier | OrderRole.Provider | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 13
0
        public static void SaveApplyLog(Order.Domain.Order order, BaseApplyform applyform, string operatorAccount)
        {
            var logContent = string.Format("申请{0}。乘机人:{1} 航段:{2}",
                                           applyform.ToString(), applyform.Passengers.Join(",", item => item.Name), getAppliedFlights(applyform));
            var log = new Log.Domain.OrderLog()
            {
                OrderId     = order.Id,
                ApplyformId = applyform is UpgradeApplyform ? (applyform as UpgradeApplyform).NewOrderId : applyform.Id,
                Keyword     = "退改签申请",
                Content     = logContent,
                Role        = OperatorRole.Purchaser,
                Company     = order.Purchaser.CompanyId,
                Account     = operatorAccount,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 14
0
        public static void SavePostponeFeePaySuccessLog(PostponeApplyform postponeApplyform, string payAccount, string payTradeNo, DateTime payTime, string operatorAccount)
        {
            var logContent = string.Format("支付改期费。账号:{0} 流水号:{1} 时间:{2}", payAccount, payTradeNo, payTime.ToString("yyyy-MM-dd mm:HH:ss"));
            var log        = new Log.Domain.OrderLog()
            {
                OrderId     = postponeApplyform.OrderId,
                ApplyformId = postponeApplyform.Id,
                Keyword     = "支付改期费",
                Content     = logContent,
                Company     = postponeApplyform.PurchaserId,
                Account     = operatorAccount,
                Role        = OperatorRole.Purchaser,
                Time        = payTime,
                VisibleRole = OrderRole.Platform | OrderRole.Purchaser | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 15
0
        public static void SaveRevisePriceLog(Order.Domain.Order order, string operatorAccount)
        {
            var logContent = "修改价格。" + order.PNRInfos.Join(" ",
                                                           pnr => pnr.Flights.Join(" ",
                                                                                   flight => string.Format("修改价格。航段:{0}-{1} 票面价:{2} 机建:{3} 燃油:{4}",
                                                                                                           flight.Departure.Code,
                                                                                                           flight.Arrival.Code,
                                                                                                           flight.Price.Fare,
                                                                                                           flight.Price.AirportFee,
                                                                                                           flight.Price.BAF)));
            var log = new Log.Domain.OrderLog {
                OrderId     = order.Id,
                Keyword     = "修改价格",
                Content     = logContent,
                Company     = Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                Role        = OperatorRole.Platform,
                VisibleRole = OrderRole.Platform
            };

            LogService.SaveOrderLog(log);
        }
Esempio n. 16
0
        /// <summary>
        /// 保存紧急订单信息
        /// </summary>
        /// <param name="emergentOrder"></param>
        public static void SvaeEmergentOrder(EmergentOrder emergentOrder, Guid companyId)
        {
            ICoordinationRepository repository = Factory.CreateCoordinationRepository();

            repository.SvaeEmergentOrder(emergentOrder);
            if (emergentOrder.OrderIdTypeValue == OrderIdType.Order)
            {
                try
                {
                    var logOrder = new Log.Domain.OrderLog();
                    logOrder.OrderId     = emergentOrder.Id;
                    logOrder.Account     = emergentOrder.Account;
                    logOrder.Keyword     = "设置紧急";
                    logOrder.Content     = string.Format("订单:{0} 已经被操作员:{1} 设置为紧急", emergentOrder.Id, emergentOrder.Account);
                    logOrder.Company     = companyId;
                    logOrder.Role        = Common.Enums.OperatorRole.Platform;
                    logOrder.Time        = DateTime.Now;
                    logOrder.VisibleRole = OrderRole.Platform;
                    LogService.SaveOrderLog(logOrder);
                }
                catch { }
            }
        }
Esempio n. 17
0
 private static Coordination ConstructCoordinationCuiDan(Log.Domain.OrderLog log)
 {
     return(new Coordination(log.Account, log.Content.Replace("催单内容或备注:", ""),
                             "采购催单", BusinessType.出票, ContactMode.Telphone, log.Time, OrderRole.Provider));
 }
Esempio n. 18
0
        public static void SaveUpdateTicketNoLog(decimal orderId, List <Passenger> passenger, IEnumerable <Ticket> ticket, string originalTicketNo, string operatorAccount, OperatorRole role = OperatorRole.Platform)
        {
            var logContent = string.Format("修改票号。乘机人:{0} 客票序号:{1} 原票号:{2} 新票号:{3}", string.Join(",", passenger.Select(p => p.Name)), string.Join(",", ticket.Select(p => p.Serial)), originalTicketNo, string.Join("", ticket.Select(p => p.No))); var log = new Log.Domain.OrderLog()

            {
                OrderId     = orderId,
                Keyword     = "修改票号",
                Content     = logContent,
                Company     = Service.Organization.Domain.Platform.Instance.Id,
                Account     = operatorAccount,
                Role        = role,
                VisibleRole = OrderRole.Provider | OrderRole.Supplier | OrderRole.Purchaser | OrderRole.Platform | OrderRole.OEMOwner
            };

            LogService.SaveOrderLog(log);
        }