Ejemplo n.º 1
0
    private void showCid()
    {
        int Chid  = tcook.Hid;
        int Cobj  = Int32.Parse(DDLgrade.SelectedValue);
        int Cterm = Int32.Parse(LearnSite.Common.XmlHelp.GetTerm());

        LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses();
        DDLCid.DataSource     = cbll.ShowCidCtitle(Chid, Cobj, Cterm);
        DDLCid.DataTextField  = "Ctitle";
        DDLCid.DataValueField = "Cid";
        DDLCid.DataBind();
    }
Ejemplo n.º 2
0
    private void showCid()
    {
        int Chid  = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString());//教师编号
        int Cobj  = Int32.Parse(DDLgrade.SelectedValue);
        int Cterm = Int32.Parse(LearnSite.Common.XmlHelp.GetTerm());

        LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses();
        DDLCid.DataSource     = cbll.ShowCidCtitle(Chid, Cobj, Cterm);
        DDLCid.DataTextField  = "Ctitle";
        DDLCid.DataValueField = "Cid";
        DDLCid.DataBind();
    }
Ejemplo n.º 3
0
    private void ShowCid()
    {
        string Hid    = tcook.Hid.ToString();
        string cterm  = LearnSite.Common.XmlHelp.GetTerm();
        string dgrade = DDLgrade.SelectedValue;

        if (dgrade != "")
        {
            LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses();
            DDLCid.DataSource     = cbll.ShowCidCtitle(Int32.Parse(Hid), Int32.Parse(dgrade), Int32.Parse(cterm));
            DDLCid.DataTextField  = "Ctitle";
            DDLCid.DataValueField = "Cid";
            DDLCid.DataBind();
        }
    }
Ejemplo n.º 4
0
    private void ShowCid()
    {
        string Hid = Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString();

        LabelGradeClass.Text = Request.QueryString["wGrade"].ToString() + "年级" + Request.QueryString["wClass"].ToString() + "班";
        int    Sgrade = Int32.Parse(Request.QueryString["wGrade"].ToString());
        int    Sclass = Int32.Parse(Request.QueryString["wClass"].ToString());
        string myCid  = Request.QueryString["wCid"].ToString();//直接url传递
        string cterm  = LearnSite.Common.XmlHelp.GetTerm();

        LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses();
        DDLCid.DataSource     = cbll.ShowCidCtitle(Int32.Parse(Hid), Sgrade, Int32.Parse(cterm));
        DDLCid.DataTextField  = "Ctitle";
        DDLCid.DataValueField = "Cid";
        DDLCid.DataBind();
        if (myCid != "")
        {
            DDLCid.SelectedValue = myCid;//设置为自动获取的今天本班学案Cid
        }
    }