Exemple #1
0
 public VipLevelManageWindow()
 {
     InitializeComponent();
     levelModel             = new VipLevelInfo();
     levelBLL               = new VipLevelBLL();
     bg.DoWork             += new DoWorkEventHandler(bg_DoWork);                         //异步操作时要做的操作,一般去查列表,这个列表在本页面内先声明,然后在这个dowork方法里去取数填充他
     bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted); //这个是取数完成后进行的操作,去到数后,这里取用去到的列表绑定到控件
 }
Exemple #2
0
 public ChangeVipLevelWindow(int levelid)
 {
     InitializeComponent();
     levelModel      = new VipLevelInfo();
     levelBLL        = new VipLevelBLL();
     levelModel.LvId = levelid;
     levelId         = levelid;
 }
 public ChangeVipNoWindow(int id)
 {
     InitializeComponent();
     VipId           = id;
     vipNoInfo       = new VipNoInfo();
     vipNoBLL        = new VipNoBLL();
     levelBLL        = new VipLevelBLL();
     vipNoInfo.VipId = id;
 }
Exemple #4
0
 public ChangeVipWindow(int vipid)
 {
     InitializeComponent();
     vipId         = vipid;
     vipBLL        = new VipBLL();
     levelBLL      = new VipLevelBLL();
     vipInfo       = new VIPInfo();
     departBLL     = new DepartBLL();
     vipInfo.VipId = vipId;
 }
Exemple #5
0
 public AddVipNoWindow()
 {
     InitializeComponent();
     levelBLL               = new VipLevelBLL();
     bg.DoWork             += new DoWorkEventHandler(bg_DoWork);                         //异步操作时要做的操作,一般去查列表,这个列表在本页面内先声明,然后在这个dowork方法里去取数填充他
     bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted); //这个是取数完成后进行的操作,去到数后,这里取用去到的列表绑定到控件
     departBLL              = new DepartBLL();
     vipNoInfo              = new VipNoInfo();
     vipNoBLL               = new VipNoBLL();
     vipLevelList           = new List <VipLevelInfo>();
 }
Exemple #6
0
 public VipNoBorrowWindow(int id)
 {
     InitializeComponent();
     vipNoInfo       = new VipNoInfo();
     vipNoBLL        = new VipNoBLL();
     vipLevelBLL     = new VipLevelBLL();
     dpBLL           = new DepartBLL();
     borrowKindBLL   = new BorrowKindBLL();
     vipNoInfo.VipId = id;
     vipNoBorrowBLL  = new VipNoBorrowBLL();
 }
Exemple #7
0
 public AddRuleWindow()
 {
     InitializeComponent();
     costRule               = new CostRule();
     ruleBLL                = new CostRuleBLL();
     vipLvBLL               = new VipLevelBLL();
     levelModel             = new VipLevelInfo();
     levelBLL               = new VipLevelBLL();
     listlV                 = new List <VipLevelInfo>();
     bg                     = new BackgroundWorker();
     bg.DoWork             += new DoWorkEventHandler(bg_DoWork);                         //异步操作时要做的操作,一般去查列表,这个列表在本页面内先声明,然后在这个dowork方法里去取数填充他
     bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted); //这个是取数完成后进行的操作,去到数后,这里取用去到的列表绑定到控件
 }
Exemple #8
0
 string[] danwei      = { "分钟", "小时", "天", "月" };//单位
 #region 窗体实例化
 public ChangeRuleWindow(int crid)
 {
     InitializeComponent();
     crId                   = crid;
     ruleModel              = new CostRule();
     ruleBLL                = new CostRuleBLL();
     vipLvBLL               = new VipLevelBLL();
     levelModel             = new VipLevelInfo();
     levelBLL               = new VipLevelBLL();
     listlV                 = new List <VipLevelInfo>();
     ruleModel.CrId         = crid;
     bg.DoWork             += new DoWorkEventHandler(bg_DoWork);
     bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted);
 }
