예제 #1
0
        protected void treeGroup_Selected(object sender, FineUI.TreeCommandEventArgs e)
        {
            var vItem = NavigateGroup.Lazy(p => p.ID == this.treeGroup.SelectedNodeID);

            if (vItem != null)
            {
                this.btnAddModules.Enabled = this.btnRemoves.Enabled = this.btnQuery.Enabled = true;
                this.btnModify.Enabled     = true;
                int type = 0;
                if ((vItem.Attributes & 0x0004) == 0x0004)
                {
                    type = (int)EAS.Explorer.GoComType.WinUI;
                }
                else if ((vItem.Attributes & 0x0008) == 0x0008)
                {
                    type = (int)EAS.Explorer.GoComType.WebUI;
                }
                else if ((vItem.Attributes & 0x0010) == 0x0010)
                {
                    type = (int)EAS.Explorer.GoComType.SilverUI;
                }
                this.btnAddModules.OnClientClick = Window2.GetShowReference(string.Format("~/Biz/ModuleSelector.aspx?type={0}&mask=3", type), "选择模块");
                this.btnModify.OnClientClick     = Window1.GetShowReference(string.Format("~/Biz/GroupWindow.aspx?id={0}", vItem.ID), "修改导航");
                BindGrid();
            }
        }
예제 #2
0
        void LoadData()
        {
            this.btnClose.OnClientClick = ActiveWindow.GetHideReference();

            this.BindDdlParent();

            if (Request.QueryString.AllKeys.Contains("id"))
            {
                string vID = Request.QueryString["id"];

                var vItem = NavigateGroup.Lazy(p => p.ID == vID);
                if (vItem == null)
                {
                    Alert.Show("读取导航信息错误!", String.Empty, ActiveWindow.GetHideReference());
                    return;
                }

                this.lbID.Text = vItem.ID;

                int type = 0;
                if ((vItem.Attributes & 0x0004) == 0x0004)
                {
                    type = 0x0004;
                }
                else if ((vItem.Attributes & 0x0008) == 0x0008)
                {
                    type = 0x0008;
                }
                else if ((vItem.Attributes & 0x0010) == 0x0010)
                {
                    type = 0x0010;
                }

                this.ddlParent.SelectedValue = string.Format("{0}|{1}", type, vItem.ParentID);

                this.tbName.Text        = vItem.Name;
                this.nbSortCode.Text    = vItem.SortCode.ToString();
                this.tbDescription.Text = vItem.Description;

                this.cbExpend.Checked = (vItem.Attributes & 0x0002) == 0x0002;

                this.btnSave.Enabled   = false;
                this.ddlParent.Enabled = false;
            }
            else
            {
                this.lbID.Text = Guid.NewGuid().ToString().ToUpper();
            }
        }