protected void DDLGscores_SelectedIndexChanged(object sender, EventArgs e) { string gid = Labelgid.Text; if (!string.IsNullOrEmpty(gid)) { string score = DDLGscores.SelectedValue; int sgrade = Int32.Parse(Request.QueryString["Sg"].ToString()); string term = LearnSite.Common.XmlHelp.GetTerm(); LearnSite.BLL.GroupWork gbll = new LearnSite.BLL.GroupWork(); gbll.UpdateGscore(Int32.Parse(gid), Int32.Parse(score), sgrade, Int32.Parse(term)); } }
protected void DDLGscores_SelectedIndexChanged(object sender, EventArgs e) { DropDownList ddl = (DropDownList)sender;//取触发的下拉列表框 string gid = ddl.ToolTip; if (!string.IsNullOrEmpty(gid)) { string score = ddl.SelectedValue; int sgrade = Int32.Parse(Request.QueryString["Sg"].ToString()); string term = LearnSite.Common.XmlHelp.GetTerm(); LearnSite.BLL.GroupWork gbll = new LearnSite.BLL.GroupWork(); gbll.UpdateGscore(Int32.Parse(gid), Int32.Parse(score), sgrade, Int32.Parse(term)); } }
protected void DataListgroup_ItemCommand(object source, DataListCommandEventArgs e) { int Ggrade = Int32.Parse(Request.QueryString["wGrade"].ToString()); int Cterm = Int32.Parse(LearnSite.Common.XmlHelp.GetTerm()); int Gscore = 0; int Gid = Int32.Parse(DataListgroup.DataKeys[e.Item.ItemIndex].ToString()); LearnSite.BLL.GroupWork gbll = new LearnSite.BLL.GroupWork(); string cdme = e.CommandName; Gscore = Int32.Parse(cdme); gbll.UpdateGscore(Gid, Gscore, Ggrade, Cterm); //评分 System.Threading.Thread.Sleep(500); showGroup(); }