添加制粉喷煤选择框

This commit is contained in:
dell
2023-07-31 14:01:38 +08:00
parent f897bdeae0
commit 61103308a1
6 changed files with 151 additions and 29 deletions

View File

@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection.PortableExecutable;
using System.Text;
using System.Threading.Tasks;
@ -16,7 +17,19 @@ namespace HT.Cloud.Service.ReportManage
public MetaTagAlarmService(ISqlSugarClient context) : base(context)
{
}
public async Task<string> GetAllSubsystemTag()
public async Task<string> GetDriverGroupList()
{
List<GroupNameList> subsystems = new List<GroupNameList>();
var list_group = _context.Queryable<MetaGroupEntity>().ToList();
int i = 0;
foreach (var group in list_group)
{
subsystems.Add(new GroupNameList() { Lable = "a" + i, Value = group.GroupDescription});
i++;
}
return subsystems.ToJson();
}
public async Task<string> GetAllSubsystemTag()
{
List<SubsysytemNameList> subsystems = new List<SubsysytemNameList>();
var grouped = repository.IQueryable().ToList();
@ -166,7 +179,12 @@ namespace HT.Cloud.Service.ReportManage
public string Lable { get; set; }
public string Value { get; set; }
}
private class SubAllTagReturn
private class GroupNameList
{
public string Lable { get; set; }
public string Value { get; set; }
}
private class SubAllTagReturn
{
//x.TagID, x.Description, x.Units
public short TagID { get; set; }