/// <summary> /// Create Exporter Statement /// </summary> private void ExporterStatementButton_Click(object sender, EventArgs e) { pathToSaveFiles = fileHandler.GetFolderPathToHandleFiles(); if (documentCreator.ValidateFields(CompanyInformationRichTextBox.Text, ExporterStatementTitleTextBox.Text, ExporterStatementContent1RichTextBox.Text, ExporterPurchaseDocumentsRichTextBox.Text, ExporterStatementContent2RichTextBox.Text, SalesAgentNameTextBox.Text, StampSignaturePathTextBox.Text, pathToSaveFiles)) { documentCreator.CreateExporterStatement(CompanyInformationRichTextBox.Text, ExporterStatementTitleTextBox.Text, ExporterStatementContent1RichTextBox.Text, ExporterPurchaseDocumentsRichTextBox.Text, ExporterStatementContent2RichTextBox.Text, SalesAgentNameTextBox.Text, StampSignaturePathTextBox.Text, pathToSaveFiles); } }
/// <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); } }
/// <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); } }