コード例 #1
0
        void bgWord_DoWork(object sender, DoWorkEventArgs e)
        {
            bgWord.ReportProgress(10);
            //得到分店列表
            dpList = dpBLL.DepartSelect();

            bgWord.ReportProgress(30);
            //得到非VIP列表
            vipNoInfo.DpId = vipNoDpId;
            vipNoList      = vipNoBLL.VipNoSelectByDPId(vipNoInfo);
            bgWord.ReportProgress(80);
        }
コード例 #2
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     backgroundWorker1.ReportProgress(10);//这里让进度条显示进度
     vipNoInfo.DpId = selectDpId;
     vipNoList      = vipNoBLL.VipNoSelectByDPId(vipNoInfo);
     backgroundWorker1.ReportProgress(70);//这里让进度条显示进度
 }
コード例 #3
0
 private void FillVipNoId()
 {
     try
     {
         List <VipNoInfo> vipNoList = new List <VipNoInfo>();
         VipNoInfo        vipNoTemp = new VipNoInfo();
         vipNoTemp.DpId         = Int32.Parse(cmbDeaprtNo.SelectedValue.ToString());
         vipNoList              = vipNoBLL.VipNoSelectByDPId(vipNoTemp);
         cmbVipNo.DataSource    = vipNoList;
         cmbVipNo.DisplayMember = "VIPNAME";
         cmbVipNo.ValueMember   = "VIPID";
         VNFirst = false;
         if (IsCardChang)
         {
             IsCardChang            = false;
             cmbVipNo.SelectedValue = vipNoId;
         }
     }
     catch (Exception ex)
     {
     }
 }