Exemplo n.º 1
0
        private bool DoAdd()
        {
            bool result = true;
            Model.online_service_group model = new Model.online_service_group();
            BLL.online_service_group bll = new BLL.online_service_group();

            model.title = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.is_lock = int.Parse(rblIsLock.SelectedValue);

            if (bll.Add(model) < 1)
            {
                result = false;
            }
            return result;
        }
Exemplo n.º 2
0
        private bool DoAdd()
        {
            bool result = true;

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

            model.title        = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id      = int.Parse(txtSortId.Text.Trim());
            model.is_lock      = int.Parse(rblIsLock.SelectedValue);

            if (bll.Add(model) < 1)
            {
                result = false;
            }
            return(result);
        }
Exemplo n.º 3
0
        private bool DoAdd()
        {
            bool result = false;

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

            model.title        = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id      = int.Parse(txtSortId.Text.Trim());
            model.is_lock      = int.Parse(rblIsLock.SelectedValue);

            if (bll.Add(model) > 0)
            {
                AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加在线客服分组:" + model.title); //记录日志
                result = true;
            }
            return(result);
        }
Exemplo n.º 4
0
        private bool DoAdd()
        {
            bool result = false;
            Model.online_service_group model = new Model.online_service_group();
            BLL.online_service_group bll = new BLL.online_service_group();

            model.title = txtTitle.Text.Trim();
            model.default_view = int.Parse(rblDefaultView.SelectedValue);
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.is_lock = int.Parse(rblIsLock.SelectedValue);

            if (bll.Add(model) > 0)
            {
                AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加在线客服分组:" + model.title); //记录日志
                result = true;
            }
            return result;
        }