コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请先重新登录", "../../Default.aspx");
            return;
        }
        //studentsModel = new StudentsModel();
        //studentsPersonalInformationBLL = new StudentsPersonalInformationBLL();
        //studentsPersonalInformationModel = new StudentsPersonalInformationModel();
        //professionalBaseDeptBLL = new ProfessionalBaseDeptBLL();

        //studentsModel = (StudentsModel)Session["studentsModel"];
        //na = studentsModel.students_name;
        //tbcode = studentsModel.training_base_code;
        //studentsPersonalInformationModel = studentsPersonalInformationBLL.GetModelByNameTBCode(na, tbcode);

        //dt = professionalBaseDeptBLL.GetDeptDataTableByCode(studentsPersonalInformationModel.professional_base_code.ToString());

        //rotary_dept.DataSource = dt;

        //rotary_dept.DataTextField = "dept_name";
        //rotary_dept.DataValueField = "dept_code";
        //rotary_dept.DataBind();
        //rotary_dept.Items.Insert(0, new ListItem("==请选择==", string.Empty));
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }
        if (!IsPostBack)
        {
            loginModel = new LoginModel();

            loginModel           = (LoginModel)Session["loginModel"];
            TrainingBaseCode     = loginModel.training_base_code == null ? "" : loginModel.training_base_code.ToString();
            ProfessionalBaseCode = loginModel.professional_base_code == null ? "" : loginModel.professional_base_code.ToString();
        }
        StudentsRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]).Trim());
        Sex = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["Sex"]).Trim());

        MinZu             = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["MinZu"]).Trim());
        HighEducation     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["HighEducation"]).Trim());
        HighSchool        = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["HighSchool"]).Trim());
        IdentityType      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["IdentityType"]).Trim());
        SendUnit          = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["SendUnit"]).Trim());
        CollaborativeUnit = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["CollaborativeUnit"]).Trim());
        TrainingTime      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TrainingTime"]).Trim());
        PlanTrainingTime  = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["PlanTrainingTime"]).Trim());
        DeptName          = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
        TeachersRealName  = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeachersRealName"]).Trim());
        RotaryBeginTime   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["RotaryBeginTime"]).Trim());
        RotaryEndTime     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["RotaryEndTime"]).Trim());
        OutdeptStatus     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["OutdeptStatus"]).Trim());
    }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请先重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            loginModel = new LoginModel();

            loginModel           = (LoginModel)Session["loginModel"];
            TrainingBaseCode     = loginModel.training_base_code == null ? "" : loginModel.training_base_code.ToString();
            ProfessionalBaseCode = loginModel.professional_base_code == null ? "" : loginModel.professional_base_code.ToString();
        }


        StudentsRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]).Trim());
        DeptName         = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
        TeachersRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeachersRealName"]).Trim());

        RotaryBeginTime = CommonFunc.FilterSpecialString(CommonFunc.SafeGetDateTimeStringFromObjectByFormat(Request.Form["RotaryBeginTime"], "yyyy-MM-dd").Trim());
        RotaryEndTime   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetDateTimeStringFromObjectByFormat(Request.Form["RotaryEndTime"], "yyyy-MM-dd").Trim());
        TotalScore      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TotalScore"]).Trim());
        IsPass          = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["IsPass"]).Trim());
    }
コード例 #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请先重新登录", "../../Default.aspx");
            return;
        }

        loginModel = (LoginModel)Session["loginModel"];

        teachers_name      = loginModel.name;
        teachers_real_name = loginModel.real_name;
        training_base_code = loginModel.training_base_code;
        dept_code          = loginModel.dept_code;


        name = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["name"]).Trim());
        rotary_begin_time = CommonFunc.FilterSpecialString(CommonFunc.SafeGetDateTimeStringFromObjectByFormat(Request.Form["rotary_begin_time"], "yyyy-MM-dd").Trim());
        rotary_end_time   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetDateTimeStringFromObjectByFormat(Request.Form["rotary_end_time"], "yyyy-MM-dd").Trim());
        total_score       = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["total_score"]).Trim());
        is_pass           = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["is_pass"]).Trim());
        //if (name == null) {
        //   xianshi.Text = name + rotary_begin_time + rotary_end_time + total_score + is_pass;
        //}
    }