Exemple #9
0
 public VipManageWindow(bool isAdmin)
 {
     InitializeComponent();
     bg.DoWork             += new DoWorkEventHandler(bg_DoWork);                         //异步操作时要做的操作,一般去查列表,这个列表在本页面内先声明,然后在这个dowork方法里去取数填充他
     bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted); //这个是取数完成后进行的操作,去到数后,这里取用去到的列表绑定到控件
     vipModel   = new VIPInfo();
     vipBLL     = new VipBLL();
     departBLL  = new DepartBLL();
     departInfo = new DepartInfo();
     levelBLL   = new VipLevelBLL();
     levelInfo  = new VipLevelInfo();
     moneyTemp  = new VipMoney();
     moneyBLL   = new VipMoneyBLL();
     IsAdmin    = isAdmin;
 }
 public VipOrNoBorrowSelectWindow(bool isAdmin)
 {
     InitializeComponent();
     vipBLL         = new VipBLL();
     vipNoBLL       = new VipNoBLL();
     vipInfo        = new VIPInfo();
     vipLVBLL       = new VipLevelBLL();
     dpBLL          = new DepartBLL();
     vipBorrowBLL   = new VipBorrowBLL();
     bikeReturnBLL  = new BikeReturnBLL();
     vipNoBorrowBLL = new VipNoBorrowBLL();
     IsAdmin        = isAdmin;
     IsFirst        = true;
     departList     = new List <DepartInfo>();
 }
Exemple #11
0
 public ReChargeWindow(bool isAdmin)
 {
     InitializeComponent();
     chargeMoney                  = 0;
     vipBLL                       = new VipBLL();
     vipInfo                      = new VIPInfo();
     vipLVBLL                     = new VipLevelBLL();
     dpBLL                        = new DepartBLL();
     moneyBLL                     = new VipMoneyBLL();
     vipNoInfo                    = new VipNoInfo();
     bgWord.DoWork               += new DoWorkEventHandler(bgWord_DoWork);
     bgWord.RunWorkerCompleted   += new RunWorkerCompletedEventHandler(bgWord_RunWorkerCompleted);
     bgWord.ProgressChanged      += new ProgressChangedEventHandler(bgWord_ProgressChanged);
     bgWord.WorkerReportsProgress = true;
     IsAdmin                      = isAdmin;
 }
