public static object GetLookupData(FBAEnums.BLLPrefixNames entity, string modelCode, string userID, int pageIndex, int pageSize, string sort, string filterString, IList <object> paras, ref int pageCount) { object ents = null; Type type = Type.GetType("SMT.FBAnalysis.BLL." + entity.ToString() + "BLL"); if (type != null) { ILookupEntity bll = (ILookupEntity)Activator.CreateInstance(type); ents = bll.GetLookupData(modelCode, userID, pageIndex, pageSize, sort, filterString, paras, ref pageCount); } return(ents); }
public static object GetLookupData(EntityNames entity, int pageIndex, int pageSize, string sort, string filterString, IList <object> paras, ref int pageCount, string userID) { object ents = null; Type type = Type.GetType("SMT.HRM.BLL." + entity.ToString() + "BLL"); if (type != null) { ILookupEntity bll = (ILookupEntity)Activator.CreateInstance(type); ents = bll.GetLookupData(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID); } return(ents); }
//public static EntityObject[] GetLookupData(EntityNames entity, Dictionary<string, string> args) //{ // EntityObject[] ents = null; // Type type = Type.GetType("SMT.SaaS.Permission.BLL." + entity.ToString() + "BLL"); // if (type != null) // { // ILookupEntity bll = (ILookupEntity)Activator.CreateInstance(type); // ents = bll.GetLookupData(args); // } // return ents; //} public static EntityObject[] GetLookupData(EntityNames entity, Dictionary <string, string> args, int pageIndex, int pageSize, string sort, string filterString, IList <object> paras, ref int pageCount) { EntityObject[] ents = null; Type type = Type.GetType("SMT.SaaS.Permission.BLL." + entity.ToString() + "BLL"); if (type != null) { ILookupEntity bll = (ILookupEntity)Activator.CreateInstance(type); ents = bll.GetLookupData(args, pageIndex, pageSize, sort, filterString, paras, ref pageCount); } return(ents); }