Exemple #1
0
    private void showChinese()
    {
        LearnSite.Model.Cook cook = new LearnSite.Model.Cook();

        LearnSite.BLL.Room rbll = new LearnSite.BLL.Room();
        string             Nids = rbll.GetRchineseByClass(cook.Sgrade, cook.Sclass);

        LearnSite.BLL.Chinese cbll = new LearnSite.BLL.Chinese();
        DataList1.DataSource = cbll.ShowAllNid(Nids);
        DataList1.DataBind();
        if (DataList1.Items.Count > 0)
        {
            Lbnid.Text = ((Label)DataList1.Items[0].FindControl("Lbid")).Text;
        }
    }
Exemple #2
0
    private void showChinese()
    {
        int Sgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString());
        int Sclass = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString());

        LearnSite.BLL.Room rbll = new LearnSite.BLL.Room();
        string             Nids = rbll.GetRchineseByClass(Sgrade, Sclass);

        LearnSite.BLL.Chinese cbll = new LearnSite.BLL.Chinese();
        DataList1.DataSource = cbll.ShowAllNid(Nids);
        DataList1.DataBind();
        if (DataList1.Items.Count > 0)
        {
            Lbnid.Text = ((Label)DataList1.Items[0].FindControl("Lbid")).Text;
        }
    }