private void ListSelectShare() { bool isgp = CkIsGroup.Checked;//是否小组或个人 string Sname = Server.UrlDecode(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sname"].ToString()); string Snum = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Snum"].ToString(); string Syear = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Syear"].ToString(); 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()); bool isenable = isShareEnable(Sgrade, Sclass); if (isenable) { if (isgp) { int Sgroup = GetmySgroup();//获取自己的组号 if (Sgroup > 0) { if (isGroupShareEnable(Sgrade, Sclass)) { LearnSite.BLL.Students sbll = new LearnSite.BLL.Students(); Labeltitle.Text = "《" + sbll.GetSgtitle(Sgroup) + "》小组网盘"; ListShareFiles(Syear, Sclass.ToString(), Sgroup.ToString(), isgp);//列出网盘文件 Fupload.Visible = true; Btnupload.Visible = true; } else { Labeltitle.Text = "小组网盘未启用……"; Dlfilelist.Visible = false; Fupload.Visible = false; Btnupload.Visible = false; Labeldisk.Text = ""; } } else { Labeltitle.Text = "您未参加小组……"; Dlfilelist.Visible = false; Fupload.Visible = false; Btnupload.Visible = false; Labeldisk.Text = ""; } } else { ListShareFiles(Syear, Sclass.ToString(), Snum, isgp);//列出网盘文件 Labeltitle.Text = Sname + "个人网盘"; Fupload.Visible = true; Btnupload.Visible = true; } } else { Labeltitle.Text = "个人网盘未启用……"; Dlfilelist.Visible = false; Fupload.Visible = false; Btnupload.Visible = false; } showDiskgif(isenable, isgp); }
private void ListSelectShare() { bool isgp = CkIsGroup.Checked;//是否小组或个人 bool isenable = isShareEnable(cook.Sgrade, cook.Sclass); if (isenable) { if (isgp) { int Sgroup = GetmySgroup();//获取自己的组号 if (Sgroup > 0) { if (isGroupShareEnable(cook.Sgrade, cook.Sclass)) { LearnSite.BLL.Students sbll = new LearnSite.BLL.Students(); Labeltitle.Text = "《" + sbll.GetSgtitle(Sgroup) + "》小组网盘"; ListShareFiles(cook.Syear.ToString(), cook.Sclass.ToString(), Sgroup.ToString(), isgp);//列出网盘文件 Fupload.Visible = true; Btnupload.Visible = true; } else { Labeltitle.Text = "小组网盘未启用……"; Dlfilelist.Visible = false; Fupload.Visible = false; Btnupload.Visible = false; Labeldisk.Text = ""; } } else { Labeltitle.Text = "您未参加小组……"; Dlfilelist.Visible = false; Fupload.Visible = false; Btnupload.Visible = false; Labeldisk.Text = ""; } } else { ListShareFiles(cook.Syear.ToString(), cook.Sclass.ToString(), cook.Snum, isgp);//列出网盘文件 Labeltitle.Text = Server.UrlDecode(cook.Sname) + "个人网盘"; Fupload.Visible = true; Btnupload.Visible = true; } } else { Labeltitle.Text = "个人网盘未启用……"; Dlfilelist.Visible = false; Fupload.Visible = false; Btnupload.Visible = false; } showDiskgif(isenable, isgp); }
private void showGroupmsg() { int mysid = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sid"].ToString()); LearnSite.BLL.Students sbll = new LearnSite.BLL.Students(); string sgtitle = sbll.GetSgtitle(mysid); if (!string.IsNullOrEmpty(sgtitle)) { PanelSgtitle.Visible = true; TextBox1.Text = sgtitle; } else { PanelSgtitle.Visible = false; } }
private void showGroupmsg() { int mysid = cook.Sid; LearnSite.BLL.Students sbll = new LearnSite.BLL.Students(); string sgtitle = sbll.GetSgtitle(mysid); if (!string.IsNullOrEmpty(sgtitle)) { PanelSgtitle.Visible = true; TextBox1.Text = sgtitle; } else { PanelSgtitle.Visible = false; } }