This commit is contained in:
Danil Markov 2023-04-10 20:21:33 +04:00
parent 8bd3c5138a
commit e6867ecc4c
7 changed files with 634 additions and 625 deletions

View File

@ -23,10 +23,10 @@ namespace LawFirmBusinessLogic.OfficePackage
= "Normal", = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Center ParagraphAlignment = PdfParagraphAlignmentType.Center
}); });
CreateTable(new List<string> { "2cm", "3cm", "6cm", "3cm" }); CreateTable(new List<string> { "2cm", "3cm", "6cm", "3cm", "3cm" });
CreateRow(new PdfRowParameters CreateRow(new PdfRowParameters
{ {
Texts = new List<string> { "Номер", "Дата заказа", "Изделие", "Сумма" }, Texts = new List<string> { "Номер", "Дата заказа", "Изделие", "Статус заказа", "Сумма" },
Style = "NormalTitle", Style = "NormalTitle",
ParagraphAlignment = PdfParagraphAlignmentType.Center ParagraphAlignment = PdfParagraphAlignmentType.Center
}); });
@ -34,7 +34,7 @@ namespace LawFirmBusinessLogic.OfficePackage
{ {
CreateRow(new PdfRowParameters CreateRow(new PdfRowParameters
{ {
Texts = new List<string> { order.Id.ToString(), order.DateCreate.ToShortDateString(), order.DocumentName, order.Sum.ToString() }, Texts = new List<string> { order.Id.ToString(), order.DateCreate.ToShortDateString(), order.DocumentName, order.OrderStatus, order.Sum.ToString() },
Style = "Normal", Style = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Left ParagraphAlignment = PdfParagraphAlignmentType.Left
}); });

View File

@ -102,8 +102,7 @@ namespace LawFirmBusinessLogic.OfficePackage.Implements
docRun.AppendChild(new Text docRun.AppendChild(new Text
{ {
Text = run.Item1, Text = run.Item1,
Space = Space = SpaceProcessingModeValues.Preserve
SpaceProcessingModeValues.Preserve
}); });
docParagraph.AppendChild(docRun); docParagraph.AppendChild(docRun);
} }

View File

@ -29,6 +29,7 @@
</div> </div>
</div> </div>
</form> </form>
@section scripts{
<script> <script>
$('#document').on('change', function () { $('#document').on('change', function () {
check(); check();
@ -51,3 +52,4 @@
}; };
} }
</script> </script>
}

View File

@ -32,7 +32,9 @@ namespace LawFirmDatabaseImplement.Implements
&& x.Password.Equals(model.Password)) && x.Password.Equals(model.Password))
?.GetViewModel; ?.GetViewModel;
if (model.Email != null) if (model.Email != null)
return context.Clients.FirstOrDefault(x => x.Email.Equals(model.Email))?.GetViewModel; return context.Clients
.FirstOrDefault(x => x.Email
.Equals(model.Email))?.GetViewModel;
return null; return null;
} }

View File

@ -27,4 +27,10 @@
<ProjectReference Include="..\LawFirmListImplement\LawFirmListImplement.csproj" /> <ProjectReference Include="..\LawFirmListImplement\LawFirmListImplement.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Update="ReportOrders.rdlc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project> </Project>