Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        CareerCruisingWeb.PageBase.CPAdminBase Admin = new CareerCruisingWeb.PageBase.CPAdminBase();
        Admin.GetSystemSchoolInfo();

        if (Convert.ToInt16(Admin.CPAdminUserInfo["SecurityLevel"]) > 98)
        {
            TaskInfo.Visible = true;
        }
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //determines page name
        String strFileName;
        strFileName = Request.Path;
        strFileName = strFileName.Substring(strFileName.LastIndexOf("/") + 1);
        strFileName = strFileName.ToLower();

        CareerCruisingWeb.PageBase.CPAdminBase Admin = new CareerCruisingWeb.PageBase.CPAdminBase();
        Admin.GetSystemSchoolInfo();

        DataRow CPSystemSchoolInfo = Admin.CPSystemSchoolInfo;

        if (CPSystemSchoolInfo["SystemName"] != System.DBNull.Value)
        {
            if (hlkHome.Visible == true) ltrColon1.Visible = true;

            hlkSystem.Visible = true;
            hlkSystem.Text = CPSystemSchoolInfo["SystemName"].ToString();
            hlkSystem.NavigateUrl = "~/Admin/CP/System.aspx";
        }
        else
        {
            ltrColon1.Visible = false;
            hlkSystem.Visible = false;
        }

        if (CPSystemSchoolInfo["SchoolName"] != System.DBNull.Value)
        {
            if (hlkSystem.Visible == true) ltrColon2.Visible = true;

            hlkSchool.Visible = true;
            hlkSchool.Text = CPSystemSchoolInfo["SchoolName"].ToString();
            hlkSchool.NavigateUrl = "~/Admin/CP/School.aspx";
        }
        else
        {
            ltrColon2.Visible = false;
            hlkSchool.Visible = false;
        }

        if (Convert.ToInt16(Admin.CPAdminUserInfo["SecurityLevel"]) > 98)
        {
            AdditionalInfo.Visible = true;
        }
    }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //determines page name
        String strFileName;
        strFileName = Request.Path;
        strFileName = strFileName.Substring(strFileName.LastIndexOf("/") + 1);
        strFileName = strFileName.ToLower();

        CareerCruisingWeb.PageBase.CPAdminBase Admin = new CareerCruisingWeb.PageBase.CPAdminBase();
        Admin.GetSystemSchoolInfo();

        DataRow CPSystemSchoolInfo = Admin.CPSystemSchoolInfo;

        if (Convert.ToInt16(Admin.CPAdminUserInfo["SecurityLevel"]) > 50)
        {

        }
    }