Built files from Bizgaze WebServer
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

sapreportmanager.js 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3. return new (P || (P = Promise))(function (resolve, reject) {
  4. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7. step((generator = generator.apply(thisArg, _arguments || [])).next());
  8. });
  9. };
  10. var SPRL;
  11. (function (SPRL) {
  12. let Apps;
  13. (function (Apps) {
  14. let Sap;
  15. (function (Sap) {
  16. let Managers;
  17. (function (Managers) {
  18. class SapReportManager extends Unibase.Platform.Core.BaseManager {
  19. getSalesReport(sapcin, fromdate, todate) {
  20. return __awaiter(this, void 0, void 0, function* () {
  21. const url = "/apis/v4/sprl/integrations/sapreports/salesreport/sapcin/" + sapcin + "/fromdate/" + fromdate + "/todate/" + todate;
  22. return yield this.dataHelper().getAsync(url).then(function (response) {
  23. if (response.result != null && response.result != "") {
  24. }
  25. return response;
  26. });
  27. });
  28. }
  29. getCustomerOverDue(sapcin, date) {
  30. return __awaiter(this, void 0, void 0, function* () {
  31. const url = "/apis/v4/sprl/integrations/sapreports/customeroverdue/sapcin/" + sapcin + "/date/" + date;
  32. return yield this.dataHelper().getAsync(url).then(function (response) {
  33. if (response.result != null && response.result != "") {
  34. }
  35. return response;
  36. });
  37. });
  38. }
  39. getCustomerLimit(sapcin) {
  40. return __awaiter(this, void 0, void 0, function* () {
  41. const url = "/apis/v4/sprl/integrations/sapreports/customerlimit/sapcin/" + sapcin;
  42. return yield this.dataHelper().getAsync(url).then(function (response) {
  43. if (response.result != null && response.result != "") {
  44. }
  45. return response;
  46. });
  47. });
  48. }
  49. getDebitCreditNote(sapcin, fdate, tdate, blart) {
  50. return __awaiter(this, void 0, void 0, function* () {
  51. const url = "apis/v4/sprl/integrations/sapreports/debitcreditnote/sapcin/" + sapcin + "/fromdate/" + fdate + "/todate/" + tdate + "/blart/" + blart;
  52. return yield this.dataHelper().getAsync(url).then(function (response) {
  53. if (response.result != null && response.result != "") {
  54. }
  55. return response;
  56. });
  57. });
  58. }
  59. getStockReport(plantcode) {
  60. return __awaiter(this, void 0, void 0, function* () {
  61. const url = "/apis/v4/sprl/integrations/sapreports/itemstock/plantcode/" + plantcode;
  62. return yield this.dataHelper().getAsync(url).then(function (response) {
  63. if (response.result != null && response.result != "") {
  64. }
  65. return response;
  66. });
  67. });
  68. }
  69. getCustomerOutStanding(sapcin) {
  70. return __awaiter(this, void 0, void 0, function* () {
  71. const url = "/apis/v4/sprl/integrations/sapreports/customeroutstanding/sapcin/" + sapcin;
  72. return yield this.dataHelper().getAsync(url).then(function (response) {
  73. if (response.result != null && response.result != "" && response.result != "") {
  74. }
  75. return response;
  76. });
  77. });
  78. }
  79. getAccountStatement(sapcin, fromdate, todate) {
  80. return __awaiter(this, void 0, void 0, function* () {
  81. const url = "apis/v4/sprl/integrations/sapreports/accountstatement/sapcin/" + sapcin + "/fromdate/" + fromdate + "/todate/" + todate;
  82. return yield this.dataHelper().getAsync(url).then(function (response) {
  83. if (response.result != null && response.result != "") {
  84. }
  85. return response;
  86. });
  87. });
  88. }
  89. deleteSapReportData(obj) {
  90. return __awaiter(this, void 0, void 0, function* () {
  91. const url = "apis/v4/sprl/integrations/sap/deletereportdata";
  92. return yield this.dataHelper().getAsync(url).then(function (response) {
  93. if (response.result != null && response.result != "") {
  94. }
  95. return response;
  96. });
  97. });
  98. }
  99. static Instance() {
  100. return new SapReportManager();
  101. }
  102. }
  103. Managers.SapReportManager = SapReportManager;
  104. })(Managers = Sap.Managers || (Sap.Managers = {}));
  105. })(Sap = Apps.Sap || (Apps.Sap = {}));
  106. })(Apps = SPRL.Apps || (SPRL.Apps = {}));
  107. })(SPRL || (SPRL = {}));