コード例 #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请先重新登录", "../../Default.aspx");
            return;
        }
        if (!IsPostBack)
        {
            loginModel = new LoginModel();

            loginModel             = (LoginModel)Session["loginModel"];
            training_base_code     = loginModel.training_base_code == null?"":loginModel.training_base_code.ToString();
            professional_base_code = loginModel.professional_base_code == null ? "" : loginModel.professional_base_code.ToString();
        }

        name = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["name"]).Trim());
        sex  = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["sex"]).Trim());

        minzu              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["minzu"]).Trim());
        high_education     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["high_education"]).Trim());
        high_school        = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["high_school"]).Trim());
        identity_type      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["identity_type"]).Trim());
        send_unit          = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["send_unit"]).Trim());
        collaborative_unit = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["collaborative_unit"]).Trim());
        training_time      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["training_time"]).Trim());
        plan_training_time = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["plan_training_time"]).Trim());
        //xianshi.Text=name+sex+mingzu+high_education+high_school+identity_type+send_unit+collaborative_unit+training_time+plan_training_time;
    }
コード例 #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请先重新登录", "../../Default.aspx");
            return;
        }

        LoginModel loginModel = new LoginModel();

        loginModel = (LoginModel)Session["loginModel"];

        TrainingBaseCode = CommonFunc.SafeGetStringFromObj(loginModel.training_base_code);
        RunQuestionnaireChart("QuestionnaireChartManagers", out sum, out one_a, out one_b, out one_c, out one_d, out one_e,
                              out two_a, out two_b, out two_c, out two_d, out two_e,
                              out three_a, out three_b, out three_c, out three_d, out three_e,
                              out four_a, out four_b, out four_c, out four_d, out four_e,
                              out five_a, out five_b, out five_c, out five_d, out five_e,
                              out six_a, out six_b, out six_c, out six_d, out six_e,
                              out seven_a, out seven_b, out seven_c, out seven_d, out seven_e,
                              out eight_a, out eight_b, out eight_c, out eight_d, out eight_e,
                              out nine_a, out nine_b, out nine_c, out nine_d, out nine_e,
                              out ten_a, out ten_b, out ten_c, out ten_d, out ten_e,
                              out eleven_a, out eleven_b, out eleven_c, out eleven_d, out eleven_e,
                              out twelve_a, out twelve_b, out twelve_c, out twelve_d, out twelve_e,
                              out thirteen_a, out thirteen_b, out thirteen_c, out thirteen_d, out thirteen_e, TrainingBaseCode);
    }
コード例 #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            LoginModel loginModel = new LoginModel();
            loginModel           = (LoginModel)Session["loginModel"];
            TrainingBaseCode     = loginModel.training_base_code;
            ProfessionalBaseCode = loginModel.professional_base_code;
        }
        StudentsRealName       = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]));
        PatientName            = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["PatientName"]).Trim());
        CaseId                 = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["CaseId"]).Trim());
        SurgeryName            = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["SurgeryName"]).Trim());
        IntraoperativePosition = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["IntraoperativePosition"]).Trim());
        Emergency              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["Emergency"]).Trim());
        SurgeryDate            = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["SurgeryDate"]).Trim());
        SurgeryIsStop          = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["SurgeryIsStop"]).Trim());

        DeptName         = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
        TeachersRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeachersRealName"]).Trim());
    }
コード例 #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }
        if (!IsPostBack)
        {
            loginModel = new LoginModel();

            loginModel         = (LoginModel)Session["loginModel"];
            training_base_code = loginModel.training_base_code.ToString();
            dept_code          = loginModel.dept_code.ToString();
            teachers_name      = loginModel.name.ToString();
        }
        name               = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["name"]).Trim());
        sex                = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["sex"]).Trim());
        high_education     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["high_education"]).Trim());
        identity_type      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["identity_type"]).Trim());
        send_unit          = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["send_unit"]).Trim());
        collaborative_unit = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["collaborative_unit"]).Trim());
        training_time      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["training_time"]).Trim());
        plan_training_time = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["plan_training_time"]).Trim());
        rotary_begin_time  = CommonFunc.SafeGetDateTimeStringFromObjectByFormat(CommonFunc.SafeGetStringFromObj(Request.Form["rotary_begin_time"]), "yyyy-MM-dd");
        rotary_end_time    = CommonFunc.SafeGetDateTimeStringFromObjectByFormat(CommonFunc.SafeGetStringFromObj(Request.Form["rotary_end_time"]), "yyyy-MM-dd");
        outdept_status     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["outdept_status"]).Trim());
        //wo.Text = name + sex + high_education + identity_type + send_unit + collaborative_unit + training_time + plan_training_time + rotary_begin_time + rotary_end_time + outdept_status;
    }
