예제 #1
0
        private void showInfo()
        {
            BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information user_model = user_bll.GetModel(id);
            if (user_model == null)
            {
                InnerRedirect(MyEnums.RediirectErrorEnum.ParameterError);
            }
            //this.txt_identity_number.Text = user_model.User_ID_number;
            this.txt_realname.Text = user_model.User_realname;
            if (user_model.User_birthday != null)
            {
                this.txtBirthday.Value = Convert.ToDateTime(user_model.User_birthday).ToString("yyyy-MM-dd");
            }
            this.lbl_phone_number.Text = user_model.User_number;

            //this.ddl_identity_type.SelectedValue = user_model.User_ID_number_type.ToString();

            if ((Boolean)user_model.User_gender)
            {
                this.ddl_Sex.SelectedIndex = 1;
            }

            //this.ddl_user_type.SelectedValue = user_model.User_type.ToString();
            this.lbl_register_time.Text = Convert.ToDateTime(user_model.User_addtime).ToString("yyyy-MM-dd");
        }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         //检查是否是考生
         try
         {
             Model.CCOM.User_information user_model = GetAdminInfo_CCOM();
             if (user_model.User_type == 6)
             {
                 JscriptMsg("只有考生用户可以报考!", "back", "Error");
                 return;
             }
         }
         catch
         {
             Response.Redirect("/adminmetro/center.aspx");
         }
         //检查前面步骤是否完成
         checkBefore();
     }
     period = new BLL.CCOM.Period().GetModel("Period_state=1");
     BindAllSubject();
     MakeClickableErrorMessage();
     if (!IsPostBack)
     {
         BindData();
     }
 }
예제 #3
0
        protected void bindleftInfo()
        {
            user_info = GetAdminInfo_CCOM();
            string left = "";

            //left += "<div title=\"管理菜单\" iconcss=\"menu-icon-model\" >";
            //left += "<ul id=\"global_channel_tree\" style=\"margin-top: 3px;\">";
            Level2Functions = new JsonData();
            Level2Functions.SetJsonType(JsonType.Array);
            //JSON格式 [{"id":"","type":"F","functions":[]}]

            string sql = " Ff_fatherID = " + university.Common.DataDic.Father_Function + " order by Ff_sort";

            BLL.CCOM.Father_function BFF = new BLL.CCOM.Father_function();
            //  Model.CCOM.Father_function Ff = BFF.GetModelList(sql);
            var Ff_list = BFF.GetModelList(sql);

            foreach (Model.CCOM.Father_function Ff in Ff_list)
            {
                left += createleftinneritem(Ff, Level2Functions);
            }

            this.hidLevel2FunctionTree.Value = Level2Functions.ToJson();
            //left += "</ul>";
            //left += "</div>";
            this.sidebar_menu.InnerHtml = left;
        }
예제 #4
0
        protected int ShowInfo()
        {
            Model.CCOM.User_information model = GetAdminInfo_CCOM();
            long _id = model.User_id;
            int  score_t = -1, score_c = -1, score_s = -1;

            BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information user_model = user_bll.GetModel(_id);

            if (user_model == null)
            {
                InnerRedirect(MyEnums.RediirectErrorEnum.ParameterError);
            }


            var relation_model = new BLL.CCOM.Topic_relation().GetModel(" Student_id=" + _id);

            if (relation_model == null)
            {
                return(-1);
            }

            var comment_model = new BLL.CCOM.Comment().GetModel(" Topic_relation_id=" + relation_model.Topic_relation_id);

            try
            {
                score_t = (int)comment_model.Teacher_score;
            }
            catch
            {
                score_t = -1;
            }
            try
            {
                score_c = (int)comment_model.Reply_score;
            }
            catch
            {
                score_c = -1;
            }
            try
            {
                var soft_model = new BLL.CCOM.Software_accept().GetModel(" Topic_relation_id=" + relation_model.Topic_relation_id);
                score_s = (int)soft_model.Conclusion;
            }
            catch
            {
                score_s = -1;
            }
            if (score_c >= 0 && score_s >= 0 && score_t >= 0)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Model.CCOM.User_information model = GetAdminInfo_CCOM();
            _id = model.User_id;

            if (!Page.IsPostBack)
            {
            }
        }
        private bool UpdateOtherInfo()
        {
            BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information user_model = user_bll.GetModel(UserID);

            bool result = false;

            //更新姓名
            if (txt_User_realname.Text == "")
            {
                JscriptMsg("请填写真实姓名!", "", "Error");
                return(false);
            }
            else
            {
                user_model.User_realname = this.txt_User_realname.Text;
            }

            //更新手机号,内容不变
            user_model.User_number = this.txt_User_number.Text;

            //更新性别

            if (this.rbl_User_gender.SelectedIndex == 0)
            {
                user_model.User_gender = false;
            }
            else
            {
                user_model.User_gender = true;
            }

            //更新出生日期
            try
            {
                user_model.User_birthday = Convert.ToDateTime(this.txt_User_birthday.Text);
            }
            catch
            {
                user_model.User_birthday = null;
            }

            //更新的状态
            try
            {
                bool res = user_bll.Update(user_model);
                if (res == true)
                {
                    return(res);
                }
            }
            catch
            {
                result = false;
            }
            return(result);
        }
