示例#1
0
        public void QuerymidName()
        {
            string Name = Session["Name"].ToString();

            Admin_BLL.admin_infoBLL infoBLL = new Admin_BLL.admin_infoBLL();
            administatorsModel      model   = infoBLL.QuerymidName(Name);

            IdmidName.Value = model.midName;
            IdSex.Value     = model.Sex.ToString();
            IdAge.Value     = model.Age.ToString();
            Idmphone.Value  = model.mphone;
            Idmailbox.Value = model.mailbox;
            IdAddtime.Value = model.Addtime.ToString();
        }
示例#2
0
        protected void UPdateEdit_Click(object sender, EventArgs e)
        {
            string SessionName = Session["Name"].ToString();

            administatorsModel model = new administatorsModel();

            model.midName = IdmidName.Value;
            model.Sex     = Convert.ToInt32(IdSex.Value);
            model.Age     = Convert.ToInt32(IdAge.Value);
            model.mphone  = Idmphone.Value;
            model.mailbox = Idmailbox.Value;
            Admin_BLL.admin_infoBLL infoBLL = new Admin_BLL.admin_infoBLL();
            int count = infoBLL.Updateadministators(model, SessionName);

            if (count > 0)
            {
                JSHelper.Alert(this, "修改成功");
            }
        }