Пример #1
0
        public EntityRefsellDetail GetDetail(int FK_QuotationID, int FK_BuildOfMaterialsID)
        {
            var data = base.DataContext.RefsellQuotation.Where(p => p.Fk_QuotationID == FK_QuotationID && p.Fk_ProductID == FK_BuildOfMaterialsID);

            if (data.Count() == 1)
            {
                return(FactoryRefsellDetail.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }
Пример #2
0
        public EntityRefsellDetail Get(int Id)
        {
            var data = base.DataContext.RefsellQuotation.Where(p => p.PK_RefsellDetailID == Id);

            if (data.Count() == 1)
            {
                return(FactoryRefsellDetail.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }
Пример #3
0
 public List <EntityRefsellDetail> GetActives()
 {
     return(FactoryRefsellDetail.GetList(base.DataContext.RefsellQuotation.Where(p => p.Status == true).ToList()));
 }
Пример #4
0
 public List <EntityRefsellDetail> GetAll()
 {
     return(FactoryRefsellDetail.GetList(base.DataContext.RefsellQuotation.ToList()));
 }
Пример #5
0
 public List <EntityRefsellDetail> GetByID(int Fk_QuotationDetail)
 {
     return(FactoryRefsellDetail.GetList(base.DataContext.RefsellQuotation.Where(p => p.Fk_QuotationID == Fk_QuotationDetail).OrderBy(p => p.Origen).ToList()));
 }