예제 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Model.CCOM.User_information model = GetAdminInfo_CCOM();
     id = model.User_id;
     if (!Page.IsPostBack)
     {
         new BLL.CCOM.Certificate_type().BindDDL(this.ddl_identity_type);
         showInfo();
     }
 }
        public void ShowOtherInfo()
        {
            BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information user_model = user_bll.GetModel(UserID);

            if (user_model == null)
            {
                InnerRedirect(MyEnums.RediirectErrorEnum.ParameterError);
            }

            //真实姓名
            if (user_model.User_realname == null)
            {
                txt_User_realname.Text = "请填写真实姓名";
            }
            else
            {
                this.txt_User_realname.Text = user_model.User_realname;
            }
            int agency_id = 0;

            agency_id = user_model.Agency_id;
            BLL.CCOM.Agency   user_agency_bll   = new BLL.CCOM.Agency();
            Model.CCOM.Agency user_agency_model = user_agency_bll.GetModel(agency_id);
            if (user_agency_model.Agency_id != 0)
            {
                txt_Agency.Text = user_agency_model.Agency_name;
            }
            else
            {
                div_user_agency.Visible = false;
            }

            //移动电话
            this.txt_User_number.Text = user_model.User_number;

            //性别
            if ((Boolean)user_model.User_gender)
            {
                this.rbl_User_gender.SelectedIndex = 1;
            }

            //出生日期
            if (user_model.User_birthday == null)
            {
                txt_User_birthday.Text = "请填写出生日期";
            }
            else
            {
                this.txt_User_birthday.Text = Convert.ToDateTime(user_model.User_birthday).ToString("yyyy-MM-dd");
            }

            //添加日期
            this.txt_User_addtime.Text = Convert.ToDateTime(user_model.User_addtime).ToString("yyyy-MM-dd");
        }
예제 #9
0
        protected void BindRpt()
        {
            string _order = MyRequest.GetString("sort").Replace(",", " ");

            if (_order == "" || Tools.CheckParams(_order))
            {
                _order = " Topic_id asc";
            }
            Model.CCOM.User_information user_model = GetAdminInfo_CCOM();
            RptBind(" Teacher_id=" + user_model.User_id, _order);
        }
        protected string Pass(HttpContext context)
        {
            JsonData data          = new JsonData();
            string   _schooluserid = MyRequest.GetString("schooluserid");
            string   Pass          = MyRequest.GetString("pass");
            string   PassConfirm   = MyRequest.GetString("passconfirm");
            string   msg           = "";

            if (Tools.CheckParams(Pass + PassConfirm))
            {
                msg = "传输异常,存在非法字符!";
            }
            else
            {
                if (Pass.Length < 6 || Pass.Length > 16)
                {
                    msg = "密码长度请控制在6-16位!";
                }
                else if (Pass != PassConfirm)
                {
                    msg = "两次密码输入不一致!";
                }
                else
                {
                    try
                    {
                        BLL.CCOM.User_information bll     = new BLL.CCOM.User_information();
                        long schooluserid                 = long.Parse(DESEncrypt.Decrypt(_schooluserid));
                        Model.CCOM.User_information model = bll.GetModel(schooluserid);
                        model.User_password = DESEncrypt.MD5Encrypt(Pass);
                        bool res = bll.Update(model);
                        if (res == false)
                        {
                            msg = "修改失败,参数发生异常!";
                        }
                    }
                    catch (Exception)
                    {
                        msg = "修改发生异常!";
                    }
                }
            }
            if (msg == "")
            {
                data["msg"]  = "修改成功";
                data["code"] = 1;
            }
            else
            {
                data["msg"]  = msg;
                data["code"] = 0;
            }
            return(data.ToJson());
        }
예제 #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Model.CCOM.User_information model = GetAdminInfo_CCOM();
     _id             = model.User_id;
     this.txtID.Text = _id.ToString();
     if (!Page.IsPostBack)
     {
         ShowScoreInfo();
         ShowInfo();
     }
 }
 /// <summary>
 /// 取得用户信息
 /// </summary>
 public Model.CCOM.User_information GetAdminInfo()
 {
     if (IsAdminLogin())
     {
         Model.CCOM.User_information model = HttpContext.Current.Session[MyKeys.SESSION_ADMIN_INFO] as Model.CCOM.User_information;
         if (model != null)
         {
             return(model);
         }
     }
     return(null);
 }
예제 #13
0
        protected void BindDeskTop()
        {
            Model.CCOM.User_information model = GetAdminInfo_CCOM();
            long uiid = model.User_id;

            try
            {
                var metroList = new List <MetroBlock>();

                string sql = "User_id = " + uiid + " order by Ufd_sort";

                BLL.CCOM.View_Desktop Bvd = new BLL.CCOM.View_Desktop();
                var vdList = Bvd.GetModelList(sql);

                foreach (Model.CCOM.View_Desktop ufd in vdList)
                {
                    string _url = ufd.Sf_url + "?fun_id=" + DESEncrypt.Encrypt(ufd.Sf_id.ToString());
                    _url = _url.Replace("CCOM/", "");

                    //affairs += createnavcube(jdaf);
                    //遍历获取活动大厅的fun_id;
                    if (ufd.Ufd_name.ToString().Trim() == "查看通知")
                    {
                        noticeUrl = _url;
                    }
                    if (ufd.Ufd_name.ToString().Trim() == "查看资讯")
                    {
                        newsUrl = _url;
                    }

                    if (ufd.Sf_status == true)
                    {
                        metroList.Add(new MetroBlock()
                        {
                            Id         = DESEncrypt.Encrypt(ufd.Sf_id.ToString()),
                            Address    = _url,
                            ClickCount = 10,
                            Color      = ufd.Ufd_color.ToString(),
                            Icon       = ufd.Ufd_icon.ToString(),
                            Name       = ufd.Ufd_showname.ToString(),
                            Remark     = ufd.Ufd_remark.ToString(),
                            Width      = ufd.Ufd_width.ToString()
                        });
                    }
                }
                this.div_affairs.InnerHtml = GetMetroBlockString(metroList);
            }
            catch (Exception ex)
            {
                this.div_affairs.InnerHtml = ex.ToString();
            }
        }
