Exemple #1
0
        //加载所有会员
        private void LoadMemmberInfoByDelFlag(int p)
        {
            MemmberInfoBLL bll = new MemmberInfoBLL();

            dgvMemmber.AutoGenerateColumns      = false;
            dgvMemmber.DataSource               = bll.GetAllMemmberInfoByDelFlag(p);
            dgvMemmber.SelectedRows[0].Selected = false;
        }
Exemple #2
0
        //加载会员级别
        public void LoadMember(int p)
        {
            MemmberInfoBLL     bll  = new MemmberInfoBLL();
            List <MemmberInfo> list = bll.GetAllMemmberInfoByDelFlag(p);

            list.Insert(0, new MemmberInfo {
                MemmberId = -1, MemName = "请选择"
            });
            cmbMemmber.DataSource    = list;
            cmbMemmber.DisplayMember = "MemName";
            cmbMemmber.ValueMember   = "MemmberId";
        }