Exemple #1
0
 public ActionResult ExportAllCatShiftlList([DataSourceRequest] DataSourceRequest request, CatShiftSearchModel model)
 {
     return ExportAllAndReturn<Cat_ShiftEntity, CatShiftModel, CatShiftSearchModel>(request, model, ConstantSql.hrm_cat_sp_get_Shift);
 }
Exemple #2
0
        //public JsonResult GetCatShiftList([DataSourceRequest] DataSourceRequest request, CatShiftSearchModel model)
        //{
        //    var service = new Cat_ShiftServices();
        //    ListQueryModel lstModel = new ListQueryModel
        //    {
        //        PageIndex = request.Page,
        //        Filters = ExtractFilterAttributes(request),
        //        Sorts = ExtractSortAttributes(request),
        //        AdvanceFilters = ExtractAdvanceFilterAttributes(model)
        //    };
        //    var result = service.GetCat_Shift(lstModel).ToList().Translate<CatShiftModel>();
        //    return Json(result.ToDataSourceResult(request));
        //} 
        #endregion
        public ActionResult GetCatShiftList([DataSourceRequest] DataSourceRequest request, CatShiftSearchModel searchModel)
        {

            return GetListDataAndReturn<CatShiftModel, Cat_ShiftEntity, CatShiftSearchModel>(request, searchModel, ConstantSql.hrm_cat_sp_get_Shift);
        }