public GetRequisitionListForPaymentResult GetRequisitionListForPayment(
            GetRequisitionListForPaymentArgument argument)
        {
            var result = new GetRequisitionListForPaymentResult();
            var query  = new GetRequisitionListForPayment.Query {
                Argument = argument, Result = result
            };

            _mediator.Send(query).Wait();
            return(result);
        }
        public void Handle(GetRequisitionListForPaymentArgument argument,
                           GetRequisitionListForPaymentResult result)
        {
            int dicDocTypeId = _dictionaryHelper.GetDictionaryIdByCode(nameof(DicDocumentType), DicDocumentTypeCodes._001_002);

            if (argument.DocumentType.UID == dicDocTypeId)
            {
                result.RequisitionList = _integrationRequisitionInfoHelper
                                         .GetRequisitionInfoByMessageType(argument.DocumentType.UID, argument.PatentType.UID, argument.XIN)
                                         .ToArray();
            }
            else
            {
                result.RequisitionList = _integrationRequisitionInfoHelper
                                         .GetRequistionsListForPayment(argument.DocumentType.UID, argument.PatentType.UID, argument.XIN)
                                         .ToArray();
            }
        }