public void Handle(GetRequisitionListByMessageTypeArgument argument, GetRequisitionListByMessageTypeResult result) { result.RequisitionList = _integrationRequisitionInfoHelper .GetRequisitionInfoByMessageType(argument.DocumentType.UID, argument.PatentType.UID, argument.XIN) .ToArray(); }
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(); } }