Esempio n. 1
0
        private void LoadMemberTypeByDelFlag(int p)
        {
            var bll  = new MemberTypeBLL();
            var list = bll.GetAllMemberTypeByDelFlag(p);

            list.Insert(0, new MemberType()
            {
                MemType = -1, MemTpName = "请选择"
            });
            cmbMemType.DataSource    = list;
            cmbMemType.DisplayMember = "MemTpName";
            cmbMemType.ValueMember   = "MemType";
        }
Esempio n. 2
0
        private void LoadMemberType(int delFlag)
        {
            MemberTypeBLL     mtbll = new MemberTypeBLL();
            List <MemberType> list  = new List <MemberType>();

            list = mtbll.GetAllMemberTypeByDelFlag(delFlag);
            list.Insert(0, new MemberType()
            {
                MemTypeName = "请选择", MemType = -1
            });
            cmbType.DataSource    = list;
            cmbType.DisplayMember = "MemTypeName";
            cmbType.ValueMember   = "MemType";
        }