예제 #1
0
    public void BindDrop()
    {
        ProjectTree projectTree = new ProjectTree();

        projectTree.BindDlistYears(this.ddlYear, this.Session["PmSet"], base.UserCode, base.Request["year"]);
        if (!string.IsNullOrEmpty(base.Request["year"]))
        {
            this.ddlYear.SelectedValue = base.Request["year"];
        }
    }
예제 #2
0
    public void BindDrop()
    {
        ProjectTree projectTree = new ProjectTree();

        projectTree.BindDlistYears(this.ddlYear, this.Session["PmSet"], base.UserCode, base.Request["year"]);
        this.ddlYear.Items.Add(new ListItem("组织机构", "zzjg"));
        if (base.Request["year"] != null)
        {
            this.ddlYear.SelectedValue = base.Request["year"];
        }
    }
예제 #3
0
    public void BindDrop()
    {
        ProjectTree projectTree = new ProjectTree();
        string      text        = base.Request["prjId"];

        this.hfldTreeSelVale.Value = text;
        string selectedYearValue = string.Empty;

        if (!string.IsNullOrEmpty(text))
        {
            DataTable projectDate = ProjectInfo.GetProjectDate(text);
            if (projectDate != null && projectDate.Rows.Count > 0)
            {
                object obj   = projectDate.Rows[0]["StartDate"];
                string value = (obj == null) ? string.Empty : obj.ToString();
                selectedYearValue = Convert.ToDateTime(value).Year.ToString();
            }
        }
        projectTree.BindDlistYears(this.ddlYear, this.Session["PmSet"], base.UserCode, selectedYearValue);
    }
예제 #4
0
    public void BindDrop()
    {
        ProjectTree projectTree = new ProjectTree();

        projectTree.BindDlistYears(this.ddlYear, this.Session["PmSet"], base.UserCode, base.Request["year"]);
    }