/// <summary> /// Utythfwbz nf,kbws lkz vbuhfwbb /// </summary> /// <param name="arrayerror">Масив объектов ReportMigration</param> /// <param name="isulandfl">Юл и ИП = 1 ФЛ != 1</param> /// <returns></returns> public Body GenerateMigrationTable(ReportMigration[] arrayerror, int isulandfl) { Body body = new Body(); var table = new TablesGenerate(); var rows = new RowGenerate(); var tables = table.CreateTableLine(); ObservableCollection <TableCell> cellcCollection = new ObservableCollection <TableCell>(); var paragraphGenerate = new RunGenerate(); int index = 1; cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("№ п/п", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("Наименование НП", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("ИНН", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); if (isulandfl == 1) { cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("КПП", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); } cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("Причина", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); tables.Append(rows.GenerateRow(ref cellcCollection)); foreach (var param in arrayerror) { cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(index.ToString(), "22", JustificationValues.Center), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(param.NameOrg, "22", JustificationValues.Center), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(param.Inn, "22", JustificationValues.Center), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); if (isulandfl == 1) { cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(param.Kpp, "22", JustificationValues.Center), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); } cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(param.Problem, "22", JustificationValues.Both), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); index++; tables.Append(rows.GenerateRow(ref cellcCollection)); } body.Append(tables); body.Append(paragraphGenerate.LineBreker(2)); return(body); }
/// <summary> /// Генерация докладной записки для пред проверочного анализа /// </summary> /// <param name="statements">Карточка плательщика</param> /// <returns></returns> public Body GenerateStatementNote(Statement statements) { Body body = new Body(); ObservableCollection <TableCell> cellCollection = new ObservableCollection <TableCell>(); var rows = new RowGenerate(); Table table = new Table(); var paragraphGenerate = new RunGenerate(); foreach (var statementHead in statements.HeadingStatement) { cellCollection.Add(CellGenerate.GenerateCell( paragraphGenerate.RunParagraphGeneratorStandart(statementHead.NameIndex, "20", JustificationValues.Center), CellGenerate.FormulWidthCell(18.4), TableWidthUnitValues.Dxa, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull(), 3, 0, "FFFFCC")); table.Append(rows.GenerateRow(ref cellCollection)); foreach (var statementFull in statementHead.StatementFull) { cellCollection.Add(CellGenerate.GenerateCell( paragraphGenerate.RunParagraphGeneratorStandart(statementFull.VarIndex.ToString()), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); cellCollection.Add(CellGenerate.GenerateCell( paragraphGenerate.RunParagraphGeneratorStandart(statementFull.NameParametr), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); cellCollection.Add(CellGenerate.GenerateCell( paragraphGenerate.RunParagraphGeneratorStandart(statementFull.ValuesStatement), "0", TableWidthUnitValues.Auto, "100", "100", TableVerticalAlignmentValues.Center, CellBorders.GenerateBorderFull())); table.Append(rows.GenerateRow(ref cellCollection)); } } body.Append(table); return(body); }
/// <summary> /// Документ на исходящее письмо генерация таблицы /// </summary> /// <returns></returns> public Body DocumentIshBdkTableBody(FN71 parametr) { Body body = new Body(); var table = new TablesGenerate(); var rows = new RowGenerate(); var tables = table.CreateTableLine(); ObservableCollection <TableCell> cellcCollection = new ObservableCollection <TableCell>(); var paragraphGenerate = new RunGenerate(); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("Дата отправки", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("Наименование контейнера", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart("GUID", "26", JustificationValues.Center, 1), "100", TableWidthUnitValues.Auto, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); tables.Append(rows.GenerateRow(ref cellcCollection)); foreach (var var in parametr.FN1723_2) { cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(var.D85.ToString("dd-MM-yyyy"), "22", JustificationValues.Center), "1900", TableWidthUnitValues.Dxa, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(var.D981, "22", JustificationValues.Center), "2100", TableWidthUnitValues.Dxa, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); cellcCollection.Add(CellGenerate.GenerateCell(paragraphGenerate.RunParagraphGeneratorStandart(var.GUID, "22", JustificationValues.Center), "4500", TableWidthUnitValues.Dxa, "0", "0", TableVerticalAlignmentValues.Bottom, CellBorders.GenerateBorderFull())); tables.Append(rows.GenerateRow(ref cellcCollection)); } body.Append(tables); body.Append(paragraphGenerate.LineBreker(2)); return(body); }