예제 #14
0
 public string GetTeacherName(long id)
 {
     try
     {
         BLL.CCOM.User_information   bll   = new BLL.CCOM.User_information();
         Model.CCOM.User_information model = bll.GetModel(id);
         return(model.User_realname);
     }
     catch
     {
         return("该教师用户不存在");
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            Model.CCOM.User_information model = GetAdminInfo_CCOM();
            _id = model.User_id;

            if (!Page.IsPostBack)
            {
                new BLL.CCOM.Nation().BindDDL(this.ddl_UP_nation);
                new BLL.CCOM.Nationality().BindDDL(this.ddl_UP_nationality);
                new BLL.CCOM.Politics().BindDDL(this.ddl_UP_politics);
                new BLL.CCOM.Degree().BindDDL(this.ddl_UP_degree);
                new BLL.CCOM.Province().BindDDL(this.ddl_UP_province);
                showUserInfo();
            }
        }
예제 #16
0
        protected string CombSqlTxt(string _keywords)
        {
            StringBuilder strTemp = new StringBuilder();

            Model.CCOM.User_information user_model = GetAdminInfo_CCOM();

            strTemp.Append(" Teacher_id=" + user_model.User_id);
            _keywords = _keywords.Replace("'", "");
            if (!string.IsNullOrEmpty(_keywords))
            {
                strTemp.Append(" Topic_name like '%" + _keywords + "%' ");
                //strTemp.Append(" or User_number like '%" + _keywords + "%' ");
            }
            return(strTemp.ToString());
        }
예제 #17
0
        private bool UpdateStudentInfo()
        {
            BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information user_model = user_bll.GetModel(UserID);
            bool result = false;

            if (this.ddlOtherGender.SelectedValue == "0")
            {
                user_model.User_gender = false;
            }
            else
            {
                user_model.User_gender = true;
            }

            if (this.txtOtherPhone.Value != "")
            {
                user_model.User_phone = this.txtOtherPhone.Value;
            }

            if (this.txtBirthday.Text != "")
            {
                user_model.User_birthday = Convert.ToDateTime(this.txtBirthday.Text);
            }

            if (this.ddlNationality.SelectedValue != "0")
            {
                user_model.Nationality_id = int.Parse(this.ddlNationality.SelectedValue);
            }

            if (this.ddlPolitic.SelectedValue != "0")
            {
                user_model.Politic_id = int.Parse(this.ddlPolitic.SelectedValue);
            }
            try
            {
                bool res = user_bll.Update(user_model);
                if (res == true)
                {
                    return(res);
                }
            }
            catch
            {
                result = false;
            }
            return(result);
        }
예제 #18
0
        public string GetTeacherName(string UserID)
        {
            BLL.CCOM.User_information user_bll = new BLL.CCOM.User_information();
            string str = string.Empty;

            try
            {
                Model.CCOM.User_information user_model = user_bll.GetModel(" User_id='" + UserID + "'");
                str = user_model.User_realname;
            }
            catch
            {
                str = "未设置";
            }
            return(str);
        }
예제 #19
0
        //活动列表
        //protected string lilist = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                user_info = GetAdminInfo_CCOM(); //用户信息

                //    string facePath = user_info.UI_Face.Trim();
                //string facePath = "";
                //if (facePath == "")
                //{
                //    facePath = "/admin/images/default_user_avatar.gif";
                //}
                //else if (facePath != "" && !facePath.StartsWith("http"))
                //{
                //    facePath = PosterUrl + facePath;
                //}
                //this.userImg.Src = facePath;

                //绑定右上角用户信息和session
                bindusInfo();

                bindleftInfo();

                //触发检查合并登录填数据
                //new BLL.admin.CombineUser().InitSimilarData(admin_info.UserID);

                BindUserDpt();
            }

            ////跳转去青春榜样投票  by zc  不要删除
            //string fromurl = Utils.GetCookie("FromUrl");
            //Utils.WriteCookie("FromUrl", "", -1);  //清除这个cookie
            //if (fromurl != "")
            //{
            //    JscriptReponse("window.parent.location='" + fromurl + "'");
            //    return;
            //}

            //end
            //首次登陆初始化
            //if (Session[MyKeys.SESSION_FIRST_LOGIN] != null && Session[MyKeys.SESSION_FIRST_LOGIN].ToString() == "1")
            //{
            //    FirstLogin.FirstLogin.Do(GetAdminInfo_CCOM().UserID, GetRoleUserId(), GetUserUO_ID(), GetUserRoleType());
            //}
        }
예제 #20
0
        /// <summary>
        /// 判断管理员是否已经登录(解决Session超时问题)
        /// </summary>
        public bool IsAdminLogin()
        {
            //如果Session为Null
            if (Session[MyKeys.SESSION_ADMIN_INFO] != null)
            {
                return(true);
            }
            else
            {
                //检查Cookies
                //Cookie存储 时间,ID 加密后的内容 手动计算过期时间
                string CookieID = Utils.GetCookie("UniversityLoginInfo");
                if (CookieID != "")
                {
                    CookieID = DESEncrypt.Decrypt(CookieID);
                    try
                    {
                        DateTime dt = Convert.ToDateTime(CookieID.Split(',')[0]);
                        if (dt.Date.Date == DateTime.Now.Date)
                        {
                            CookieID = CookieID.Split(',')[1];
                            BLL.CCOM.User_information   bll   = new BLL.CCOM.User_information();
                            Model.CCOM.User_information model = bll.GetModel(Convert.ToInt64(CookieID));

                            /*
                             * Model.admin.View_AdminUser model = new BLL.admin.View_AdminUser().GetModel(Convert.ToInt64(CookieID));
                             */
                            if (model != null)
                            {
                                Session[MyKeys.SESSION_ADMIN_INFO]    = model;
                                Session[MyKeys.SESSION_USER_STATUSID] = model.User_id.ToString();
                                return(true);
                            }

                            return(true);
                        }
                    }
                    catch { }
                }
            }
            return(false);
        }
예제 #21
0
        protected void InitView()
        {
            Model.CCOM.Reply_group model = new BLL.CCOM.Reply_group().GetModel(Group_id);
            if (model != null)
            {
                try
                {
                    BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
                    Model.CCOM.User_information user_model = new Model.CCOM.User_information();

                    this.txtGroupName.Text  = model.Group_name;
                    this.txtReplyTime.Value = model.Reply_time.ToString("yyyy-MM-dd HH:mm:ss");
                    this.txtReplyRoom.Text  = model.Reply_room;
                    user_model                 = user_bll.GetModel(model.User_id);
                    this.txtTeaNumber.Text     = user_model.User_number;
                    this.ddltype.SelectedValue = model.Group_type.ToString();
                }
                catch { }
            }
        }
