Exemplo n.º 1
0
    private void CanUpload()
    {
        int sclass = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString());
        int sgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString());

        LearnSite.BLL.Room rbll = new LearnSite.BLL.Room();
        if (rbll.GetRphotoedit(sgrade, sclass))
        {
            Btnphoto.Enabled = true;
        }
        else
        {
            Btnphoto.Enabled = false;
            Labelstr.Text    = "限制修改相片";
        }
    }
Exemplo n.º 2
0
    private void CanUpload()
    {
        int sclass = cook.Sclass;
        int sgrade = cook.Sgrade;

        LearnSite.BLL.Room rbll = new LearnSite.BLL.Room();
        if (rbll.GetRphotoedit(sgrade, sclass))
        {
            Btnphoto.Enabled = true;
        }
        else
        {
            Btnphoto.Enabled = false;
            Labelstr.Text    = "限制修改相片";
        }
    }