コード例 #1
0
ファイル: ATTRequestFormBC.cs プロジェクト: Thanak1234/test
        protected override void LoadFormData()
        {
            var travelDetail = _travelDetailRepository.GetByRequestHeader(RequestHeader.Id);


            var destinations  = _destinationRepository.GetMany(p => p.RequestHeaderId == RequestHeader.Id);
            var flightDetails = _flightDetailRepository.GetMany(p => p.RequestHeaderId == RequestHeader.Id);

            if (travelDetail != null)
            {
                WorkflowInstance.TravelDetail = travelDetail;
            }

            if (destinations != null)
            {
                WorkflowInstance.Destinations = destinations;
            }

            if (flightDetails != null)
            {
                WorkflowInstance.FlightDetails = flightDetails;
            }
        }