コード例 #9
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string password = CommonFunc.FilterSpecialString(txtPassword.Text.Trim());

        string password2 = CommonFunc.FilterSpecialString(txtPassword2.Text.Trim());

        if (password.Length < 6)
        {
            ShowMessageBox.Showmessagebox(this.Page, "密码长度不得小于六位", null);
            return;
        }
        if (password != password2)
        {
            ShowMessageBox.Showmessagebox(this.Page, "密码输入不一致,请重新输入", null);
            return;
        }
        if (string.IsNullOrEmpty(password))
        {
            ShowMessageBox.Showmessagebox(this.Page, "登录密码不能为空", null);
            return;
        }

        if (password.Length > 50)
        {
            ShowMessageBox.Showmessagebox(this.Page, "登录密码不能超过50个字符", null);
            return;
        }
        int n = loginBLL.UpdatePassword(user_name, password);

        if (n > 0)
        {
            ShowMessageBox.Showmessagebox(this.Page, "修改成功", null);
            return;
        }
    }
コード例 #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     user_name = CommonFunc.SafeGetStringFromObj(Request.QueryString["username"]);
     if (string.IsNullOrEmpty(user_name))
     {
         ShowMessageBox.Showmessagebox(this.Page, "用户名不能为空", null);
         return;
     }
 }
