// // GET: /Uom/ public ActionResult Index() { var uomModel = new UomIndexViewModel(); uomModel.MainMenu = _mainMenu; uomModel.CurrentMenu = PageInfo; uomModel.Details = Mapper.Map <List <UomDetails> >(_uomBLL.GetAll()); uomModel.IsNotViewer = (CurrentUser.UserRole != Enums.UserRole.Viewer && CurrentUser.UserRole != Enums.UserRole.Controller ? true : false); return(View("Index", uomModel)); }
public static SelectList GetConversionUomList() { IUnitOfMeasurementBLL uomBll = MvcApplication.GetInstance <UnitOfMeasurementBLL>(); var data = uomBll.GetAll().Where(x => x.IS_DELETED != true); var selectList = from s in data select new SelectListItem { Value = s.UOM_ID, Text = s.UOM_ID + "-" + s.UOM_DESC }; return(new SelectList(selectList, "Value", "Text")); }
public static SelectList GetUomStickGram(IUnitOfMeasurementBLL uomBll) { var data = uomBll.GetAll().Where(x => x.IS_DELETED != true && x.IS_EMS == true && (x.UOM_ID == "G" || x.UOM_ID == "Btg")); return(new SelectList(data, "UOM_ID", "UOM_DESC")); }