public DepArrScanResponse DepArrScan(DepArrScanInput input)
        {
            //logger.Trace("Service : IRestService, Method : DepArrScan , Request : DepArrScanInput = {"CommodityID" : input.CommodityID,"FltCode" : input.FltCode,"FltDate" : input.FltDate,"FltNum" : input.FltNum, "FltPosition" : input.FltPosition,"DeviceName" : "Apple", "Station" : "123", "Version" : "1" };")
            DepArrScanResponse depArrScanResponse = new DepArrScanResponse();

            depArrScanResponse.ReturnCode = "1";

            Flight flight = new Flight();

            flight.Destination = "NRT";
            flight.Origin      = "MNL";
            flight.FltNum      = "1234";
            flight.FltCode     = "5J";
            flight.Gate        = "G23";
            flight.NoseNumber  = "004321";

            LoadSummary loadSummary = new LoadSummary();

            loadSummary.Ballast       = "1/1";
            loadSummary.Bags          = "2/2";
            loadSummary.Comat         = "3/3";
            loadSummary.Freight       = "4/4";
            loadSummary.Mail          = "5/5";
            loadSummary.PercentLoaded = "100";

            if (input.AppName == "Departures")
            {
                flight.ETD = DateTime.Now.ToString();
            }
            else
            {
                flight.ETA = DateTime.Now.ToString();
            }

            depArrScanResponse.Flight      = flight;
            depArrScanResponse.LoadSummary = loadSummary;
            //logger.Trace("Service : IRestService , Method : DepArrScan , Response : DepArrScanResponse = {"Flight": depArrScanResponse.Flight , "LoadSummary" : depArrScanResponse.LoadSummary , "ReturnCode":bagInfo.ReturnCode,"Message":bagInfo.Message};
            return(depArrScanResponse);
        }
        public GetFlightDetailsResponse GetFlightDetails(GetFlightDetailsInput input)
        {
            logger.Trace("Service : IRestService, Method : GetFlightDetails , Request : GetFlightDetailsResponse = {'CommodityID' : input.CommodityID,'FltCode' : input.FltCode,'FltDate' : input.FltDate,'FltNum' : input.FltNum, 'FltPosition' : input.FltPosition,'DeviceName' : 'Apple', 'Station' : '123', 'Version' : '1' };");
            GetFlightDetailsResponse getFlightDetailsResponse = new GetFlightDetailsResponse();

            getFlightDetailsResponse.StatusCode = "0";

            Flight flight = new Flight();

            getFlightDetailsResponse.Flight.Destination = "NRT";
            getFlightDetailsResponse.Flight.Origin      = "MNL";
            getFlightDetailsResponse.Flight.FltNum      = "1234";
            getFlightDetailsResponse.Flight.FltCode     = "5J";
            getFlightDetailsResponse.Flight.Gate        = "G23";
            getFlightDetailsResponse.Flight.NoseNumber  = "004321";

            LoadSummary loadSummary = new LoadSummary();

            getFlightDetailsResponse.LoadSummary.Ballast       = "1/1";
            getFlightDetailsResponse.LoadSummary.Bags          = "2/2";
            getFlightDetailsResponse.LoadSummary.Comat         = "3/3";
            getFlightDetailsResponse.LoadSummary.Freight       = "4/4";
            getFlightDetailsResponse.LoadSummary.Mail          = "5/5";
            getFlightDetailsResponse.LoadSummary.PercentLoaded = "100";

            if (input.AppName == "Departures")
            {
                getFlightDetailsResponse.Flight.ETD = DateTime.Now.ToString();
            }
            else
            {
                getFlightDetailsResponse.Flight.ETA = DateTime.Now.ToString();
            }

            getFlightDetailsResponse.Flight      = flight;
            getFlightDetailsResponse.LoadSummary = loadSummary;
            logger.Trace("Service : IRestService , Method : GetFlightDetails , Response : GetFlightDetailsResponse = {'Flight': depArrScanResponse.Flight , 'LoadSummary' : depArrScanResponse.LoadSummary , 'ReturnCode':bagInfo.ReturnCode,'Message':bagInfo.Message}");
            return(getFlightDetailsResponse);
        }
示例#3
0
 public LoadChoose(LoadSummary _parent)
 {
     InitializeComponent();
     parent = _parent;
 }