Exemplo n.º 1
0
        public virtual RMARequestInfo LoadWithRegistersBySysNo(int sysNo, out CustomerInfo customer,
                                                               out SOBaseInfo soBaseInfo,
                                                               out DeliveryInfo deliveryInfo,
                                                               out string deliveryUserName,
                                                               out string businessModel)
        {
            var request = ObjectFactory <RequestProcessor> .Instance.LoadWithRegistersBySysNo(sysNo);

            businessModel = ObjectFactory <RequestProcessor> .Instance.GetBusinessModel(request);

            //配送信息
            deliveryUserName = string.Empty;
            deliveryInfo     = ExternalDomainBroker.GetDeliveryInfo(DeliveryType.RMARequest, sysNo, DeliveryStatus.OK);
            if (deliveryInfo != null && deliveryInfo.DeliveryUserSysNo.HasValue)
            {
                deliveryUserName = ExternalDomainBroker.GetUserInfoBySysNo(deliveryInfo.DeliveryUserSysNo.Value);
            }
            if (request.CreateUserSysNo != null)
            {
                request.CreateUserName = ExternalDomainBroker.GetUserInfoBySysNo(request.CreateUserSysNo.Value);
            }
            if (request.ReceiveUserSysNo.HasValue)
            {
                request.ReceiveUserName = ExternalDomainBroker.GetUserInfoBySysNo(request.ReceiveUserSysNo.Value);
            }
            customer = ExternalDomainBroker.GetCustomerInfo(request.CustomerSysNo.Value);

            soBaseInfo = ExternalDomainBroker.GetSOBaseInfo(request.SOSysNo.Value);

            return(request);
        }