示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Login())
     {
         Response.Redirect("/login.aspx");
     }
     else
     {
         if (Session["currentproject"] != null)
         {
             Gantt1.prjID = long.Parse(Session["currentproject"].ToString());
             Session.Remove("currentproject");
         }
         Gantt1.MakeGantt();
         litPrint.Text = string.Format("<img src=/i/printer.gif border=0 style=\"cursor:pointer\" onclick=\"PrintGantt({0})\">", Gantt1.prjID);
         ProjectReport pr = new ProjectReport();
         pr.prjID         = Gantt1.prjID;
         pr.UC            = UC;
         litForecast.Text = pr.ForecastDate();
     }
 }