Exemplo n.º 1
0
        private void ShowInfo(string id)
        {
            Navigation011.Para_Str = "id=" + id;
            Jium.BLL.SysManage sm   = new Jium.BLL.SysManage();
            SysNode            node = sm.GetNode(int.Parse(id));

            this.lblID.Text      = id;
            this.txtOrderid.Text = node.OrderID.ToString();
            this.txtName.Text    = node.Text;
            //menu
            if (node.ParentID == 0)
            {
                this.listTarget.SelectedIndex = 0;
            }
            else
            {
                for (int m = 0; m < this.listTarget.Items.Count; m++)
                {
                    if (this.listTarget.Items[m].Value == node.ParentID.ToString())
                    {
                        this.listTarget.Items[m].Selected = true;
                    }
                }
            }
            this.txtUrl.Text = node.Url;
//			this.txtImgUrl.Text=node.ImageUrl;
            this.txtDescription.Text = node.Comment;

            //Permission
            for (int n = 0; n < this.listPermission.Items.Count; n++)
            {
                if ((this.listPermission.Items[n].Value == node.PermissionID.ToString()) && (this.listPermission.Items[n].Value != "-1"))
                {
                    this.listPermission.Items[n].Selected = true;
                }
            }

//			//module
//			for(int n=0;n<this.dropModule.Items.Count;n++)
//			{
//				if(this.dropModule.Items[n].Value==node.ModuleID.ToString())
//				{
//					this.dropModule.Items[n].Selected=true;
//				}
//			}
//
//			//module
//			for(int n=0;n<this.Dropdepart.Items.Count;n++)
//			{
//				if(this.Dropdepart.Items[n].Value==node.KeShiDM.ToString())
//				{
//					this.Dropdepart.Items[n].Selected=true;
//				}
//			}

            //image
            for (int n = 0; n < this.imgsel.Items.Count; n++)
            {
                if (this.imgsel.Items[n].Value == node.ImageUrl)
                {
                    this.imgsel.Items[n].Selected = true;
                    this.hideimgurl.Value         = node.ImageUrl;
                }
            }
//			if(node.KeshiPublic=="true")
//			{
//				this.chkPublic.Checked=true;
//			}
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string id = Request.Params["id"];
                if (id == null || id.Trim() == "")
                {
                    Response.Redirect("treelist.aspx");
                    Response.End();
                }

                Navigation011.Para_Str = "id=" + id;
                Jium.BLL.SysManage sm   = new Jium.BLL.SysManage();
                SysNode            node = sm.GetNode(int.Parse(id));
                lblID.Text           = id;
                this.lblOrderid.Text = node.OrderID.ToString();
                lblName.Text         = node.Text;
                if (node.ParentID == 0)
                {
                    this.lblTarget.Text = "根目录";
                }
                else
                {
                    lblTarget.Text = sm.GetNode(node.ParentID).Text;
                }
                lblUrl.Text    = node.Url;
                lblImgUrl.Text = node.ImageUrl;
                LTP.Accounts.Bus.Permissions perm = new LTP.Accounts.Bus.Permissions();
                if (node.PermissionID == -1)
                {
                    this.lblPermission.Text = "没有权限限制";
                }
                else
                {
                    this.lblPermission.Text = perm.GetPermissionName(node.PermissionID);
                }

                lblDescription.Text = node.Comment;
//				if(node.ModuleID!=-1)
//				{
//					this.lblModule.Text=sm.GetModuleName(node.ModuleID);
//				}
//				else
//				{
//					this.lblModule.Text="未归属任何模块";
//				}
//
//				if(node.KeShiDM!=-1)
//				{
//					this.lblModuledept.Text=Jium.BLL.PubConstant.GetKeshiName(node.KeShiDM);
//				}
//				else
//				{
//					this.lblModuledept.Text="未归属任何部门";
//				}
//				if(node.KeshiPublic=="true")
//				{
//					this.lblKeshiPublic.Text="作为部门内部公有部分出现";
//				}
            }
        }