Пример #1
0
        internal static ICollection <BomConfiguration> GetBomConfigurationsByModel(IUnitOfWork uow, PartModel model)
        {
            BinaryOperator op1 = new BinaryOperator("PartModel", model);

            return(Repository
                   .GetList <BomConfiguration>(uow)
                   .ByCriteria(op1));
        }
Пример #2
0
        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));
        }
Пример #3
0
 public ICollection <ServiceCode> ServiceCodesByModel(PartModel model)
 {
     return(PartRepository.GetFailCodesByModel(this, model));
 }