예제 #22
0
        protected string Pass(string Pass, string PassConfirm)
        {
            string msg = "";

            if (Tools.CheckParams(Pass + PassConfirm))
            {
                msg = "传输异常,存在非法字符!";
            }
            else
            {
                if (Pass.Length < 6 || Pass.Length > 16)
                {
                    msg = "密码长度请控制在6-16位!";
                }
                else if (Pass != PassConfirm)
                {
                    msg = "两次密码输入不一致!";
                }
                else
                {
                    try
                    {
                        BLL.CCOM.User_information   bll   = new BLL.CCOM.User_information();
                        Model.CCOM.User_information model = GetAdminInfo_CCOM();
                        model.User_password = DESEncrypt.MD5Encrypt(Pass);
                        bool res = bll.Update(model);
                        if (res == false)
                        {
                            msg = "修改失败,参数发生异常!";
                        }
                    }
                    catch (Exception)
                    {
                        msg = "修改发生异常!";
                    }
                }
            }
            return(msg);
        }
예제 #23
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            string cookie = Utils.GetCookie("try_time");
            //if (!string.IsNullOrEmpty(Utils.GetCookie("try_time")) && int.Parse(Utils.GetCookie("try_time")) > TryNumber)
            //{
            //    this.lblTip.Text = "您尝试次数超过限制,请3分钟后再试";
            //    Session[MyKeys.NEED_VCODE] = 0;
            //    this.txtCode.Text = "";
            //    return;
            //}
            //else
            {
                string userName = txtUserName.Text.Trim();
                //string userStuNo = this.txtStuNo.Text.Trim();
                string userPwd = txtUserPwd.Text.Trim();
                //string code = txtCode.Text.Trim();

                if (Tools.CheckParams(userName))
                {
                    lblTip.Visible    = true;
                    lblTip.Text       = "请勿输入非法字符";
                    this.txtCode.Text = "";
                    return;
                }
                //用户名登录
                if (userName.Equals("") || userPwd.Equals(""))
                {
                    lblTip.Visible    = true;
                    lblTip.Text       = "请输入用户名或密码";
                    this.txtCode.Text = "";
                    return;
                }
                if (userName.Length > 200)
                {
                    lblTip.Visible    = true;
                    lblTip.Text       = "用户名不合法";
                    this.txtCode.Text = "";
                    return;
                }
                if (userPwd.Length > 200)
                {
                    lblTip.Visible = true;
                    lblTip.Text    = "密码不合法";
                    return;
                }
                //需要验证码
                if (this.showVCode.Value == "1")
                {
                    string code = this.txtCode.Text.Trim();

                    if (code.Equals(""))
                    {
                        lblTip.Visible    = true;
                        lblTip.Text       = "请输入验证码";
                        this.txtCode.Text = "";
                        return;
                    }
                    if (Session[MyKeys.SESSION_CODE] == null)
                    {
                        lblTip.Visible    = true;
                        lblTip.Text       = "系统找不到验证码";
                        this.txtCode.Text = "";
                        return;
                    }
                    if (code.ToLower() != Session[MyKeys.SESSION_CODE].ToString().ToLower())
                    {
                        lblTip.Visible    = true;
                        lblTip.Text       = "验证码输入不正确";
                        this.txtCode.Text = "";
                        return;
                    }
                }



                BLL.CCOM.User_information   bll   = new BLL.CCOM.User_information();
                Model.CCOM.User_information model = null;



                string sql = "User_number='" + userName + "' and User_password='******'";
                //string sql = "User_number='" + userName + "'";

                model = bll.GetModel(sql);
                //model = bll.GetModel(userName, DESEncrypt.MD5Encrypt(userPwd));//敏感字段
                if (model == null)
                {
                    lblTip.Text       = "用户名或密码有误";
                    this.txtCode.Text = "";
                    lblTip.Visible    = true;
                    ////记录错误次数
                    if (Session[MyKeys.NEED_VCODE] == null)
                    {
                        Session[MyKeys.NEED_VCODE] = 1;
                    }
                    else
                    {
                        int num = (int)Session[MyKeys.NEED_VCODE];
                        Session[MyKeys.NEED_VCODE] = (int)Session[MyKeys.NEED_VCODE] + 1;
                        if ((int)Session[MyKeys.NEED_VCODE] == TryNumber)
                        {
                            this.showVCode.Value            = "1";
                            this.show_code.Style["display"] = "block";
                            //Utils.WriteCookie("try_time",((int)Session[MyKeys.NEED_VCODE]).ToString(),3);
                        }
                    }

                    return;
                }

                if (model != null)
                {
                    if (model.User_status == false)
                    {
                        lblTip.Text = "用户已禁用";
                        model       = null;
                        return;
                    }
                    else
                    {
                        //写入Cookies
                        if (cbRememberId.Checked)
                        {
                            Utils.WriteCookie(MyKeys.COOKIE_USER_NAME_REMEMBER, userName, 144000);
                        }
                        else
                        {
                            Utils.WriteCookie(MyKeys.COOKIE_USER_NAME_REMEMBER, userName, -144000);
                        }
                    }
                }

                //写入登录方式的cookie
                Utils.WriteCookie(MyKeys.COOKIE_USER_LOGINTYPE_REMEMBER, this.showLoginTab.Value, 144000);

                Session[MyKeys.NEED_VCODE]         = null;
                Session[MyKeys.SESSION_ADMIN_INFO] = model;
                Session.Timeout = 600;

                Utils.WriteCookie("UniversityLoginInfo", DESEncrypt.Encrypt(DateTime.Now.Date.ToString() + "," + model.User_id), 1200);

                Response.Redirect("index.aspx");
                return;
            }
        }
