//拒绝 protected void btnDelete_Click(object sender, EventArgs e) { // ChkAdminLevel("users", DTEnums.ActionEnum.Delete.ToString()); //检查权限 //删除关系记录 //旅游团表的bookcount-1 BLL.tourgroup_guid bll = new BLL.tourgroup_guid(); for (int i = 0; i < rptList.Items.Count; i++) { int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value); CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId"); if (cb.Checked) { bll.Delete(id,this.tourgrou_id); } } JscriptMsg("拒绝成功啦!", Utils.CombUrlTxt("apply.aspx", "group_id={0}&keywords={1}&property={2}&tourgroup_id={3}&channel_id={4}", this.group_id.ToString(), this.keywords, this.property, this.tourgrou_id.ToString(), this.channel_id.ToString()), "Success"); }
//审核 protected void btnAudit_Click(object sender, EventArgs e) { //ChkAdminLevel("baoliao", DTEnums.ActionEnum.Audit.ToString()); //检查权限 BLL.tourgroup_guid bll = new BLL.tourgroup_guid(); for (int i = 0; i < rptList.Items.Count; i++) { int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value); CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId"); //hidTourGroupID if (cb.Checked) { bll.UpdateField(id,tourgrou_id, "status=1"); } } JscriptMsg("审核通过成功啦!", Utils.CombUrlTxt("apply.aspx", "group_id={0}&keywords={1}&property={2}&tourgroup_id={3}&channel_id={4}", this.group_id.ToString(), this.keywords, this.property,this.tourgrou_id.ToString(),this.channel_id.ToString()), "Success"); }