Beispiel #1
0
 private void btSrReal_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看实体店的客户
     LoadStrategy = new LoadSourcedConsumer()
     {
         Source = 7
     };
 }
Beispiel #2
0
 private void btClDealer_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看经销商
     LoadStrategy = new LoadTypedConsumer()
     {
         Type = 3
     };
 }
Beispiel #3
0
 private void btSrTaobaoC_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看淘宝普通店的客户
     LoadStrategy = new LoadSourcedConsumer()
     {
         Source = 1
     };
 }
Beispiel #4
0
 private void btClVIP_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看VIP客户
     LoadStrategy = new LoadTypedConsumer()
     {
         Type = 2
     };
 }
Beispiel #5
0
 private void btClImportant_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看重要客户
     LoadStrategy = new LoadTypedConsumer()
     {
         Type = 1
     };
 }
Beispiel #6
0
 private void btFbSeason_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看三个月内回访过的客户
     LoadStrategy = new LoadVisitedConsumer()
     {
         Aftre  = DateTime.Now.AddMonths(-3),
         Before = DateTime.Now,
     };
 }
Beispiel #7
0
 private void btFbWeek_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看一周内回访过的客户
     LoadStrategy = new LoadVisitedConsumer()
     {
         Aftre  = DateTime.Now.AddDays(-7),
         Before = DateTime.Now,
     };
 }
Beispiel #8
0
 private void btFbToday_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看今天内回访过的客户
     LoadStrategy = new LoadVisitedConsumer()
     {
         Aftre  = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0),
         Before = DateTime.Now,
     };
 }
Beispiel #9
0
 private void btFqMonth_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看一个月内进行了交易的客户
     LoadStrategy = new LoadTradedConsumer()
     {
         After  = DateTime.Now.AddMonths(-1),
         Before = DateTime.Now,
     };
 }
Beispiel #10
0
 private void btFqToday_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //查看今天内进行了交易的客户
     LoadStrategy = new LoadTradedConsumer()
     {
         After  = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0),
         Before = DateTime.Now
     };
 }
Beispiel #11
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     //根据关键字搜索客户
     LoadStrategy = new SearchConsumer()
     {
         Keyword  = txSearchKey.Text,
         SortType = sortType,
     };
 }
Beispiel #12
0
        private void btNewConsumer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //TODO: (WXC) 添加客户
            ConsumerAdd consumerAdd = new ConsumerAdd();

            if (DialogResult.OK == consumerAdd.ShowDialog())
            {
                Alading.Entity.Consumer      consumer = consumerAdd.GetNewConsumer();
                Alading.Core.Enum.ReturnType result   = Alading.Business.ConsumerService.AddConsumer(consumer);
                if (result == Alading.Core.Enum.ReturnType.Success)
                {
                    LoadStrategy = new LoadAllConsumer();
                    LoadAllConsumer();
                }
                //do when insert data is failed
                else
                {
                    XtraMessageBox.Show("保存数据失败!");
                }
            }
        }
Beispiel #13
0
 private void LoadAllConsumer()
 {
     LoadStrategy = new LoadAllConsumer();
 }