コード例 #11
0
    protected void save_Click(object sender, EventArgs e)
    {
        outDeptExamBLL   = new OutDeptExamBLL();
        outDeptExamModel = new OutDeptExamModel();

        outDeptExamModel.kqqk              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(kqqk.Text));
        outDeptExamModel.gztd              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(gztd.Text));
        outDeptExamModel.ydyf              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(ydyf.Text));
        outDeptExamModel.llsp              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(llsp.Text));
        outDeptExamModel.zdzx              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(zdzx.Text));
        outDeptExamModel.blsx              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(blsx.Text));
        outDeptExamModel.clbrnl            = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(clbrnl.Text));
        outDeptExamModel.sjcznl            = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(sjcznl.Text));
        outDeptExamModel.czjn              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(czjn.Text));
        outDeptExamModel.zdsp              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(zdsp.Text));
        outDeptExamModel.djnl              = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(djnl.Text));
        outDeptExamModel.total_score       = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(totalscore.Text));
        outDeptExamModel.instructor_date   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(teacher_time.Text));
        outDeptExamModel.dept_manager      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(kzr.Text));
        outDeptExamModel.dept_manager_date = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(kzr_time.Text));
        outDeptExamModel.is_pass           = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(ispass.SelectedItem.Value));

        if (string.IsNullOrEmpty(outDeptExamModel.is_pass))
        {
            ShowMessageBox.Showmessagebox(this, "考核结果不能为空", null);
            return;
        }

        if (string.IsNullOrEmpty(outDeptExamModel.dept_manager))
        {
            ShowMessageBox.Showmessagebox(this, "科主任不能为空", null);
            return;
        }

        if (outDeptExamModel.is_pass == "同意出科")
        {
            status = "已出科";
        }
        else
        {
            status = "顺延一期";
        }

        if (new StudentsRotaryBLL().UpdateOutdeptStatusByT(status, id) && outDeptExamBLL.UpdateById(outDeptExamModel, id))
        {
            try
            {
                Response.Write("<script language='javascript'> alert('出科考核表修改成功');window.opener.window.loadPageList('" + pi + "');window.close();</script>");
                Response.End();
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
    }
コード例 #12
0
    //protected void Login_Click(object sender, ImageClickEventArgs e)
    //{
    //    if (studentsradio.Checked == false && teachersradio.Checked == false && basesradio.Checked == false && managersradio.Checked == false)
    //    {
    //        ShowMessageBox.Showmessagebox(this.Page, "请选择对应的人员登录", "Default.aspx");


    //    }
    //    else
    //    {
    //        try
    //        {
    //            string Code = Session["CheckCode"].ToString().Trim();
    //            string Txtbox = this.txtCode.Text.ToString().Trim();

    //        if (string.Compare(Txtbox.ToUpper(), Code) != 0)
    //        {
    //            ShowMessageBox.Showmessagebox(this.Page, "验证码输入错误", null);
    //            return;
    //        }

    //        if (string.IsNullOrEmpty(txtUserName.Text.Trim()) || string.IsNullOrEmpty(txtPassword.Text.Trim()))
    //        {
    //            ShowMessageBox.Showmessagebox(this.Page, "账号和密码不能为空", "Default.aspx");
    //            return;
    //        }
    //        if (txtUserName.Text.Trim().Length > 50 || txtPassword.Text.Trim().Length > 50)
    //        {
    //            ShowMessageBox.Showmessagebox(this.Page, "账号和密码不能超过50个字符", "Default.aspx");
    //            return;
    //        }
    //        if (studentsradio.Checked == true)
    //        {
    //            StudentsModel entity = new StudentsModel();
    //            entity.students_name = txtUserName.Text.Trim();
    //            entity.students_password = txtPassword.Text.Trim();

    //            StudentsBLL studentsBLL = new StudentsBLL();

    //            dt = studentsBLL.GetDataTable(entity);
    //            StudentsModel studentsModel = new StudentsModel();
    //            studentsModel = (StudentsModel)ConvertTo.convertToModel(dt, studentsModel);
    //            if (studentsModel != null)
    //            {
    //                Session.Add("studentsModel", studentsModel);
    //               //Response.Write("<script> alert('学员你好!');</script>");
    //                Response.Redirect("~/students/Frame.aspx");
    //            }
    //            else
    //            {
    //                ShowMessageBox.Showmessagebox(this.Page, "用户名或密码有误,请重新输入!", "Default.aspx");
    //            }
    //        }else if(teachersradio.Checked==true){
    //            TeachersModel entity = new TeachersModel();
    //            entity.teachers_name = txtUserName.Text.Trim();
    //            entity.teachers_password = txtPassword.Text.Trim();

    //            TeachersBLL teachersBLL = new TeachersBLL();

    //            dt = teachersBLL.GetDataTable(entity);
    //            TeachersModel teachersModel = new TeachersModel();
    //            teachersModel = (TeachersModel)ConvertTo.convertToModel(dt, teachersModel);
    //            if (teachersModel != null)
    //            {
    //                Session.Add("teachersModel", teachersModel);
    //                //Response.Write("<script> alert('老师你好!');</script>");
    //                Response.Redirect("~/teachers/Frame.aspx");
    //            }
    //            else
    //            {
    //                ShowMessageBox.Showmessagebox(this.Page, "用户名或密码有误,请重新输入!", "Default.aspx");
    //            }

    //        }
    //        else if (basesradio.Checked == true)
    //        {
    //            BasesModel entity = new BasesModel();
    //            entity.bases_name = txtUserName.Text.Trim();
    //            entity.bases_password = txtPassword.Text.Trim();

    //            BasesBLL basesBLL = new BasesBLL();

    //            dt = basesBLL.GetDataTable(entity);
    //            BasesModel basesModel = new BasesModel();
    //            basesModel = (BasesModel)ConvertTo.convertToModel(dt, basesModel);
    //            if (basesModel != null)
    //            {
    //                Session.Add("basesModel", basesModel);
    //                //Response.Write("<script> alert('基地你好!');</script>");
    //                Response.Redirect("~/bases/Frame.aspx");
    //            }
    //            else
    //            {
    //                ShowMessageBox.Showmessagebox(this.Page, "用户名或密码有误,请重新输入!", "Default.aspx");
    //            }

    //        }
    //        else if(managersradio.Checked==true)
    //        {
    //            ManagersModel entity = new ManagersModel();
    //            entity.managers_name = txtUserName.Text.Trim();
    //            entity.managers_password = txtPassword.Text.Trim();

    //            ManagersBLL managersBLL = new ManagersBLL();

    //            dt = managersBLL.GetDataTable(entity);
    //            ManagersModel managersModel = new ManagersModel();
    //            managersModel = (ManagersModel)ConvertTo.convertToModel(dt, managersModel);
    //            if (managersModel != null)
    //            {
    //                Session.Add("managersModel", managersModel);
    //                //Response.Write("<script> alert('管理员你好!');</script>");
    //                Response.Redirect("~/managers/Frame.aspx");
    //            }
    //            else
    //            {
    //                ShowMessageBox.Showmessagebox(this.Page, "用户名或密码有误,请重新输入!", "Default.aspx");
    //            }

    //        }
    //        }
    //        catch (Exception)
    //        {

    //            ShowMessageBox.Showmessagebox(this, "验证码已过期,请重新登录", "Default.aspx");
    //        }



    //     }

    //}
    #endregion
    #region
    // protected void Login_Click(object sender, ImageClickEventArgs e)
    // {
    //     try
    //         {
    //             string Code = Session["CheckCode"].ToString().Trim();
    //             string Txtbox = this.txtCode.Text.ToString().Trim();

    //             if (string.Compare(Txtbox.ToUpper(), Code) != 0)
    //             {
    //                 ShowMessageBox.Showmessagebox(this.Page, "验证码输入错误", null);
    //                 return;
    //             }

    //             if (string.IsNullOrEmpty(txtUserName.Text.Trim()) || string.IsNullOrEmpty(txtPassword.Text.Trim()))
    //             {
    //                 ShowMessageBox.Showmessagebox(this.Page, "账号和密码不能为空", "Default.aspx");
    //                 return;
    //             }
    //             if (txtUserName.Text.Trim().Length > 50 || txtPassword.Text.Trim().Length > 50)
    //             {
    //                 ShowMessageBox.Showmessagebox(this.Page, "账号和密码不能超过50个字符", "Default.aspx");
    //                 return;
    //             }

    //                 StudentsModel model1 = new StudentsModel();
    //                 model1.students_name = txtUserName.Text.Trim();
    //                 model1.students_password = txtPassword.Text.Trim();

    //                 StudentsBLL studentsBLL = new StudentsBLL();

    //                 dt = studentsBLL.GetDataTable(model1);
    //                 StudentsModel studentsModel = new StudentsModel();
    //                 studentsModel = (StudentsModel)ConvertTo.convertToModel(dt, studentsModel);
    //                 if (studentsModel != null)

    //                 {

    //                     Session.Add("studentsModel", studentsModel);

    //                     //Response.Redirect("Index.aspx");
    //                 }



    //                TeachersModel model2 = new TeachersModel();
    //                 model2.teachers_name = txtUserName.Text.Trim();
    //                 model2.teachers_password = txtPassword.Text.Trim();

    //                 TeachersBLL teachersBLL = new TeachersBLL();

    //                 dt = teachersBLL.GetDataTable(model2);
    //                 TeachersModel teachersModel = new TeachersModel();
    //                 teachersModel = (TeachersModel)ConvertTo.convertToModel(dt, teachersModel);
    //                 if (teachersModel != null)
    //                 {

    //                     Session.Add("teachersModel", teachersModel);
    //                     //Response.Redirect("Index.aspx");
    //                 }



    //                 BasesModel model3 = new BasesModel();
    //                 model3.bases_name = txtUserName.Text.Trim();
    //                 model3.bases_password = txtPassword.Text.Trim();

    //                 BasesBLL basesBLL = new BasesBLL();

    //                 dt = basesBLL.GetDataTable(model3);
    //                 BasesModel basesModel = new BasesModel();
    //                 basesModel = (BasesModel)ConvertTo.convertToModel(dt, basesModel);
    //                 if (basesModel != null)
    //                 {
    //                     Session.Add("basesModel", basesModel);
    //                     //Response.Redirect("Index.aspx");
    //                 }



    //                 ManagersModel model4 = new ManagersModel();
    //                 model4.managers_name = txtUserName.Text.Trim();
    //                 model4.managers_password = txtPassword.Text.Trim();

    //                 ManagersBLL managersBLL = new ManagersBLL();

    //                 dt = managersBLL.GetDataTable(model4);
    //                 ManagersModel managersModel = new ManagersModel();
    //                 managersModel = (ManagersModel)ConvertTo.convertToModel(dt, managersModel);
    //                 if (managersModel != null)
    //                 {
    //                     Session.Add("managersModel", managersModel);
    //                     //Response.Write("<script> alert('管理员你好!');</script>");
    //                     //Response.Redirect("Index.aspx");
    //                 }

    //                 Response.Redirect("Index.aspx");


    //         }
    //         catch (Exception)
    //         {

    //             ShowMessageBox.Showmessagebox(this, "验证码已过期,请重新登录", "Default.aspx");
    //         }

    //}
    #endregion

    protected void Login_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            string Code   = Session["CheckCode"].ToString().Trim();
            string Txtbox = this.txtCode.Text.ToString().Trim();

            if (string.Compare(Txtbox.ToUpper(), Code) != 0)
            {
                ShowMessageBox.Showmessagebox(this.Page, "验证码输入错误", null);
                return;
            }

            if (string.IsNullOrEmpty(txtUserName.Text.Trim()) || string.IsNullOrEmpty(txtPassword.Text.Trim()))
            {
                ShowMessageBox.Showmessagebox(this.Page, "账号和密码不能为空", "Default.aspx");
                return;
            }
            if (txtUserName.Text.Trim().Length > 50 || txtPassword.Text.Trim().Length > 50)
            {
                ShowMessageBox.Showmessagebox(this.Page, "账号和密码不能超过50个字符", "Default.aspx");
                return;
            }
            LoginModel entity = new LoginModel();
            entity.name     = txtUserName.Text.Trim();
            entity.password = txtPassword.Text.Trim();

            LoginBLL loginBLL = new LoginBLL();

            dt = loginBLL.GetDataTable(entity);
            LoginModel loginModel = new LoginModel();
            loginModel = (LoginModel)ConvertTo.convertToModel(dt, loginModel);
            if (loginModel != null)
            {
                if (loginModel.LoginState == "1")
                {
                    Session.Add("loginModel", loginModel);

                    Response.Redirect("Index.aspx");
                }
                else
                {
                    ShowMessageBox.Showmessagebox(this.Page, "该账号已锁定,需管理员进行解锁登录", "Default.aspx");
                }
            }
            else
            {
                ShowMessageBox.Showmessagebox(this.Page, "用户名或密码有误,请重新输入!", "Default.aspx");
            }
        }
        catch (Exception)
        {
            ShowMessageBox.Showmessagebox(this, "验证码已过期,请重新登录", "Default.aspx");
        }
    }
