コード例 #1
0
        public ActionResult HAWBPrintPDF(string HAWB)
        {
            AspPrintPDFAirExportHAWB model = new AspPrintPDFAirExportHAWB()
            {
                HAWB = HAWB
            };

            return(View(model));
        }
コード例 #2
0
        public ActionResult HAWBPrintPDF(AspPrintPDFAirExportHAWB model)
        {
            string url = string.Empty;

            model.HAWB = Request["HAWB"];
            url        = GenerateHAWBPrintUrl(model);
            Stream receiveStream = null;

            ELT.COMMON.Util.ReadFileStream(url, ref receiveStream);
            return(File(receiveStream, "application/pdf", model.HAWB + ".pdf"));
        }
コード例 #3
0
        private string GenerateHAWBPrintUrl(AspPrintPDFAirExportHAWB model)
        {
            string url = string.Empty;

            if (model.DocType == "1")
            {
                url = String.Format("/asp/air_export/hawb_pdf.asp?HAWB={0}&Copy={1}", model.HAWB, model.PDFCopyType);
            }
            else if (model.DocType == "2")
            {
                url = String.Format("/asp/air_export/print_rider.asp?vMaster={0}", model.HAWB, model.PDFCopyType);
            }

            return(HttpUtility.UrlEncode(url));
        }