protected void Page_Load(object sender, EventArgs e)
 {
     string op = Context.Request["op"];
     //下拉专业id
     planId = Request.QueryString["planId"];
     //下拉学院id
     collegeid = Request.QueryString["collegeId"];
     //输入框信息
     string strsearch = Request.QueryString["search"];
     teacher = (Teacher)Session["user"];
     userType = Session["state"].ToString();
     state = Convert.ToInt32(Session["state"]);
     if (state==0)
     {
         //超管
         getColl = collBll.Select();
         dsPlan = null;
         if (collegeid == null || collegeid == "0" || collegeid == "null")
         {
             //学院为空,专业为空
             dsPlan = null;
             getdata("");
         }
         else
         {
             dsPlan = planBll.getPlanByCid(int.Parse(collegeid));
             if (planId == "null" || planId == "0" || planId == null)
             {
                 //学院不为空,专业为空
                 getdata(SearchCollege());
             }
             else if (planId != null && planId != "null" && planId != "0")
             {
                 //两个都不为空
                 getdata(SearchCollAndPlan());
             }
             else if (strsearch != null)
             {
                 getdata(Search());
             }
         }
     }
     else if(state==2)
     {
         //分管
         collegeId = teacher.college.ColID;
         planId = Request.QueryString["planId"];
         dsPlan = planBll.getPlanByCid(collegeId);
         leader = Request.QueryString["leader"];
         member = Request.QueryString["member"];
         record = Request.QueryString["record"];
         _planId = Request.QueryString["planId"];
         getPlan = planBll.getPlanByCid(collegeId);
         op = Request.QueryString["op"];
         string submit = Request["submit"];
         try
         {
             if (submit == "submit")
             {
                 insert();
             }
             if (op == "" || op == null)
             {
                 getLeader = teacherBll.getLeaderByColl(collegeId, "", "");
                 getMember = teacherBll.getMemberByColl(collegeId, "", "");
                 getRecord = teacherBll.getRecordByColl(collegeId, "", "");
             }
             else
             {
                 if (op == "change1")
                 {
                     getLeader = teacherBll.getLeaderByColl(collegeId, member, record);
                     getMember = teacherBll.getMemberByColl(collegeId, leader, record);
                     getRecord = teacherBll.getRecordByColl(collegeId, leader, member);
                 }
                 else if (op == "change2")
                 {
                     getLeader = teacherBll.getLeaderByColl(collegeId, member, record);
                     getMember = teacherBll.getMemberByColl(collegeId, leader, record);
                     getRecord = teacherBll.getRecordByColl(collegeId, leader, member);
                 }
                 else if (op == "change3")
                 {
                     getLeader = teacherBll.getLeaderByColl(collegeId, member, record);
                     getMember = teacherBll.getMemberByColl(collegeId, leader, record);
                     getRecord = teacherBll.getRecordByColl(collegeId, leader, member); ;
                 }
             }
             getColl = collBll.Select();
             dsPlan = planBll.getPlanByCid(collegeId);
             if (strsearch != null)
             {
                 getdata(Search());
             }
             else if (planId != null && planId != "null")
             {
                 getdata(SearchPlan());
             }
             else
             {
                 getdata("");
             }
         }
         catch (Exception ex)
         {
             LogHelper.Error(this.GetType(), ex);
         }
     }
 }