Ejemplo n.º 1
0
        //06-02-2018 untuk Laporan Master Unit di setup sales
        #region public static void EnHeader(Table rpt, StringBuilder x)
        public static void EnHeader(Table rpt, StringBuilder x)
        {
            TableRow legend = rpt.Rows[0];

            legend.Cells[0].Text = "This Report created on : " + Cf.EnWeek(DateTime.Today)
                                   + ", " + Cf.Date(DateTime.Now)
                                   + " from workstation : " + Act.IP
                                   + " and username : "******"<br>"
                                   + legend.Cells[0].Text;

            TableRow th = rpt.Rows[1];

            for (int i = 0; i < th.Cells.Count; i++)
            {
                th.Cells[i].Attributes["style"] = "background-color:gray;color:white;";
            }

            TableRow title = new TableRow();

            TableCell c = new TableCell();

            c.Text       = x.ToString();
            c.ColumnSpan = th.Cells.Count;
            title.Cells.Add(c);

            rpt.Rows.Add(title);
            rpt.Rows.Add(legend);
            rpt.Rows.Add(th);
        }