Ejemplo n.º 1
0
 private void ShowInfo(int _id)
 {
     BLL.tag   bll   = new BLL.tag();
     Model.tag model = bll.GetModel(_id);
     ddlCategoryId.SelectedValue = model.category_id.ToString();
     txt_title.Text = model.title;
 }
Ejemplo n.º 2
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            BLL.tag   bll   = new BLL.tag();
            Model.tag model = bll.GetModel(_id);
            model.title       = txt_title.Text.Trim();
            model.category_id = Convert.ToInt32(ddlCategoryId.SelectedValue);


            if (bll.Update(model))
            {
                //AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改用户信息:" + model.user_name); //记录日志
                result = true;
            }
            return(result);
        }
Ejemplo n.º 3
0
        private bool DoEdit(int _id)
        {
            bool result = false;
            BLL.tag bll = new BLL.tag();
            Model.tag model = bll.GetModel(_id);
            model.title = txt_title.Text.Trim();
            model.category_id = Convert.ToInt32(ddlCategoryId.SelectedValue);

            if (bll.Update(model))
            {
                //AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改用户信息:" + model.user_name); //记录日志
                result = true;
            }
            return result;
        }
Ejemplo n.º 4
0
 private void ShowInfo(int _id)
 {
     BLL.tag bll = new BLL.tag();
     Model.tag model = bll.GetModel(_id);
     ddlCategoryId.SelectedValue = model.category_id.ToString();
     txt_title.Text = model.title;
 }