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); }
public LookupForm(EntityNames entName, Type type, Dictionary<string, string> cols) { EntityName = entName; EntityType = type; ColumnNames = cols; InitializeComponent(); client.GetLookupOjbectsCompleted += new EventHandler<GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted); this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper()); BindData(); }
public LookupForm(EntityNames entName, Type type, Dictionary <string, string> cols) { EntityName = entName; EntityType = type; ColumnNames = cols; InitializeComponent(); client.GetLookupOjbectsCompleted += new EventHandler <GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted); this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper()); BindData(); }
public LookupForm(EntityNames entName, Type type, Dictionary<string, string> cols, string filter, System.Collections.ObjectModel.ObservableCollection<object> paras) { EntityName = entName; EntityType = type; ColumnNames = cols; InitializeComponent(); client.GetLookupOjbectsCompleted += new EventHandler<GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted); this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper()); this.filter = filter; this.paras = paras; BindData(); }
public LookupForm(EntityNames entName, Type type, Dictionary <string, string> cols, string filter, System.Collections.ObjectModel.ObservableCollection <object> paras) { EntityName = entName; EntityType = type; ColumnNames = cols; InitializeComponent(); client.GetLookupOjbectsCompleted += new EventHandler <GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted); this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper()); this.filter = filter; this.paras = paras; BindData(); }