Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public IList <Pro_ShipPlanMain> GetList(QueryCondition query, Hashtable hs)
 {
     return(EntityDao.GetList(query, hs));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 获取信息列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public IList <Pro_Scheduling> GetList(QueryCondition query, Hashtable hs)
 {
     return(EntityDao.GetList(query, hs));
 }
Ejemplo n.º 5
0
 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());
 }
Ejemplo n.º 6
0
 public IEnumerable <ItemModel> GetComboItem()
 {
     return(EntityDao.GetList(new int[] {}, new int[] {}).Select(d => Mapper.ToItem(d)));
 }
Ejemplo n.º 7
0
        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())));
        }
Ejemplo n.º 8
0
 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)));
 }