Пример #1
0
        private void threadSelect_DoWork(object sender, DoWorkEventArgs e)
        {
            DateTime date = (e.Argument as DateTime?).Value;
            List <LinePerformanceDetailModel> linePerformanceDetailList = LinePerformanceDetailController.SelectBySection(section.SectionId, date);

            e.Result = linePerformanceDetailList;
        }
 private void bwViewReport_DoWork(object sender, DoWorkEventArgs e)
 {
     linePerformanceDetailList = LinePerformanceDetailController.SelectBySection(section.SectionId, monthSearch, yearSearch);
     lineModelList             = LineController.Select(section.SectionId);
     if (selectArea == "Old")
     {
         linePerformanceDetailList = linePerformanceDetailList.Where(w => oldArr.Contains(w.LineId) == true).ToList();
         lineModelList             = lineModelList.Where(w => oldArr.Contains(w.LineId) == true).OrderBy(o => o.Ordinal).ToList();
     }
     if (selectArea == "New")
     {
         linePerformanceDetailList = linePerformanceDetailList.Where(w => newArr.Contains(w.LineId) == true).ToList();
         lineModelList             = lineModelList.Where(w => newArr.Contains(w.LineId) == true).OrderBy(o => o.Ordinal).ToList();
     }
     incentiveGradeList = IncentiveGradeModel.Select().Where(w => w.SectionId == section.SectionId).ToList();
     positionList       = linePerformanceDetailList.Select(s => s.IncentiveGrade).Distinct().ToList();
 }
 private void bwPrint_DoWork(object sender, DoWorkEventArgs e)
 {
     workerLoginList           = WorkerLoginController.SelectByLine(section.SectionId, date);
     linePerformanceDetailList = LinePerformanceDetailController.SelectBySection(section.SectionId, date);
 }
 private void bwPrint_DoWork(object sender, DoWorkEventArgs e)
 {
     linePerformanceDetailList = LinePerformanceDetailController.SelectBySection(section.SectionId, date.Month, date.Year);
 }