private void Initialze() { //今天的实时数据 if (Date.AddHours(32) > DateTime.Now) { WipQuerier = new ReqRpt002WipQuerier(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); } else { //查询历史数据 WipQuerier = new ReqRpt002WipQuerier(Date.AddHours(32).ToString("yyyy-MM-dd HH:mm:ss")); } TdMoveQuerier = new ReqRpt002MoveQuerier(Date.ToString("yyyy-MM-dd")); YstdMoveQuerier = new ReqRpt002MoveQuerier(Date.AddDays(-1).ToString("yyyy-MM-dd")); WaferOutQuerier = new ReqRpt002WaferOutQuerier(Date.ToString("yyyy-MM-dd")); foreach (var dept in ModuleDepartments) { var entity = new ReqRpt002DepartmentTableRowEntity(); SetRowEntity(entity, dept); DeptTableModuleRowEntities.Add(entity); } foreach (var dept in TestDepartment) { var entity = new ReqRpt002DepartmentTableRowEntity(); SetRowEntity(entity, dept); DeptTableTestRowEntities.Add(entity); } foreach (var dept in BankDepartment) { var entity = new ReqRpt002DepartmentTableRowEntity(); SetRowEntity(entity, dept); DeptTableBankRowEntities.Add(entity); } //ModuleTotal ModuleTotal.Department = "Module Total"; SetTotalEntity(ModuleTotal, DeptTableModuleRowEntities); //TestTotal TestTotal.Department = "Test Total"; SetTotalEntity(TestTotal, DeptTableTestRowEntities); //BankTotal DeptTableBankRowEntities[0].Department = "Normal Bank"; BankTotal.Department = "Bank Total"; SetTotalEntity(BankTotal, DeptTableBankRowEntities); //FabTotal FabTotal.Department = "Fab Total"; SetTotalEntity(FabTotal, DeptTableModuleRowEntities.Union(DeptTableTestRowEntities).Union(DeptTableBankRowEntities).ToList()); GetCtData(); SetDevValue(); WaferOutEntities = WaferOutQuerier.WaferOutEntities; WaferOutTotalEntity = WaferOutQuerier.WaferOutTotalEntity; }
void Initialze() { WipQuerier = new ReqRpt002WipQuerier(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); TdMoveQuerier = new ReqRpt002MoveQuerier(DtNow.ToString("yyyy-MM-dd")); foreach (var dept in ModuleDepartments) { var entity = new ReqRpt002DepartmentTableRowEntity(); SetRowEntity(entity, dept); DeptTableModuleRowEntities.Add(entity); } foreach (var dept in TestDepartment) { var entity = new ReqRpt002DepartmentTableRowEntity(); SetRowEntity(entity, dept); DeptTableTestRowEntities.Add(entity); } foreach (var dept in BankDepartment) { var entity = new ReqRpt002DepartmentTableRowEntity(); SetRowEntity(entity, dept); DeptTableBankRowEntities.Add(entity); } //ModuleTotal ModuleTotal.Department = "Module Total"; SetTotalEntity(ModuleTotal, DeptTableModuleRowEntities); //TestTotal TestTotal.Department = "Test Total"; SetTotalEntity(TestTotal, DeptTableTestRowEntities); //BankTotal DeptTableBankRowEntities[0].Department = "Normal Bank"; BankTotal.Department = "Bank Total"; SetTotalEntity(BankTotal, DeptTableBankRowEntities); //FabTotal FabTotal.Department = "Fab Total"; SetTotalEntity(FabTotal, DeptTableModuleRowEntities.Union(DeptTableTestRowEntities).Union(DeptTableBankRowEntities).ToList()); GetCtData(); SetDevValue(); }