v1.0版本

This commit is contained in:
dell
2023-04-19 15:34:22 +08:00
parent 60b88f1cb3
commit a66412700b
5 changed files with 191 additions and 31 deletions

View File

@ -118,6 +118,19 @@ namespace HT.Cloud.Service.ReportManage
var valuelist = DataTableConvertModel<AlarmValueCount>.ConvertDataTableToList(dt);
return valuelist.ToJson();
}
//GetAlarmRecordQuickDesc
public async Task<string> GetAlarmRecordQuickDesc(string hhour)
{
int Hhour = int.Parse(hhour);
SugarParameter[] sqlParameters =
{
new SugarParameter("@Hhour",Hhour)
};
var dt = _context.Ado.UseStoredProcedure().GetDataTable("Query_Tag_Alarm_History", sqlParameters);
var valuelist = DataTableConvertModel<AlarmValueCountDesc>.ConvertDataTableToList(dt);
return valuelist.ToJson();
}
public async Task<string> GetAlarmSubSystem(string alarmName)
{
@ -131,12 +144,23 @@ namespace HT.Cloud.Service.ReportManage
public int hcount { get; set; }
public int hztime { get; set; }
}
private class AlarmValueCountDesc
{
public string Tagname { get; set; }
public string Description { get; set; }
public string Alarmtype { get; set; }
public string Typename { get; set; }
public string Startdt { get; set; }
public string Enddt { get; set; }
public int Hztime { get; set; }
}
private class AlarmValue
{
public string Description { get; set; }
public string startdt { get; set; }
public string enddt { get; set; }
}
public int Hztime { get; set; }
}
private class SubsysytemNameList
{
public string Lable { get; set; }