예제 #24
0
        protected void ShowInfo()
        {
            int score_t = -1, score_c = -1, score_s = -1;

            BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information user_model = user_bll.GetModel(_id);

            if (user_model == null)
            {
                InnerRedirect(MyEnums.RediirectErrorEnum.ParameterError);
            }

            //真实姓名
            if (user_model.User_realname == null)
            {
                txt_User_realname.Text = "请填写真实姓名";
            }
            else
            {
                this.txt_User_realname.Text = user_model.User_realname;
            }
            this.txt_User_number.Text = user_model.User_number;

            var relation_model = new BLL.CCOM.Topic_relation().GetModel(" Student_id=" + _id);

            if (relation_model == null)
            {
                return;
            }

            var comment_model = new BLL.CCOM.Comment().GetModel(" Topic_relation_id=" + relation_model.Topic_relation_id);

            try
            {
                score_t = (int)comment_model.Teacher_score;
                this.txtTeacherScore.Text = comment_model.Teacher_score.ToString();
            }
            catch
            {
                this.txtTeacherScore.Text = "未评分";
            }
            try
            {
                score_c = (int)comment_model.Reply_score;
                float sc = GetUser_CommentScore(_id);
                if (sc != -1)
                {
                    this.txtCommentScore.Text = sc.ToString();
                }
                else
                {
                    this.txtCommentScore.Text = "未评分";
                }
                this.lblComment.HRef = "CommentPage.aspx?userId=" + DESEncrypt.Encrypt(_id.ToString());
            }
            catch {
                this.txtCommentScore.Text = "未评分";
            }
            try
            {
                var soft_model = new BLL.CCOM.Software_accept().GetModel(" Topic_relation_id=" + relation_model.Topic_relation_id);
                score_s = (int)soft_model.Conclusion;
                this.txtScoftwareScore.Text = soft_model.Conclusion.ToString();
                this.lblSoft.HRef           = "SoftwarePage.aspx?userId=" + DESEncrypt.Encrypt(_id.ToString());
            }
            catch
            {
                this.txtScoftwareScore.Text = "未评分";
            }
            if (score_c >= 0 && score_s >= 0 && score_t >= 0)
            {
                var     model = new BLL.CCOM.Comput_score().GetModel(1);
                decimal score = 0;
                if (model.Ratio_software == 0)
                {
                    score = score_t * model.Ratio_teacher + (int)((score_s < score_c ? score_s : score_c) * model.Ratio_review);
                }
                else
                {
                    score = score_t * model.Ratio_teacher + (int)((score_s > score_c ? score_s : score_c) * model.Ratio_review);
                }
                this.txtScore.Text = score.ToString();
            }
        }
예제 #25
0
        private string DoAction()
        {
            string result = "";

            BLL.CCOM.User_information   bll = new BLL.CCOM.User_information();
            Model.CCOM.User_information model;
            if (action != MyEnums.ActionEnum.Edit.ToString())
            {
                model = new Model.CCOM.User_information();
            }
            else
            {
                model = bll.GetModel("User_id=" + userId);
            }
            string Sex    = this.rblSex.SelectedValue;
            string Mobile = this.txtMobile.Text.Trim();
            string Pass1  = this.txtPass1.Text.Trim();
            string Pass2  = this.txtPass2.Text.Trim();
            // string IdNumberType = this.ddlIdType.SelectedItem.Value;
            //string IdNumber = this.txtIdNumber.Text.Trim();
            string Realname = this.txtRealname.Text.Trim();
            string Agency   = this.ddlAgency.SelectedItem.Value;

            //  string Role = this.ddlRole.SelectedItem.Value;
            //必填部分
            if (Tools.CheckParams(Mobile + Realname + Pass1 + Pass2))
            {
                return("请勿输入非法字符");
            }

            if (Realname == "")
            {
                return("请填写真实姓名");
            }
            model.User_realname = Realname;

            if (Mobile == "")
            {
                return("请填写学号/工号");
            }
            if (!Validator.IsMobile(Mobile))
            {
                return("学号/工号不合法");
            }
            if (action != MyEnums.ActionEnum.Edit.ToString() && bll.GetRecordCount(" User_number='" + Mobile + "'") > 0)
            {
                return("该学号/工号已被添加");
            }
            model.User_number = Mobile;
            if (action != MyEnums.ActionEnum.Edit.ToString())
            {
                if (Pass1 == "")
                {
                    return("请填写密码");
                }
                if (Pass2 == "")
                {
                    return("请填写确认密码");
                }
            }
            if (Pass1.Length > 0 || Pass2.Length > 0)
            {
                if (Pass1.Length < 6 || Pass1.Length > 16)
                {
                    return("密码长度请控制在6-16位");
                }
                if (Pass1 != Pass2)
                {
                    return("两次输入密码不符");
                }
            }
            model.User_password = DESEncrypt.MD5Encrypt(Pass1);
            model.User_addtime  = DateTime.Now;

            model.User_status = true;

            model.Role_id = 1;
            if (Agency == "#")
            {
                return("请选择机构");
            }
            model.Agency_id = Convert.ToInt32(Agency);
            //if (Role == "#")
            //{
            //    return "请选择角色";
            //}
            //model.Role_id = Convert.ToInt32(Role);

            //选填部分
            model.User_gender = Convert.ToInt32(Sex) == 0;
            //if (IdNumber != "")
            //{
            //    if (IdNumberType == "#")
            //    {
            //        return "请选择证件类型";
            //    }
            //    //验证身份证信息,只能验证身份证
            //    else if (Convert.ToInt32(IdNumberType) == 1)
            //    {
            //        bool check = false;
            //        if (IdNumber.Length == 18)
            //        {
            //            check = CheckIDCard18(IdNumber);
            //        }
            //        else if (IdNumber.Length == 15)
            //        {
            //            check = CheckIDCard15(IdNumber);
            //        }
            //        if (check)
            //        {
            //            if (action != MyEnums.ActionEnum.Edit.ToString() && bll.GetRecordCount(" User_ID_number='" + IdNumber + "'") > 0)
            //            {
            //                return "该证件号已被添加";
            //            }
            //            model.User_ID_number_type = Convert.ToInt32(IdNumberType);
            //            model.User_ID_number = IdNumber;
            //        }
            //        else
            //        {
            //            return "请检查身份证号码是否正确";
            //        }
            //    }
            //}
            if (this.txtBirthday.Value != "")
            {
                DateTime Birthday = Convert.ToDateTime(this.txtBirthday.Value);
                model.User_birthday = Birthday;
            }
            try
            {
                if (action == MyEnums.ActionEnum.Edit.ToString()) //修改
                {
                    bll.Update(model);
                }
                else
                {
                    bll.Add(model);
                }
            }
            catch (Exception ex)
            {
                result = action == MyEnums.ActionEnum.Edit.ToString() ? "修改失败" : "添加失败" + ex.Message.ToString();
            }

            return(result);
        }
