Пример #1
0
        /// <summary>
        /// 生成申请单
        /// </summary>
        public string ProduceApplyform(Guid policyId, PolicyType policyType, string officeNo, decimal orderId, string source, int choise, bool needAUTH, bool IsUsePatPrice)
        {
            var           applyformView = Session["ApplyformView"] as UpgradeApplyformView;
            MatchedPolicy matchedPolicy = MatchedPolicyCache.FirstOrDefault(p => p.Id == policyId);

            if (matchedPolicy == null)
            {
                throw new CustomException("政策选择超时");
            }
            decimal newOrderId = OrderProcessService.Apply(orderId, applyformView, matchedPolicy, CurrentUser, BasePage.OwnerOEMId);

            FlightQuery.ClearFlightQuerySessions();
            if (needAUTH)
            {
                authorize(applyformView.NewPNR, officeNo, source, BasePage.OwnerOEMId);
            }
            BasePage.ReleaseLock(orderId);
            return(newOrderId.ToString());
        }