/// <summary>
        /// 设置页面信息
        /// </summary>
        /// <param name="id">ID</param>
        private void SetPage(string dicid)
        {
            bllts_Dicts bll = new bllts_Dicts();
            DataTable   dt  = bll.GetPagingSigInfo("0", "0", " where dicid='" + dicid + "'");

            if (dt != null && dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                //引用商户表Business的商户编号字段buscode的值
                buscode.InnerHtml = dr["buscode"].ToString();
                //门店编号
                strcode.InnerHtml = dr["strcode"].ToString();
                //类别
                dictype.InnerHtml = dr["dictype"].ToString();
                //语言代码
                lng.InnerHtml = dr["lng"].ToString();
                //父ID
                pdicid.InnerHtml = dr["pdicid"].ToString();
                //字典编号
                diccode.InnerHtml = dr["diccode"].ToString();
                //字典名称
                dicname.InnerHtml = dr["dicname"].ToString();
                //字典值
                dicvalue.InnerHtml = dr["dicvalue"].ToString();
                //排序号
                orderno.InnerHtml = dr["orderno"].ToString();
                //备注
                remark.InnerHtml = dr["remark"].ToString();
                //有效状态(0无效,1有效)
                status.InnerHtml = dr["status"].ToString() == "1" ? "有效" : "无效";
                //引用系统用户表ts_admins的userid字段值
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 设置页面信息
        /// </summary>
        /// <param name="id">ID</param>
        private void SetPage(string id)
        {
            DataTable dt = bll.GetPagingSigInfo("0", "0", " where dicid='" + id + "'");

            if (dt != null && dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                ddl_lng.SelectedValue    = dr["lng"].ToString();
                ddl_pdicid.SelectedValue = dr["pdicid"].ToString();
                if (dr["pdicid"].ToString() == "0")
                {
                    this.ddl_pdicid.Enabled = false;
                    this.savepage.Visible   = false;
                }
                else
                {
                    this.ddl_pdicid.Enabled = true;
                    this.savepage.Visible   = true;
                }

                txt_diccode.Text = dr["diccode"].ToString();
                txt_dicname.Text = dr["dicname"].ToString();
                if (dr["pdicid"].ToString() == "0")
                {
                    txt_diccode.Enabled = false;
                    txt_dicname.Enabled = false;
                }

                txt_orderno.Text         = dr["orderno"].ToString();
                txt_remark.Text          = dr["remark"].ToString();
                ddl_status.SelectedValue = dr["status"].ToString();
            }
        }