Example #1
0
        private void frmSysModuleManage_Load(object sender, EventArgs e)
        {
            BindMenuTree(this.tabControl.SelectedTab);

            PageList <SYS_DictItemLineResult> pgList = dictLineLogic.GetDictItemLineList(new SYS_DictItemLineParam()
            {
                ItemName = "权限名称"
            });

            if (pgList.ResultJoinList != null && pgList.ResultJoinList.Rows.Count > 0)
            {
                foreach (DataRow row in pgList.ResultJoinList.Rows)
                {
                    if (!htRight.ContainsKey(row["ItemValue"]))
                    {
                        htRight.Add(row["ItemValue2"], row["ItemValue"]);
                        kvRightList.Add(new KeyValuePair <string, object>(row["ItemValue"].ToStringHasNull(), row["ItemValue2"]));
                    }
                }
            }
        }