示例#1
0
        public void TestQT()
        {
            /*
             * string strqt = @"
             *
             *      QT CTU186
             *
             * GQ 0165 0200    RP 0170 0200    KK 3512 3605    RE 0000 0200
             *
             * SR 0161 0200    TC 1489 1435    TL 3396 3028    SC 0000 0253
             * ";
             * FormatPNR format = new FormatPNR();
             * QT_Queue qt = format.FormatQT(strqt);
             * string err = string.Empty;
             * string pnrcontent = @"     CTU186 SCHEDULE CHG  (  0000  )  (  0000  )
             *
             **ELECTRONIC TICKET PNR**
             *
             * 1.赵恩宇 HVVNFY
             *
             * 2.  G52638 G   WE15OCT  KWECKG UN1   1525 1610          E      S
             *
             * 3.  G52638 G   WE15OCT  KWECKG TK1   1700 1745          E      S
             *
             * 4.CTU/T CTU/T 028-85512345/CTU HUA LONG AIR SERVICE CO.,LTD/YANGHONG ABCDEFG
             *
             * 5.REM 1014 1758 T0565
             *
             * 6.TL/2300/14OCT14/CTU295
             *
             * 7.SSR FOID G5 HK1 NI511129197011014039/P1
             *
             * 8.SSR ADTK 1E BY CTU14OCT14/1859 OR CXL G52638 G15OCT
             *
             * 9.SSR TKNE G5 HK1 KWECKG 2638 G15OCT 9872900692422/1/P1
             *
             * 10.OSI G5 CTCT15184422090  ";
             * string strPnr = format.GetPNR(pnrcontent, out err);
             */

            BootStrapper.Boot();
            IPidService pidService = ObjectFactory.GetInstance <IPidService>();
            PIDInfo     pid        = new PIDInfo();

            pid.CarrierCode = "ctuadmin";
            pid.IP          = "210.14.138.30";
            pid.Port        = 2237;
            pid.Office      = "ctu186";
            QTResponse response = pidService.SendQT(pid);
            //List<string> tkList = new List<string>() {
            //    "876-2329295351",
            //    "876-2330330542",
            //    "7842119018923",
            //    "876-2330343865",
            //    "876-2330365214",
            //    "876-2330372379"
            //};
            //OpenTicketResponse response = pidService.ScanOpenTicket("210.14.138.30", "2237", "ctu186", tkList);
        }
示例#2
0
 public ProjectController(IProjectInfoService projectInfoService, IHeatStepService heatStepService, ITmSigService tmSigService, IPidService pidService, IOvenInfoService ovenInfoService)
 {
     _projectInfoService = projectInfoService;
     _heatStepService    = heatStepService;
     _tmSigService       = tmSigService;
     _pidService         = pidService;
     _ovenInfoService    = ovenInfoService;
 }
示例#3
0
 public FlightDestineService(IBusinessmanRepository businessmanRepository, IPidService PidService)
 {
     currentUser          = AuthManager.GetCurrentUser();
     flightDestineService = new FlightService(businessmanRepository, currentUser);
     this.PidService      = PidService;
 }