コード例 #1
0
    protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
    {
        string   estimate_start_date, estimate_end_date = string.Empty;
        string   project_id = string.Empty;
        string   project_name = string.Empty;
        string   status = string.Empty;
        DateTime estimate_start_dttm, estimate_end_dttm = new DateTime();

        DateTime currentData = DateTime.Now.Date;

        dv = ds.Tables[0].DefaultView;
        ////dv.RowFilter = e.Day.Date.ToString("yyyy/MM/dd") + " between estimate_start_date and estimate_end_date ";
        dv.RowFilter = string.Format("estimate_start_date <= '{0}' and estimate_end_date >= '{0}'", e.Day.Date.ToString("yyyy/MM/dd"));

        foreach (DataRow Rows in dv.ToTable().Rows)
        {
            estimate_start_date = Rows["estimate_start_date"].ToString() + " 00:00:00";
            estimate_end_date   = Rows["estimate_end_date"].ToString() + " 23:59:59";
            project_id          = Rows["project_id"].ToString();
            project_name        = "◆" + Rows["project_name"].ToString();
            status = Rows["status"].ToString();

            estimate_start_dttm = DateTime.Parse(estimate_start_date);
            estimate_end_dttm   = DateTime.Parse(estimate_end_date);

            Calendar_AddControl1.addControl(e, project_id, project_name, status, estimate_start_dttm, estimate_end_dttm, navigateUrl);
        }
    }
コード例 #2
0
 private void setColorList()
 {
     Calendar_AddControl1.setColorList(bllColor);
 }