public ProductSampleApproval GetProductSampleApproval(int pt)
 {
     return(_unitOfWork.Repository <ProductSampleApproval>().Query().Include(m => m.ProductSampleShipment)
            .Include(m => m.Product)
            .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval)
            .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample.ProductSampleAttributes)
            .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample)
            .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample.ProductType)
            .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample.Supplier)
            .Get().Where(m => m.ProductSampleApprovalId == pt).FirstOrDefault());
 }
示例#2
0
 public ProductSampleShipment GetProductSampleShipment(int pt)
 {
     return(_unitOfWork.Repository <ProductSampleShipment>().Query()
            .Include(m => m.ProductSamplePhotoApproval)
            .Include(m => m.ProductSamplePhotoApproval.ProductSample)
            .Include(m => m.ProductSamplePhotoApproval.ProductSample.ProductSamplePhoto)
            .Include(m => m.ProductSamplePhotoApproval.ProductSample.Supplier)
            .Get().Where(m => m.ProductSampleShipmentId == pt).FirstOrDefault());
 }
 public ProductSample GetProductSample(int pId)
 {
     return(_unitOfWork.Repository <ProductSample>().Query()
            .Include(m => m.Supplier)
            .Include(m => m.Employee)
            .Include(m => m.ProductSampleAttributes)
            .Include(m => m.ProductType)
            .Include(m => m.ProductSamplePhoto)
            .Include(m => m.ProductSamplePhotoApprovals)
            .Get().Where(i => i.ProductSampleId == pId).FirstOrDefault());
     //return _unitOfWork.Repository<SalesOrder>().Find(soId);
 }
 public ProductSamplePhotoApproval GetProductSamplePhotoApproval(int pt)
 {
     //return CurrencyRepository.Include(r => r.SalesOrder).Get().Where(i => i.SalesOrderDetailId == pt).FirstOrDefault();
     return(_unitOfWork.Repository <ProductSamplePhotoApproval>().Query()
            .Include(m => m.ProductSample)
            .Get().Where(m => m.ProductSamplePhotoApprovalId == pt).FirstOrDefault());
 }
 public PurchaseGoodsReceiptSetting Find(int id)
 {
     return(_unitOfWork.Repository <PurchaseGoodsReceiptSetting>().Find(id));
 }
 public ProductSizeType Find(int id)
 {
     return(_unitOfWork.Repository <ProductSizeType>().Find(id));
 }
示例#7
0
 public Designation Find(int id)
 {
     return(_unitOfWork.Repository <Designation>().Find(id));
 }
示例#8
0
 public Product Create(Product p)
 {
     p.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <Product>().Insert(p);
     return(p);
 }
 public MaterialPlanSettings GetMaterialPlanSettings(int SiteId, int?DivisionId)
 {
     return(_unitOfWork.Repository <MaterialPlanSettings>().Query().Get().Where(m => m.DivisionId == DivisionId && m.SiteId == SiteId).FirstOrDefault());
 }
示例#10
0
 public ProcessSequenceLine Create(ProcessSequenceLine S)
 {
     S.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <ProcessSequenceLine>().Insert(S);
     return(S);
 }
 public PurchaseQuotationLine Create(PurchaseQuotationLine S)
 {
     S.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <PurchaseQuotationLine>().Insert(S);
     return(S);
 }
 public RateListLineHistory Find(int Id)
 {
     return(_unitOfWork.Repository <RateListLineHistory>().Find(Id));
 }
示例#13
0
 public LeaveType Find(int id)
 {
     return(_unitOfWork.Repository <LeaveType>().Find(id));
 }
 public ProductIncludedAccessories Create(ProductIncludedAccessories pt)
 {
     pt.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <ProductIncludedAccessories>().Insert(pt);
     return(pt);
 }
示例#15
0
 public JobInvoiceRateAmendmentLine Find(int id)
 {
     return(_unitOfWork.Repository <JobInvoiceRateAmendmentLine>().Find(id));
 }
 public JobOrderLineExtended Find(int id)
 {
     return(_unitOfWork.Repository <JobOrderLineExtended>().Find(id));
 }
示例#17
0
 public JobInvoiceHeader Find(int id)
 {
     return(_unitOfWork.Repository <JobInvoiceHeader>().Find(id));
 }
示例#18
0
 public SalesTaxProductCode Find(int id)
 {
     return(_unitOfWork.Repository <SalesTaxProductCode>().Find(id));
 }
示例#19
0
 public DrawBackTariffHead Find(int id)
 {
     return(_unitOfWork.Repository <DrawBackTariffHead>().Find(id));
 }
示例#20
0
 public ProdOrderLineStatus Find(int id)
 {
     return(_unitOfWork.Repository <ProdOrderLineStatus>().Find(id));
 }
 public JobOrderHeaderStatus Find(int id)
 {
     return(_unitOfWork.Repository <JobOrderHeaderStatus>().Find(id));
 }
示例#22
0
 public Dimension1 Find(int id)
 {
     return(_unitOfWork.Repository <Dimension1>().Find(id));
 }
 public PurchaseInvoiceHeader Find(int id)
 {
     return(_unitOfWork.Repository <PurchaseInvoiceHeader>().Find(id));
 }
示例#24
0
 public PurchaseIndentCancelHeader Find(int id)
 {
     return(_unitOfWork.Repository <PurchaseIndentCancelHeader>().Find(id));
 }
示例#25
0
 public ProcessSequenceHeader Create(ProcessSequenceHeader s)
 {
     s.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <ProcessSequenceHeader>().Insert(s);
     return(s);
 }
示例#26
0
 public PurchaseOrderCancelLine Find(int id)
 {
     return(_unitOfWork.Repository <PurchaseOrderCancelLine>().Find(id));
 }
 public UnitConversion Find(int pt)
 {
     //return UnitConversionRepository.Include(r => r.SalesOrder).Get().Where(i => i.SalesOrderDetailId == pt).FirstOrDefault();
     return(_unitOfWork.Repository <UnitConversion>().Find(pt));
 }
 public BusinessEntity GetBusinessEntity(int BusinessEntityId)
 {
     return(_unitOfWork.Repository <BusinessEntity>().Find(BusinessEntityId));
 }
示例#29
0
 public SalesTaxGroupProduct Find(int id)
 {
     return(_unitOfWork.Repository <SalesTaxGroupProduct>().Find(id));
 }
 public JobOrderPerk Find(int id)
 {
     return(_unitOfWork.Repository <JobOrderPerk>().Find(id));
 }