private void LoadMember() { //根据会员编号和会员电话进行查询 Dictionary <string, string> dic = new Dictionary <string, string>(); if (txtId.Text != "") { dic.Add("mid", txtId.Text); } if (txtPhone.Text != "") { dic.Add("mPhone", txtPhone.Text); } VIPInfoBll miBll = new VIPInfoBll(); var list = miBll.GetList(dic); if (list.Count > 0) { //根据信息查到了会员 VIPInfo mi = list[0]; lblMoney.Text = mi.MCount.ToString(); lblTypeTitle.Text = mi.MTypeTitle; lblDiscount.Text = mi.MDiscount.ToString(); //计算折扣价 lblPayMoneyDiscount.Text = (Convert.ToDecimal(lblPayMoney.Text) * Convert.ToDecimal(lblDiscount.Text)).ToString(); } else { MessageBox.Show("会员信息有误"); } }