internal static ICollection <BomConfiguration> GetBomConfigurationsByModel(IUnitOfWork uow, PartModel model) { BinaryOperator op1 = new BinaryOperator("PartModel", model); return(Repository .GetList <BomConfiguration>(uow) .ByCriteria(op1)); }
public static ICollection <ServiceCode> GetFailCodesByModel(PartServiceCommodity commodity, PartModel model) { string criteria = string.Format("(Active=True AND ServiceCommodity={0} AND Model IS NULL) OR (Model='{1}') OR (IsGlobal=True)", commodity.Id, model.Id); CriteriaOperator op = CriteriaOperator.Parse(criteria); return(Repository .GetList <ServiceCode>(commodity.Session) .ByCriteria(op)); }
public ICollection <ServiceCode> ServiceCodesByModel(PartModel model) { return(PartRepository.GetFailCodesByModel(this, model)); }