コード例 #13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../../Default.aspx");
            return;
        }

        model = Session["loginModel"] as LoginModel;

        Name             = CommonFunc.SafeGetStringFromObj(model.name);
        TrainingBaseCode = CommonFunc.SafeGetStringFromObj(model.training_base_code);
    }
コード例 #14
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Page.SetFocus(login);

        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "Default.aspx");
            return;
        }

        loginModel = new LoginModel();
        loginModel = (LoginModel)Session["loginModel"];
        title.Text = loginModel.training_base_name == null ? "" : loginModel.training_base_name.ToString();
        if (loginModel.type != null || loginModel.type != "")
        {
            type = loginModel.type.ToString();

            string[] identity = type.Split('_');
            foreach (string i in identity)
            {
                if (i == "students")
                {
                    role.Items.Add(new ListItem("学员", "students"));
                }
                else if (i == "teachers")
                {
                    role.Items.Add(new ListItem("指导医师", "teachers"));
                }
                else if (i == "kzr")
                {
                    role.Items.Add(new ListItem("科主任", "kzr"));
                }
                else if (i == "bases")
                {
                    role.Items.Add(new ListItem("专业基地负责人", "bases"));
                }
                else if (i == "managers")
                {
                    role.Items.Add(new ListItem("管理员", "managers"));
                }
                else
                {
                    return;
                }
            }
        }
        else
        {
            Response.Write("<script> alert('登录人员权限未分配');</script>");
        }
    }
