using Autofac;
|
using Bro.Common.Helper;
|
using Bro.Common.Interface;
|
using System.Collections;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Globalization;
|
|
namespace Bro.Common.Model
|
{
|
public class ProcessMethodSelectorConverter : ComboBoxItemTypeConvert
|
{
|
public override Hashtable GetConvertHash(ITypeDescriptorContext context)
|
{
|
Hashtable table = new Hashtable();
|
using (var scope = GlobalVar.Container.BeginLifetimeScope())
|
{
|
List<ProcessMethodAttribute> methodList = scope.Resolve<List<ProcessMethodAttribute>>();
|
|
methodList.ForEach(d =>
|
{
|
table[d.MethodCode] = d.MethodCode + "_" + d.MethodDesc;
|
});
|
}
|
|
return table;
|
}
|
}
|
}
|