baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.MES.Model
|
||||
{
|
||||
abstract public class BaseQuality
|
||||
{
|
||||
public bool IsProperty(string propertyName)
|
||||
{
|
||||
PropertyInfo? perty = this.GetType().GetProperty(propertyName);
|
||||
if (perty != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public object GetValue(string propertyName)
|
||||
{
|
||||
PropertyInfo? perty = this.GetType().GetProperty(propertyName);
|
||||
if (perty != null)
|
||||
{
|
||||
return perty.GetValue(this, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user