예제 #1
0
        public TrainingFlowWindowVm(ISeatQueries seatQueries, Guid sessionId, IDocumentCreator documentCreator, ISessionQueries sessionQueries, IApplicationService applicationService, IComputerService computerService)
        {
            _seatQueries        = seatQueries ?? throw new ArgumentNullException(nameof(seatQueries));
            _sessionId          = sessionId;
            _documentCreator    = documentCreator ?? throw new ArgumentNullException(nameof(documentCreator));
            _sessionQueries     = sessionQueries ?? throw new ArgumentNullException(nameof(sessionQueries));
            _applicationService = applicationService ?? throw new ArgumentNullException(nameof(applicationService));
            _computerService    = computerService ?? throw new ArgumentNullException(nameof(computerService));
            RefreshCommand      = new RelayCommandAsync(ExecuteRefreshAsync);

            SelectedSeats = new ObservableCollection <ISeatValidatedResult>();
            SelectedSeats.CollectionChanged += (sender, args) =>
            {
                PrintCertificatOfAttendanceCommand.RaiseCanExecuteChanged();
                PrintSurveyCommand.RaiseCanExecuteChanged();
                PrintDegreeCommand.RaiseCanExecuteChanged();
                MissingCommand.RaiseCanExecuteChanged();
            };

            PrintTimesheetCommand = new RelayCommand(ExecutePrintFeuillePresence);
            PrintCertificatOfAttendanceCommand = new RelayCommand(ExecutePrintCertificatAssiduite, () => SelectedSeats.Any());
            PrintSurveyCommand      = new RelayCommand(ExecutePrintQuestionnaire, () => SelectedSeats.Any());
            PrintDegreeCommand      = new RelayCommand(ExecutePrintDiplome, () => SelectedSeats.Any());
            MissingCommand          = new RelayCommandAsync(ExecuteAbsenceAsync, () => SelectedSeats.Any());
            PrintAllDocumentCommand = new RelayCommandAsync(ExecutePrintAllDocumentAsync);
        }
예제 #2
0
 public ContentInserter(IDocumentCreator documentCreator, IContentTypeProvider contentTypeRepository, ISaveListenerProvider saveListenerProvider, IContentSerializer contentSerializer)
 {
     DocumentCreator       = documentCreator;
     ContentTypeRepository = contentTypeRepository;
     SaveListenerProvider  = saveListenerProvider;
     ContentSerializer     = contentSerializer;
 }
예제 #3
0
 public ContainerSpecificContentCreator(IDocumentCreator documentCreator, IIdGenerator idGenerator, IContentTypeProvider contentTypeRepository, IContentSerializer contentSerializer)
 {
     DocumentCreator       = documentCreator;
     IdGenerator           = idGenerator;
     ContentTypeRepository = contentTypeRepository;
     ContentSerializer     = contentSerializer;
 }
        /// <summary>
        /// Creates an affidavit statement(in microsoft word)
        /// </summary>
        public void CreateAffidavitStatement(IDocumentCreator documentCreator, IFileHandler fileHandler, string affidavitTitle, string affidavitContent,
                                             string salesAgentName, string stampSignatureFilePath)
        {
            string folderPath = fileHandler.GetFolderPathToHandleFiles();

            if (documentCreator.ValidateFields(affidavitTitle, affidavitContent, salesAgentName, stampSignatureFilePath, folderPath))
            {
                documentCreator.CreateWordDocument("", "", affidavitTitle, affidavitContent, "", "", salesAgentName, stampSignatureFilePath, folderPath);
            }
        }
예제 #5
0
파일: GetEpub.cs 프로젝트: HPRIOR/WikEpub
 public GetEpub(
     IGetWikiPageRecords getRecords,
     IDocumentCreator getEpubDocs,
     IHtmlInput htmlInput,
     IEpubOutput epubOutput)
 {
     _getRecords  = getRecords;
     _getEpubDocs = getEpubDocs;
     _htmlInput   = htmlInput;
     _epubOutput  = epubOutput;
 }