コード例 #15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["loginModel"] == null)
     {
         ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
         return;
     }
     role = CommonFunc.SafeGetStringFromObj(CommonFunc.FilterSpecialString(Request.QueryString["role"]));
     //Response.Write("<script> alert('"+role+"');</script>");
     if (role == null || role == "")
     {
         role = "";
     }
 }
コード例 #16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            StudentsPersonalInformationModel studentsPersonalInformationModel = new StudentsPersonalInformationModel();
            StudentsPersonalInformationBLL   studentsPersonalInformationBLL   = new StudentsPersonalInformationBLL();
            loginModel    = (LoginModel)Session["loginModel"];
            students_name = loginModel.name;
        }
    }
コード例 #17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            loginModel         = new LoginModel();
            loginModel         = (LoginModel)Session["loginModel"];
            students_name      = loginModel.name;
            training_base_code = loginModel.training_base_code;
        }
        rotary_dept = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["rotary_dept"]).Trim());
    }
コード例 #18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["loginModel"] == null)
     {
         ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
         return;
     }
     if (!IsPostBack)
     {
         LoginModel loginModel = new LoginModel();
         loginModel       = (LoginModel)Session["loginModel"];
         StudentsName     = loginModel.name;
         TrainingBaseCode = loginModel.training_base_code;
     }
     DeptName      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]));
     ErrorCategory = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ErrorCategory"]));
     ErrorDate     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ErrorDate"]));
 }
