123456789101112131415161718192021222324252627282930313233343536 |
- 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<BindObjectType> bindObjectTypes = new List<BindObjectType>()
- {
- new BindObjectType(){ Name ="绩效记录",ObjectTypeFullName = typeof(wispro.sp.entity.PerformanceItem).FullName},
- new BindObjectType(){ Name ="人员",ObjectTypeFullName = typeof(wispro.sp.entity.Staff).FullName}
- };
- public List<BindObjectType> GetBindObjects()
- {
- return bindObjectTypes;
- }
- public string GetBindObjectName(string ObjectTypeFullName)
- {
- var retObj = bindObjectTypes.FirstOrDefault<BindObjectType>(b => b.ObjectTypeFullName == ObjectTypeFullName);
- if(retObj != null)
- {
- return retObj.Name;
- }
- else
- {
- return "";
- }
- }
- }
- }
|