コード例 #1
0
        void threadShow_DoWork(object sender, DoWorkEventArgs e)
        {
            object[] arguments = e.Argument as object[];
            string   line      = arguments[0] as String;

            workerLeaveList = WorkerLeaveController.Select(year, month);
            holidayList     = HolidayController.Select(year, month);
            e.Result        = SourceController.Select(line, year, month);
        }
コード例 #2
0
        void threadShow_DoWork(object sender, DoWorkEventArgs e)
        {
            List <PersonalModel>    personalList_D1 = personalList.Where(p => p.Department == line).OrderBy(p => p.WorkerId).ToList();
            List <SourceModel>      sourceList      = SourceController.Select(line, year, month);
            List <WorkerLeaveModel> workerLeaveList = WorkerLeaveController.Select(year, month);

            performanceDetailList = LinePerformanceDetailController.SelectByPersonal(line, year, month);
            List <HolidayModel> holidayList = HolidayController.Select(year, month);

            object[] results = { personalList_D1, sourceList, workerLeaveList, performanceDetailList, holidayList };
            e.Result = results;
        }