1111
This commit is contained in:
@@ -165,19 +165,22 @@ namespace MyCode.Project.Services.Implementation
|
||||
var type = UnityHelper.GetUnityContainer().Resolve(Type.GetType(process.FuncClass));
|
||||
|
||||
MethodInfo method = type.GetType().GetMethod(process.FuncMethod);
|
||||
object result = new object();
|
||||
|
||||
if (!string.IsNullOrEmpty(process.ParamInfo))
|
||||
{
|
||||
method.Invoke(type, new object[] { process.ParamInfo });
|
||||
result= method.Invoke(type, new object[] { process.ParamInfo });
|
||||
}
|
||||
else
|
||||
{
|
||||
method.Invoke(type, new object[] { });
|
||||
result= method.Invoke(type, new object[] { });
|
||||
}
|
||||
|
||||
if (result == null)
|
||||
result = "";
|
||||
process.FuncStatus = (int)WorkProcessStatus.Complete;
|
||||
process.ExecuteTime = DateTime.Now;
|
||||
process.ExceptionInfo = string.Empty;
|
||||
process.Result= result.ToString();
|
||||
_SysWorkProcessRepository.Update(process);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user