コード例 #19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }


        loginModel = (LoginModel)Session["loginModel"];

        ManagersName     = CommonFunc.SafeGetStringFromObj(loginModel.name);
        TrainingBaseCode = CommonFunc.SafeGetStringFromObj(loginModel.training_base_code);



        NewsTitle    = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["NewsTitle"]));
        RegisterDate = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["RegisterDate"]));
    }
コード例 #20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["loginModel"] == null)
     {
         ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
         return;
     }
     if (!IsPostBack)
     {
         LoginModel loginModel = new LoginModel();
         loginModel       = (LoginModel)Session["loginModel"];
         TrainingBaseCode = CommonFunc.SafeGetStringFromObj(loginModel.training_base_code);
     }
     StudentsRealName     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]));
     ProfessionalBaseName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ProfessionalBaseName"]));
     DeptName             = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]));
     ManagerHandle        = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ManagerHandle"]));
     RegisterDate         = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["RegisterDate"]));
 }
コード例 #21
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            loginModel           = new LoginModel();
            loginModel           = (LoginModel)Session["loginModel"];
            TeachersName         = loginModel.name;
            TrainingBaseCode     = loginModel.training_base_code;
            ProfessionalBaseCode = loginModel.professional_base_code;
            DeptCode             = loginModel.dept_code;
        }
        StudentsRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]));
    }
コード例 #22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }
        if (!IsPostBack)
        {
            loginModel       = new LoginModel();
            loginModel       = (LoginModel)Session["loginModel"];
            StudentsName     = loginModel.name;
            TrainingBaseCode = loginModel.training_base_code;
        }

        DeptName     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
        SkillName    = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["SkillName"]).Trim());
        RequiredNum  = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["RequiredNum"]).Trim());
        MasterDegree = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["MasterDegree"]).Trim());
    }
コード例 #23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }


        loginModel = (LoginModel)Session["loginModel"];

        BasesName            = CommonFunc.SafeGetStringFromObj(loginModel.name);
        TrainingBaseCode     = CommonFunc.SafeGetStringFromObj(loginModel.training_base_code);
        ProfessionalBaseCode = CommonFunc.SafeGetStringFromObj(loginModel.professional_base_code);


        AppointBeginTime = CommonFunc.FilterSpecialString(CommonFunc.SafeGetDateTimeStringFromObjectByFormat(Request.Form["AppointBeginTime"], "yyyy-MM-dd HH:mm").Trim());
        AppointEndTime   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetDateTimeStringFromObjectByFormat(Request.Form["AppointEndTime"], "yyyy-MM-dd HH:mm").Trim());
        IsPass           = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["IsPass"]).Trim());
    }
