public IQueryable <UnitsOfMeasurement> selectUnitsOfMeasurement() { //Custom Code End //Custom Code Start | Replaced Code Block //Replaced Code Block Start //List<UnitsOfMeasurement> unitsofmeasurement = new List<UnitsOfMeasurement>(); //_context.UnitsOfMeasurement.Include(a => a.MeasurementSystems).Include(a => a.MeasurementUnitsOf).AsNoTracking() // .ToList() // .ForEach(x => unitsofmeasurement.Add(x)); //return unitsofmeasurement.AsQueryable(); //Replaced Code Block End return(_commonlyUsedSelects.selectUnitsOfMeasurementLength()); //Custom Code End }
public ActionResult Create() { //Custom Code Start | Replaced Code Block //Replaced Code Block Start //ViewBag.ixHeightUnit = new SelectList(_inventorylocationsizesService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixLengthUnit = new SelectList(_inventorylocationsizesService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixUsableVolumeUnit = new SelectList(_inventorylocationsizesService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixWidthUnit = new SelectList(_inventorylocationsizesService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //Replaced Code Block End ViewBag.ixHeightUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixLengthUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixUsableVolumeUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementVolume().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixWidthUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //Custom Code End return(View()); }
public ActionResult Create() { //Custom Code Start | Replaced Code Block //Replaced Code Block Start //ViewBag.ixBaseUnit = new SelectList(_materialsService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixDensityUnit = new SelectList(_materialsService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixHeightUnit = new SelectList(_materialsService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixLengthUnit = new SelectList(_materialsService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixMaterialType = new SelectList(_materialsService.selectMaterialTypes().Select(x => new { x.ixMaterialType, x.sMaterialType }), "ixMaterialType", "sMaterialType"); //ViewBag.ixShelflifeUnit = new SelectList(_materialsService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixWeightUnit = new SelectList(_materialsService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixWidthUnit = new SelectList(_materialsService.selectUnitsOfMeasurement().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //Replaced Code Block End ViewBag.ixBaseUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementQuantity().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixDensityUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementDensity().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixHeightUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixLengthUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixMaterialType = new SelectList(_materialsService.selectMaterialTypes().Select(x => new { x.ixMaterialType, x.sMaterialType }), "ixMaterialType", "sMaterialType"); ViewBag.ixShelflifeUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementTime().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixWeightUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementWeight().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixWidthUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //Custom Code End return(View()); }
public ActionResult Create() { ViewBag.ixHandlingUnitType = new SelectList(_materialhandlingunitconfigurationsService.selectHandlingUnitTypes().Select(x => new { x.ixHandlingUnitType, x.sHandlingUnitType }), "ixHandlingUnitType", "sHandlingUnitType"); //Custom Code Start | Replaced Code Block //Replaced Code Block Start //ViewBag.ixHeightUnit = new SelectList(_materialhandlingunitconfigurationsService.selectUnitsOfMeasurement().Select( x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixLengthUnit = new SelectList(_materialhandlingunitconfigurationsService.selectUnitsOfMeasurement().Select( x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //ViewBag.ixMaterial = new SelectList(_materialhandlingunitconfigurationsService.selectMaterials().Select( x => new { x.ixMaterial, x.sMaterial }), "ixMaterial", "sMaterial"); //ViewBag.ixWidthUnit = new SelectList(_materialhandlingunitconfigurationsService.selectUnitsOfMeasurement().Select( x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //Replaced Code Block End ViewBag.ixHeightUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixLengthUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); ViewBag.ixMaterial = new SelectList(_materialhandlingunitconfigurationsService.selectMaterials().Select(x => new { x.ixMaterial, x.sMaterial }), "ixMaterial", "sMaterial"); ViewBag.ixWidthUnit = new SelectList(_commonlyUsedSelects.selectUnitsOfMeasurementLength().Select(x => new { x.ixUnitOfMeasurement, x.sUnitOfMeasurement }), "ixUnitOfMeasurement", "sUnitOfMeasurement"); //Custom Code End return(View()); }