//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); }
public static void Header(Table rpt, StringBuilder x) { TableRow legend = rpt.Rows[0]; legend.Cells[0].Text = "Laporan dihasilkan pada hari : " + Cf.IndoWeek(DateTime.Today) + ", " + Cf.Date(DateTime.Now) + " dari workstation : " + Act.IP + " dan 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); }
private void LogIn(string UserID, string SecLevel, bool GantiPass) { //Simpan dulu tanggal TERAKHIR LOGIN (tidak termasuk kejadian login detik ini) DateTime TglLogin = Db.SingleTime("SELECT TglLogin FROM USERNAME WHERE UserID = '" + UserID + "'"); Session["LastLogin"] = Cf.IndoWeek(TglLogin) + ", " + Cf.Date(TglLogin); Db.Execute("EXEC spAppLogin " + " '" + UserID + "'" + ",'" + Act.IP + "'" + ",'" + Session.SessionID + "'" ); //Init Session Act.UserID = UserID; Act.SecLevel = SecLevel; if (GantiPass) { Response.Redirect("GantiPass.aspx?login=1"); } else { Response.Redirect("Gateway.aspx"); } }
public static void HeaderReport(HtmlGenericControl rpt, string legend, StringBuilder x) { rpt.InnerHtml = x.ToString() + "<br />"; rpt.InnerHtml += "Laporan dihasilkan pada hari : " + Cf.IndoWeek(DateTime.Today) + ", " + Cf.Date(DateTime.Now) + "<br />" + " dari workstation : " + Act.IP + " dan username : "******"<br />" + legend + "<br />"; }