コード例 #24
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["loginModel"] == null)
     {
         ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
         return;
     }
     if (!IsPostBack)
     {
         loginModel           = new LoginModel();
         loginModel           = (LoginModel)Session["loginModel"];
         TrainingBaseCode     = loginModel.training_base_code;
         ProfessionalBaseCode = loginModel.professional_base_code;
     }
     StudentsRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]));
     DiseaseName      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["disease_name"]).Trim());
     RequiredNum      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["required_num"]).Trim());
     MasterDegree     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["master_degree"]).Trim());
     DeptName         = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
     TeachersRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeachersRealName"]).Trim());
 }
コード例 #25
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        //StudentsPersonalInformationBLL studentsPersonalInformationBLL = new StudentsPersonalInformationBLL();
        //studentsModel = (StudentsModel)Session["studentsModel"];
        //dt = studentsPersonalInformationBLL.GetDataTable(studentsModel);

        //if (dt != null && dt.Rows.Count > 0)
        //{
        //    json = "不为空";
        //}
        //else
        //{
        //    json = "";
        //}
    }
コード例 #26
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            loginModel       = new LoginModel();
            loginModel       = (LoginModel)Session["loginModel"];
            StudentsName     = loginModel.name;
            TrainingBaseCode = loginModel.training_base_code;
        }
        DeptName       = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]));
        ActivityForm   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ActivityForm"]));
        ActivityDate   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ActivityDate"]));
        LanguageType   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["LanguageType"]));
        SuperiorDoctor = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["SuperiorDoctor"]));
    }
コード例 #27
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            loginModel       = new LoginModel();
            loginModel       = (LoginModel)Session["loginModel"];
            StudentsName     = loginModel.name;
            TrainingBaseCode = loginModel.training_base_code;
        }
        DeptName    = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
        PatientName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["PatientName"]).Trim());
        CaseId      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["CaseId"]).Trim());
        DiseaseName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DiseaseName"]).Trim());
        Condition   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["Condition"]).Trim());
    }
コード例 #28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["loginModel"] == null)
     {
         ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
         return;
     }
     if (!IsPostBack)
     {
         LoginModel loginModel = new LoginModel();
         loginModel           = (LoginModel)Session["loginModel"];
         TrainingBaseCode     = loginModel.training_base_code;
         ProfessionalBaseCode = loginModel.professional_base_code;
     }
     StudentsRealName   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]).Trim());
     DeptName           = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
     TeachersRealName   = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeachersRealName"]).Trim());
     AttendanceCategory = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["AttendanceCategory"]));
     FirstDate          = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["FirstDate"]));
     LastDate           = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["LastDate"]));
     Days = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["Days"]));
 }
コード例 #29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["loginModel"] == null)
     {
         ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
         return;
     }
     if (!IsPostBack)
     {
         LoginModel loginModel = new LoginModel();
         loginModel           = (LoginModel)Session["loginModel"];
         TrainingBaseCode     = loginModel.training_base_code;
         ProfessionalBaseCode = loginModel.professional_base_code;
     }
     StudentsRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]));
     //TeacherName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeacherName"]));
     //RegisterDate = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["RegisterDate"]));
     PatientNo        = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["PatientNo"]));
     InhospitalNo     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["InhospitalNo"]));
     PatientName      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["PatientName"]));
     DeptName         = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
     TeachersRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeachersRealName"]).Trim());
 }
コード例 #30
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginModel"] == null)
        {
            ShowMessageBox.Showmessagebox(this, "请重新登录", "../../Default.aspx");
            return;
        }

        if (!IsPostBack)
        {
            LoginModel loginModel = new LoginModel();
            loginModel           = (LoginModel)Session["loginModel"];
            TrainingBaseCode     = loginModel.training_base_code;
            ProfessionalBaseCode = loginModel.professional_base_code;
        }
        StudentsRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["StudentsRealName"]));
        ActivityForm     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ActivityForm"]).Trim());
        MainSpeaker      = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["MainSpeaker"]).Trim());
        ClassHour        = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ClassHour"]).Trim());
        ActivityDate     = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["ActivityDate"]).Trim());
        DeptName         = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["DeptName"]).Trim());
        TeachersRealName = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request.Form["TeachersRealName"]).Trim());
    }