예제 #1
0
파일: FrmVipsT.cs 프로젝트: JacBang/CMS
        private void FrmVipsT_Load(object sender, EventArgs e)
        {
            //用无间道显示会员等级
            List <VIPGrades> list = VipsBLL.selVG();

            this.cbograde.DisplayMember = "VGName";
            this.cbograde.ValueMember   = "VGID";
            this.cbograde.DataSource    = list;
            //用单值查询显示id
            this.txtid.Text = (VipsBLL.selectID() + 1).ToString();
            //默认性别为男
            this.cbosex.SelectedIndex = 0;
        }
예제 #2
0
파일: FrmVipsX.cs 프로젝트: JacBang/CMS
        private void FrmVipsX_Load(object sender, EventArgs e)
        {
            //用无间道显示会员等级
            List <VIPGrades> list = VipsBLL.selVG();

            this.cbograde.DisplayMember = "VGName";
            this.cbograde.ValueMember   = "VGID";
            this.cbograde.DataSource    = list;
            //在窗体加载的时候将数据传过来
            this.txtid.Text    = publlei.VipID.ToString();
            this.txtname.Text  = publlei.VipName;
            this.txttel.Text   = publlei.VipTel;
            this.cbograde.Text = publlei.Grname.ToString();
            this.cbosex.Text   = publlei.VipSex;
            this.dt.Text       = publlei.VipEndDate;
        }