Exemplo n.º 1
0
 private void updatescore(string Wid, int Wscore)
 {
     LearnSite.Model.Works work = new LearnSite.Model.Works();
     work.Wid =Int32.Parse( Wid);
     work.Wscore = Wscore;
     work.Wcheck = true;
     LearnSite.BLL.Works workbll = new LearnSite.BLL.Works();
     if (Wscore == 12)
     {
         workbll.WgoodBest(Int32.Parse(Wid));
     }
     else
     {
         workbll.WgoodNormal(Int32.Parse(Wid));
     }
     workbll.ScoreOneWork(work);
     System.Threading.Thread.Sleep(500);
     Labelmsg.Text = "编号为" + Wid + "的作品评分为" + Wscore + "分";
     showscore();
     GridViewScore.DataBind();
 }