public static DataSourceResult TechFuncDataSource(DataSourceRequest reg) { using (var dbe = new WE2Dashboard_dev_ErpCntEntities()) { IQueryable <TechFunc> techs = dbe.TechFuncs; DataSourceResult result = techs.ToDataSourceResult(reg, tech => new TechFunc { ID = tech.ID, Code = tech.Code, Title = tech.Title, Comment = tech.Comment }); return(result); } }
public static DataSourceResult BusParDataSource(DataSourceRequest reg) { using (var dbe = new WE2Dashboard_dev_ErpCntEntities()) { IQueryable <BusPar> buspars = dbe.BusPars; DataSourceResult result = buspars.ToDataSourceResult(reg, par => new BusPar { ID = par.ID, Code = par.Code, ValueType = par.ValueType, Comment = par.Comment, Name = par.Name }); return(result); } }
public static DataSourceResult BusParOfBusFuncDataSource(DataSourceRequest reg) { using (var dbe = new WE2Dashboard_dev_ErpCntEntities()) { IQueryable <BusParOfBusFunc> busparofbusfuncs = dbe.BusParOfBusFuncs; DataSourceResult result = busparofbusfuncs.ToDataSourceResult(reg, par => new BusParOfBusFunc { ID = par.ID, BusFuncID = par.BusFuncID, BusParID = par.BusParID, Value_MaxCount = par.Value_MaxCount, Value_DateInterval_From = par.Value_DateInterval_From, Value_DateInterval_To = par.Value_DateInterval_To, Value_FeatureOption = par.Value_FeatureOption, Comment = par.Comment }); return(result); } }
public static DataSourceResult BusFuncDataSource(DataSourceRequest reg) { using (var dbe = new WE2Dashboard_dev_ErpCntEntities()) { IQueryable <BusFunc> busfuncs = dbe.BusFuncs; DataSourceResult result = busfuncs.ToDataSourceResult(reg, busfunc => new BusFunc { ID = busfunc.ID, Name = busfunc.Name, Code = busfunc.Code, LocalizedTitle = busfunc.LocalizedTitle, DsbLargeTile = busfunc.DsbLargeTile, DsbSmallTile = busfunc.DsbSmallTile, DsbMediumTile = busfunc.DsbMediumTile, DsbTileCssClass = busfunc.DsbTileCssClass, TechFuncID = busfunc.TechFuncID, IsCombo = busfunc.IsCombo, FleetOnly = busfunc.FleetOnly, Comment = busfunc.Comment }); return(result); } }