Open Nav

家教信息管理系统毕业论文设计(ASP.NET)(3)

以下是资料介绍,如需要完整的请充值下载.
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.仅供学习参考之用.
   帮助中心
资料介绍:

            {
                teacherSex = male.Text.Trim();
            }
            else
            {
                teacherSex = female.Text.Trim();
            }
            string teacherAge = txtAge.Text.Trim();
            string teacherSchool = txtSchool.Text.Trim();
            string teacherCourse = txtCourse.Text.Trim();
            string teacherPhone = txtPhone.Text.Trim(); [资料来源:http://doc163.com]
            string teacherEmail = txtEmail.Text.Trim();
            string teacherAddress = txtAddress.Text.Trim();
            string teacherInfo = txtInfo.Text.Trim();
            string price = txtPrice.Text.Trim();
            Teacher tch = new Teacher(teacherName, teacherSex, teacherAge, teacherSchool, teacherCourse, teacherPhone, teacherEmail, teacherAddress, teacherInfo, price,userId);
            bool res = TeacherManager.TeacherInsert(tch);
            if (res)
            {
                Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('注册成功!');</script>");

[来源:http://Doc163.com]


                return;
            }
        }

    }
}
5.2.2教员信息修改的代码
#region 修改教员信息
        /// <summary>
        /// 修改教员信息
        /// </summary>
        /// <param name="tch">教员实体类</param>
        /// <returns></returns>
        public bool UpdateTeacher(Teacher tch)
        {
            bool flag = false;
            string cmdText = "teacher_Update"; [资料来源:http://doc163.com]
            SqlParameter[] paras = new SqlParameter[] {
                new SqlParameter("@teacherId",tch.TeacherId),
                new SqlParameter("@teacherName",tch.TeacherName),
                new SqlParameter("@teacherSex",tch.TeacherSex),
                new SqlParameter("@teacherAge",tch.TeacherAge),
                new SqlParameter("@teacherSchool",tch.TeacherSchool),
                new SqlParameter("@teacherCourse",tch.TeacherCourse),

[资料来源:http://Doc163.com]


                new SqlParameter("@price",tch.Price),
                new SqlParameter("@teacherPhone",tch.TeacherPhone),
                new SqlParameter("@teacherEmail",tch.TeacherEmail),
                new SqlParameter("@teacherAddress",tch.TeacherAddress),
  • 关于资料
    提供的资料属本站所有,真实可靠,确保下载的内容与网页资料介绍一致.
  • 如何下载
    提供下载链接或发送至您的邮箱,资料可重复发送,若未收到请联系客服.
  • 疑难帮助
    下载后提供一定的帮助,收到资料后若有疑难问题,可联系客服提供帮助.
  • 关于服务
    确保下载的资料和介绍一致,如核实与资料介绍不符,可申请售后.
  • 资料仅供参考和学习交流之用,请勿做其他非法用途,转载必究,如有侵犯您的权利或有损您的利益,请联系本站,经查实我们会立即进行修正! 版权所有,严禁转载
    doc163.com Copyright © 2012-2024 苏ICP备2021029856号-4