You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

1 month ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml;
  7. using ReportLibrary;
  8. namespace PeisStart
  9. {
  10. public class ReportMethods
  11. {
  12. private readonly ReportClient _reportclient = new ReportClient();
  13. public async Task<object> PrintPre(dynamic request)
  14. {
  15. string _json = (string)request.asMessage;
  16. return await _reportclient.ReportPrintPre(_json);
  17. }
  18. public async Task<object> Print(dynamic request)
  19. {
  20. string _json = (string)request.asMessage;
  21. return await _reportclient.ReportPrint(_json);
  22. }
  23. public async Task<object> ExportToPdf(dynamic request)
  24. {
  25. string _json = (string)request.asMessage;
  26. return await _reportclient.ReportExport(_json);
  27. }
  28. public async Task<object> ReportDesign(dynamic request)
  29. {
  30. string _json = (string)request.asMessage;
  31. return await _reportclient.ReportDesign(_json);
  32. }
  33. }
  34. }