コード例 #1
0
        private void Header()
        {
            System.Text.StringBuilder x = new System.Text.StringBuilder();

            Rpt.Judul(x, comp, judul);

            DateTime Dari   = Db.SingleTime("SELECT FilterDari FROM LapPDF WHERE AttachmentID='" + AttachmentID + "'");
            DateTime Sampai = Db.SingleTime("SELECT FilterSampai FROM LapPDF WHERE AttachmentID='" + AttachmentID + "'");

            Rpt.SubJudul(x, "Periode: " + Cf.NamaBln(bulan) + " " + tahun);

            Rpt.SubJudul(
                x, "Project : " + Project
                );

            string pers = (Perusahaan == "SEMUA") ? "SEMUA" : Db.SingleString("SELECT Nama FROM " + Mi.DbPrefix + "SECURITY..REF_PERS WHERE Pers = '" + Perusahaan + "'");

            Rpt.SubJudul(
                x, "Perusahaan : " + pers
                );

            string legend = "";

            //Rpt.Header(rpt, x);
            Rpt.HeaderReport(headReport, legend, x);
        }
コード例 #2
0
ファイル: PDFMasterAgent.aspx.cs プロジェクト: yorigum/isc064
        private void FillHeader()
        {
            System.Text.StringBuilder x = new System.Text.StringBuilder();

            Rpt.Judul(x, comp, judul);



            string status = "";

            if (StatusS != "")
            {
                status = StatusS;
            }
            if (StatusA != "")
            {
                status = StatusA;
            }
            if (StatusI != "")
            {
                status = StatusI;
            }

            Rpt.SubJudul(x
                         , "Status : " + status
                         );

            Rpt.SubJudul(x
                         , "Nama : " + Nama.Replace("-", ",").TrimEnd(',')
                         );

            if (Input != "SEMUA")
            {
                string[] str = Input.Split('-');


                Rpt.SubJudul(x
                             , "Periode Input : " + Cf.NamaBln(str[1]) + " " + str[0]
                             );
            }
            else
            {
                Rpt.SubJudul(x
                             , "Periode Input : SEMUA"
                             );
            }

            Rpt.SubJudul(x
                         , "Principal : " + Principal
                         );

            Rpt.SubJudul(x
                         , "Tipe : " + Tipe
                         );

            string legend = "";

            //Rpt.Header(rpt, x);
            Rpt.HeaderReport(headReport, legend, x);
        }