예제 #26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            user_info = GetAdminInfo_CCOM(); //用户信息
            if (user_info.Role_id != 3)      //用户不为学生时,只显示欢迎界面
            {
                this.someWhat.InnerHtml = "<div style=\"font-family: 仿宋; text-align: center; font-size:20px; margin-top: 50px; \">欢迎您使用毕业设计管理系统!</ div > ";
            }



            if (GetStatusText() == 1 || GetStatusText() == 3)//题目选择
            {
                this.bt1.InnerHtml = "<a href=\" /AdminMetro/CCOM/TopicManage/StudentChoose.aspx?fun_id=F10BCF0BC92D37DB\" class=\"btn\" style=\" margin-left:105px; margin-top: 20px; background-color: #888; \">题目选择</a>" +
                                     " <a href=\" /AdminMetro/CCOM/DatumManage/StudentSubmitList.aspx\"  class=\"btn\"   style=\" margin-left:200px; margin-top: 20px;\">开题报告</a>" +
                                     "<a href=\" /AdminMetro/CCOM/ScoreManage/MySoftwarePage.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;\">提交答辩</a>" +
                                     "<a href=\" /AdminMetro/CCOM/ScoreManage/MyScore.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;\">查看评分</a> ";
            }

            //int homeworkId = MyRequest.GetQueryInt("homeworkId");
            //Model.CCOM.Week_log log_model = new BLL.CCOM.Week_log().GetModel(" Homework_id=" + homeworkId);
            var user_model = HttpContext.Current.Session[MyKeys.SESSION_ADMIN_INFO] as Model.CCOM.User_information;//获得userid

            Model.CCOM.View_Datum model_1 = new BLL.CCOM.View_Datum().GetModel("User_id=" + user_model.User_id.ToString());
            if (model_1 != null)
            {
                this.bt1.InnerHtml = "<a href=\" /AdminMetro/CCOM/TopicManage/StudentChoose.aspx?fun_id=F10BCF0BC92D37DB\" class=\"btn\" style=\" margin-left:105px; margin-top: 20px; background-color: #888; \">题目选择</a>" +
                                     " <a href=\" /AdminMetro/CCOM/DatumManage/StudentSubmitList.aspx\"  class=\"btn\"   style=\" margin-left:200px; margin-top: 20px;background-color: #888; \">开题报告</a>" +
                                     "<a href=\" /AdminMetro/CCOM/ScoreManage/MySoftwarePage.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;\">提交答辩</a>" +
                                     "<a href=\" /AdminMetro/CCOM/ScoreManage/MyScore.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;\">查看评分</a> ";
            }

            var relation_model = new BLL.CCOM.Topic_relation().GetModel(" Student_id=" + GetAdminInfo_CCOM().User_id);

            if (relation_model != null)
            {
                var software_model = new BLL.CCOM.Software_accept().GetModel(" Topic_relation_id=" + relation_model.Topic_relation_id);
                if (software_model != null)
                {
                    if (software_model.Data_list != "")
                    {
                        this.bt1.InnerHtml = "<a href=\" /AdminMetro/CCOM/TopicManage/StudentChoose.aspx?fun_id=F10BCF0BC92D37DB\" class=\"btn\" style=\" margin-left:105px; margin-top: 20px;background-color: #888;  \">题目选择</a>" +
                                             " <a href=\" /AdminMetro/CCOM/DatumManage/StudentSubmitList.aspx\"  class=\"btn\"   style=\" margin-left:200px; margin-top: 20px;background-color: #888; \">开题报告</a>" +
                                             "<a href=\" /AdminMetro/CCOM/ScoreManage/MySoftwarePage.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;background-color: #888;\">提交答辩</a>" +
                                             "<a href=\" /AdminMetro/CCOM/ScoreManage/MyScore.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;\">查看评分</a> ";
                    }
                }
            }

            if (ShowInfo() == 1)
            {
                this.bt1.InnerHtml = "<a href=\" /AdminMetro/CCOM/TopicManage/StudentChoose.aspx?fun_id=F10BCF0BC92D37DB\" class=\"btn\" style=\" margin-left:105px; margin-top: 20px;background-color: #888;  \">题目选择</a>" +
                                     " <a href=\" /AdminMetro/CCOM/DatumManage/StudentSubmitList.aspx\"  class=\"btn\"   style=\" margin-left:200px; margin-top: 20px;background-color: #888; \">开题报告</a>" +
                                     "<a href=\" /AdminMetro/CCOM/ScoreManage/MySoftwarePage.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;background-color: #888;\">提交答辩</a>" +
                                     "<a href=\" /AdminMetro/CCOM/ScoreManage/MyScore.aspx\"  class=\"btn\"   style=\" margin-left:210px; margin-top: 20px;background-color: #888;\">查看评分</a> ";
            }


            //跳转去申报  by zc  20150915 不要删除
            string fromurl = Utils.GetCookie("FromUrl");

            Utils.WriteCookie("FromUrl", "", -1);  //清除这个cookie
            if (fromurl != "")
            {
                JscriptReponse("window.location='" + fromurl + "'");
                return;
            }

            BindDeskTop();
            //   BindChannel();
        }
