Пример #1
0
 public static BaseBusinessController GetBusinessController(string strBusinessControllerName)
 {
     return((BaseBusinessController)(BaseClassFactory.GetClass("VinaERP." + strBusinessControllerName) ?? BaseClassFactory.GetClass("VinaLib." + strBusinessControllerName)));
 }
Пример #2
0
 public static object GetClass(string strClassName)
 {
     return(BaseClassFactory.GetClassType(strClassName)?.InvokeMember("", BindingFlags.CreateInstance, (Binder)null, (object)null, (object[])null));
 }
Пример #3
0
 public static System.Type GetClassType(string strClassName)
 {
     return((((BaseClassFactory.GetClassTypeFromAssembly("VinaERP.exe", strClassName) ?? BaseClassFactory.GetClassTypeFromAssembly("VinaLib.BaseProvider.dll", strClassName)) ?? BaseClassFactory.GetClassTypeFromAssembly("VinaERP.Entities.dll", strClassName)) ?? BaseClassFactory.GetClassTypeFromAssembly("VinaERP.Base.dll", strClassName)) ?? BaseClassFactory.GetClassTypeFromAssembly("VinaLib.dll", strClassName));
 }
Пример #4
0
 public static BusinessObject GetBusinessObject(string strBusinessObjectName)
 {
     return((BusinessObject)(BaseClassFactory.GetClass("VinaERP." + strBusinessObjectName) ?? BaseClassFactory.GetClass("VinaLib." + strBusinessObjectName)));
 }