private void showSnum() { LearnSite.Model.Cook cook = new LearnSite.Model.Cook(); mysnum = cook.Snum; LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); oldspd.InnerText = "历史记录:" + fbll.GetPsnum(mysnum) + "个/分"; }
protected void ButtonClearFinger_Click(object sender, EventArgs e) { LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); int fct = fbll.ClearTb(); Labelmsg.Text = "执行结果:清除指法练习成绩共" + fct.ToString() + "条"; }
protected void DataList_enwai_ItemDataBound(object sender, DataListItemEventArgs e) { Label enlb = (Label)e.Item.FindControl("enLabelgrade"); DataList endl = (DataList)e.Item.FindControl("DataList_enli"); LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); int egd = Int32.Parse(enlb.Text); endl.DataSource = fbll.ShowTopFingerScore(egd, gettop()); endl.DataBind(); ((Label)e.Item.FindControl("enLabelgrade")).Text = LearnSite.Common.WordProcess.ChineseNum(egd) + "年级"; }
protected void ButtonClearFinger_Click(object sender, EventArgs e) { string Hid = Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString(); if (!string.IsNullOrEmpty(Hid)) { int rhid = Int32.Parse(Hid); LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); fbll.ClearMyTb(rhid); ButtonClearType.Enabled = false; labelmsg.Text = "清除所教班级学生指法打字成绩成功!"; } }
protected void ButtonClearFinger_Click(object sender, EventArgs e) { string Hid = tcook.Hid.ToString(); if (!string.IsNullOrEmpty(Hid)) { int rhid = Int32.Parse(Hid); LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); fbll.ClearMyTb(rhid); ButtonClearType.Enabled = false; labelmsg.Text = "清除所教班级学生指法打字成绩成功!"; } }
private void showwai() { LearnSite.BLL.Room rbll = new LearnSite.BLL.Room(); DataList_wai.DataSource = rbll.GetAllGrade(); DataList_wai.DataBind(); DataList_enwai.DataSource = DataList_wai.DataSource; DataList_enwai.DataBind(); LearnSite.BLL.Ptyper pbll = new LearnSite.BLL.Ptyper(); DataList_allc.DataSource = pbll.ShowSchoolTopTypeScore(gettop()); DataList_allc.DataBind(); LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); DataList_enall.DataSource = fbll.ShowSchoolTopFingerScore(gettop()); DataList_enall.DataBind(); }
private void showtops() { if (DDLgrade.SelectedValue != "") { int grade = Int32.Parse(DDLgrade.SelectedValue); int top = Int32.Parse(DDLtop.SelectedValue); string tys = DDLtype.SelectedValue; switch (tys) { case "0": LearnSite.BLL.Ptyper pbll = new LearnSite.BLL.Ptyper(); DataList_A4.DataSource = pbll.ShowTopTypeScore(grade, top); DataList_A4.DataBind(); break; case "1": LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); DataList_A4.DataSource = fbll.ShowTopFingerScoreAs(grade, top); DataList_A4.DataBind(); break; } } }
private void ShowFinger() { LearnSite.Model.Cook cook = new LearnSite.Model.Cook(); LearnSite.BLL.Pfinger pbll = new LearnSite.BLL.Pfinger(); string sestr = DDLselect.SelectedValue; switch (sestr) { case "1": GVFinger.DataSource = pbll.ShowSchoolFingerScore(); break; case "2": GVFinger.DataSource = pbll.ShowAllFingerScore(cook.Sgrade); break; case "3": GVFinger.DataSource = pbll.ShowClassFingerScore(cook.Sgrade, cook.Sclass); break; } GVFinger.DataBind(); }
private void ShowFinger() { int MySgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString()); int MySclass = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString()); LearnSite.BLL.Pfinger pbll = new LearnSite.BLL.Pfinger(); string sestr = DDLselect.SelectedValue; switch (sestr) { case "1": GVFinger.DataSource = pbll.ShowSchoolFingerScore(); break; case "2": GVFinger.DataSource = pbll.ShowAllFingerScore(MySgrade); break; case "3": GVFinger.DataSource = pbll.ShowClassFingerScore(MySgrade, MySclass); break; } GVFinger.DataBind(); }
private void showSnum() { mysnum = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Snum"].ToString(); LearnSite.BLL.Pfinger fbll = new LearnSite.BLL.Pfinger(); oldspd.InnerText = "历史记录:" + fbll.GetPsnum(mysnum) + "个/分"; }