public static BaseBusinessController GetBusinessController(string strBusinessControllerName) { return((BaseBusinessController)(BaseClassFactory.GetClass("VinaERP." + strBusinessControllerName) ?? BaseClassFactory.GetClass("VinaLib." + strBusinessControllerName))); }
public static object GetClass(string strClassName) { return(BaseClassFactory.GetClassType(strClassName)?.InvokeMember("", BindingFlags.CreateInstance, (Binder)null, (object)null, (object[])null)); }
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)); }
public static BusinessObject GetBusinessObject(string strBusinessObjectName) { return((BusinessObject)(BaseClassFactory.GetClass("VinaERP." + strBusinessObjectName) ?? BaseClassFactory.GetClass("VinaLib." + strBusinessObjectName))); }