private void ShowTime() { if (LearnSite.Common.CookieHelp.IsStudentLogin()) { string ch = Labelclass.Text; switch (ch) { case "微课": case "教程": case "资料": { LBtnfile.Visible = true; break; } case "软件": { LearnSite.BLL.Soft st = new LearnSite.BLL.Soft(); if (st.IsDownCan()) { LBtnfile.Visible = true; Labelmsg.Text = ""; } else { Labelcontent.Text = "<br/><br/><br/><div style='text-align: center'>隐藏内容</div><br/><br/><br/>"; Labelmsg.Text = "登录" + LearnSite.Common.XmlHelp.GetDowntime().ToString() + "分钟后可下载"; LBtnfile.Visible = false; } break; } case "游戏": { string Wnum = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Snum"].ToString(); LearnSite.BLL.Works wbll = new LearnSite.BLL.Works(); int todayScore = wbll.GetTodayWorkScores(Wnum); if (todayScore > Int32.Parse(Labelopen.Text) - 1) { LBtnfile.Visible = true; Labelmsg.Text = "你的作品平均得" + todayScore.ToString() + "分"; } else { Labelcontent.Text = "<br/><br/><br/><div style='text-align: center'>隐藏内容</div><br/><br/><br/>"; Labelmsg.Text = "今天作品赚取" + todayScore.ToString() + "学分不够使用!"; LBtnfile.Visible = false; } break; } } if (HLurl.NavigateUrl == "") { LBtnfile.Visible = false; } } }