예제 #27
0
        protected string ImportDataItem(DataSet ds, ref int success, ref int error)//基础数据
        {
            string result = "";

            BLL.CCOM.User_information   bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information model = new Model.CCOM.User_information();

            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                string checkmsg = null;
                //姓名
                string name = ds.Tables[0].Rows[i]["姓名"].ToString().Trim();
                if (!ValidDFValue(name, true, "", ref checkmsg))
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,姓名" + checkmsg + "<br/>";
                    error++;
                    continue;
                }
                else if (name != "")
                {
                    model.User_realname = name;
                }
                //学号/工号
                string mobile = ds.Tables[0].Rows[i]["学号/工号"].ToString().Trim();
                if (!Validator.IsMobile(mobile))
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,学号/工号要为整数<br/>";
                    error++;
                    continue;
                }
                if (!ValidDFValue(mobile, true, "", ref checkmsg))
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,学号/工号" + checkmsg + "<br/>";
                    error++;
                    continue;
                }
                else if (bll.GetRecordCount(" User_number='" + mobile + "'") > 0)
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,该学号/工号已被添加<br/>";
                    error++;
                    continue;
                }
                else if (mobile != "")
                {
                    model.User_number = mobile;
                }
                //性别
                string gender = ds.Tables[0].Rows[i]["性别"].ToString().Trim();
                if (!ValidDFValue(gender, true, "男|女", ref checkmsg))
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,性别" + checkmsg + "<br/>";
                    error++;
                    continue;
                }
                else if (gender == "男")
                {
                    model.User_gender = false;
                }
                else if (gender == "女")
                {
                    model.User_gender = true;
                }
                //机构
                string angency = ds.Tables[0].Rows[i]["机构/班号"].ToString().Trim();
                if (!ValidDFValue(angency, true, "", ref checkmsg))
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,所在机构/班号" + checkmsg + "<br/>";
                    error++;
                    continue;
                }
                BLL.CCOM.Agency   agency_bll   = new BLL.CCOM.Agency();
                Model.CCOM.Agency agency_model = new Model.CCOM.Agency();
                agency_model = agency_bll.GetModel(" Agency_name='" + angency + "'");
                if (agency_model == null)
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,所在机构/班号不存在<br/>";
                    error++;
                    continue;
                }
                model.Agency_id = agency_model.Agency_id;
                //角色
                string role = ds.Tables[0].Rows[i]["角色"].ToString().Trim();
                if (!ValidDFValue(role, true, "", ref checkmsg))
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,角色<br/>";
                    error++;
                    continue;
                }
                BLL.CCOM.Role   role_bll   = new BLL.CCOM.Role();
                Model.CCOM.Role role_model = new Model.CCOM.Role();
                role_model = role_bll.GetModel(" Role_name='" + role + "'");
                if (role_model == null)
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新失败,用户角色不存在<br/>";
                    error++;
                    continue;
                }
                model.Role_id = role_model.Role_id;

                //生日
                //string birthday = ds.Tables[0].Rows[i]["生日"].ToString().Trim();
                //if (!ValidDFValue(birthday, false, "", ref checkmsg))
                //{
                //    result += "×第" + (i + 1).ToString() + "行数据更新失败,生日" + checkmsg + "<br/>";
                //    error++;
                //    continue;
                //}
                //else if (birthday != "")
                //{
                //    if (!Validator.IsBirthday(birthday))
                //    {
                //        result += "×第" + (i + 1).ToString() + "行数据更新失败,生日格式不对<br/>";
                //        error++;
                //        continue;
                //    }
                //    model.User_birthday = Convert.ToDateTime(birthday);
                //}
                //model.User_password = mobile;

                ////教师职称
                //string title = ds.Tables[0].Rows[i]["教师职称"].ToString().Trim();

                //BLL.CCOM.Title title_bll = new BLL.CCOM.Title();
                //Model.CCOM.Title title_model = new Model.CCOM.Title();
                //title_model = title_bll.GetModel(" Title_name='" + title + "'");
                //if (title_model == null)
                //{
                //    result += "×第" + (i + 1).ToString() + "行数据更新失败,该教师职称不存在<br/>";
                //    error++;
                //    continue;
                //}
                //else if (!ValidDFValue(title, true, "", ref checkmsg))
                //{
                //    result += "×第" + (i + 1).ToString() + "行数据更新失败,教师职称<br/>";
                //    error++;
                //    continue;
                //}
                model.User_password = DESEncrypt.MD5Encrypt(mobile);
                if (bll.Add(model) == 0)
                {
                    result += "×第" + (i + 1).ToString() + "行数据更新异常<br/>";
                    error++;
                    continue;
                }
                else
                {
                    success++;
                    BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
                    Model.CCOM.User_information user_model = user_bll.GetModel("User_number='" + mobile + "'");
                    if (model.Role_id == 2) //如果为指导教师,插入Tutor表
                    {
                        BLL.CCOM.Tutor   tutor_bll   = new BLL.CCOM.Tutor();
                        Model.CCOM.Tutor tutor_model = new Model.CCOM.Tutor();
                        tutor_model.User_id  = user_model.User_id;
                        tutor_model.Title_id = 1;
                        tutor_bll.Add(tutor_model);
                    }
                    if (model.Role_id == 3)//如果为学生,插入Student表
                    {
                        BLL.CCOM.Student   student_bll   = new BLL.CCOM.Student();
                        Model.CCOM.Student student_model = new Model.CCOM.Student();
                        student_model.User_id   = user_model.User_id;
                        student_model.Period_id = 4;
                        student_bll.Add(student_model);
                    }
                }
            }
            return(result);
        }
