protected void EBtnBacthSet_Click(object sender, EventArgs e) { if (this.Page.IsValid) { int batchType = 0; StringBuilder sb = new StringBuilder(); if (this.BatchItemType.Checked) { sb.Append(this.TxtBatchItmeID.Text.Trim()); if (sb.Length < 1) { AdminPage.WriteErrMsg("请先选择要批量设置的项目ID!"); } } else { foreach (ListItem item in this.LstNodes.Items) { if (item.Selected) { StringHelper.AppendString(sb, item.Value); } } if (sb.Length <= 0) { AdminPage.WriteErrMsg("请先选择要批量设置的节点!"); } batchType = 1; } if (!this.GetCheckItem().ContainsValue(true)) { AdminPage.WriteErrMsg("您没有构选右侧的多项框,请选择要指定的替换!"); } if (ContentManage.BatchUpdate(this.GetCommonModelInfo(), sb.ToString(), this.GetCheckItem(), batchType)) { if (SiteConfig.SiteOption.EnablePointMoneyExp) { this.UpdatePurview(batchType, sb); this.UpdateCharge(batchType, sb); } AdminPage.WriteSuccessMsg("批量设置成功!", "ContentManage.aspx"); } else { AdminPage.WriteErrMsg("批量设置失败!"); } } }