/// <summary> /// 初始化设备状态任务 /// </summary> private void InitEquipmentStatus() { timer_EquipmentStatus.Enabled = true; List <CmcsCMEquipment> list = commonDAO.GetChildrenMachinesByCode("机械采样机"); list.AddRange(commonDAO.GetChildrenMachinesByCode("全自动制样机")); list.AddRange(commonDAO.GetChildrenMachinesByCode("皮带采样机")); CreateEquipmentStatus(list); // 更新设备状态 RefreshEquipmentStatus(); }