Пример #1
0
 public frmVipConsumption()
 {
     InitializeComponent();
     wsm = new WSMemeber();
     crInstance = new CardReader();
     crInstance.OnReadFini += readCallBack;
 }
Пример #2
0
 public frmIntegralQuery()
 {
     wsm = new WSMemeber();
     InitializeComponent();
     crInstance = new CardReader();
     crInstance.OnReadFini += readCallBack;
 }
Пример #3
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     wsc.Dispose();
     wsm.Discover();
     wsc = null;
     wsm = null;
     this.Close();
 }
Пример #4
0
 public frmAddNewVip()
 {
     InitializeComponent();
     wsm = new WSMemeber();
     wsp = new WSPotentialMember();
     cbCardKind.SelectedIndex = 0;
     cbSex.SelectedIndex = 0;
     crInstance = new CardReader();
 }
Пример #5
0
 public frmVipEnter()
 {
     InitializeComponent();
     wsm = new WSMemeber();
     wsr = new WSRack();
     wsi = new WSImport();
     crInstance = new CardReader();
     crInstance.OnReadFini += readCallBack;
 }
Пример #6
0
 public frmVipInfoMgr()
 {
     InitializeComponent();
     wsm = new WSMemeber();
     dataVipInfo.AutoGenerateColumns = false;
     paging1.OnFirstPage += ChangePage;
     paging1.OnJumpToPage += ChangePage;
     paging1.OnLastPage += ChangePage;
     paging1.OnPageDown += ChangePage;
     paging1.OnPageUp += ChangePage;
     paging1.OnReload += ChangePage;
     cbCardKind.SelectedIndex = 0;
 }
Пример #7
0
 public frmeRceiveInfo()
 {
     ws = new WSCollect();
     wsm = new WSMemeber();
     InitializeComponent();
 }
Пример #8
0
        private void loadingData()
        {
            wsm = new BLLMember.WSMemeber();
            wsc = new BLLCoach.WSCoach();
            int a1 = 1, a2 = 1, b1, b2;
            BLLCoach.Coach[] coach = wsc.Search(new BLLCoach.Coach()
            {
                Id = -1,
                Name = "",
                Mobilephone = ""
            }, ref a1, 100000, out b1);
            dataCoachInfo.DataSource = coach;

            BLLMember.Member[] member = wsm.Search(new BLLMember.Member()
            {
                CardNo = "",
                Name = "",
                Mobilephone = "",
                CoachId = -1,
                CardType = "",
                AdviserId = -1
            }, true, ref a2, 100000, out b2);
            dataMemberInfo.DataSource = member;
        }
Пример #9
0
        private void frmRackMgr_Load(object sender, EventArgs e)
        {
            ws = new WSMemeber();
            int a = 1, b;
            memberInfo = ws.Search(new Member()
            {
                CardNo = "",
                Name = "",
                Mobilephone = "",
                CardType = "",
                CoachId = -1,
                AdviserId = -1
            }, true, ref a, 100000, out b);

            LoadByPaging(1);

            dataRankInfo.CellMouseClick += (ss, ee) =>
            {

                if (dataRankInfo.SelectedRows != null && dataRankInfo.SelectedRows.Count > 0)
                {
                    tbnoq.Text = dataRankInfo.SelectedRows[0].Cells[0].Value.ToString();
                    tbRackNo.Text = dataRankInfo.SelectedRows[0].Cells[1].Value.ToString();
                    object value = rackInfo[dataRankInfo.SelectedRows[0].Index].RenterId;
                    tbCardNoQ.Text = value == null ? "" : ws.GetCardNoById(Convert.ToInt32(value));
                    dataBgn.Value = Convert.ToDateTime(dataRankInfo.SelectedRows[0].Cells[3].Value);
                    dataEnd.Value = Convert.ToDateTime(dataRankInfo.SelectedRows[0].Cells[4].Value);
                    tbTips.Text = dataRankInfo.SelectedRows[0].Cells[5].Value.ToString();
                }
            };
        }