예제 #6
0
        //Constructor
        public CustomsDocumentsDataForm(List <InvoiceProductModel> _salesInvoiceContent, IDocumentCreator _documentCreator, IDocHandler _docHandler, IFileHandler _fileHandler)
        {
            InitializeComponent();
            salesInvoiceContent = _salesInvoiceContent;

            documentCreator = _documentCreator;
            docHandler      = _docHandler;
            fileHandler     = _fileHandler;

            InitializeExportPurchaseDocumentsContent(salesInvoiceContent);
        }
        /// <summary>
        /// Creates a export packing list(in microsoft excel)
        /// </summary>
        public void CreatePackingList(IDocumentCreator documentCreator, IFileHandler fileHandler, List <InvoiceProductModel> salesInvoiceContent, string companyInformation,
                                      string buyerInformation, string palletsNumber, string boxesNumber, string weight)
        {
            string folderPath = fileHandler.GetFolderPathToHandleFiles();

            if (salesInvoiceContent != null && documentCreator.ValidateFields(companyInformation, buyerInformation, palletsNumber, boxesNumber, weight, folderPath))
            {
                documentCreator.CreatePackingList(salesInvoiceContent, companyInformation, buyerInformation,
                                                  palletsNumber, boxesNumber, weight, folderPath);
            }
        }
        /// <summary>
        /// Creates an exporter statement(in microsoft word)
        /// </summary>
        public void CreateExporterStatement(IDocumentCreator documentCreator, IFileHandler fileHandler, string companyInformation, string exporterStatementTitle,
                                            string exporterStatementContent1, string exporterStatementContent2, string exporterStatementContent3, string salesAgentName, string stampSignatureFilePath)
        {
            string folderPath = fileHandler.GetFolderPathToHandleFiles();

            if (documentCreator.ValidateFields(companyInformation, exporterStatementTitle, exporterStatementContent1, exporterStatementContent2,
                                               exporterStatementContent3, salesAgentName, stampSignatureFilePath, folderPath))
            {
                documentCreator.CreateExporterStatement(companyInformation, exporterStatementTitle, exporterStatementContent1, exporterStatementContent2,
                                                        exporterStatementContent3, salesAgentName, stampSignatureFilePath, folderPath);
            }
        }
예제 #9
0
        public Presenter(IRawDataProcessor rawProcessor, IReportCreator reportCreator,
                         IDocumentCreator documentCreator, IMainForm mainform)
        {
            this._rawProcessor    = rawProcessor;
            this._mainform        = mainform;
            this._reportCreator   = reportCreator;
            this._documentCreator = documentCreator;
            this._inputObject     = new UserInput();
            this._report          = new Report();

            _report.reportCreated = false; // флаг пустого объекта

            _mainform.fileImportClick     += new EventHandler(mainform_fileImportClick);
            _mainform.createReportClick   += new EventHandler(mainform_createReportClick);
            _mainform.createDocumentClick += new EventHandler(mainform_createDocumentClick);
        }
예제 #10
0
 public SystemController(
     ITemplatesProvider templatesProvider,
     ITemplateCreator templateCreator,
     ITemplateDestructor templateDestructor,
     IDocumentsProvider documentsProvider,
     IDocumentCreator documentCreator,
     IDocumentDestructor documentDestructor,
     IUniversityDetailsProvider universityDetailsProvider,
     IUniversityDetailsUpdater universityDetailsUpdater,
     IStudentDestructor studentDestructor)
 {
     _templatesProvider         = templatesProvider;
     _universityDetailsProvider = universityDetailsProvider;
     _documentDestructor        = documentDestructor;
     _documentCreator           = documentCreator;
     _documentsProvider         = documentsProvider;
     _templateDestructor        = templateDestructor;
     _templateCreator           = templateCreator;
     _universityDetailsUpdater  = universityDetailsUpdater;
     _studentDestructor         = studentDestructor;
 }
예제 #11
0
        public ManageAgreementWindowVm(Guid agreementId, ISeatQueries seatQueries,
                                       IApplicationService applicationService, IContactQueries contactQueries, IAgreementQueries agreementQueries,
                                       IComputerService computerService, IDocumentCreator documentCreator, IDocumentRepository documentRepository)
        {
            _agreementId        = agreementId;
            _applicationService = applicationService ?? throw new ArgumentNullException(nameof(applicationService));
            _seatQueries        = seatQueries ?? throw new ArgumentNullException(nameof(seatQueries));
            _contactQueries     = contactQueries ?? throw new ArgumentNullException(nameof(contactQueries));
            _documentCreator    = documentCreator ?? throw new ArgumentNullException(nameof(documentCreator));
            _documentRepository = documentRepository ?? throw new ArgumentNullException(nameof(documentRepository));
            _agreementQueries   = agreementQueries ?? throw new ArgumentNullException(nameof(agreementQueries));
            _computerService    = computerService ?? throw new ArgumentNullException(nameof(computerService));

            ChooseDocumentCommand         = new RelayCommand(ExecuteChooseDocumentAsync);
            PrintCommand                  = new RelayCommandAsync(ExecutePrintAsync);
            SendMailCommand               = new RelayCommandAsync(ExecuteSendEmailAsync);
            OpenSignedDocumentCommand     = new RelayCommandAsync(ExecuteOpenSignedDocumentAsync);
            ReassignSignedDocumentCommand = new RelayCommand(ExecuteReassignSignedDocument);
            RemindAgreementCommand        = new RelayCommandAsync(ExecuteRemingAgreementAsync);
            SavePricesCommand             = new RelayCommandAsync(ExecuteSavePricesAsync, () => CanSavePrices);

            SetValiderCommandCanExecute(() => File.Exists(DocumentPath));
        }
예제 #12
0
 public StrategyService(IDocumentCreator documentCreator)
 {
     _mainDocument = documentCreator.CreateDocument();
 }
 public VioletDocumentCreator(IDocumentCreator documentCreator, IUriSchemeRegisterer uriSchemeRegisterer)
 {
     _documentCreator     = documentCreator;
     _uriSchemeRegisterer = uriSchemeRegisterer;
 }