//审批[不通过]
        protected void btnUnapprove_Click(object sender, EventArgs e)
        {
            #region 验证
            if (string.IsNullOrEmpty(Opinion.Text.Trim()))
            {
                LabMS.Common.JShelper.JSAlert(Page, "err", "审批意见不能为空!");
                return;
            }
            #endregion
            LabMS.BLL.PersonalProject projectinfo = new LabMS.BLL.PersonalProject();
            LabMS.Model.PersonalProject project = new LabMS.Model.PersonalProject();

            int ProjectID = int.Parse(Request.QueryString["ProjectID"]);
            project = projectinfo.GetModel(ProjectID);

            project.Opinion = Opinion.Text;
            project.ProjectStatus = "3";
            try
            {
                projectinfo.Update(project);
            }
            catch (Exception ex)
            {
                lbErr.Text = ex.Message;
                lbErr.Visible = true;
                return;
            }
            LabMS.Common.JShelper.JSAlertAndRedirect(Page, "UnapproveSuccess", "审批不通过操作成功", "ListPersonalProject.aspx");
        }
        //审批[通过]
        protected void btnApprove_Click(object sender, EventArgs e)
        {
            #region 验证
            if (string.IsNullOrEmpty(Opinion.Text.Trim()))
            {
                LabMS.Common.JShelper.JSAlert(Page, "err", "审批意见不能为空!");
                return;
            }
            if (string.IsNullOrEmpty(LabDate.Text.Trim()) || string.IsNullOrEmpty(LabStartTimeHour.Text.Trim()) || string.IsNullOrEmpty(LabStartTimeMinute.Text.Trim())
                || string.IsNullOrEmpty(LabEndTimeHour.Text.Trim()) || string.IsNullOrEmpty(LabEndTimeMinute.Text.Trim()))
            {
                LabMS.Common.JShelper.JSAlert(Page, "err", "实验时间不能为空!");
                return;
            }

            int StartHour = 0;
            int EndHour = 0;
            int StartMinute = 0;
            int EndMinute = 0;
            if (!(int.TryParse(LabStartTimeHour.Text.Trim(), out StartHour) && int.TryParse(LabStartTimeMinute.Text.Trim(), out StartMinute)
                && int.TryParse(LabEndTimeHour.Text.Trim(), out EndHour) && int.TryParse(LabEndTimeMinute.Text.Trim(), out EndMinute)))
            {
                LabMS.Common.JShelper.JSAlert(Page, "err", "实验时间只能输入数字!");
                return;
            }
            else
            {
                StartHour = int.Parse(LabStartTimeHour.Text.Trim());
                StartMinute = int.Parse(LabStartTimeMinute.Text.Trim());
                EndHour = int.Parse(LabEndTimeHour.Text.Trim());
                EndMinute = int.Parse(LabEndTimeMinute.Text.Trim());

                if (StartHour > 24 || EndHour > 24 || StartMinute > 60 || EndMinute > 60)
                {
                    LabMS.Common.JShelper.JSAlert(Page, "err", "实验时间不合法!");
                    return;
                }
                if (StartHour > EndHour || ((StartHour.Equals(EndHour)) && (StartMinute>=EndMinute)))
                {
                    LabMS.Common.JShelper.JSAlert(Page, "err", "实验开始时间大于结束时间!");
                    return;
                }
            }
            if (ddlLocation.SelectedValue.ToString().Equals("0"))
            {
                LabMS.Common.JShelper.JSAlert(Page, "err", "实验地点不能为空!");
                return;
            }
            #endregion
            LabMS.BLL.PersonalProject projectinfo = new LabMS.BLL.PersonalProject();
            LabMS.Model.PersonalProject project = new LabMS.Model.PersonalProject();

            int ProjectID = int.Parse(Request.QueryString["ProjectID"]);
            project = projectinfo.GetModel(ProjectID);

            project.Opinion = Opinion.Text;
            project.ProjectLabID = int.Parse(ddlLocation.SelectedValue.Trim());
            project.ProjectStartTime = DateTime.Parse(LabDate.Text + "  " + LabStartTimeHour.Text + ":" + LabStartTimeMinute.Text + ":00");
            project.ProjectEndTime = DateTime.Parse(LabDate.Text + "  " + LabEndTimeHour.Text + ":" + LabEndTimeMinute.Text + ":00");
            project.ProjectStatus = "4";
            try
            {
                projectinfo.Update(project);
            }
            catch (Exception ex)
            {
                lbErr.Text = ex.Message;
                lbErr.Visible = true;
                return;
            }
            LabMS.Common.JShelper.JSAlertAndRedirect(Page, "ApproveSuccess", "审批通过操作成功", "ListPersonalProject.aspx");
        }