private void btnSearch_Click(object sender, EventArgs e) { string memberKey = string.Empty; using (XPCollection<t_Member_Info> collection = memberLogic.SearchMember(this.txtSearchCondition.Text.Trim(), string.Empty)) { if (collection.Count == 1) { //this.popupContainerControl1.Show(); //this.popupControlContainer1.ShowPopup(pt); } foreach (t_Member_Info mem in collection) { memberInfo = mem; break; } } if (memberInfo == null) { ShowWarnMsgBox("没有会员!"); return; } // 取得会员信息 memberKey = memberInfo.Member_ID.ToString(); // 设置页面上的会员信息 SetMemberInfo(); XPCollection<t_Bonus_Exchange_History> bonusChgHisColl = bonusHisLogic.SearchExchangeHistoryByMemberId(memberKey); this.gridCtrlMembers.DataSource = bonusChgHisColl; }
/// <summary> /// 查询按钮点击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSearch_Click(object sender, EventArgs e) { XPCollection<t_Member_Info> collection = memberLogic.SearchMember(this.txtSearchCondition.Text.Trim(), string.Empty); string memberKey = string.Empty; foreach (t_Member_Info mem in collection) { memberInfo = mem; break; } if (memberInfo == null) { ShowWarnMsgBox("没有会员!"); return; } // 取得会员信息 memberKey = memberInfo.Member_ID.ToString(); // 设置页面上的会员信息 SetMemberInfo(); // 取得会员消费记录 getMemberDealHistory(memberKey); if (collection.Count > 1) { // this.popupContainerControl1.Show(); // this.popupContainerControl1.Hide(); } }
/// <summary> /// 会员卡1的清空按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnClear1_Click(object sender, EventArgs e) { this.mInfo1 = null; this.Bonus1 = 0; this.txtMemberNo1.Text = string.Empty; this.lblBouns1.Text = string.Empty; this.lblMemberName1.Text = string.Empty; }
private void btnCreateMember_Click(object sender, EventArgs e) { t_Member_Info memberInfo = new t_Member_Info(this.DBSession); memberInfo.Member_Name = this.txtMemberName.Text; memberInfo.Member_No = this.txtMemberNo.Text; memberInfo.Save(); if (memberInfo.Member_ID != 0) { ShowInfoMsgBox("新建会员成功!"); } else { ShowWarnMsgBox("新建会员失败!"); } }
/// <summary> /// 新建会员/修改会员-DB操作 /// </summary> private void MemberOperate() { if (operFlg == 2) { // 修改会员 if (this.memberInfo == null) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } } else { // 新建会员 this.memberInfo = new t_Member_Info(); } // 会员编号 memberInfo.Member_No = this.txtMemberNo.Text; //会员姓名 memberInfo.Member_Name = this.txtMemberName.Text.Trim(); //性别 if (this.cmbSex.SelectedIndex != -1) { memberInfo.Sex = this.cmbSex.SelectedIndex; } // 会员等级 string gradeId = ((ComboBoxEx)this.cmbMemberGrade.SelectedItem).Key; t_Member_Grade gradeInfo = gradeLogic.GetMemberGradeByID(Convert.ToInt16(gradeId)); memberInfo.Member_Grade_ID = gradeInfo; // 会员积分 memberInfo.Bouns = Convert.ToInt32(this.spinMemberBonus.Text); //手机 memberInfo.Mobile_No = string.IsNullOrEmpty(this.txtMobile.Text.Trim()) ? null : this.txtMobile.Text.Trim(); //固定电话 memberInfo.Tel = string.IsNullOrEmpty(this.txtPhone.Text.Trim()) ? null : this.txtPhone.Text.Trim(); //电子邮件 memberInfo.Email = string.IsNullOrEmpty(this.txtEmail.Text.Trim()) ? null : this.txtEmail.Text.Trim(); //即时通讯 memberInfo.Instant_Message = string.IsNullOrEmpty(this.txtInstantMessage.Text.Trim()) ? null : this.txtInstantMessage.Text.Trim(); // 证件类型 if (this.cmbIdentityType.SelectedIndex > 0) { memberInfo.Identity_Type = Convert.ToInt16(((ComboBoxEx)this.cmbIdentityType.SelectedItem).Key); } //证件号码 memberInfo.Identity_No = string.IsNullOrEmpty(this.txtIdentityNo.Text.Trim()) ? null : this.txtIdentityNo.Text.Trim(); // 生日-年 memberInfo.Birthday_Year = string.IsNullOrEmpty(this.cmbBirthYear.Text) ? null : this.cmbBirthYear.Text; // 生日-月日 string birMD = ""; if (string.IsNullOrEmpty(this.cmbBirthMonth.Text)) { birMD = "00"; } else { birMD = this.cmbBirthMonth.Text; } if (string.IsNullOrEmpty(this.cmbBirthDay.Text)) { birMD = birMD + "00"; } else { birMD = birMD + this.cmbBirthDay.Text; } memberInfo.Birthday_Month_Day = birMD; // 地址 memberInfo.Address = string.IsNullOrEmpty(this.txtAddress.Text.Trim()) ? null : this.txtAddress.Text.Trim(); // 备注 memberInfo.Comment = string.IsNullOrEmpty(this.memoComment.Text.Trim()) ? null : this.memoComment.Text.Trim(); // 有效期 memberInfo.Validity_Date = this.dateValidityDate.DateTime; //数据更新时间 memberInfo.Update_DateTime = DateTime.Now; //数据状态-正常 memberInfo.State = (int)RecordState.Normal; memberInfo.Save(); if (operFlg == 1) { // 新建会员成功 ShowInfoMsgBox(MessageConst.info_MemberCreateSuccess); } else { // 修改会员成功 ShowInfoMsgBox(MessageConst.info_MemberUpdateSuccess); } return; }
private void Form05_MemberInfo_Load(object sender, EventArgs e) { // 加载生年月日信息 LoadBirthdayCombo(); string gradeId = string.Empty; // 加载证件类型列表 ComboBoxEx cmbIdentyItem = new ComboBoxEx("", ""); this.cmbIdentityType.Properties.Items.Add(cmbIdentyItem); cmbIdentyItem = new ComboBoxEx("身份证", "1"); this.cmbIdentityType.Properties.Items.Add(cmbIdentyItem); cmbIdentyItem = new ComboBoxEx("护照", "2"); this.cmbIdentityType.Properties.Items.Add(cmbIdentyItem); cmbIdentyItem = new ComboBoxEx("驾驶本", "3"); this.cmbIdentityType.Properties.Items.Add(cmbIdentyItem); cmbIdentyItem = new ComboBoxEx("工作证", "4"); this.cmbIdentityType.Properties.Items.Add(cmbIdentyItem); cmbIdentyItem = new ComboBoxEx("军官证", "5"); this.cmbIdentityType.Properties.Items.Add(cmbIdentyItem); cmbIdentyItem = new ComboBoxEx("其他证件", "6"); this.cmbIdentityType.Properties.Items.Add(cmbIdentyItem); // 操作类型 if (operFlg == 2) { // 修改会员 if (string.IsNullOrEmpty(memberId)) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } this.Text = "会员信息-修改会员信息"; // checkbox保存后继续 不显示 this.chkIsContinue.Visible = false; // date会员有效期 不显示 this.dateValidityDate.Visible = false; // lable会员有效期 不显示 this.labelControl16.Visible = false; // 根据会员ID取得会员信息 this.memberInfo = memberLogic.GetMemberInfoByMemberID(memberId, this.DBSession); if (memberInfo == null) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 会员等级 if (memberInfo.Member_Grade_ID.Member_Grade_ID != -1) { gradeId = memberInfo.Member_Grade_ID.Member_Grade_ID.ToString(); } // 会员编号 this.txtMemberNo.Properties.ReadOnly = true; this.txtMemberNo.Text = memberInfo.Member_No; // 会员姓名 this.txtMemberName.Text = memberInfo.Member_Name; // 地址 this.txtAddress.Text = memberInfo.Address; // 电子邮件 this.txtEmail.Text = memberInfo.Email; // 身份证 this.txtIdentityNo.Text = memberInfo.Identity_No; // 手机号码 this.txtMobile.Text = memberInfo.Mobile_No; // 座机 this.txtPhone.Text = memberInfo.Tel; // 生日 // 年 this.cmbBirthYear.Text = memberInfo.Birthday_Year; string birthMD = memberInfo.Birthday_Month_Day; if(!string.IsNullOrEmpty(birthMD) && birthMD.Length==4) { this.cmbBirthMonth.Text = birthMD.Substring(0, 2).Equals("00") ? string.Empty : birthMD.Substring(0, 2); this.cmbBirthDay.Text = birthMD.Substring(2, 2).Equals("00") ? string.Empty : birthMD.Substring(2, 2); } } else if (operFlg == 1) { // 新建会员 this.Text = "会员信息-添加会员信息"; this.dateValidityDate.EditValue = DateTime.Now.AddYears(3); } // 装在会员等级列表 LoadMemberGradeCombo(gradeId); }
/// <summary> /// 会员卡2的清空按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnClear2_Click(object sender, EventArgs e) { this.mInfo2 = null; this.Bonus2 = 0; this.txtMemberNo2.Text = string.Empty; this.lblBouns2.Text = string.Empty; this.lblMemberName2.Text = string.Empty; }
private void From92_BonusMerger_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.memberId1)) { return; } // 根据会员ID取得会员信息 this.mInfo1 = memberLogic.GetMemberInfoByMemberID(this.memberId1, this.DBSession); if (mInfo1 != null) { // 会员编号 this.txtMemberNo1.Text = this.mInfo1.Member_No; // 会员姓名 this.lblMemberName1.Text = this.mInfo1.Member_Name; // 会员积分 this.Bonus1 = this.mInfo1.Bouns; this.lblBouns1.Text = Convert.ToString(this.mInfo1.Bouns) + "分"; } else { ShowWarnMsgBox(MessageConst.errMsg_memberExited); this.txtMemberNo1.Focus(); this.txtMemberNo1.SelectAll(); return; } }
/// <summary> /// 会员卡2的确认按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnOK2_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.txtMemberNo2.Text)) { ShowWarnMsgBox(string.Format(MessageConst.errMsg_BonusMeger_NoInput, "卡②")); this.txtMemberNo2.Focus(); return; } // 根据会员ID取得会员信息 this.mInfo2 = memberLogic.GetMemberInfoByMemberNo(this.txtMemberNo2.Text, this.DBSession); if (mInfo2 != null) { // 会员编号 this.txtMemberNo2.Text = this.mInfo2.Member_No; // 会员姓名 this.lblMemberName2.Text = this.mInfo2.Member_Name; // 会员积分 this.Bonus2 = this.mInfo2.Bouns; this.lblBouns2.Text = Convert.ToString(this.mInfo2.Bouns) + "分"; } else { ShowWarnMsgBox(MessageConst.errMsg_memberExited); this.txtMemberNo2.Focus(); this.txtMemberNo2.SelectAll(); return; } }
private bool InsertConsumeHistory() { bool res = false; using (UnitOfWork uow = new UnitOfWork(DBSession.DataLayer)) { DateTime updateTime = DateTime.Now; this.memberDealHis = new t_Member_Deal_History(uow); this.memberInfo = memberLogic.GetMemberInfoByMemberID(this.MemberId, uow); this.memberDealHis.Member_ID = this.memberInfo; this.memberDealHis.Member_No = this.memberInfo.Member_No; this.memberDealHis.Operator_No = SysParam.OperatorNo; // 导购 int guidCnt = 0; foreach (CheckedListBoxItem guidItem in this.chklistGuide.SelectedItems) { guidCnt += 1; if (guidCnt == 1) { // 导购1 this.memberDealHis.Guide_No = guidItem.Value.ToString(); this.memberDealHis.Guide_Name = guidItem.Description; } else if (guidCnt == 2) { // 导购2 this.memberDealHis.Guide2_No = guidItem.Value.ToString(); this.memberDealHis.Guide2_Name = guidItem.Description; } else if (guidCnt == 3) { // 导购3 this.memberDealHis.Guide3_No = guidItem.Value.ToString(); this.memberDealHis.Guide3_Name = guidItem.Description; } else if (guidCnt == 4) { // 导购4 this.memberDealHis.Guide4_No = guidItem.Value.ToString(); this.memberDealHis.Guide4_Name = guidItem.Description; } } // 扣除消费次数 this.memberDealHis.KouChu_Deal_Time = Convert.ToInt32(this.spnConsumeTimes.Value); // 卡内剩余次数 this.memberDealHis.Leave_Deal_Time = this.ConsumeTimes - Convert.ToInt32(this.spnConsumeTimes.Value); this.memberInfo.Leaving_Deal_time = this.ConsumeTimes - Convert.ToInt32(this.spnConsumeTimes.Value); // 获得积分 int tempBonus = Convert.ToInt32(this.spnBonus.Value); this.memberDealHis.Get_Bonus = tempBonus; this.memberInfo.Bouns += tempBonus; // 支付方式 this.memberDealHis.Pay_Type = PayType.TimePay; // 备注 this.memberDealHis.Comment = this.memoRemark.Text; //数据状态-正常 this.memberDealHis.State = (int)RecordState.Normal; // 更新者 this.memberDealHis.Operator_No = SysParam.OperatorNo; // 更新时间 this.memberInfo.Update_DateTime = updateTime; // 更新者 this.memberInfo.Operator_No = SysParam.OperatorNo; try { uow.ExplicitBeginTransaction(); uow.CommitChanges(); hisId = this.memberDealHis.Deal_History_ID; uow.ExplicitCommitTransaction(); // 充值成功 ShowInfoMsgBox(MessageConst.info_MemberConsumeSucces); res = true; } catch { uow.ExplicitRollbackTransaction(); ShowWarnMsgBox(MessageConst.errMsg_ConsumeFaild); } } return res; }
private void Form072_TimesConsume_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.MemberId)) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 根据会员ID取得会员信息 this.memberInfo = memberLogic.GetMemberInfoByMemberID(this.MemberId, this.DBSession); if (memberInfo == null) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 会员编号 this.lblMemberNo.Text = this.memberInfo.Member_No; // 会员姓名 this.lblMemberName.Text = this.memberInfo.Member_Name; // 会员等级 this.lblMemberGrade.Text = this.memberInfo.Member_Grade_ID.Grade_Name; // 会员积分 this.lblBouns.Text = Convert.ToString(this.memberInfo.Bouns) + "分"; // 剩余次数 this.lblLeaveTimes.Text = Convert.ToString(this.memberInfo.Leaving_Deal_time) + "次"; this.ConsumeTimes = this.memberInfo.Leaving_Deal_time; // 设置消费次数上限 this.spnConsumeTimes.Properties.MaxValue = this.memberInfo.Leaving_Deal_time; if (this.ConsumeTimes > 0) { this.spnConsumeTimes.Value = 1; } // 查询导购列表 chklistGuide.DataSource = shopLogic.GetGuideList(); if (chklistGuide.DataSource != null) { chklistGuide.DisplayMember = "Guide_Name"; chklistGuide.ValueMember = "Guide_No"; } }
private bool InsertBonusExchangeHistory() { bool res = false; using (UnitOfWork uow = new UnitOfWork(DBSession.DataLayer)) { DateTime updateTime = DateTime.Now; // 积分兑换历史记录 this.bonuxExHis = new t_Bonus_Exchange_History(uow); // 会员信息 this.memberInfo = memberLogic.GetMemberInfoByMemberID(this.MemberId, uow); this.bonuxExHis.Member_ID = this.memberInfo; this.bonuxExHis.Member_No = this.memberInfo.Member_No; this.bonuxExHis.Operator_No = SysParam.OperatorNo; // 兑换日期 this.bonuxExHis.Exchange_DateTime = updateTime; // 兑换积分数 int tempBonus = Convert.ToInt32(this.spnBonus.Value); this.bonuxExHis.Bonus_Num = tempBonus; // 兑换后剩余积分 this.bonuxExHis.Surplus_Bonus = this.Bonus - tempBonus; this.memberInfo.Bouns = this.Bonus - tempBonus; // 兑换金额 double tempBalance = tempBonus * SysParam.storeInfo.Bonus_to_Money_Ratio; this.bonuxExHis.Money_Num = tempBalance; this.memberInfo.Balance = tempBalance; // 兑换后剩余金额 this.bonuxExHis.Surplus_Money = this.memberInfo.Balance + tempBalance; this.memberInfo.Balance += tempBalance; // 兑换类别:积分兑换金额 this.bonuxExHis.Bonus_Type = BonusExchangeType.MoneyExchange; // 备注 this.bonuxExHis.Comment = this.memoRemark.Text; //数据状态-正常 this.bonuxExHis.State = (int)RecordState.Normal; // 更新者 this.bonuxExHis.Operator_No = SysParam.OperatorNo; // 更新时间 this.memberInfo.Update_DateTime = updateTime; // 更新者 this.memberInfo.Operator_No = SysParam.OperatorNo; try { uow.ExplicitBeginTransaction(); uow.CommitChanges(); hisId = this.bonuxExHis.Exchange_History_ID; uow.ExplicitCommitTransaction(); // 兑换成功 ShowInfoMsgBox(MessageConst.info_BonusExchangeSucces); res = true; } catch { // 积分兑换失败 uow.ExplicitRollbackTransaction(); ShowWarnMsgBox(MessageConst.errMsg_BonusExchangeFaild); } } return res; }
private void Form091_BonuxEx_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.MemberId)) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 根据会员ID取得会员信息 this.memberInfo = memberLogic.GetMemberInfoByMemberID(this.MemberId, this.DBSession); if (memberInfo == null) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 会员编号 this.lblMemberNo.Text = this.memberInfo.Member_No; // 会员姓名 this.lblMemberName.Text = this.memberInfo.Member_Name; // 会员积分 this.Bonus = this.memberInfo.Bouns; this.lblBouns.Text = Convert.ToString(this.memberInfo.Bouns) + "分"; this.spnBonus.Properties.MaxValue = this.memberInfo.Bouns; // 卡内余额 this.lblBlance.Text = Convert.ToString(this.memberInfo.Balance) + "元"; // 店铺信息 this.storeInfo = SysParam.storeInfo; }
/// <summary> /// 保存按钮按下 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSave_Click(object sender, EventArgs e) { if (!CheckIsInput()) { ShowWarnMsgBox(MessageConst.errMsg_noInputCharge); } int hisId = 0; using(UnitOfWork uow = new UnitOfWork(Session.DefaultSession.DataLayer)) { DateTime updateTime = DateTime.Now; // 充值记录 this.memChgHis = new t_Member_Charge_History(uow); this.memberInfo = memberLogic.GetMemberInfoByMemberID(this.MemberId, uow); memChgHis.Member_ID = this.memberInfo; memChgHis.Member_No = this.memberInfo.Member_No; // 操作者 memChgHis.Operator_No = null; // 充值日期 memChgHis.Charge_DateTime = updateTime; // 充现金 memChgHis.Charge_Money = Convert.ToDouble(this.spinBalance.Value); // 会员余额 = 现有金额 + 充值金额 double leaveMoney = memberInfo.Balance + memChgHis.Charge_Money; memberInfo.Balance = leaveMoney; memChgHis.Balance = leaveMoney; // 充消费次数 memChgHis.Charge_Deal_Time = Convert.ToInt32(this.spinDealTime.Value); // 剩余消费次数 = 现有消费次数 + 增加积分 int dealTime = memberInfo.Leaving_Deal_time + memChgHis.Charge_Deal_Time; memberInfo.Leaving_Deal_time = dealTime; memChgHis.Deal_Time = dealTime; // 充小时 memChgHis.Charge_UseTime = Convert.ToInt32(this.spinChgHours.Value); // 剩余可用小时数 int remainTime = this.memberInfo.Remaining_Time + memChgHis.Charge_UseTime; memChgHis.Remaining_Time = remainTime; memberInfo.Remaining_Time = remainTime; // 增加积分 memChgHis.Charge_Bonus = Convert.ToInt32(this.spinBonus.Value); // 剩余积分 = 现有积分 + 增加积分 int leaveBonus = memberInfo.Bouns + memChgHis.Charge_Bonus; memberInfo.Bouns = leaveBonus; memChgHis.Bonus = leaveBonus; // 备注 memChgHis.Comment = string.IsNullOrEmpty(this.memoComment.Text.Trim()) ? null : this.memoComment.Text.Trim(); // 实收现金 memChgHis.YingShouCash = Convert.ToDouble(this.spinYingShou.Value); //数据状态-正常 memChgHis.State = (int)RecordState.Normal; // 更新者 memChgHis.Operator_No = SysParam.OperatorNo; // 更新时间 memberInfo.Update_DateTime = updateTime; // 更新者 memberInfo.Operator_No = SysParam.OperatorNo; try { uow.ExplicitBeginTransaction(); uow.CommitChanges(); hisId = memChgHis.Charge_History_ID; uow.ExplicitCommitTransaction(); // 充值成功 ShowInfoMsgBox(MessageConst.info_MemberChargeSuccess); } catch { uow.ExplicitRollbackTransaction(); ShowWarnMsgBox(MessageConst.errMsg_chargeFaild); } } if (chkPrint.Checked) { // 打印小票 //hisId 充值记录ID } this.Close(); }
private void Form61_MoneyRecharge_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.MemberId)) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 根据会员ID取得会员信息 this.memberInfo = memberLogic.GetMemberInfoByMemberID(this.MemberId,this.DBSession); if (memberInfo == null) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 会员编号 this.lblMemberNo.Text = this.memberInfo.Member_No; // 会员姓名 this.lblMemberName.Text = this.memberInfo.Member_Name; // 会员等级 this.lblMemberGrade.Text = this.memberInfo.Member_Grade_ID.Grade_Name; // 会员积分 this.lblBouns.Text = Convert.ToString(this.memberInfo.Bouns) + "分"; // 卡内余额 this.lblBlance.Text = Convert.ToString(this.memberInfo.Balance) + "元"; // 消费次数 this.lblDealTime.Text = Convert.ToString(this.memberInfo.Leaving_Deal_time) + "次"; // 可用时长 this.lblRemainTime.Text = FormUtil.HourToMinute(this.memberInfo.Remaining_Time).ToString(); }
private void Form071_QuickConsume_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.MemberId)) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 根据会员ID取得会员信息 this.memberInfo = memberLogic.GetMemberInfoByMemberID(this.MemberId, this.DBSession); if (memberInfo == null) { ShowWarnMsgBox(MessageConst.errMsg_DataError); this.Close(); return; } // 会员编号 this.lblMemberNo.Text = this.memberInfo.Member_No; // 会员姓名 this.lblMemberName.Text = this.memberInfo.Member_Name; // 会员等级 this.lblMemberGrade.Text = this.memberInfo.Member_Grade_ID.Grade_Name; // 会员积分 this.lblBouns.Text = Convert.ToString(this.memberInfo.Bouns) + "分"; // 卡内余额 this.lblBlance.Text = Convert.ToString(this.memberInfo.Balance) +"元"; this.balance = memberInfo.Balance; // 设置扣卡金额上限 this.spnKouka.Properties.MaxValue = Convert.ToDecimal(this.balance); // 折扣 this.lblZheKou.Text = this.memberInfo.Member_Grade_ID.Discount_Percent.ToString(); this.zhekou = this.memberInfo.Member_Grade_ID.Discount_Percent; // 查询消费备注项目 getConsumItemList(); // 查询导购列表 chklistGuide.DataSource = shopLogic.GetGuideList(); if (chklistGuide.DataSource != null) { chklistGuide.DisplayMember = "Guide_Name"; chklistGuide.ValueMember = "Guide_No"; } }