Exemple #12
0
        private void backgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            levelInfo = new VipLevelInfo();
            levelBLL  = new VipLevelBLL();
            if (vipNoList == null)
            {
                return;
            }
            lvVipNo.BeginUpdate();
            lvVipNo.Items.Clear();
            if (vipNoList.Count <= 0)
            {
                lvVipNo.EndUpdate();
                btnOK.Enabled        = true;
                progressBar1.Visible = false;
                MessageBox.Show("无非会员信息");
                return;
            }
            VipNoInfo vipNoTemp;

            for (int i = 0; i < vipNoList.Count; i++)
            {
                vipNoTemp      = vipNoList[i];
                levelInfo.LvId = vipNoTemp.LvId;
                levelInfo      = levelBLL.VipLevelSelectById(levelInfo);
                lvVipNo.Items.Add("");
                lvVipNo.Items[i].SubItems.Add("");
                lvVipNo.Items[i].SubItems.Add("");
                lvVipNo.Items[i].SubItems.Add("");
                lvVipNo.Items[i].SubItems.Add("");
                lvVipNo.Items[i].SubItems.Add("");
                lvVipNo.Items[i].SubItems.Add("");
                lvVipNo.Items[i].SubItems.Add("");
                lvVipNo.Items[i].Tag = vipNoTemp.VipId;
                lvVipNo.Items[i].SubItems[0].Text = vipNoTemp.VipId.ToString();
                lvVipNo.Items[i].SubItems[1].Text = vipNoTemp.VipNumber;
                lvVipNo.Items[i].SubItems[2].Text = vipNoTemp.VipName;
                lvVipNo.Items[i].SubItems[3].Text = vipNoTemp.VipPhone;
                lvVipNo.Items[i].SubItems[4].Text = vipNoTemp.VipCard;
                lvVipNo.Items[i].SubItems[5].Text = levelInfo.LvName;
                lvVipNo.Items[i].SubItems[6].Text = vipNoTemp.AddDate.ToString();
                lvVipNo.Items[i].SubItems[7].Text = vipNoTemp.Mark;
            }
            lvVipNo.EndUpdate();
            btnOK.Enabled        = true;
            progressBar1.Visible = false;
        }
 public VipNoCharge(bool isAdmin)
 {
     InitializeComponent();
     vipLVBLL                            = new VipLevelBLL();
     dpBLL                               = new DepartBLL();
     moneyBLL                            = new VipMoneyBLL();
     vipNoInfo                           = new VipNoInfo();
     vipNoBLL                            = new VipNoBLL();
     bgWord.DoWork                      += new DoWorkEventHandler(bgWord_DoWork);
     bgWord.RunWorkerCompleted          += new RunWorkerCompletedEventHandler(bgWord_RunWorkerCompleted);
     bgWord.ProgressChanged             += new ProgressChangedEventHandler(bgWord_ProgressChanged);
     bgWord.WorkerReportsProgress        = true;
     vipNoChangeBg.DoWork               += new DoWorkEventHandler(vipNoChangeBg_DoWork);
     vipNoChangeBg.RunWorkerCompleted   += new RunWorkerCompletedEventHandler(vipNoChangeBg_RunWorkerCompleted);
     vipNoChangeBg.ProgressChanged      += new ProgressChangedEventHandler(vipNoChangeBg_ProgressChanged);
     vipNoChangeBg.WorkerReportsProgress = true;
     IsAdmin                             = isAdmin;
 }
 public BorrowReturnWindow(bool isAdmin)
 {
     InitializeComponent();
     bg.DoWork             += new DoWorkEventHandler(bg_DoWork);                         //异步操作时要做的操作,一般去查列表,这个列表在本页面内先声明,然后在这个dowork方法里去取数填充他
     bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted); //这个是取数完成后进行的操作,去到数后,这里取用去到的列表绑定到控件
     vipBorrowBLL           = new VipBorrowBLL();
     vipNoBLL        = new VipNoBLL();
     departBLL       = new DepartBLL();
     depart          = new DepartInfo();
     departList      = new List <DepartInfo>();
     vipBorrow       = new VipBorrowInfo();
     vipBorrowList   = new List <VipBorrowInfo>();
     vipNoBorrow     = new VipNoBorrow();
     vipNoBorrowList = new List <VipNoBorrow>();
     vipBLL          = new VipBLL();
     vipLvBLL        = new VipLevelBLL();
     vipNoBorrowBLL  = new VipNoBorrowBLL();
     bikeReturnBLL   = new BikeReturnBLL();
     IsAdmin         = isAdmin;
 }
Exemple #15
0
 public VipReturnWindow(int id)
 {
     InitializeComponent();
     vipMoneyTemp       = new VipMoney();
     vipMoneyTemp.VipId = id;
     vipMoneyTemp.IsVip = true;
     moneyBLL           = new VipMoneyBLL();
     vipInfo            = new VIPInfo();
     vipBLL             = new VipBLL();
     vipLVBLL           = new VipLevelBLL();
     dpBLL                        = new DepartBLL();
     borrowBLL                    = new VipBorrowBLL();
     borrowInfo                   = new VipBorrowInfo();
     borrowKindBLL                = new BorrowKindBLL();
     bRetBLL                      = new BikeReturnBLL();
     borrowInfo.VipId             = id;
     vipInfo.VipId                = id;
     first                        = true;
     returnBg.DoWork             += new DoWorkEventHandler(returnBg_DoWork);
     returnBg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(returnBg_RunWorkerCompleted);
 }