예제 #28
0
        protected void btnPhoneCode_Click(object sender, EventArgs e)
        {
            String userName = this.txtUserName1.Text.Trim();
            String phone    = this.txtPhone.Text.Trim();

            if (userName == "")
            {
                this.lblReInfo.Text = "用户名为空!";
                return;
            }
            if (userName.Length > 50 || !Common.Utils.IsSafeSqlString(userName))
            {
                this.lblReInfo.Text = "用户名不合法!";
                return;
            }
            if (!Validator.IsMobile(phone))
            {
                this.lblReInfo.Text = "手机号不合法!";
                return;
            }
            BLL.CCOM.User_information   bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information model = bll.GetModel(" User_number='" + phone + "'");
            if (model == null)
            {
                this.lblReInfo.Text = "用户信息不匹配!";
                return;
            }
            BLL.CCOM.User_property   userEx_bll   = new BLL.CCOM.User_property();
            Model.CCOM.User_property userEx_model = userEx_bll.GetModel(" User_id=" + model.User_id);
            if (userEx_model == null)
            {
                if (!model.User_realname.Equals(userName))
                {
                    this.lblReInfo.Text = "用户信息不匹配!";
                    return;
                }
            }
            else
            {
                if (!model.User_realname.Equals(userName) && !userEx_model.UP_CEE_number.Equals(userName))
                {
                    this.lblReInfo.Text = "用户信息不匹配!";
                    return;
                }
            }
            if (Session[MyKeys.SESSION_PHONE_CODE_TIME] != null)
            {
                DateTime dt = (DateTime)Session[MyKeys.SESSION_PHONE_CODE_TIME];
                if (dt.Add(new TimeSpan(0, 0, 60)) > DateTime.Now)
                {
                    this.lblReInfo.Text = "请您60秒后再获取手机验证码!";
                    return;
                }
            }
            //发送验证码
            String code = Utils.Number(6);

            Session[MyKeys.SESSION_PHONE_CODE]      = code;
            Session[MyKeys.SESSION_PHONE_CODE_TIME] = DateTime.Now;
            ManDaoSMS.SendSMS(phone, GetVCodeSms(model.User_realname, code));
            this.lblReInfo.Text  = "手机验证码已发送到您的手机!";
            this.hidIsTick.Value = "1";
        }
예제 #29
0
        protected void GetPwdByPhone()
        {
            if (Session[MyKeys.SESSION_PHONE_CODE] == null)
            {
                this.lblReInfo.Text = "请输入手机验证码!";
                return;
            }
            if (Session[MyKeys.SESSION_PHONE_CODE].ToString() != this.txtPhoneCode.Text)
            {
                this.lblReInfo.Text = "验证码输入不正确!";
                return;
            }
            String userName = this.txtUserName1.Text.Trim();
            String phone    = this.txtPhone.Text.Trim();

            if (userName == "")
            {
                this.lblReInfo.Text = "用户名为空!";
                return;
            }
            if (userName.Length > 50 || !Common.Utils.IsSafeSqlString(userName))
            {
                this.lblReInfo.Text = "用户名不合法!";
                return;
            }
            if (!Validator.IsMobile(phone))
            {
                this.lblReInfo.Text = "手机号不合法!";
                return;
            }
            //判断用户是否存在
            BLL.CCOM.User_information   bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information model = bll.GetModel(" User_number='" + phone + "'");
            if (model == null)
            {
                this.lblReInfo.Text = "用户信息不匹配!";
                return;
            }
            BLL.CCOM.User_property   userEx_bll   = new BLL.CCOM.User_property();
            Model.CCOM.User_property userEx_model = userEx_bll.GetModel(" User_id=" + model.User_id);
            if (userEx_model == null)
            {
                if (!model.User_realname.Equals(userName))
                {
                    this.lblReInfo.Text = "用户信息不匹配!";
                    return;
                }
            }
            else
            {
                if (!model.User_realname.Equals(userName) && !userEx_model.UP_CEE_number.Equals(userName))
                {
                    this.lblReInfo.Text = "用户信息不匹配!";
                    return;
                }
            }
            //更改密码
            String newPwd = Utils.Number(6);

            model.User_password = DESEncrypt.MD5Encrypt(newPwd);//敏感字段
            bll.Update(model);
            ManDaoSMS.SendSMS(phone, GetChangePwdSms(model.User_realname, newPwd));
            this.lblReInfo.Text = "新密码已发送您的手机,请查看!";
        }
        private bool DoUpdateUserInfo(long _id)
        {
            BLL.CCOM.User_information   user_bll   = new BLL.CCOM.User_information();
            Model.CCOM.User_information user_model = user_bll.GetModel(_id);

            bool result = false;

            //更新姓名
            if (txt_User_realname.Text == "")
            {
                JscriptMsg("请填写真实姓名!", "", "Error");
                return(false);
            }
            else
            {
                user_model.User_realname = this.txt_User_realname.Text;
            }

            //更改选择的结果
            //

            //更新手机号,内容不变
            user_model.User_number = this.txt_User_number.Text;

            //更新性别

            if (this.rbl_User_gender.SelectedIndex == 0)
            {
                user_model.User_gender = false;
            }
            else
            {
                user_model.User_gender = true;
            }
            //= Convert.ToBoolean(this.rbl_User_gender.SelectedValue);

            ////更新证件类型
            //user_model.User_ID_number_type = Convert.ToInt32(this.ddl_User_ID_number_type.SelectedValue);

            ////更新证件号码
            //if (txt_User_ID_number.Text == "")
            //{
            //    JscriptMsg("请填写证件号码!", "", "Error");
            //    return false;
            //}
            //else
            //{
            //    //验证身份证信息,只能验证身份证
            //    string _txt_User_Id_number = txt_User_ID_number.Text.ToString();


            //    if (Convert.ToInt32(this.ddl_User_ID_number_type.SelectedValue) == 1)
            //    {
            //        bool check = false;

            //        if (_txt_User_Id_number.Length == 18)
            //        {
            //            check = CheckIDCard18(_txt_User_Id_number);
            //        }
            //        else if (_txt_User_Id_number.Length == 15)
            //        {
            //            check = CheckIDCard15(_txt_User_Id_number);
            //        }

            //        if (check)
            //        {
            //            user_model.User_ID_number = this.txt_User_ID_number.Text;
            //        }
            //        else
            //        {
            //            JscriptMsg("请检查身份证号码是否正确!", "", "Error");

            //            return false;
            //        }
            //    }
            //    //非身份证的时候
            //    else
            //    {
            //        user_model.User_ID_number = this.txt_User_ID_number.Text;
            //    }
            //}

            //更新出生日期
            try
            {
                user_model.User_birthday = Convert.ToDateTime(this.txt_User_birthday.Text);
            }
            catch
            {
                user_model.User_birthday = null;
            }

            //更新的状态
            try
            {
                bool res = user_bll.Update(user_model);
                if (res == true)
                {
                    return(res);
                }
            }
            catch
            {
                result = false;
            }
            return(result);
        }