public static void CreateFilePDFLapBatalKontrak(string UserID, string LokasiID, string TipeID, DateTime Dari, DateTime Sampai, string Project, bool DefaultReport) { string Tipe = TipeReport(3); string nama = TglNamaBln(Dari.Month, false) + " " + Dari.Year; //nama tampilan string pdffilename = "BK-" + NamaBln(Dari.Month) + Dari.Year + "-" + GetRandomPdfFileName() + ".pdf"; string myHtml = Param.IPAddress + "LaporanApi/LapBatalKontrakApi.aspx?tipe=" + TipeID + "&lokasi=" + LokasiID + "&userid=" + UserID + "&dari=" + LibApi.Tgl(Dari) + "&sampai=" + LibApi.Tgl(Sampai) + "&project=" + Project; LibApi.CreateFilePDF(pdffilename, myHtml, 0, Tipe, DefaultReport, nama); }
public static void CreateFilePDFManagementReport(DateTime Tgl, string UserID, string Project, bool DefaultReport) { string Tipe = TipeReport(4); string nama = Tgl.Day + " " + NamaBln(Tgl.Month) + " " + Tgl.Year; //nama tampilan string pdffilename = "MR-" + Tgl.Day + NamaBln(Tgl.Month) + Tgl.Year + "-" + GetRandomPdfFileName() + ".pdf"; string myHtml = Param.IPAddress + "LaporanApi/LapManagementReportApi.aspx?Tgl=" + LibApi.Tgl(Tgl) + "&UserID=" + UserID + "&Project=" + Project; LibApi.CreateFilePDF(pdffilename, myHtml, 1, Tipe, DefaultReport, nama); }
public static void CreateFilePDFLapPenjualan(string UserID, string LokasiID, string TipeID, string AgentID, DateTime Dari, DateTime Sampai, string Project, bool DefaultReport) { string Tipe = TipeReport(2); string nama = TglNamaBln(Dari.Month, false) + " " + Dari.Year; //nama tampilan string pdffilename = "Penjualan-" + NamaBln(Dari.Month) + Dari.Year + "-" + GetRandomPdfFileName() + ".pdf"; string myHtml = Param.IPAddress + "LaporanApi/LapPenjualanApi.aspx?tipe=" + TipeID + "&lokasi=" + LokasiID + "&agent=" + AgentID + "&titipjual=SEMUA&tipepro=SEMUA&userid=" + UserID + "&dari=" + LibApi.Tgl(Dari) + "&sampai=" + LibApi.Tgl(Sampai) + "&project=" + Project; //http://localhost:8030/LaporanApi/LapPenjualanApi.aspx?id=&tipe=SEMUA&lokasi=SEMUA&agent=SEMUA&titipjual=SEMUA&tipepro=SEMUA&userid=TES&dari=2018-02-01&sampai=2018-02-28 LibApi.CreateFilePDF(pdffilename, myHtml, 0, Tipe, DefaultReport, nama); }