Exemplo n.º 1
0
        public static EntitySelectorModel LoadEntitySelectorModel <T>(this IList <T> data)
        {
            EntitySelectorModel tmp = new EntitySelectorModel();

            tmp.Data  = BexisDataHelper.ToDataTable <T>(data);
            tmp.IDKey = "Id";
            return(tmp);
        }
Exemplo n.º 2
0
        public static EntitySelectorModel LoadEntitySelectorModel <T>(this IList <T> data, List <string> columns, EntitySelectorModelAction reciever, string idKey = "Id", string targetId = "", Dictionary <string, string> parameters = null)
        {
            EntitySelectorModel tmp = new EntitySelectorModel();

            tmp.Data       = BexisDataHelper.ToDataTable <T>(data, columns);
            tmp.Reciever   = reciever;
            tmp.IDKey      = idKey;
            tmp.TargetId   = targetId;
            tmp.Parameters = parameters;
            return(tmp);
        }
Exemplo n.º 3
0
        public static EntitySelectorModel LoadEntitySelectorModel <T>(this IList <T> data, EntitySelectorModelAction reciever, string idKey = "Id", string targetId = "")
        {
            EntitySelectorModel tmp = new EntitySelectorModel();

            tmp.Data     = BexisDataHelper.ToDataTable <T>(data);
            tmp.Reciever = reciever;
            tmp.IDKey    = idKey;
            tmp.TargetId = targetId;

            return(tmp);
        }