예제 #1
0
        private static void CreateReportBatteryAllCustPdf(string ReportFolderPath, string TempFolderPath, string ImageFolderPath, string Vin, string ProcessDate, string CustomerName, string ReportPeriod, string WeekNumber, string YearNumber, int ReportID)
        {
            string ImageFileName = Path.Combine(ImageFolderPath, "splash.png");
            string RptImageFolder = Path.Combine(TempFolderPath,"DailyBatteryAllCust");

            CreateReports CrtPdf = new CreateReports();
            Random r = new Random();
            int rano = r.Next(1000, 9999);
            string PdfFolder = Path.Combine(ReportFolderPath, "DailyBatteryAllCust");
            string ReportFileName = String.Empty;

            ReportFileName = Path.Combine(PdfFolder, "DailyBatteryReport_AllCust" + "_" + ProcessDate.Replace("/", "") + "_" + rano + ".pdf");

            CrtPdf.SetUp(ReportFileName, Vin, ProcessDate, ReportPeriod, WeekNumber, YearNumber);
            CrtPdf.GenPdfDailyBatteryAllCust(RptImageFolder, ImageFileName, ReportPeriod,ProcessDate);
            //   CrtPdf.getImage(VinId, ProcessDate, WebAddress, ImageFolder);
            CrtPdf.TearDown();

            GetData VinRptData = new GetData();
            VinRptData.UdpdateReportLog(ReportID);
        }