//Constructor public ExportDocsHandlerForm(IExcelReader _excelReader, IDocHandler _docHandler, IFileHandler _fileHandler) { InitializeComponent(); excelReader = _excelReader; docHandler = _docHandler; fileHandler = _fileHandler; }
public MissingInvoicesViewModel(DocumentHandlerViewModel documentHandlerViewModel) { docHandler = new DocHandler(); MissingInvoices = docHandler.GetPurchaseDocumentsAs_SupplierPurchaseInvoicesGrouping( documentHandlerViewModel.InvoiceContent.Where(d => d.FileWasMoved == false).ToList()); CloseWindowCommand = new CloseWindowCommand(this); CopyToClipboardCommand = new CopyToClipboardCommand(this); }
/// <summary> /// Returns a string with the Supplier/Purchase Invoice numbers if the invoice numbers have been retrieved, or empty string otherwise /// </summary> /// <param name="docHandler">DocHandler object that allows us access to<see cref="GetPurchaseDocumentsAs_SupplierPurchaseInvoicesGrouping"/> method, /// used to format the string</param> public string InitialiseExporterStatementPart2(IDocHandler docHandler) { if (MainViewModel.SalesInvoiceContent != null) { docHandler = new DocHandler(); return(docHandler.GetPurchaseDocumentsAs_SupplierPurchaseInvoicesGrouping(MainViewModel.SalesInvoiceContent)); } return(""); }
//Constructor public MissingDocumentsForm(List <InvoiceProductModel> missingDocuments, IDocHandler _docHandler) { InitializeComponent(); MissingDocuments = missingDocuments; docHandler = _docHandler; if (MissingDocuments != null) { InitializeMissingDocsRichTextBox(docHandler.GetPurchaseDocumentsAs_SupplierPurchaseInvoicesGrouping(MissingDocuments)); } }
//Constructor public ColumnHeaderSelectForm(IColumnHeaderRequester caller, List <string> allHeadersList, DocumentType docType, IDocHandler _docHandler) { InitializeComponent(); callingForm = caller; AllHeadersList = allHeadersList; SelectedHeadersList = new List <string>(); InitializeAllHeadersListBox(AllHeadersList); documentType = docType; ChangeUIElementsByDocType(documentType); docHandler = _docHandler; }
//Constructor public CustomsDocumentsDataForm(List <InvoiceProductModel> _salesInvoiceContent, IDocumentCreator _documentCreator, IDocHandler _docHandler, IFileHandler _fileHandler) { InitializeComponent(); salesInvoiceContent = _salesInvoiceContent; documentCreator = _documentCreator; docHandler = _docHandler; fileHandler = _fileHandler; InitializeExportPurchaseDocumentsContent(salesInvoiceContent); }
public VantageCrawler(IPageGetter getter, IPageHandler pageHandler, IDocHandler docHandler = null) { this.getter = getter ?? throw new ArgumentNullException(nameof(getter)); this.docHandler = docHandler; this.pageHandler = pageHandler; }