//绑定申请人
        protected void BindApplicantList(int ProjectID)
        {
            ExtendBLL.PersonalProject personalproject = new ExtendBLL.PersonalProject();
            List<ExtendModule.StudentAndOther> applicantList = new List<ExtendModule.StudentAndOther>();

            string strWhere = " pa.PersonalProjID = " + ProjectID;
            applicantList = personalproject.GetStudentInfoList(strWhere);
            gvApplicant.DataSource = applicantList;
            gvApplicant.DataBind();
        }
        protected void Button2_Click(object sender, EventArgs e)
        {
            int ProjectID = int.Parse(Request.QueryString["ProjectID"]);
            string strAlert = "删除成功!";
            try
            {
                LabMS.BLL.PersonalProject project = new LabMS.BLL.PersonalProject();
                project.Delete(ProjectID);

                ExtendBLL.PersonalProject consume = new ExtendBLL.PersonalProject();
                consume.DeleteConsumeByProjectID(ProjectID);

                ExtendBLL.PersonalProject applicant = new ExtendBLL.PersonalProject();
                applicant.DeleteApplicantByProjectID(ProjectID);
            }
            catch (Exception ex)
            {
                lbErr.Text = ex.Message;
                lbErr.Visible = true;
                return;
            }

            Common.JShelper.JSAlertAndRedirect(Page, "success", strAlert, "ListPersonalProject.aspx");
        }
        protected void btnApp_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            string status = "";
            string strAlert = "";
            if (btn.ID == "btnCancelApp")
            {
                status = "1";
                strAlert = "撤销申请成功!";
            }
            if (btn.ID == "btnApp")
            {
                status = "2";
                strAlert = "申请成功,请等待审核!";
            }

            int ProjectID = int.Parse(Request.QueryString["ProjectID"]);
            ExtendBLL.PersonalProject project = new ExtendBLL.PersonalProject();
            try
            {
                project.UpdateStatus(status, ProjectID);
            }
            catch (Exception ex)
            {
                lbErr.Text = ex.Message;
                lbErr.Visible = true;
                return;
            }
            Common.JShelper.JSAlertAndRedirect(Page, "success", strAlert, "PreviewPersonalProject.aspx?ProjectID=" + ProjectID);
        }