Example #1
0
        protected void btnEduConfirm_Click(object sender, EventArgs e)
        {
            DataClassesDataContext dc = new DataClassesDataContext();
            ExecuteStatus          es = dc.ExecuteStatus.SingleOrDefault(ess => ess.F_projectID.Equals(projectID));

            if (radEdu.SelectedValue.Equals("审核不通过"))
            {
                es.F_status = ProjectStatus.Deny;
            }
            else
            {
                es.F_status = ProjectStatus.PassEduCheck;
            }
            es.F_completeStatus = txtCompleteStatus.Text;
            es.F_problem        = txtProblem.Text;
            es.F_conclusion     = txtConclustion.Text;
            es.F_suggestion     = txtSuggestion.Text;
            if (string.IsNullOrEmpty(txtCheckDate.Text) == false)
            {
                es.F_checkDate = DateTime.Parse(txtCheckDate.Text);
            }
            es.F_checkPerson = txtCheckPerson.Text;
            if (String.IsNullOrEmpty(txtEduConfirmDate.Text) == false)
            {
                es.F_eduConfirmDate = DateTime.Parse(txtEduConfirmDate.Text);
            }
            AuditOperation.SetAudit(projectID, RoleType.EduAdmin, radEdu.SelectedValue, es.F_eduConfirmDate.Value);
            dc.SubmitChanges();
            Response.Redirect("frmExecute.aspx?tabNum=4");
        }
Example #2
0
        protected void btnUnitConfirm_Click(object sender, EventArgs e)
        {
            DataClassesDataContext dc = new DataClassesDataContext();
            ExecuteStatus          es = dc.ExecuteStatus.SingleOrDefault(ess => ess.F_projectID.Equals(projectID));

            if (radScho.SelectedValue.Equals("审核不通过"))
            {
                es.F_status = ProjectStatus.Deny;
            }
            else
            {
                es.F_status = ProjectStatus.UnderEducationAudit;
            }
            es.F_unitComment = txtUnitComment.Text;
            if (String.IsNullOrEmpty(txtUnitCheckDate.Text) == false)
            {
                es.F_unitCheckDate = DateTime.Parse(txtUnitCheckDate.Text);
            }
            AuditOperation.SetAudit(projectID, RoleType.SchoolAdmin, radScho.SelectedValue, es.F_unitCheckDate.Value);
            dc.SubmitChanges();
            Response.Redirect("frmExecute.aspx?tabNum=4");
        }