Exemplo n.º 1
0
        private void save_Role(HttpContext context)
        {
            int mid = DTRequest.GetFormInt("mid");

            BLL.selfMessage   bll   = new BLL.selfMessage();
            Model.selfMessage model = bll.GetModel(mid);
            model.me_isRead = true;
            bll.Update(model);
            context.Response.End();
        }
Exemplo n.º 2
0
        private string DoEdit(int _id)
        {
            BLL.selfMessage   bll   = new BLL.selfMessage();
            Model.selfMessage model = bll.GetModel(_id);
            model.me_isRead = cbIsRead.Checked;
            if (bll.Update(model))
            {
                return("");
            }

            return("修改失败");
        }
Exemplo n.º 3
0
        private void ShowInfo(int _id)
        {
            BLL.selfMessage   bll   = new BLL.selfMessage();
            Model.selfMessage model = bll.GetModel(_id);

            labTitle.Text   = model.me_title;
            labContent.Text = model.me_content;
            if (model.me_isRead.Value)
            {
                cbIsRead.Checked = true;
            }
            else
            {
                cbIsRead.Checked = false;
            }
        }