shareneus 1.4.35 → 1.4.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.d.ts +290 -0
- package/dist/{services → accounting/counter-sales}/auto-sales-receipt-pdf.service.js +26 -26
- package/dist/accounting/counter-sales/pos-receipt-pdf.d.ts +156 -0
- package/dist/{services → accounting/counter-sales}/pos-receipt-pdf.js +20 -20
- package/dist/accounting/counter-sales/sales-receipt-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-pdf.service.js +28 -27
- package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +18 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-print.service.js +67 -67
- package/dist/accounting/credit-note/cn-print.service.d.ts +14 -0
- package/dist/{services → accounting/credit-note}/cn-print.service.js +37 -37
- package/dist/accounting/credit-note/credit-note-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/credit-note}/credit-note-pdf.service.js +18 -18
- package/dist/accounting/credit-note/credit-note-totals.service.d.ts +25 -0
- package/dist/{services → accounting/credit-note}/credit-note-totals.service.js +32 -32
- package/dist/accounting/debit-note/debit-note-pdf.service.d.ts +331 -0
- package/dist/{services → accounting/debit-note}/debit-note-pdf.service.js +16 -16
- package/dist/accounting/debit-note/debit-note-print.service.d.ts +14 -0
- package/dist/{services → accounting/debit-note}/debit-note-print.service.js +37 -37
- package/dist/accounting/debit-note/debit-note-totals.service.d.ts +22 -0
- package/dist/{services → accounting/debit-note}/debit-note-totals.service.js +29 -29
- package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +357 -0
- package/dist/{services → accounting/invoice}/hc-inv-pdf.service.js +44 -44
- package/dist/accounting/invoice/inv-pdf.service.d.ts +314 -0
- package/dist/{services → accounting/invoice}/inv-pdf.service.js +56 -56
- package/dist/accounting/invoice/inv-print.service.d.ts +16 -0
- package/dist/{services → accounting/invoice}/inv-print.service.js +63 -63
- package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → accounting/invoice}/invoice-landscape-pdf.service.js +31 -31
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +323 -0
- package/dist/{services → accounting/invoice}/invoice-letterhead-pdf.service.js +56 -56
- package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +275 -0
- package/dist/{services → accounting/invoice}/invoice-portrait-pdf.js +53 -53
- package/dist/accounting/invoice/invoice-total.service.d.ts +43 -0
- package/dist/{services → accounting/invoice}/invoice-total.service.js +79 -79
- package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +303 -0
- package/dist/accounting/invoice/shared-inv-pdf.service.js +763 -0
- package/dist/accounting/payment-receive/payment-pdf.service.d.ts +618 -0
- package/dist/{services → accounting/payment-receive}/payment-pdf.service.js +5 -5
- package/dist/accounting/payment-receive/receipt-print.service.d.ts +4 -0
- package/dist/{services → accounting/payment-receive}/receipt-print.service.js +6 -6
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/customer-balances-pdf.service.js +8 -8
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/payment-report-pdf.service.js +4 -4
- package/dist/aggregation/aggregation.d.ts +4 -0
- package/dist/aggregation/aggregation.js +13 -13
- package/dist/appointments/appointments/appointment-total.service.d.ts +25 -0
- package/dist/{services → appointments/appointments}/appointment-total.service.js +38 -38
- package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +318 -0
- package/dist/{services → appointments/consultations}/consultation-fee-receipt.service.js +17 -17
- package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +207 -0
- package/dist/{services → appointments/consultations}/consultation-full-pdf.service.js +11 -11
- package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +266 -0
- package/dist/{services → appointments/consultations}/consultation-letterhead-pdf.service.js +16 -16
- package/dist/appointments/consultations/consultation-pdf.service.d.ts +306 -0
- package/dist/{services → appointments/consultations}/consultation-pdf.service.js +16 -16
- package/dist/enums/cache-enums.d.ts +33 -0
- package/dist/enums/code-enums.d.ts +266 -0
- package/dist/enums/enums.d.ts +329 -0
- package/dist/enums/industry-enums.d.ts +16 -0
- package/dist/excel-files/cust-balance-excel.service.d.ts +26 -0
- package/dist/excel-files/cust-balance-excel.service.js +5 -5
- package/dist/excel-files/expiring-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
- package/dist/excel-files/insurance-expire-excel.service.d.ts +23 -0
- package/dist/excel-files/insurance-expire-excel.service.js +4 -4
- package/dist/excel-files/invoice-wise-excel.service.d.ts +26 -0
- package/dist/excel-files/invoice-wise-excel.service.js +3 -3
- package/dist/excel-files/next-service-date-excel.service.d.ts +25 -0
- package/dist/excel-files/next-service-date-excel.service.js +5 -5
- package/dist/excel-files/payment-receive-excel.service.d.ts +25 -0
- package/dist/excel-files/payment-receive-excel.service.js +6 -6
- package/dist/excel-files/payments-made-excel.service.d.ts +25 -0
- package/dist/excel-files/payments-made-excel.service.js +6 -6
- package/dist/excel-files/repair-orders-excel.service.d.ts +24 -0
- package/dist/excel-files/repair-orders-excel.service.js +10 -10
- package/dist/excel-files/sales-by-service-details-excel.service.d.ts +0 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
- package/dist/excel-files/scheduled-drug-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
- package/dist/excel-files/scheduled-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
- package/dist/excel-files/spares-issue-excel.service.d.ts +26 -0
- package/dist/excel-files/spares-issue-excel.service.js +14 -14
- package/dist/excel-files/stock-excel.service.d.ts +23 -0
- package/dist/excel-files/stock-excel.service.js +3 -3
- package/dist/excel-files/ven-balance-excel.service.d.ts +27 -0
- package/dist/excel-files/ven-balance-excel.service.js +3 -3
- package/dist/gst/excel/GSTR-RO-excel.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/GSTR-RO-excel.service.js +3 -3
- package/dist/gst/excel/GSTR1-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR1-excel.service.js +7 -7
- package/dist/gst/excel/GSTR2-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR2-excel.service.js +6 -6
- package/dist/gst/excel/tally-sales-import.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/tally-sales-import.service.js +3 -3
- package/dist/index.d.ts +124 -0
- package/dist/index.js +102 -102
- package/dist/inventory/items/issue-parts-pdf.service.d.ts +303 -0
- package/dist/{services → inventory/items}/issue-parts-pdf.service.js +45 -45
- package/dist/inventory/items/item-bar-code-label-pdf.d.ts +127 -0
- package/dist/{services → inventory/items}/item-bar-code-label-pdf.js +3 -3
- package/dist/inventory/items/item-detais-pdf.d.ts +121 -0
- package/dist/{services → inventory/items}/item-detais-pdf.js +1 -1
- package/dist/inventory/items/item-price-for-pricelist.d.ts +1 -0
- package/dist/{services → inventory/items}/item-price-for-pricelist.js +44 -50
- package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-details.js +4 -4
- package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-summary.js +4 -4
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +49 -0
- package/dist/{services → inventory/items/reports/pdf}/expiring-drugs-pdf.service.js +6 -6
- package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +229 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-details-pdf.js +4 -4
- package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +228 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-summary-pdf.js +3 -3
- package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/items/reports/pdf}/reorder-point-pdf.service.js +3 -3
- package/dist/inventory/material-out/mout-pdf.service.d.ts +324 -0
- package/dist/{services → inventory/material-out}/mout-pdf.service.js +19 -19
- package/dist/inventory/transfer-order/transfer-order-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/transfer-order}/transfer-order-pdf.service.js +2 -2
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +227 -0
- package/dist/{services → purchases/payment-made/reports/pdf}/vendor-balances-pdf.service.js +7 -7
- package/dist/purchases/purchase-order/po-totals.service.d.ts +24 -0
- package/dist/{services → purchases/purchase-order}/po-totals.service.js +29 -29
- package/dist/purchases/purchase-order/purchase-order-pdf.service.d.ts +526 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-pdf.service.js +42 -42
- package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +8 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-print.service.js +46 -46
- package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +23 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-totals.service.js +55 -55
- package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.d.ts +491 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-pdf.service.js +29 -29
- package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +6 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-print.service.js +31 -31
- package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +24 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-totals.service.js +38 -38
- package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.d.ts +271 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-pdf.service.js +18 -18
- package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +14 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-print.service.js +34 -34
- package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +22 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-totals.service.js +31 -31
- package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-pdf.service.js +30 -30
- package/dist/sales/delivery-challan/dc-landscape-without-price-pdf.service.d.ts +400 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-without-price-pdf.service.js +26 -26
- package/dist/sales/delivery-challan/dc-without-price-pdf.service.d.ts +271 -0
- package/dist/{services → sales/delivery-challan}/dc-without-price-pdf.service.js +17 -17
- package/dist/sales/delivery-challan/delivery-challan-pdf.service.d.ts +269 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-pdf.service.js +18 -18
- package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +12 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-print.service.js +30 -30
- package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +27 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-totals.js +33 -33
- package/dist/sales/reports/excel/analysis-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/analysis-excel.service.js +4 -4
- package/dist/sales/reports/excel/category-wise-item-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/category-wise-item-excel.service.js +10 -10
- package/dist/sales/reports/excel/cust-wise-sales-details.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-details.js +5 -5
- package/dist/sales/reports/excel/cust-wise-sales-summary-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-summary-excel.service.js +5 -5
- package/dist/sales/reports/excel/item-wise-doctor-sale-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/item-wise-doctor-sale-excel.service.js +7 -7
- package/dist/sales/reports/excel/items-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/items-wise-sales-excel.service.js +10 -10
- package/dist/sales/reports/excel/manf-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/manf-wise-sales-excel.service.js +4 -4
- package/dist/sales/reports/excel/operator-wise-details.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-details.js +4 -4
- package/dist/sales/reports/excel/operator-wise-summary.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-summary.js +4 -4
- package/dist/sales/reports/excel/sa-wise-labor-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-labor-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sa-wise-part-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-part-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sale-summary-excel.service.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/sale-summary-excel.service.js +3 -3
- package/dist/sales/reports/pdf/analysis-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/analysis-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/category-wise-item-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/category-wise-item-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-summary-pdf.service.js +8 -9
- package/dist/sales/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-doctor-sale-pdf.service.js +4 -4
- package/dist/sales/reports/pdf/item-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-sales-pdf.service.js +7 -8
- package/dist/sales/reports/pdf/manf-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/manf-wise-sales-pdf.service.js +6 -6
- package/dist/sales/reports/pdf/operator-wise-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/operator-wise-summary-pdf.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-summary-pdf.js +8 -8
- package/dist/sales/reports/pdf/sales-by-service-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/sales-by-service-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/scheduled-drug-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-pdf.service.js +8 -8
- package/dist/sales/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-summary-pdf.service.js +5 -5
- package/dist/sales/sales/equipment-design-pdf.service.d.ts +121 -0
- package/dist/{services → sales/sales}/equipment-design-pdf.service.js +12 -12
- package/dist/sales/sales/pack-ship-pdf.service.d.ts +262 -0
- package/dist/{services → sales/sales}/pack-ship-pdf.service.js +5 -5
- package/dist/sales/sales/pack-ship-print.service.d.ts +11 -0
- package/dist/{services → sales/sales}/pack-ship-print.service.js +27 -27
- package/dist/sales/sales/sales-pdf.service.d.ts +275 -0
- package/dist/{services → sales/sales}/sales-pdf.service.js +25 -25
- package/dist/sales/sales/sales-print.service.d.ts +15 -0
- package/dist/{services → sales/sales}/sales-print.service.js +58 -58
- package/dist/sales/sales/sales-totals.service.d.ts +27 -0
- package/dist/{services → sales/sales}/sales-totals.service.js +34 -34
- package/dist/services/checklist-pdf.d.ts +57 -0
- package/dist/services/checklist-pdf.js +5 -5
- package/dist/services/checklists-pdf.d.ts +12 -0
- package/dist/services/checklists-pdf.js +1 -1
- package/dist/services/est.print-service.d.ts +64 -0
- package/dist/services/est.print-service.js +151 -151
- package/dist/services/next-service-date-pdf.service.d.ts +228 -0
- package/dist/services/next-service-date-pdf.service.js +2 -2
- package/dist/services/reports/insurance-expire-pdf.service.d.ts +227 -0
- package/dist/services/{insurance-expire-pdf.service.js → reports/insurance-expire-pdf.service.js} +2 -2
- package/dist/services/reports/repair-orders-pdf.service.d.ts +229 -0
- package/dist/services/{repair-orders-pdf.service.js → reports/repair-orders-pdf.service.js} +4 -4
- package/dist/services/ro-pdf.service.d.ts +1060 -0
- package/dist/services/ro-pdf.service.js +82 -82
- package/dist/services/ro-print-service.d.ts +45 -0
- package/dist/services/ro-print-service.js +88 -88
- package/dist/services/ro-totals.service.d.ts +65 -0
- package/dist/services/ro-totals.service.js +123 -123
- package/dist/services/separate-wo-print.service.d.ts +494 -0
- package/dist/services/separate-wo-print.service.js +10 -10
- package/dist/services/shared-inv-pdf.service.d.ts +303 -0
- package/dist/services/shared-inv-pdf.service.js +46 -46
- package/dist/services/technician-pdf.service.d.ts +221 -0
- package/dist/services/technician-pdf.service.js +11 -11
- package/dist/services/technician-print.service.d.ts +5 -0
- package/dist/services/technician-print.service.js +10 -10
- package/dist/shared/math-operations.d.ts +53 -0
- package/dist/shared/math-operations.js +184 -0
- package/dist/shared/shared-services/shared-pdf.service.d.ts +926 -0
- package/dist/{services → shared/shared-services}/shared-pdf.service.js +120 -120
- package/dist/shared/shared-services/shared-print.service.d.ts +49 -0
- package/dist/{services → shared/shared-services}/shared-print.service.js +68 -68
- package/dist/shared/util.d.ts +3 -0
- package/dist/shared/util.js +15 -0
- package/dist/tasks/meetings/meeting-pdf.d.ts +107 -0
- package/dist/{services → tasks/meetings}/meeting-pdf.js +15 -15
- package/dist/tasks/tasks/task-pdf.service.d.ts +127 -0
- package/dist/{services → tasks/tasks}/task-pdf.service.js +12 -12
- package/dist/tasks/tasks/task-reports-pdf.service.d.ts +94 -0
- package/dist/{services → tasks/tasks}/task-reports-pdf.service.js +11 -11
- package/dist/utils/my-date.d.ts +104 -0
- package/dist/{shared → utils}/my-date.js +31 -31
- package/dist/utils/tr-utils.d.ts +41 -0
- package/dist/{shared/utils.js → utils/tr-utils.js} +0 -8
- package/package.json +2 -1
- package/tsconfig.json +1 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export declare class ConsultationFullPrintService {
|
|
2
|
+
static GetPrint(consultationData: any): any;
|
|
3
|
+
static GetMainHeaderDetails(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
|
|
4
|
+
canvas: {
|
|
5
|
+
type: string;
|
|
6
|
+
lineColor: string;
|
|
7
|
+
x1: number;
|
|
8
|
+
y1: number;
|
|
9
|
+
x2: number;
|
|
10
|
+
y2: number;
|
|
11
|
+
lineWidth: number;
|
|
12
|
+
}[];
|
|
13
|
+
} | {
|
|
14
|
+
columns: ({
|
|
15
|
+
columns: any;
|
|
16
|
+
width: string;
|
|
17
|
+
} | {
|
|
18
|
+
stack: ({
|
|
19
|
+
text: string;
|
|
20
|
+
fontSize: number;
|
|
21
|
+
bold: boolean;
|
|
22
|
+
alignment: string;
|
|
23
|
+
marginBottom?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
text: any;
|
|
26
|
+
fontSize: number;
|
|
27
|
+
alignment: string;
|
|
28
|
+
bold?: undefined;
|
|
29
|
+
marginBottom?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
text: string;
|
|
32
|
+
fontSize: number;
|
|
33
|
+
alignment: string;
|
|
34
|
+
marginBottom: number;
|
|
35
|
+
bold?: undefined;
|
|
36
|
+
})[];
|
|
37
|
+
width: string;
|
|
38
|
+
marginTop: number;
|
|
39
|
+
})[];
|
|
40
|
+
} | {
|
|
41
|
+
columns: ({
|
|
42
|
+
image: any;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
text?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
text: string;
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
image?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
stack: ({
|
|
53
|
+
text: string;
|
|
54
|
+
fontSize: number;
|
|
55
|
+
bold: boolean;
|
|
56
|
+
alignment: string;
|
|
57
|
+
marginBottom?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
text: any;
|
|
60
|
+
fontSize: number;
|
|
61
|
+
alignment: string;
|
|
62
|
+
bold?: undefined;
|
|
63
|
+
marginBottom?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
text: string;
|
|
66
|
+
fontSize: number;
|
|
67
|
+
alignment: string;
|
|
68
|
+
marginBottom: number;
|
|
69
|
+
bold?: undefined;
|
|
70
|
+
})[];
|
|
71
|
+
marginTop: number;
|
|
72
|
+
})[];
|
|
73
|
+
} | {
|
|
74
|
+
columns: ({
|
|
75
|
+
stack: ({
|
|
76
|
+
text: any;
|
|
77
|
+
fontSize: number;
|
|
78
|
+
marginTop: number;
|
|
79
|
+
bold: boolean;
|
|
80
|
+
marginBottom?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
text: string;
|
|
83
|
+
fontSize: number;
|
|
84
|
+
marginBottom: number;
|
|
85
|
+
marginTop?: undefined;
|
|
86
|
+
bold?: undefined;
|
|
87
|
+
})[];
|
|
88
|
+
marginTop?: undefined;
|
|
89
|
+
width?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
stack: {
|
|
92
|
+
text: string | null;
|
|
93
|
+
style: string[];
|
|
94
|
+
}[];
|
|
95
|
+
marginTop: number;
|
|
96
|
+
width: number;
|
|
97
|
+
})[];
|
|
98
|
+
})[];
|
|
99
|
+
static GetCnsltDate(CnstData: any): string | null;
|
|
100
|
+
static GetHeaderBasedOnCondition(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): {
|
|
101
|
+
columns: ({
|
|
102
|
+
columns: any;
|
|
103
|
+
width: string;
|
|
104
|
+
} | {
|
|
105
|
+
stack: ({
|
|
106
|
+
text: string;
|
|
107
|
+
fontSize: number;
|
|
108
|
+
bold: boolean;
|
|
109
|
+
alignment: string;
|
|
110
|
+
marginBottom?: undefined;
|
|
111
|
+
} | {
|
|
112
|
+
text: any;
|
|
113
|
+
fontSize: number;
|
|
114
|
+
alignment: string;
|
|
115
|
+
bold?: undefined;
|
|
116
|
+
marginBottom?: undefined;
|
|
117
|
+
} | {
|
|
118
|
+
text: string;
|
|
119
|
+
fontSize: number;
|
|
120
|
+
alignment: string;
|
|
121
|
+
marginBottom: number;
|
|
122
|
+
bold?: undefined;
|
|
123
|
+
})[];
|
|
124
|
+
width: string;
|
|
125
|
+
marginTop: number;
|
|
126
|
+
})[];
|
|
127
|
+
} | {
|
|
128
|
+
columns: ({
|
|
129
|
+
image: any;
|
|
130
|
+
width: number;
|
|
131
|
+
height: number;
|
|
132
|
+
text?: undefined;
|
|
133
|
+
} | {
|
|
134
|
+
text: string;
|
|
135
|
+
width: number;
|
|
136
|
+
height: number;
|
|
137
|
+
image?: undefined;
|
|
138
|
+
} | {
|
|
139
|
+
stack: ({
|
|
140
|
+
text: string;
|
|
141
|
+
fontSize: number;
|
|
142
|
+
bold: boolean;
|
|
143
|
+
alignment: string;
|
|
144
|
+
marginBottom?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
text: any;
|
|
147
|
+
fontSize: number;
|
|
148
|
+
alignment: string;
|
|
149
|
+
bold?: undefined;
|
|
150
|
+
marginBottom?: undefined;
|
|
151
|
+
} | {
|
|
152
|
+
text: string;
|
|
153
|
+
fontSize: number;
|
|
154
|
+
alignment: string;
|
|
155
|
+
marginBottom: number;
|
|
156
|
+
bold?: undefined;
|
|
157
|
+
})[];
|
|
158
|
+
marginTop: number;
|
|
159
|
+
})[];
|
|
160
|
+
};
|
|
161
|
+
static GetPhoneNumber(phone: any): string;
|
|
162
|
+
static getDoctorName(DocName: any): any;
|
|
163
|
+
static GetPhone(Phone: any): any;
|
|
164
|
+
static DifferenceInYears(DOB: any): string;
|
|
165
|
+
static HeaderLayOut(): {
|
|
166
|
+
hLineWidth: (i: any, node: any) => 0 | 1;
|
|
167
|
+
vLineWidth: (i: any, node: any) => 0 | 1;
|
|
168
|
+
hLineColor: (i: any, node: any) => string;
|
|
169
|
+
vLineColor: (i: any, node: any) => string;
|
|
170
|
+
};
|
|
171
|
+
static GetHeaderInfo(consultationData: any): any;
|
|
172
|
+
static finalReturnTotal(consultationData: any): string;
|
|
173
|
+
static GetBillofSupplyName(Settings: any): {
|
|
174
|
+
text: string | null;
|
|
175
|
+
alignment: string;
|
|
176
|
+
marginRight: number;
|
|
177
|
+
marginTop: number;
|
|
178
|
+
marginBottom: number;
|
|
179
|
+
fontSize: number;
|
|
180
|
+
width: string;
|
|
181
|
+
};
|
|
182
|
+
static GetSignatures(CName: any, For: any, Type: any): {
|
|
183
|
+
columns: {
|
|
184
|
+
stack: {
|
|
185
|
+
style: string;
|
|
186
|
+
text: (string | {
|
|
187
|
+
text: any;
|
|
188
|
+
})[];
|
|
189
|
+
}[];
|
|
190
|
+
}[];
|
|
191
|
+
};
|
|
192
|
+
static CompanyName(CName: any): {
|
|
193
|
+
style: string;
|
|
194
|
+
text: (string | {
|
|
195
|
+
text: any;
|
|
196
|
+
})[];
|
|
197
|
+
};
|
|
198
|
+
static Authorizedsignature(): {
|
|
199
|
+
style: string;
|
|
200
|
+
text: string[];
|
|
201
|
+
};
|
|
202
|
+
static CustomerSignature(): {
|
|
203
|
+
style: string;
|
|
204
|
+
text: string[];
|
|
205
|
+
marginLeft: number;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConsultationFullPrintService = void 0;
|
|
4
4
|
const date_fns_1 = require("date-fns");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
|
+
const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
|
|
7
|
+
const my_date_1 = require("../../utils/my-date");
|
|
8
8
|
class ConsultationFullPrintService {
|
|
9
9
|
static GetPrint(consultationData) {
|
|
10
|
-
if (
|
|
10
|
+
if (tr_utils_1.TrUtils.IsNull(consultationData.Name)) {
|
|
11
11
|
consultationData.Name = '';
|
|
12
12
|
}
|
|
13
13
|
let dd = {
|
|
@@ -87,7 +87,7 @@ class ConsultationFullPrintService {
|
|
|
87
87
|
];
|
|
88
88
|
}
|
|
89
89
|
static GetCnsltDate(CnstData) {
|
|
90
|
-
if (!
|
|
90
|
+
if (!tr_utils_1.TrUtils.IsNull(CnstData.ClDate)) {
|
|
91
91
|
return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate);
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
@@ -118,7 +118,7 @@ class ConsultationFullPrintService {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
static GetPhoneNumber(phone) {
|
|
121
|
-
if (!
|
|
121
|
+
if (!tr_utils_1.TrUtils.IsNull(phone)) {
|
|
122
122
|
return ' | ' + phone;
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
@@ -126,7 +126,7 @@ class ConsultationFullPrintService {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
static getDoctorName(DocName) {
|
|
129
|
-
if (!
|
|
129
|
+
if (!tr_utils_1.TrUtils.IsNull(DocName)) {
|
|
130
130
|
return DocName;
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
@@ -134,7 +134,7 @@ class ConsultationFullPrintService {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
static GetPhone(Phone) {
|
|
137
|
-
if (
|
|
137
|
+
if (tr_utils_1.TrUtils.IsNull(Phone)) {
|
|
138
138
|
return '';
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
@@ -142,7 +142,7 @@ class ConsultationFullPrintService {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
static DifferenceInYears(DOB) {
|
|
145
|
-
if (
|
|
145
|
+
if (tr_utils_1.TrUtils.IsNull(DOB)) {
|
|
146
146
|
return 'DOB Not Specified';
|
|
147
147
|
}
|
|
148
148
|
const result = (0, date_fns_1.differenceInYears)(my_date_1.MyDate.GetDateTimeNowInUTC(), new Date(DOB));
|
|
@@ -169,10 +169,10 @@ class ConsultationFullPrintService {
|
|
|
169
169
|
}
|
|
170
170
|
static GetHeaderInfo(consultationData) {
|
|
171
171
|
let TaxInfo = [];
|
|
172
|
-
if (!
|
|
172
|
+
if (!tr_utils_1.TrUtils.IsEmpty(consultationData.Entity.GSTIN)) {
|
|
173
173
|
TaxInfo.push({ text: 'GSTIN : ' + consultationData.Entity.GSTIN, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: 'auto' });
|
|
174
174
|
}
|
|
175
|
-
if (!
|
|
175
|
+
if (!tr_utils_1.TrUtils.IsEmpty(consultationData.Entity.DLNo)) {
|
|
176
176
|
TaxInfo.push({ text: 'D.L.NO : ' + consultationData.Entity.DLNo, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: '*' });
|
|
177
177
|
}
|
|
178
178
|
TaxInfo.push(this.GetBillofSupplyName(consultationData.Settings));
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
export declare class ConsultationLetterHeadPDFService {
|
|
2
|
+
static GetConsultationPrint(CnstData: any, Remarks: any, LetterHead: any): any;
|
|
3
|
+
static GetRxTable(Rx: any, Remarks: any): {
|
|
4
|
+
stack: ({
|
|
5
|
+
style: string;
|
|
6
|
+
marginTop: number;
|
|
7
|
+
marginBottom: number;
|
|
8
|
+
table: {
|
|
9
|
+
widths: (string | number)[];
|
|
10
|
+
headerRows: number;
|
|
11
|
+
body: any;
|
|
12
|
+
};
|
|
13
|
+
layout: {
|
|
14
|
+
hLineWidth: (i: any, node: any) => 1 | 0.5;
|
|
15
|
+
vLineWidth: (i: any, node: any) => 1 | 0.5;
|
|
16
|
+
hLineColor: (i: any, node: any) => "gray" | "lightgrey";
|
|
17
|
+
vLineColor: (i: any, node: any) => string;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
style?: undefined;
|
|
21
|
+
marginTop?: undefined;
|
|
22
|
+
marginBottom?: undefined;
|
|
23
|
+
table?: undefined;
|
|
24
|
+
layout?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
text: string;
|
|
27
|
+
bold: boolean;
|
|
28
|
+
fontSize: number;
|
|
29
|
+
})[];
|
|
30
|
+
} | {
|
|
31
|
+
stack?: undefined;
|
|
32
|
+
};
|
|
33
|
+
static GetDiagnosisTable(diagnosis: any, heading: any): {
|
|
34
|
+
stack: ({
|
|
35
|
+
text: any;
|
|
36
|
+
bold: boolean;
|
|
37
|
+
marginTop: number;
|
|
38
|
+
fontSize: number;
|
|
39
|
+
marginBottom?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
text: any;
|
|
42
|
+
fontSize: number;
|
|
43
|
+
marginTop: number;
|
|
44
|
+
marginBottom: number;
|
|
45
|
+
bold?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
} | {
|
|
48
|
+
stack?: undefined;
|
|
49
|
+
};
|
|
50
|
+
static GetComplaintsTable(complaints: any, heading: any): {
|
|
51
|
+
stack: ({
|
|
52
|
+
text: any;
|
|
53
|
+
bold: boolean;
|
|
54
|
+
marginTop: number;
|
|
55
|
+
fontSize: number;
|
|
56
|
+
marginBottom?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
text: any;
|
|
59
|
+
fontSize: number;
|
|
60
|
+
marginTop: number;
|
|
61
|
+
marginBottom: number;
|
|
62
|
+
bold?: undefined;
|
|
63
|
+
})[];
|
|
64
|
+
} | {
|
|
65
|
+
stack?: undefined;
|
|
66
|
+
};
|
|
67
|
+
static FooterContent(CnstData: any): {
|
|
68
|
+
stack: ({
|
|
69
|
+
canvas: {
|
|
70
|
+
type: string;
|
|
71
|
+
lineColor: string;
|
|
72
|
+
x1: number;
|
|
73
|
+
y1: number;
|
|
74
|
+
x2: number;
|
|
75
|
+
y2: number;
|
|
76
|
+
lineWidth: number;
|
|
77
|
+
}[];
|
|
78
|
+
} | {
|
|
79
|
+
text: string;
|
|
80
|
+
bold: boolean;
|
|
81
|
+
alignment: string;
|
|
82
|
+
marginBottom: number;
|
|
83
|
+
})[];
|
|
84
|
+
margin: number[];
|
|
85
|
+
};
|
|
86
|
+
static HeaderAfterLine1(): {
|
|
87
|
+
canvas: {
|
|
88
|
+
type: string;
|
|
89
|
+
lineColor: string;
|
|
90
|
+
x1: number;
|
|
91
|
+
y1: number;
|
|
92
|
+
x2: number;
|
|
93
|
+
y2: number;
|
|
94
|
+
lineWidth: number;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
static CustomSection(sections: any): any;
|
|
98
|
+
static GetWeight(CnstData: any): {
|
|
99
|
+
text: string;
|
|
100
|
+
Width: number;
|
|
101
|
+
};
|
|
102
|
+
static GetTemperature(CnstData: any): {
|
|
103
|
+
text: string;
|
|
104
|
+
Width: number;
|
|
105
|
+
};
|
|
106
|
+
static GetSPO2(CnstData: any): {
|
|
107
|
+
text: string;
|
|
108
|
+
Width: number;
|
|
109
|
+
};
|
|
110
|
+
static GetPulse(CnstData: any): {
|
|
111
|
+
text: string;
|
|
112
|
+
Width: number;
|
|
113
|
+
};
|
|
114
|
+
static GetHeight(CnstData: any): {
|
|
115
|
+
text: string;
|
|
116
|
+
Width: number;
|
|
117
|
+
};
|
|
118
|
+
static GetBP(CnstData: any): {
|
|
119
|
+
text: string;
|
|
120
|
+
Width: number;
|
|
121
|
+
};
|
|
122
|
+
static GetMainHeaderDetails(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): {
|
|
123
|
+
columns: ({
|
|
124
|
+
stack: ({
|
|
125
|
+
text: any;
|
|
126
|
+
fontSize: number;
|
|
127
|
+
marginTop: number;
|
|
128
|
+
bold: boolean;
|
|
129
|
+
marginBottom?: undefined;
|
|
130
|
+
} | {
|
|
131
|
+
text: string;
|
|
132
|
+
fontSize: number;
|
|
133
|
+
marginBottom: number;
|
|
134
|
+
marginTop?: undefined;
|
|
135
|
+
bold?: undefined;
|
|
136
|
+
})[];
|
|
137
|
+
marginTop?: undefined;
|
|
138
|
+
width?: undefined;
|
|
139
|
+
} | {
|
|
140
|
+
stack: {
|
|
141
|
+
text: string | null;
|
|
142
|
+
style: string[];
|
|
143
|
+
}[];
|
|
144
|
+
marginTop: number;
|
|
145
|
+
width: number;
|
|
146
|
+
})[];
|
|
147
|
+
}[];
|
|
148
|
+
static GetCnsltDate(CnstData: any): string | null;
|
|
149
|
+
static GetHeaderBasedOnCondition(CnstData: any, Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): {
|
|
150
|
+
columns: ({
|
|
151
|
+
columns: any;
|
|
152
|
+
width: string;
|
|
153
|
+
} | {
|
|
154
|
+
stack: ({
|
|
155
|
+
text: string;
|
|
156
|
+
fontSize: number;
|
|
157
|
+
bold: boolean;
|
|
158
|
+
alignment: string;
|
|
159
|
+
marginBottom?: undefined;
|
|
160
|
+
} | {
|
|
161
|
+
text: any;
|
|
162
|
+
fontSize: number;
|
|
163
|
+
alignment: string;
|
|
164
|
+
bold?: undefined;
|
|
165
|
+
marginBottom?: undefined;
|
|
166
|
+
} | {
|
|
167
|
+
text: string;
|
|
168
|
+
fontSize: number;
|
|
169
|
+
alignment: string;
|
|
170
|
+
marginBottom: number;
|
|
171
|
+
bold?: undefined;
|
|
172
|
+
})[];
|
|
173
|
+
width: string;
|
|
174
|
+
marginTop: number;
|
|
175
|
+
})[];
|
|
176
|
+
} | {
|
|
177
|
+
columns: ({
|
|
178
|
+
image: any;
|
|
179
|
+
width: number;
|
|
180
|
+
height: number;
|
|
181
|
+
text?: undefined;
|
|
182
|
+
} | {
|
|
183
|
+
text: string;
|
|
184
|
+
width: number;
|
|
185
|
+
height: number;
|
|
186
|
+
image?: undefined;
|
|
187
|
+
} | {
|
|
188
|
+
stack: ({
|
|
189
|
+
text: string;
|
|
190
|
+
fontSize: number;
|
|
191
|
+
alignment: string;
|
|
192
|
+
bold: boolean;
|
|
193
|
+
marginBottom?: undefined;
|
|
194
|
+
} | {
|
|
195
|
+
text: any;
|
|
196
|
+
fontSize: number;
|
|
197
|
+
alignment: string;
|
|
198
|
+
bold?: undefined;
|
|
199
|
+
marginBottom?: undefined;
|
|
200
|
+
} | {
|
|
201
|
+
text: string;
|
|
202
|
+
fontSize: number;
|
|
203
|
+
alignment: string;
|
|
204
|
+
marginBottom: number;
|
|
205
|
+
bold?: undefined;
|
|
206
|
+
})[];
|
|
207
|
+
marginTop: number;
|
|
208
|
+
})[];
|
|
209
|
+
};
|
|
210
|
+
static GetPhoneNumber(phone: any): string;
|
|
211
|
+
static DifferenceInYears(DOB: any): string;
|
|
212
|
+
static GetDiagnosis(Diags: any): any;
|
|
213
|
+
static GetComplaints(Comps: any): any;
|
|
214
|
+
static GetDate(DatesDetails: any): string;
|
|
215
|
+
static CustomerAndVehicleDetailsAfterLine(): {
|
|
216
|
+
canvas: {
|
|
217
|
+
type: string;
|
|
218
|
+
lineColor: string;
|
|
219
|
+
x1: number;
|
|
220
|
+
y1: number;
|
|
221
|
+
x2: number;
|
|
222
|
+
y2: number;
|
|
223
|
+
lineWidth: number;
|
|
224
|
+
}[];
|
|
225
|
+
};
|
|
226
|
+
static GetSignatures(CName: any, For: any, Type: any): {
|
|
227
|
+
columns: {
|
|
228
|
+
stack: {
|
|
229
|
+
style: string;
|
|
230
|
+
text: (string | {
|
|
231
|
+
text: any;
|
|
232
|
+
})[];
|
|
233
|
+
}[];
|
|
234
|
+
}[];
|
|
235
|
+
};
|
|
236
|
+
static CompanyName(CName: any): {
|
|
237
|
+
style: string;
|
|
238
|
+
text: (string | {
|
|
239
|
+
text: any;
|
|
240
|
+
})[];
|
|
241
|
+
};
|
|
242
|
+
static GetItemsTable(Items: any, Remarks: any): {
|
|
243
|
+
style: string;
|
|
244
|
+
marginTop: number;
|
|
245
|
+
marginBottom: number;
|
|
246
|
+
table: {
|
|
247
|
+
widths: (string | number)[];
|
|
248
|
+
headerRows: number;
|
|
249
|
+
body: any;
|
|
250
|
+
};
|
|
251
|
+
layout: {
|
|
252
|
+
hLineWidth: (i: any, node: any) => 1 | 0.5;
|
|
253
|
+
vLineWidth: (i: any, node: any) => 1 | 0.5;
|
|
254
|
+
hLineColor: (i: any, node: any) => "gray" | "lightgrey";
|
|
255
|
+
vLineColor: (i: any, node: any) => string;
|
|
256
|
+
};
|
|
257
|
+
} | {
|
|
258
|
+
style?: undefined;
|
|
259
|
+
marginTop?: undefined;
|
|
260
|
+
marginBottom?: undefined;
|
|
261
|
+
table?: undefined;
|
|
262
|
+
layout?: undefined;
|
|
263
|
+
};
|
|
264
|
+
static BuildTableBodyForLaborAndParts(Items: any, Remarks: any): any;
|
|
265
|
+
static GetHeaderNames(): any;
|
|
266
|
+
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConsultationLetterHeadPDFService = void 0;
|
|
4
4
|
const date_fns_1 = require("date-fns");
|
|
5
|
-
const
|
|
6
|
-
const my_date_1 = require("
|
|
7
|
-
const shared_pdf_service_1 = require("
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
|
+
const my_date_1 = require("../../utils/my-date");
|
|
7
|
+
const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
|
|
8
8
|
class ConsultationLetterHeadPDFService {
|
|
9
9
|
static GetConsultationPrint(CnstData, Remarks, LetterHead) {
|
|
10
10
|
let dd = {
|
|
@@ -81,7 +81,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
81
81
|
return dd;
|
|
82
82
|
}
|
|
83
83
|
static GetRxTable(Rx, Remarks) {
|
|
84
|
-
if (!
|
|
84
|
+
if (!tr_utils_1.TrUtils.IsNull(Rx) && Rx.length !== 0) {
|
|
85
85
|
return {
|
|
86
86
|
stack: [
|
|
87
87
|
{ text: 'Rx:', bold: true, fontSize: 12 },
|
|
@@ -94,7 +94,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
static GetDiagnosisTable(diagnosis, heading) {
|
|
97
|
-
if (!
|
|
97
|
+
if (!tr_utils_1.TrUtils.IsNull(diagnosis) && diagnosis.length !== 0) {
|
|
98
98
|
return {
|
|
99
99
|
stack: [
|
|
100
100
|
{ text: heading, bold: true, marginTop: 5, fontSize: 12 },
|
|
@@ -107,7 +107,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
static GetComplaintsTable(complaints, heading) {
|
|
110
|
-
if (!
|
|
110
|
+
if (!tr_utils_1.TrUtils.IsNull(complaints) && complaints.length !== 0) {
|
|
111
111
|
return {
|
|
112
112
|
stack: [
|
|
113
113
|
{ text: heading, bold: true, marginTop: 5, fontSize: 12 },
|
|
@@ -164,7 +164,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
164
164
|
}
|
|
165
165
|
static GetWeight(CnstData) {
|
|
166
166
|
var _a, _b, _c, _d, _e;
|
|
167
|
-
if (!
|
|
167
|
+
if (!tr_utils_1.TrUtils.IsNull((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _a === void 0 ? void 0 : _a.Weight) && !tr_utils_1.TrUtils.IsNull((_c = (_b = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _b === void 0 ? void 0 : _b.Weight) === null || _c === void 0 ? void 0 : _c.V)) {
|
|
168
168
|
return { text: 'Weight :' + ((_e = (_d = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _d === void 0 ? void 0 : _d.Weight) === null || _e === void 0 ? void 0 : _e.V) + ' kg', Width: 80 };
|
|
169
169
|
}
|
|
170
170
|
else {
|
|
@@ -173,7 +173,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
173
173
|
}
|
|
174
174
|
static GetTemperature(CnstData) {
|
|
175
175
|
var _a, _b, _c, _d, _e;
|
|
176
|
-
if (!
|
|
176
|
+
if (!tr_utils_1.TrUtils.IsNull((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _a === void 0 ? void 0 : _a.Temp) && !tr_utils_1.TrUtils.IsNull((_c = (_b = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _b === void 0 ? void 0 : _b.Temp) === null || _c === void 0 ? void 0 : _c.V)) {
|
|
177
177
|
return { text: 'Temperature :' + ((_e = (_d = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _d === void 0 ? void 0 : _d.Temp) === null || _e === void 0 ? void 0 : _e.V) + ' F', Width: 80 };
|
|
178
178
|
}
|
|
179
179
|
else {
|
|
@@ -182,7 +182,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
182
182
|
}
|
|
183
183
|
static GetSPO2(CnstData) {
|
|
184
184
|
var _a, _b, _c, _d, _e;
|
|
185
|
-
if (!
|
|
185
|
+
if (!tr_utils_1.TrUtils.IsNull((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _a === void 0 ? void 0 : _a.SPO2) && !tr_utils_1.TrUtils.IsNull((_c = (_b = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _b === void 0 ? void 0 : _b.SPO2) === null || _c === void 0 ? void 0 : _c.V)) {
|
|
186
186
|
return { text: 'SPO2 :' + ((_e = (_d = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _d === void 0 ? void 0 : _d.SPO2) === null || _e === void 0 ? void 0 : _e.V) + ' mmHg', Width: 80 };
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
@@ -191,7 +191,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
191
191
|
}
|
|
192
192
|
static GetPulse(CnstData) {
|
|
193
193
|
var _a, _b, _c, _d, _e;
|
|
194
|
-
if (!
|
|
194
|
+
if (!tr_utils_1.TrUtils.IsNull((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _a === void 0 ? void 0 : _a.Pulse) && !tr_utils_1.TrUtils.IsNull((_c = (_b = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _b === void 0 ? void 0 : _b.Pulse) === null || _c === void 0 ? void 0 : _c.V)) {
|
|
195
195
|
return { text: 'Pulse :' + ((_e = (_d = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _d === void 0 ? void 0 : _d.Pulse) === null || _e === void 0 ? void 0 : _e.V) + ' bpm', Width: 80 };
|
|
196
196
|
}
|
|
197
197
|
else {
|
|
@@ -200,7 +200,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
200
200
|
}
|
|
201
201
|
static GetHeight(CnstData) {
|
|
202
202
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
203
|
-
if (!
|
|
203
|
+
if (!tr_utils_1.TrUtils.IsNull((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _a === void 0 ? void 0 : _a.Height) && !tr_utils_1.TrUtils.IsNull((_c = (_b = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _b === void 0 ? void 0 : _b.Height) === null || _c === void 0 ? void 0 : _c.V)) {
|
|
204
204
|
return { text: 'Height :' + ((_e = (_d = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _d === void 0 ? void 0 : _d.Height) === null || _e === void 0 ? void 0 : _e.V) + ' ' + ((_g = (_f = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _f === void 0 ? void 0 : _f.Height) === null || _g === void 0 ? void 0 : _g.U), Width: 80 };
|
|
205
205
|
}
|
|
206
206
|
else {
|
|
@@ -209,7 +209,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
209
209
|
}
|
|
210
210
|
static GetBP(CnstData) {
|
|
211
211
|
var _a, _b, _c, _d, _e;
|
|
212
|
-
if (!
|
|
212
|
+
if (!tr_utils_1.TrUtils.IsNull((_a = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _a === void 0 ? void 0 : _a.BP) && !tr_utils_1.TrUtils.IsNull((_c = (_b = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _b === void 0 ? void 0 : _b.Height) === null || _c === void 0 ? void 0 : _c.U)) {
|
|
213
213
|
return { text: 'BP :' + ((_e = (_d = CnstData === null || CnstData === void 0 ? void 0 : CnstData.Vitals) === null || _d === void 0 ? void 0 : _d.BP) === null || _e === void 0 ? void 0 : _e.V) + ' mmHg', Width: 80 };
|
|
214
214
|
}
|
|
215
215
|
else {
|
|
@@ -237,7 +237,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
237
237
|
];
|
|
238
238
|
}
|
|
239
239
|
static GetCnsltDate(CnstData) {
|
|
240
|
-
if (!
|
|
240
|
+
if (!tr_utils_1.TrUtils.IsNull(CnstData.ClDate)) {
|
|
241
241
|
return my_date_1.MyDate.GetWeekDateAndTime(CnstData.ClDate);
|
|
242
242
|
}
|
|
243
243
|
else {
|
|
@@ -273,7 +273,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
static GetPhoneNumber(phone) {
|
|
276
|
-
if (!
|
|
276
|
+
if (!tr_utils_1.TrUtils.IsNull(phone)) {
|
|
277
277
|
return ' | ' + phone;
|
|
278
278
|
}
|
|
279
279
|
else {
|
|
@@ -281,7 +281,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
static DifferenceInYears(DOB) {
|
|
284
|
-
if (
|
|
284
|
+
if (tr_utils_1.TrUtils.IsNull(DOB)) {
|
|
285
285
|
return 'DOB Not Specified';
|
|
286
286
|
}
|
|
287
287
|
let Datei = my_date_1.MyDate.GetDateTimeNowInUTC();
|
|
@@ -347,7 +347,7 @@ class ConsultationLetterHeadPDFService {
|
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
349
|
static GetItemsTable(Items, Remarks) {
|
|
350
|
-
if (!
|
|
350
|
+
if (!tr_utils_1.TrUtils.IsNull(Items)) {
|
|
351
351
|
return {
|
|
352
352
|
style: 'tableExample',
|
|
353
353
|
marginTop: 3,
|