v1.0版本
This commit is contained in:
@ -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; }
|
||||
|
Reference in New Issue
Block a user