|
@@ -258,10 +258,11 @@ namespace SCADA_DAQ.Customer
|
|
|
//var classesEndTime = Convert.ToDateTime(classesEndTimeSpan);
|
|
|
var classesStartTime = Convert.ToDateTime(DateTime.Now.ToString("00:00:00"));
|
|
|
var classesEndTime = Convert.ToDateTime(DateTime.Now.ToString("23:59:59"));
|
|
|
- //获取当天所有设备信息
|
|
|
- deviceInformation = Env.SqlDAL.App_Vertiv_MachineInfo.GetData<MachineInfoModel>()?
|
|
|
- .Where(t => t.CreateTime >= classesStartTime & t.CreateTime <= classesEndTime).ToList();
|
|
|
|
|
|
+ //获取当天所有设备信息
|
|
|
+ //deviceInformation = Env.SqlDAL.App_Vertiv_MachineInfo.GetData<MachineInfoModel>()?
|
|
|
+ // .Where(t => t.CreateTime >= classesStartTime & t.CreateTime <= classesEndTime).ToList();
|
|
|
+ deviceInformation = CustomerEnv.MachineInfos;
|
|
|
}
|
|
|
public double DeviceTimeValue(string deviceName, string StateCode)//设备运行状态时间
|
|
|
{
|
|
@@ -282,9 +283,9 @@ namespace SCADA_DAQ.Customer
|
|
|
var classesStartTime = Convert.ToDateTime(DateTime.Now.ToString("00:00:00"));
|
|
|
var classesEndTime = Convert.ToDateTime(DateTime.Now.ToString("23:59:59"));
|
|
|
|
|
|
- deviceMaintenanceTable = DAL.App_Vertiv_MaintenanceTable.GetData<MaintenanceTableModel>()?
|
|
|
- .Where(t => t.CreateTime >= classesStartTime & t.CreateTime <= classesEndTime).ToList();//获取当天所有设备维修信息
|
|
|
-
|
|
|
+ //deviceMaintenanceTable = DAL.App_Vertiv_MaintenanceTable.GetData<MaintenanceTableModel>()?
|
|
|
+ // .Where(t => t.CreateTime >= classesStartTime & t.CreateTime <= classesEndTime).ToList();//获取当天所有设备维修信息
|
|
|
+ deviceMaintenanceTable = CustomerEnv.MaintenanceInfos;
|
|
|
}
|
|
|
public TimeSpan DevicMainTableTime(string deviceName)
|
|
|
{
|
|
@@ -316,8 +317,8 @@ namespace SCADA_DAQ.Customer
|
|
|
public List<RepairTableModel> deviceRepairDay { get; set; }
|
|
|
public void GetRepairTime()
|
|
|
{
|
|
|
- deviceRepairDay = DAL.APP_Vertiv_RepairTable.GetData<RepairTableModel>();
|
|
|
-
|
|
|
+ //deviceRepairDay = DAL.APP_Vertiv_RepairTable.GetData<RepairTableModel>();
|
|
|
+ deviceRepairDay = CustomerEnv.RepairInfos;
|
|
|
}
|
|
|
|
|
|
public int DeviceRepairTime(string deviceName)//设备保养时间到期所剩的天数
|