public IEnumerable <ItemModel> GetEmpleados(int distritoId, int baseId) { var empleados = EntityDao.GetList(new List <int> { distritoId }, new List <int> { baseId }, new List <int>(), new List <int>()); return(empleados.Select(e => Mapper.ToItem(e)).OrderBy(e => e.Value).ToList()); }
public IEnumerable <ItemModel> GetComboItem(int distritoId, int baseId, int tipoCocheId, bool excludeNone = false) { var list = ItemModel.None.ToList(); if (excludeNone) { list = new List <ItemModel>(); } list.AddRange( EntityDao.GetList(new[] { distritoId }, new[] { baseId }, new[] { tipoCocheId }) .Select(t => Mapper.ToItem(t)).OrderBy(t => t.Value)); return(list); }
public IList <Pro_ShipPlanMain> GetList(QueryCondition query, Hashtable hs) { return(EntityDao.GetList(query, hs)); }
/// <summary> /// 获取信息列表 /// </summary> /// <param name="query"></param> /// <returns></returns> public IList <Pro_Scheduling> GetList(QueryCondition query, Hashtable hs) { return(EntityDao.GetList(query, hs)); }
public IEnumerable <ItemModel> GetComboItem(int distritoId, int baseId) { return(EntityDao.GetList(new[] { distritoId }, new[] { baseId }, new[] { -1 }, new[] { -1 }).Select(c => Mapper.ToItem(c)).ToList()); }
public IEnumerable <ItemModel> GetComboItem() { return(EntityDao.GetList(new int[] {}, new int[] {}).Select(d => Mapper.ToItem(d))); }
public DataSourceResult GetDataSource([ModelBinder(typeof(WebApiDataSourceRequestModelBinder))] DataSourceRequest filter, int distritoId, int baseId) { var filterValue = GetFilterValue(filter.Filters, "Codigo"); return(filterValue != null?EntityDao.FindByCodeLike(new[] { distritoId }, new[] { baseId }, new int[] { }, filterValue.ToString()).ToList().ToDataSourceResult(filter, e => Mapper.EntityToModel(e, new PuntoEntregaModel())) : EntityDao.GetList(new[] { distritoId }, new[] { baseId }, new int[] { }).ToDataSourceResult(filter, e => Mapper.EntityToModel(e, new PuntoEntregaModel()))); }
public IEnumerable <ItemModel> GetComboItem(int distritoId, int baseId, int clienteId) { return(EntityDao.GetList(new int[] { distritoId }, new int[] { baseId }, new int[] { clienteId }).Select(e => Mapper.ToItem(e))); }