using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using wispro.sp.entity.workflowDefine; namespace wispro.sp.web.Services { public class WorkflowService { private List bindObjectTypes = new List() { new BindObjectType(){ Name ="绩效记录",ObjectTypeFullName = typeof(wispro.sp.entity.PerformanceItem).FullName}, new BindObjectType(){ Name ="人员",ObjectTypeFullName = typeof(wispro.sp.entity.Staff).FullName} }; public List GetBindObjects() { return bindObjectTypes; } public string GetBindObjectName(string ObjectTypeFullName) { var retObj = bindObjectTypes.FirstOrDefault(b => b.ObjectTypeFullName == ObjectTypeFullName); if(retObj != null) { return retObj.Name; } else { return ""; } } } }