示例#1
0
        /// <summary>
        /// 加载数据
        /// </summary>
        private void LoadInfo()
        {
            int id = RequestHelper.GetRequestInt("id", 0);

            if (id > 0)
            {
                DataTable dt = operate.GetPageRoleByID(id);
                if (dt != null && dt.Rows.Count > 0)
                {
                    this.txtPageCode.Text = HttpUtility.HtmlDecode(dt.Rows[0]["PageCode"].ToString());
                    this.txtCodeName.Text = HttpUtility.HtmlDecode(dt.Rows[0]["CodeName"].ToString());
                    this.chkFlag.Checked  = Convert.ToBoolean(dt.Rows[0]["Flag"].ToString());
                }
                else
                {
                    Alert.ShowInParent("读取数据失败!", String.Empty, ActiveWindow.GetHideReference());
                }
            }
        }