예제 #1
0
 private void LoadMemberInfoByDelFlag(int p)
 {
     //查询会员
     MemberInfoBl memBll = new MemberInfoBl();
     dgvmember.AutoGenerateColumns = false;//禁止自动生成列
     dgvmember.DataSource = memBll.GetAllMemberInfoByDelFlag(p);
     dgvmember.ClearSelection();
 }
예제 #2
0
        //结账窗体加载的时候
        private void FrmGuestPay_Load(object sender, EventArgs e)
        {
            MemberInfoBl memBll = new MemberInfoBl();
            //获取所有没被删除的会员
            List<MemberInfo> list = memBll.GetAllMemberInfoByDelFlag(0);
            list.Insert(0, new MemberInfo() { MemName = "请选择", MemberId = -1 });
            cmbMember.DataSource = list;
            cmbMember.DisplayMember = "MemName";
            cmbMember.ValueMember = "MemberId";

            //显示该订单的菜
            Load_Order_ProductByOrdrtId(Convert.ToInt32(labOrderId.Text));
        }