Пример #1
0
        private bool DoAdd()
        {
            bool result = true;

            Model.online_service model = new Model.online_service();
            BLL.online_service   bll   = new BLL.online_service();

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title    = txtTitle.Text.Trim();
            model.img_url  = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            model.sort_id  = int.Parse(txtSortId.Text.Trim());
            model.is_lock  = int.Parse(rblIsLock.SelectedValue);
            model.add_time = DateTime.Now;

            if (bll.Add(model) < 1)
            {
                result = false;
            }
            return(result);
        }
Пример #2
0
        private bool DoAdd()
        {
            bool result = false;

            Model.online_service model = new Model.online_service();
            BLL.online_service   bll   = new BLL.online_service();

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title    = txtTitle.Text.Trim();
            model.img_url  = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            model.sort_id  = int.Parse(txtSortId.Text.Trim());
            model.is_lock  = int.Parse(rblIsLock.SelectedValue);
            model.add_time = DateTime.Now;

            if (bll.Add(model) > 0)
            {
                AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加在线客服:" + model.title); //记录日志
                result = true;
            }
            return(result);
        }
Пример #3
0
        private bool DoAdd()
        {
            bool result = false;
            Model.online_service model = new Model.online_service();
            BLL.online_service bll = new BLL.online_service();

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title = txtTitle.Text.Trim();
            model.img_url = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.is_lock = int.Parse(rblIsLock.SelectedValue);
            model.add_time = DateTime.Now;

            if (bll.Add(model) > 0)
            {
                AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加在线客服:" + model.title); //记录日志
                result = true;
            }
            return result;
        }
Пример #4
0
        private bool DoAdd()
        {
            bool result = true;
            Model.online_service model = new Model.online_service();
            BLL.online_service bll = new BLL.online_service();

            model.group_id = int.Parse(ddlGroupId.SelectedValue);
            model.title = txtTitle.Text.Trim();
            model.img_url = txtImgUrl.Text.Trim();
            model.link_url = txtLinkUrl.Text.Trim();
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.is_lock = int.Parse(rblIsLock.SelectedValue);
            model.add_time = DateTime.Now;

            if (bll.Add(model) < 1)
            {
                result = false;
            }
            return result;
        }