public override void Submit_OnClick(object sender, EventArgs e) { var isSuccess = false; try { var nodeInfo = ChannelManager.GetChannelInfo(SiteId, _channelId); nodeInfo.Additional.IsCreateChannelIfContentChanged = TranslateUtils.ToBool(DdlIsCreateChannelIfContentChanged.SelectedValue); nodeInfo.Additional.CreateChannelIDsIfContentChanged = ControlUtils.GetSelectedListControlValueCollection(LbChannelId); DataProvider.ChannelDao.Update(nodeInfo); Body.AddSiteLog(SiteId, _channelId, 0, "设置栏目变动生成页面", $"栏目:{nodeInfo.ChannelName}"); isSuccess = true; } catch (Exception ex) { FailMessage(ex, ex.Message); } if (isSuccess) { LayerUtils.CloseAndRedirect(Page, PageConfigurationCreateTrigger.GetRedirectUrl(SiteId, _channelId)); } }
public override void Submit_OnClick(object sender, EventArgs e) { var isSuccess = false; try { var nodeInfo = NodeManager.GetNodeInfo(PublishmentSystemId, nodeID); nodeInfo.Additional.IsCreateChannelIfContentChanged = TranslateUtils.ToBool(IsCreateChannelIfContentChanged.SelectedValue); nodeInfo.Additional.CreateChannelIDsIfContentChanged = ControlUtils.GetSelectedListControlValueCollection(NodeIDCollection); DataProvider.NodeDao.UpdateNodeInfo(nodeInfo); Body.AddSiteLog(PublishmentSystemId, nodeID, 0, "设置栏目变动生成页面", $"栏目:{nodeInfo.NodeName}"); isSuccess = true; } catch (Exception ex) { FailMessage(ex, ex.Message); } if (isSuccess) { PageUtils.CloseModalPageAndRedirect(Page, PageConfigurationCreateTrigger.GetRedirectUrl(PublishmentSystemId, nodeID)); } }