⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 categorybatchset.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 3 页
字号:
                        }
                        box3.Checked = flag;
                    }
                }
                if (this.RadPurviewType0.Checked)
                {
                    box.Checked = true;
                    box.Enabled = false;
                    box2.Checked = true;
                    box2.Enabled = false;
                }
                if (this.RadPurviewType1.Checked)
                {
                    box.Checked = true;
                    box.Enabled = false;
                }
            }
        }

        protected void EgvRoleView_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                CheckBox box = (CheckBox) e.Row.FindControl("ChkNodePreview");
                CheckBox box2 = (CheckBox) e.Row.FindControl("ChkNodeInput");
                CheckBox box3 = (CheckBox) e.Row.FindControl("ChkNodeCheck");
                CheckBox box4 = (CheckBox) e.Row.FindControl("ChkContentManage");
                CheckBox box5 = (CheckBox) e.Row.FindControl("ChkNodeManage");
                CheckBox box6 = (CheckBox) e.Row.FindControl("ChkCommentManage");
                RoleInfo dataItem = (RoleInfo) e.Row.DataItem;
                foreach (RoleNodePermissionsInfo info2 in RolePermissions.GetAllNodePermissionsById(dataItem.RoleId, BasePage.RequestInt32("NodeId")))
                {
                    bool flag = info2.NodeId != -1;
                    if (info2.OperateCode == OperateCode.NodeContentPreview)
                    {
                        box.Checked = true;
                        if (!flag)
                        {
                            box.Enabled = flag;
                        }
                    }
                    if (info2.OperateCode == OperateCode.NodeContentInput)
                    {
                        box2.Checked = true;
                        if (!flag)
                        {
                            box2.Enabled = flag;
                        }
                    }
                    if (info2.OperateCode == OperateCode.NodeContentCheck)
                    {
                        box3.Checked = true;
                        if (!flag)
                        {
                            box3.Enabled = flag;
                        }
                    }
                    if (info2.OperateCode == OperateCode.ChildNodesManage)
                    {
                        box5.Checked = true;
                        if (!flag)
                        {
                            box5.Enabled = flag;
                        }
                    }
                    if (info2.OperateCode == OperateCode.NodeContentManage)
                    {
                        box4.Checked = true;
                        if (!flag)
                        {
                            box4.Enabled = flag;
                        }
                    }
                    if (info2.OperateCode == OperateCode.NodeCommentManage)
                    {
                        box6.Checked = true;
                        if (flag)
                        {
                            continue;
                        }
                        box6.Enabled = flag;
                    }
                }
            }
        }

        private Dictionary<string, bool> GetCheckItem()
        {
            Dictionary<string, bool> dictionary = new Dictionary<string, bool>();
            dictionary.Add("OpenType", this.ChkOpenType.Checked);
            dictionary.Add("PurviewType", this.ChkPurviewType.Checked);
            dictionary.Add("EnableComment", this.ChkEnableComment2.Checked);
            dictionary.Add("WorkFlowId", this.ChkWorkFlow.Checked);
            dictionary.Add("EnableProtect", this.ChkEnableProtect.Checked);
            dictionary.Add("EnableAddWhenHasChild", this.ChkEnableAddWhenHasChild.Checked);
            dictionary.Add("HitsOfHot", this.ChkHitsOfHot.Checked);
            dictionary.Add("IsSetCache", this.ChkIsSetCache.Checked);
            dictionary.Add("FileCdefaultListTmeplate", this.ChkFileCdefaultListTmeplate.Checked);
            dictionary.Add("FileContainChildTemplate", this.ChkFileContainChildTemplate.Checked);
            dictionary.Add("FileCTemplate", this.ChkFileCTemplate.Checked);
            dictionary.Add("PresentExp", this.ChkPresentExp.Checked);
            dictionary.Add("DefaultItemPoint", this.ChkDefaultItemPoint.Checked);
            dictionary.Add("ShowChargeType", this.ChkShowChargeType.Checked);
            dictionary.Add("DefaultItemDividePercent", this.ChkDefaultItemDividePercent.Checked);
            dictionary.Add("ShowOnMenu", this.ChkShowOnMenu.Checked);
            dictionary.Add("ShowOnPath", this.ChkShowOnPath.Checked);
            dictionary.Add("ShowOnMap", this.ChkShowOnMap.Checked);
            dictionary.Add("ShowOnListIndex", this.ChkShowOnListIndex.Checked);
            dictionary.Add("ShowOnListParent", this.ChkShowOnListParent.Checked);
            dictionary.Add("ItemPageSize", this.ChkItemPageSize.Checked);
            dictionary.Add("ItemOpenType", this.ChkItemOpenType.Checked);
            dictionary.Add("ItemListOrderType", this.ChkItemListOrderType.Checked);
            dictionary.Add("ListPageCreateHtmlType", this.ChkListPageCreateHtmlType.Checked);
            dictionary.Add("AutoCreateHtmlType", this.ChkAutoCreateHtmlType.Checked);
            dictionary.Add("Relation", this.ChkRelation.Checked);
            dictionary.Add("ListPageHtmlDirType", this.ChkListPageHtmlDirType.Checked);
            dictionary.Add("PagePostfix", this.ChkPagePostfix.Checked);
            dictionary.Add("ContentPageCreateHtmlType", this.ChkContentPageCreateHtmlType.Checked);
            dictionary.Add("ContentHtmlDir", this.ChkContentHtmlDir.Checked);
            return dictionary;
        }

        private IList<NodesModelTemplateRelationShipInfo> GetDataFromRepeater()
        {
            IList<NodesModelTemplateRelationShipInfo> list = new List<NodesModelTemplateRelationShipInfo>();
            foreach (RepeaterItem item in this.RepContentModelTemplate.Items)
            {
                if ((item.ItemType != ListItemType.Item) && (item.ItemType != ListItemType.AlternatingItem))
                {
                    continue;
                }
                string text = ((TextBox) item.FindControl("FileCTemplate")).Text;
                if (((CheckBox) item.FindControl("ChkModel")).Checked && !string.IsNullOrEmpty(text))
                {
                    NodesModelTemplateRelationShipInfo info = new NodesModelTemplateRelationShipInfo();
                    info.ModelId = DataConverter.CLng(((HiddenField) item.FindControl("HdnModelId")).Value);
                    info.DefaultTemplateFile = text;
                    list.Add(info);
                }
            }
            foreach (RepeaterItem item2 in this.RepShopModelTemplate.Items)
            {
                if ((item2.ItemType != ListItemType.Item) && (item2.ItemType != ListItemType.AlternatingItem))
                {
                    continue;
                }
                string str2 = ((TextBox) item2.FindControl("FileCTemplate")).Text;
                if (((CheckBox) item2.FindControl("ChkModel")).Checked && !string.IsNullOrEmpty(str2))
                {
                    NodesModelTemplateRelationShipInfo info2 = new NodesModelTemplateRelationShipInfo();
                    info2.ModelId = DataConverter.CLng(((HiddenField) item2.FindControl("HdnModelId")).Value);
                    info2.DefaultTemplateFile = str2;
                    list.Add(info2);
                }
            }
            return list;
        }

        private NodeInfo GetNodesInfo()
        {
            NodeInfo info = new NodeInfo();
            NodeSettingInfo info2 = new NodeSettingInfo();
            if (this.RadOpenType0.Checked)
            {
                info.OpenType = 0;
            }
            if (this.RadOpenType1.Checked)
            {
                info.OpenType = 1;
            }
            if (this.RadPurviewType0.Checked)
            {
                info.PurviewType = 0;
            }
            if (this.RadPurviewType1.Checked)
            {
                info.PurviewType = 1;
            }
            if (this.RadPurviewType2.Checked)
            {
                info.PurviewType = 2;
            }
            info2.EnableComment = this.ChkEnableComment.Checked;
            info2.CommentNeedCheck = this.ChkCommentNeedCheck.Checked;
            info2.EnableTouristsComment = this.ChkEnableTouristsComment.Checked;
            info.WorkFlowId = DataConverter.CLng(this.DropWorkFlow.SelectedValue);
            info2.EnableProtect = Convert.ToBoolean(this.RadlEnableProtect.SelectedValue);
            info2.EnableAddWhenHasChild = Convert.ToBoolean(this.RadlEnableAddWhenHasChild.SelectedValue);
            info.HitsOfHot = DataConverter.CLng(this.TxtHitsOfHot.Text);
            if (this.RadNeedCache1.Checked)
            {
                info2.IsSetCache = true;
                info2.CacheTime = DataConverter.CLng(this.TxtCacheTime.Text);
            }
            if (this.RadNeedCache0.Checked)
            {
                info2.IsSetCache = false;
                info2.CacheTime = 0;
            }
            info2.PresentExp = DataConverter.CLng(this.TxtPresentExp.Text);
            info2.DefaultItemPoint = DataConverter.CLng(this.TxtDefaultItemPoint.Text);
            info2.DefaultItemChargeType = this.ShowChargeType.ChargeType;
            info2.DefaultItemPitchTime = this.ShowChargeType.PitchTime;
            info2.DefaultItemReadTimes = this.ShowChargeType.ReadTimes;
            info2.DefaultItemDividePercent = DataConverter.CLng(this.TxtDefaultItemDividePercent.Text);
            info.DefaultTemplateFile = this.FileCdefaultListTmeplate.Text;
            info.ContainChildTemplateFile = this.FileContainChildTemplate.Text;
            info.ShowOnMenu = Convert.ToBoolean(this.RadlShowOnMenu.SelectedValue);
            info.ShowOnPath = Convert.ToBoolean(this.RadlShowOnPath.SelectedValue);
            info.ShowOnMap = Convert.ToBoolean(this.RadlShowOnMap.SelectedValue);
            info.ShowOnListIndex = Convert.ToBoolean(this.RadlShowOnListIndex.SelectedValue);
            info.ShowOnListParent = Convert.ToBoolean(this.RadlShowOnListParent.SelectedValue);
            info.ItemListOrderType = DataConverter.CLng(this.DrpItemListOrderType.SelectedValue);
            info.ItemOpenType = DataConverter.CLng(this.DrpItemOpenType.SelectedValue);
            info.ItemPageSize = DataConverter.CLng(this.CombItemPageSize.Value);
            info.IsCreateContentPage = DataConverter.CBool(this.RadlIsContentPageCreate.SelectedValue);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -