|
|
@ -182,7 +182,21 @@ namespace Shentun.Peis.ColumnReferences |
|
|
|
|
|
|
|
|
public async Task<List<string>> GetInterfaceColumns(ColumnReferenceIdInputDto input) |
|
|
public async Task<List<string>> GetInterfaceColumns(ColumnReferenceIdInputDto input) |
|
|
{ |
|
|
{ |
|
|
return null; |
|
|
|
|
|
|
|
|
var entity = await _repository.GetAsync(input.Id); |
|
|
|
|
|
var parmValue = entity.ParmValue; |
|
|
|
|
|
var configurationBuilder = new ConfigurationBuilder() |
|
|
|
|
|
.AddJsonStream(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(parmValue))); |
|
|
|
|
|
var config = configurationBuilder.Build(); |
|
|
|
|
|
var assemblyName = config.GetSection("Interface").GetSection("AssemblyName").Value; |
|
|
|
|
|
var className = config.GetSection("Interface").GetSection("ClassName").Value; |
|
|
|
|
|
object objectValue = Invoke(assemblyName, className, "GetInterfaceColumns"); |
|
|
|
|
|
List<string> list = new List<string>(); |
|
|
|
|
|
|
|
|
|
|
|
if (objectValue is IEnumerable enumerableObject) |
|
|
|
|
|
{ |
|
|
|
|
|
list = enumerableObject.Cast<string>().ToList(); |
|
|
|
|
|
} |
|
|
|
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public async Task<List<ColumnReferenceCodeValue>> GetCodeValues(ColumnReferenceIdInputDto input) |
|
|
public async Task<List<ColumnReferenceCodeValue>> GetCodeValues(ColumnReferenceIdInputDto input) |
|
|
|