コード例 #1
0
ファイル: HYEdit.aspx.cs プロジェクト: 123ljf/personal
    /// <summary>
    /// 会员信息显示
    /// </summary>
    /// <param name="HYID"></param>
    private void ShowInfo(int HYID)
    {
        T_HY model = new T_HY();

        model = model.GetModel(HYID);
        if (model != null)
        {
            this.txtHYXM.Text = model.HYXM;
            if (model.HYXB != null)
            {
                this.ddlXB.SelectedValue = model.HYXB.ToString();
            }
            this.txtHYZY.Text   = model.HYZY;
            this.txtHYBJ.Text   = model.HYBJ;
            this.txtHYSS.Text   = model.HYSS;
            this.txtMOBILE.Text = model.MOBILE;
            if (model.STBID != null)
            {
                this.ddlST.SelectedValue = model.STBID.ToString();
            }

            this.txtZW.Text = model.ZW;
            this.txtHF.Text = model.HF.ToString();
        }
    }
コード例 #2
0
ファイル: HYINFO.aspx.cs プロジェクト: 123ljf/personal
    /// <summary>
    /// 显示
    /// </summary>
    /// <param name="HYID"></param>
    private void ShowInfo(int HYID)
    {
        T_HY model = new T_HY();

        model = model.GetModel(HYID);
        if (model != null)
        {
            this.lblHYXM.Text = model.HYXM;
            if (model.HYXB)
            {
                lab_sex.Text = "男";
            }
            else
            {
                lab_sex.Text = "女";
            }
            this.lblHYZY.Text   = model.HYZY;
            this.lblHYBJ.Text   = model.HYBJ;
            this.lblHYSS.Text   = model.HYSS;
            this.lblMOBILE.Text = model.MOBILE;
            this.lblSTBID.Text  = model.STBID.ToString();
            this.lblZW.Text     = model.ZW;
            this.lblHF.Text     = model.HF.ToString();
        }
    }