コード例 #1
0
ファイル: Offhire.cs プロジェクト: hatefi-arman/Modules
        public Offhire()
        {
            this.isSubmitted = new IsOffhireSubmitted();
            this.isClosed = new IsOffhireClosed();
            this.isOpen = new IsOffhireOpen();
            this.isSubmitRejected = new IsOffhireSubmitRejected();
            this.isCancelled = new IsOffhireCancelled();

            this.Id = -1;

            this.OffhireDetails = new List<OffhireDetail>();
            this.ApproveWorkflows = new List<OffhireWorkflowLog>();
        }
コード例 #2
0
        public OffhireDomainService(
            IOffhireRepository offhireRepository,
            IRepository<OffhireDetail> offhireDetailRepository,
            ICharteringDomainService charteringDomainService,
            IInventoryManagementDomainService inventoryManagementDomainService,
            IFuelReportDomainService fuelReportDomainService,
            IVesselInCompanyDomainService vesselDomainService, IVoyageDomainService voyageDomainService,
            ICurrencyDomainService currencyDomainService)
        {
            this.offhireRepository = offhireRepository;
            this.offhireDetailRepository = offhireDetailRepository;
            this.charteringDomainService = charteringDomainService;
            this.inventoryManagementDomainService = inventoryManagementDomainService;
            this.fuelReportDomainService = fuelReportDomainService;
            this.vesselDomainService = vesselDomainService;
            this.voyageDomainService = voyageDomainService;
            this.currencyDomainService = currencyDomainService;

            this.isOffhireOpen = new IsOffhireOpen();
            this.isOffhireSubmitted = new IsOffhireSubmitted();
            this.isOffhireSubmitRejected = new IsOffhireSubmitRejected();
            this.isOffhireCancelled = new IsOffhireCancelled();
        }