private void ShowInfo(int _id)
        {
            BLL.tourgroup bll = new BLL.tourgroup();
            Model.tourgroup model = bll.GetTourGroupModel(_id);

            ddlGroupType.SelectedValue = model.category_id.ToString();
            ddlAccount.SelectedValue = model.account_type.ToString();
            ddlFromCity.SelectedValue = model.fromplace_id.ToString();
            ddlLanguage.SelectedValue = model.language_type.ToString();
            ddlLineCity.SelectedValue = model.linecity_id.ToString();
            ddlProperty.SelectedValue = model.group_property.ToString();
            ddlRestaurant.SelectedValue = model.restaurant_type.ToString();
            ddlTicketType.SelectedValue = model.ticket_type.ToString();
            ddlToCity.SelectedValue = model.toplace_id.ToString();

            txtTitle.Text = model.title;
            txtContent.Text = model.book_require;
            rdoSex.SelectedValue = model.sex.ToString();
            rdoStayType.SelectedValue = model.is_stay.ToString();
            if (model.is_top == 1)
            {
                cblItem.Items[0].Selected = true;
            }
            if (model.is_red == 1)
            {
                cblItem.Items[1].Selected = true;
            }
            txtPeople.Text = model.people_count.ToString();
            txtTotal.Text = model.total_count.ToString();
            txtServicePrice.Text = model.service_price.ToString();

            txtStartDate.Text = model.start_date;
            txtEndDate.Text = model.end_date;
            txtSortId.Text = model.sort_id.ToString();
            model.status = 1; //0是申请 1是正常  2是过期禁用

            //赋值上传的相册
            //focus_photo.Value = model.img_url; //封面图片
            //LitAlbumList.Text = GetAlbumHtml(model.albums, model.img_url);
        }
 //设置操作
 protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     ChkAdminLevel(channel_id, DTEnums.ActionEnum.Edit.ToString()); //检查权限
     int id = Convert.ToInt32(((HiddenField)e.Item.FindControl("hidId")).Value);
     BLL.tourgroup bll = new BLL.tourgroup();
     Model.tourgroup model = bll.GetTourGroupModel(id);
     switch (e.CommandName.ToLower())
     {
         case "ibtntop":
             if (model.is_top == 1)
                 bll.UpdateField(id, "is_top=0");
             else
                 bll.UpdateField(id, "is_top=1");
             break;
         case "ibtnred":
             if (model.is_red == 1)
                 bll.UpdateField(id, "is_red=0");
             else
                 bll.UpdateField(id, "is_red=1");
             break;
     }
     this.RptBind("id>0" + CombSqlTxt(this.channel_id, this.category_id, this.keywords, this.property), "sort_id asc,add_time desc");
 }
        private bool DoEdit(int _id)
        {
            bool result = true;
            BLL.tourgroup bll = new BLL.tourgroup();
            Model.tourgroup model = bll.GetTourGroupModel(_id);
            model.title = txtTitle.Text.Trim();
            model.category_id = int.Parse(ddlGroupType.SelectedValue);

            model.content = "";
            model.book_require = txtContent.Text.Trim();
            model.account_type = string.IsNullOrEmpty(ddlAccount.SelectedValue) ? 0 : int.Parse(ddlAccount.SelectedValue);
            model.fromplace_id = string.IsNullOrEmpty(ddlFromCity.SelectedValue) ? 0 : int.Parse(ddlFromCity.SelectedValue);
            model.language_type = string.IsNullOrEmpty(ddlLanguage.SelectedValue) ? 0 : int.Parse(ddlLanguage.SelectedValue);
            model.linecity_id = string.IsNullOrEmpty(ddlLineCity.SelectedValue) ? 0 : int.Parse(ddlLineCity.SelectedValue);
            model.group_property = string.IsNullOrEmpty(ddlProperty.SelectedValue) ? 0 : int.Parse(ddlProperty.SelectedValue);
            model.restaurant_type = string.IsNullOrEmpty(ddlRestaurant.SelectedValue) ? 0 : int.Parse(ddlRestaurant.SelectedValue);
            model.ticket_type = string.IsNullOrEmpty(ddlTicketType.SelectedValue) ? 0 : int.Parse(ddlTicketType.SelectedValue);
            model.toplace_id = string.IsNullOrEmpty(ddlToCity.SelectedValue) ? 0 : int.Parse(ddlToCity.SelectedValue);
            model.sex = int.Parse(rdoSex.SelectedValue);
            model.is_stay = string.IsNullOrEmpty(rdoStayType.SelectedValue) ? 0 : int.Parse(rdoStayType.SelectedValue);
            model.is_red = 0;
            model.is_slide = 0;
            model.is_top = 0;
            if (cblItem.Items[0].Selected == true)
            {
                model.is_top = 1;
            }
            if (cblItem.Items[1].Selected == true)
            {
                model.is_red = 1;
            }
            model.people_count = int.Parse(txtPeople.Text.Trim());
            model.total_count = int.Parse(txtTotal.Text.Trim());
            model.service_price = decimal.Parse(txtServicePrice.Text.Trim());

            model.status = 1; //0申请 1正常 2过期
            model.sort_id = int.Parse(txtSortId.Text.Trim());
            model.start_date = txtStartDate.Text.Trim();
            model.end_date = txtEndDate.Text.Trim();
            model.remark1 = "";
            model.remark2 = 0;

            model.albums = null;

            if (!bll.Update(model))
            {
                result = false;
            }
            return result;
        }