コード例 #1
0
 public StatementOfAccountBL()
 {
     _unitOfWork               = GetUnitOfWork();
     companyService            = new CompanyBL(_unitOfWork);
     shipmentService           = new ShipmentBL(_unitOfWork);
     paymentTypeService        = new PaymentTypeBL(_unitOfWork);
     shipmentAdjustmentService = new ShipmentAdjustmentBL(_unitOfWork);
     soaPaymentService         = new StatementOfAccountPaymentBL(_unitOfWork);
     paymentService            = new PaymentBL(_unitOfWork);
 }
コード例 #2
0
        public List <Client> GetByCompanyAccountNo(string companyAccountNo)
        {
            CompanyBL companyService = new CompanyBL(_unitOfWork);

            return(GetAll()
                   .Join(companyService.FilterBy(x => x.AccountNo.Equals(companyAccountNo)),
                         cln => cln.CompanyId,
                         com => com.CompanyId,
                         (cln, com) => new { clients = cln })
                   .Select(y => y.clients)
                   .ToList());
        }
コード例 #3
0
        public List <Client> GetByCompanyId(Guid companyId)
        {
            CompanyBL companyService = new CompanyBL(_unitOfWork);

            return(GetAll()
                   .Join(companyService.FilterBy(x => x.CompanyId == companyId),
                         cln => cln.CompanyId,
                         com => com.CompanyId,
                         (cln, com) => new { clients = cln })
                   .Select(y => y.clients)
                   .ToList());
        }
コード例 #4
0
 public ClientBL()
 {
     _unitOfWork    = GetUnitOfWork();
     cityService    = new CityBL(_unitOfWork);
     companyService = new CompanyBL(_unitOfWork);
 }
コード例 #5
0
 public ApprovingAuthorityBL()
 {
     _unitOfWork    = GetUnitOfWork();
     companyService = new CompanyBL(_unitOfWork);
 }