arco-support-request 0.0.65 → 0.0.68
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/README.md +3 -1
- package/arco-support-request.d.ts +32 -0
- package/arco-support-request.metadata.json +1 -0
- package/bundles/arco-support-request.umd.js +10956 -0
- package/bundles/arco-support-request.umd.js.map +1 -0
- package/bundles/arco-support-request.umd.min.js +2 -0
- package/bundles/arco-support-request.umd.min.js.map +1 -0
- package/esm2015/arco-support-request.js +33 -0
- package/esm2015/lib/Pipe/allpipe.pipe.js +110 -0
- package/esm2015/lib/Pipe/translate.pipe.js +31 -0
- package/esm2015/lib/arco-support-request.component.js +18 -0
- package/esm2015/lib/arco-support-request.module.js +20 -0
- package/esm2015/lib/arco-support-request.service.js +19 -0
- package/esm2015/lib/core/global.service.js +1778 -0
- package/esm2015/lib/core/handlebar-helper-register.js +182 -0
- package/esm2015/lib/core/static/jwt.js +8 -0
- package/esm2015/lib/entity-type-setup/activities-create/activities-create.component.js +105 -0
- package/esm2015/lib/entity-type-setup/activities-view/activities-view.component.js +46 -0
- package/esm2015/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.js +367 -0
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +867 -0
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.js +85 -0
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.js +958 -0
- package/esm2015/lib/entity-type-setup/interface/entityTypeInterface.js +51 -0
- package/esm2015/lib/entity-type-setup/interface/eventEnum.js +84 -0
- package/esm2015/lib/entity-type-setup/page-form-instance.js +65 -0
- package/esm2015/lib/entity-type-setup/page.interface.classes.js +40 -0
- package/esm2015/lib/entity-type-setup/service/entity-type-setup.service.js +1831 -0
- package/esm2015/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.js +266 -0
- package/esm2015/lib/search.pipe.js +19 -0
- package/esm2015/lib/support-request/action/action.component.js +104 -0
- package/esm2015/lib/support-request/case-list/case-list.component.js +371 -0
- package/esm2015/lib/support-request/home/home.component.js +23 -0
- package/esm2015/lib/support-request/pagination/pagination.component.js +34 -0
- package/esm2015/lib/support-request/request-flow/request-flow.component.js +687 -0
- package/esm2015/lib/support-request/self-service-flow/self-service-flow.component.js +76 -0
- package/esm2015/lib/support-request/support-request-create/support-request-create.component.js +270 -0
- package/esm2015/lib/support-request/support-request-details/support-request-details.component.js +508 -0
- package/esm2015/lib/support-request/support-request-index/support-request-index.component.js +16 -0
- package/esm2015/lib/support-request/support-request-routing.module.js +22 -0
- package/esm2015/lib/support-request/support-request.module.js +98 -0
- package/esm2015/lib/support-request/support-request.service.js +107 -0
- package/esm2015/lib/support-request/supportRequestInterface.js +2 -0
- package/esm2015/lib/task/Interfaces/TaskInterface.js +7 -0
- package/esm2015/lib/task/Services/task.service.js +251 -0
- package/esm2015/lib/templates/Pipe/translate.pipe.js +31 -0
- package/esm2015/lib/templates/attachmentsetup/attachment-interface.js +2 -0
- package/esm2015/lib/templates/attachmentsetup/attachment.service.js +196 -0
- package/esm2015/lib/templates/grid/grid-datatype/grid-datatype.component.js +37 -0
- package/esm2015/lib/templates/grid/grid-service.service.js +85 -0
- package/esm2015/lib/templates/grid/grid.component.js +436 -0
- package/esm2015/lib/templates/grid/inner-grid/inner-grid.component.js +15 -0
- package/esm2015/lib/templates/interface_enum/common-Interface.js +2 -0
- package/esm2015/lib/templates/interface_enum/common-enum.js +153 -0
- package/esm2015/lib/ticket/_interfaces/model.js +2 -0
- package/esm2015/lib/ticket/_ticket-services/ticket-api.service.js +232 -0
- package/esm2015/public-api.js +9 -0
- package/fesm2015/arco-support-request.js +10356 -0
- package/fesm2015/arco-support-request.js.map +1 -0
- package/lib/Pipe/allpipe.pipe.d.ts +19 -0
- package/lib/Pipe/translate.pipe.d.ts +7 -0
- package/lib/arco-support-request.component.d.ts +5 -0
- package/lib/arco-support-request.module.d.ts +2 -0
- package/lib/arco-support-request.service.d.ts +9 -0
- package/lib/core/global.service.d.ts +96 -0
- package/lib/core/handlebar-helper-register.d.ts +1 -0
- package/lib/core/static/jwt.d.ts +7 -0
- package/lib/entity-type-setup/activities-create/activities-create.component.d.ts +30 -0
- package/lib/entity-type-setup/activities-view/activities-view.component.d.ts +16 -0
- package/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.d.ts +67 -0
- package/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.d.ts +88 -0
- package/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.d.ts +11 -0
- package/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.d.ts +69 -0
- package/lib/entity-type-setup/interface/entityTypeInterface.d.ts +916 -0
- package/lib/entity-type-setup/interface/eventEnum.d.ts +161 -0
- package/lib/entity-type-setup/page-form-instance.d.ts +13 -0
- package/lib/entity-type-setup/page.interface.classes.d.ts +33 -0
- package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +604 -0
- package/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.d.ts +66 -0
- package/lib/search.pipe.d.ts +4 -0
- package/lib/support-request/action/action.component.d.ts +31 -0
- package/lib/support-request/case-list/case-list.component.d.ts +91 -0
- package/lib/support-request/home/home.component.d.ts +6 -0
- package/lib/support-request/pagination/pagination.component.d.ts +18 -0
- package/lib/support-request/request-flow/request-flow.component.d.ts +144 -0
- package/lib/support-request/self-service-flow/self-service-flow.component.d.ts +31 -0
- package/lib/support-request/support-request-create/support-request-create.component.d.ts +55 -0
- package/lib/support-request/support-request-details/support-request-details.component.d.ts +116 -0
- package/lib/support-request/support-request-index/support-request-index.component.d.ts +5 -0
- package/lib/support-request/support-request-routing.module.d.ts +2 -0
- package/lib/support-request/support-request.module.d.ts +2 -0
- package/lib/support-request/support-request.service.d.ts +35 -0
- package/lib/support-request/supportRequestInterface.d.ts +6 -0
- package/lib/task/Interfaces/TaskInterface.d.ts +132 -0
- package/lib/task/Services/task.service.d.ts +75 -0
- package/lib/templates/Pipe/translate.pipe.d.ts +7 -0
- package/lib/templates/attachmentsetup/attachment-interface.d.ts +90 -0
- package/lib/templates/attachmentsetup/attachment.service.d.ts +61 -0
- package/lib/templates/grid/grid-datatype/grid-datatype.component.d.ts +11 -0
- package/lib/templates/grid/grid-service.service.d.ts +40 -0
- package/lib/templates/grid/grid.component.d.ts +155 -0
- package/lib/templates/grid/inner-grid/inner-grid.component.d.ts +5 -0
- package/lib/templates/interface_enum/common-Interface.d.ts +90 -0
- package/lib/templates/interface_enum/common-enum.d.ts +129 -0
- package/lib/ticket/_interfaces/model.d.ts +192 -0
- package/lib/ticket/_ticket-services/ticket-api.service.d.ts +81 -0
- package/package.json +22 -11
- package/{src/public-api.ts → public-api.d.ts} +1 -6
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -18
- package/src/lib/Pipe/allpipe.pipe.ts +0 -127
- package/src/lib/Pipe/handlebar-helper-register.ts +0 -197
- package/src/lib/Pipe/translate.pipe.ts +0 -32
- package/src/lib/all-routing.ts +0 -61
- package/src/lib/arco-support-request.component.spec.ts +0 -25
- package/src/lib/arco-support-request.component.ts +0 -20
- package/src/lib/arco-support-request.module.ts +0 -19
- package/src/lib/arco-support-request.service.spec.ts +0 -16
- package/src/lib/arco-support-request.service.ts +0 -16
- package/src/lib/commonstyles/new-style-rtl.css +0 -381
- package/src/lib/commonstyles/styles.scss +0 -3984
- package/src/lib/core/encodeurl.service.ts +0 -23
- package/src/lib/core/global.service.ts +0 -1810
- package/src/lib/core/handlebar-helper-register.ts +0 -213
- package/src/lib/core/httpcancel.service.ts +0 -21
- package/src/lib/core/loader.service.ts +0 -19
- package/src/lib/core/loading-provider.service.ts +0 -64
- package/src/lib/core/managehttp.interceptor.ts +0 -49
- package/src/lib/core/static/jwt.ts +0 -7
- package/src/lib/core/token.service.ts +0 -37
- package/src/lib/entity-type-setup/activities-create/activities-create.component.html +0 -68
- package/src/lib/entity-type-setup/activities-create/activities-create.component.scss +0 -0
- package/src/lib/entity-type-setup/activities-create/activities-create.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/activities-create/activities-create.component.ts +0 -121
- package/src/lib/entity-type-setup/activities-view/activities-view.component.html +0 -19
- package/src/lib/entity-type-setup/activities-view/activities-view.component.scss +0 -3
- package/src/lib/entity-type-setup/activities-view/activities-view.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/activities-view/activities-view.component.ts +0 -53
- package/src/lib/entity-type-setup/activity-template/activity-template.component.html +0 -73
- package/src/lib/entity-type-setup/activity-template/activity-template.component.scss +0 -0
- package/src/lib/entity-type-setup/activity-template/activity-template.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/activity-template/activity-template.component.ts +0 -208
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.html +0 -356
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.scss +0 -50
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.ts +0 -346
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.html +0 -92
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.scss +0 -90
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.ts +0 -74
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.html +0 -57
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.scss +0 -16
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.ts +0 -59
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.html +0 -102
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.scss +0 -3
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.ts +0 -498
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.html +0 -408
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.scss +0 -123
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.ts +0 -1051
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.ts +0 -84
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.html +0 -194
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.scss +0 -81
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.ts +0 -1466
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.html +0 -137
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.ts +0 -1232
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.html +0 -329
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.ts +0 -520
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.html +0 -609
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.scss +0 -99
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.ts +0 -784
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.html +0 -632
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.scss +0 -261
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.ts +0 -765
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.html +0 -368
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.ts +0 -334
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.html +0 -500
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.ts +0 -862
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.html +0 -139
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.scss +0 -14
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.ts +0 -347
- package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.html +0 -150
- package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.scss +0 -27
- package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.ts +0 -384
- package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.html +0 -305
- package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.scss +0 -31
- package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.ts +0 -572
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.html +0 -610
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.scss +0 -50
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.ts +0 -633
- package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.html +0 -609
- package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.scss +0 -4
- package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.ts +0 -702
- package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.html +0 -530
- package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.scss +0 -12
- package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.ts +0 -767
- package/src/lib/entity-type-setup/entity-type-setup-routing.module.ts +0 -92
- package/src/lib/entity-type-setup/entity-type-setup.module.ts +0 -114
- package/src/lib/entity-type-setup/events/events.component.html +0 -211
- package/src/lib/entity-type-setup/events/events.component.scss +0 -61
- package/src/lib/entity-type-setup/events/events.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/events/events.component.ts +0 -517
- package/src/lib/entity-type-setup/field-type/field-type.component.html +0 -447
- package/src/lib/entity-type-setup/field-type/field-type.component.scss +0 -0
- package/src/lib/entity-type-setup/field-type/field-type.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/field-type/field-type.component.ts +0 -531
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.html +0 -152
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.scss +0 -24
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.ts +0 -35
- package/src/lib/entity-type-setup/instruction/instruction.component.html +0 -239
- package/src/lib/entity-type-setup/instruction/instruction.component.scss +0 -18
- package/src/lib/entity-type-setup/instruction/instruction.component.ts +0 -450
- package/src/lib/entity-type-setup/interface/entityTypeInterface.ts +0 -1045
- package/src/lib/entity-type-setup/interface/eventEnum.ts +0 -191
- package/src/lib/entity-type-setup/issue-group/issue-group.component.html +0 -77
- package/src/lib/entity-type-setup/issue-group/issue-group.component.scss +0 -0
- package/src/lib/entity-type-setup/issue-group/issue-group.component.ts +0 -221
- package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.html +0 -192
- package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.scss +0 -10
- package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.ts +0 -418
- package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.html +0 -42
- package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.scss +0 -8
- package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.ts +0 -52
- package/src/lib/entity-type-setup/my-task/my-task.component.html +0 -599
- package/src/lib/entity-type-setup/my-task/my-task.component.scss +0 -0
- package/src/lib/entity-type-setup/my-task/my-task.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/my-task/my-task.component.ts +0 -770
- package/src/lib/entity-type-setup/page-form-instance.ts +0 -73
- package/src/lib/entity-type-setup/page.interface.classes.ts +0 -43
- package/src/lib/entity-type-setup/service/dropdown.directive.ts +0 -12
- package/src/lib/entity-type-setup/service/entity-type-setup.service.ts +0 -2821
- package/src/lib/entity-type-setup/task-crete/task-crete.component.html +0 -61
- package/src/lib/entity-type-setup/task-crete/task-crete.component.scss +0 -0
- package/src/lib/entity-type-setup/task-crete/task-crete.component.ts +0 -117
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.html +0 -95
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.scss +0 -23
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.ts +0 -213
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.html +0 -222
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.scss +0 -14
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.spec.ts +0 -25
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.ts +0 -328
- package/src/lib/search.pipe.spec.ts +0 -8
- package/src/lib/search.pipe.ts +0 -21
- package/src/lib/support-request/action/action.component.html +0 -122
- package/src/lib/support-request/action/action.component.scss +0 -6
- package/src/lib/support-request/action/action.component.ts +0 -179
- package/src/lib/support-request/case-list/case-list.component.html +0 -220
- package/src/lib/support-request/case-list/case-list.component.scss +0 -208
- package/src/lib/support-request/case-list/case-list.component.ts +0 -433
- package/src/lib/support-request/home/home.component.html +0 -16
- package/src/lib/support-request/home/home.component.scss +0 -4
- package/src/lib/support-request/home/home.component.ts +0 -23
- package/src/lib/support-request/pagination/pagination.component.html +0 -71
- package/src/lib/support-request/pagination/pagination.component.scss +0 -77
- package/src/lib/support-request/pagination/pagination.component.ts +0 -29
- package/src/lib/support-request/request-flow/request-flow.component.html +0 -330
- package/src/lib/support-request/request-flow/request-flow.component.scss +0 -2
- package/src/lib/support-request/request-flow/request-flow.component.ts +0 -846
- package/src/lib/support-request/self-service-flow/self-service-flow.component.html +0 -64
- package/src/lib/support-request/self-service-flow/self-service-flow.component.scss +0 -2
- package/src/lib/support-request/self-service-flow/self-service-flow.component.ts +0 -87
- package/src/lib/support-request/support-request-create/support-request-create.component.html +0 -103
- package/src/lib/support-request/support-request-create/support-request-create.component.scss +0 -39
- package/src/lib/support-request/support-request-create/support-request-create.component.ts +0 -319
- package/src/lib/support-request/support-request-details/support-request-details.component.html +0 -268
- package/src/lib/support-request/support-request-details/support-request-details.component.scss +0 -319
- package/src/lib/support-request/support-request-details/support-request-details.component.ts +0 -678
- package/src/lib/support-request/support-request-index/support-request-index.component.html +0 -4
- package/src/lib/support-request/support-request-index/support-request-index.component.scss +0 -0
- package/src/lib/support-request/support-request-index/support-request-index.component.ts +0 -16
- package/src/lib/support-request/support-request-list/support-request-list.component.html +0 -455
- package/src/lib/support-request/support-request-list/support-request-list.component.scss +0 -0
- package/src/lib/support-request/support-request-list/support-request-list.component.ts +0 -869
- package/src/lib/support-request/support-request-routing.module.ts +0 -21
- package/src/lib/support-request/support-request.module.ts +0 -103
- package/src/lib/support-request/support-request.service.ts +0 -145
- package/src/lib/support-request/supportRequestInterface.ts +0 -6
- package/src/lib/task/Interfaces/TaskInterface.ts +0 -164
- package/src/lib/task/Services/task.service.spec.ts +0 -16
- package/src/lib/task/Services/task.service.ts +0 -354
- package/src/lib/task/task-routing.module.ts +0 -12
- package/src/lib/task/task.module.ts +0 -23
- package/src/lib/template/template.component.html +0 -22
- package/src/lib/template/template.component.scss +0 -0
- package/src/lib/template/template.component.spec.ts +0 -25
- package/src/lib/template/template.component.ts +0 -24
- package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.html +0 -83
- package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.scss +0 -0
- package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.ts +0 -120
- package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.html +0 -134
- package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.scss +0 -0
- package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.ts +0 -185
- package/src/lib/templates/attachmentsetup/attachment-api.ts +0 -55
- package/src/lib/templates/attachmentsetup/attachment-interface.ts +0 -100
- package/src/lib/templates/attachmentsetup/attachment.service.ts +0 -233
- package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.html +0 -97
- package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.scss +0 -10
- package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.ts +0 -367
- package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.html +0 -49
- package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.scss +0 -0
- package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.ts +0 -226
- package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.html +0 -140
- package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.scss +0 -8
- package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.ts +0 -176
- package/src/lib/templates/card/card.component.html +0 -56
- package/src/lib/templates/card/card.component.scss +0 -0
- package/src/lib/templates/card/card.component.spec.ts +0 -25
- package/src/lib/templates/card/card.component.ts +0 -306
- package/src/lib/templates/dashboard/dashboard.component.html +0 -333
- package/src/lib/templates/dashboard/dashboard.component.scss +0 -16
- package/src/lib/templates/dashboard/dashboard.component.ts +0 -2290
- package/src/lib/templates/details/details.component.html +0 -233
- package/src/lib/templates/details/details.component.scss +0 -0
- package/src/lib/templates/details/details.component.spec.ts +0 -25
- package/src/lib/templates/details/details.component.ts +0 -15
- package/src/lib/templates/detailstwo/detailstwo.component.html +0 -694
- package/src/lib/templates/detailstwo/detailstwo.component.scss +0 -0
- package/src/lib/templates/detailstwo/detailstwo.component.spec.ts +0 -25
- package/src/lib/templates/detailstwo/detailstwo.component.ts +0 -15
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.html +0 -1
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.scss +0 -0
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.spec.ts +0 -25
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.ts +0 -15
- package/src/lib/templates/grid/grid-datatype/grid-datatype.component.ts +0 -39
- package/src/lib/templates/grid/grid-service.service.ts +0 -140
- package/src/lib/templates/grid/grid.component.html +0 -270
- package/src/lib/templates/grid/grid.component.scss +0 -99
- package/src/lib/templates/grid/grid.component.spec.ts +0 -25
- package/src/lib/templates/grid/grid.component.ts +0 -458
- package/src/lib/templates/grid/inner-grid/inner-grid.component.html +0 -1
- package/src/lib/templates/grid/inner-grid/inner-grid.component.scss +0 -0
- package/src/lib/templates/grid/inner-grid/inner-grid.component.spec.ts +0 -25
- package/src/lib/templates/grid/inner-grid/inner-grid.component.ts +0 -15
- package/src/lib/templates/home/home.component.html +0 -251
- package/src/lib/templates/home/home.component.scss +0 -20
- package/src/lib/templates/home/home.component.spec.ts +0 -25
- package/src/lib/templates/home/home.component.ts +0 -15
- package/src/lib/templates/interface_enum/common-Interface.ts +0 -107
- package/src/lib/templates/interface_enum/common-enum.ts +0 -147
- package/src/lib/templates/interface_enum/icon-class.ts +0 -1149
- package/src/lib/templates/leftside/leftside.component.html +0 -77
- package/src/lib/templates/leftside/leftside.component.scss +0 -0
- package/src/lib/templates/leftside/leftside.component.spec.ts +0 -25
- package/src/lib/templates/leftside/leftside.component.ts +0 -238
- package/src/lib/templates/login/login.component.html +0 -93
- package/src/lib/templates/login/login.component.scss +0 -110
- package/src/lib/templates/login/login.component.spec.ts +0 -25
- package/src/lib/templates/login/login.component.ts +0 -142
- package/src/lib/templates/main-content/main-content.component.html +0 -31
- package/src/lib/templates/main-content/main-content.component.scss +0 -6
- package/src/lib/templates/main-content/main-content.component.spec.ts +0 -25
- package/src/lib/templates/main-content/main-content.component.ts +0 -24
- package/src/lib/templates/menu-item/child-menu/child-menu.component.html +0 -5
- package/src/lib/templates/menu-item/child-menu/child-menu.component.scss +0 -3
- package/src/lib/templates/menu-item/child-menu/child-menu.component.ts +0 -22
- package/src/lib/templates/menu-item/menu-item.component.html +0 -25
- package/src/lib/templates/menu-item/menu-item.component.scss +0 -11
- package/src/lib/templates/menu-item/menu-item.component.ts +0 -29
- package/src/lib/templates/pagination/pagination.component.html +0 -71
- package/src/lib/templates/pagination/pagination.component.scss +0 -73
- package/src/lib/templates/pagination/pagination.component.ts +0 -29
- package/src/lib/templates/pie-chart/pie-chart.component.html +0 -0
- package/src/lib/templates/pie-chart/pie-chart.component.scss +0 -0
- package/src/lib/templates/pie-chart/pie-chart.component.ts +0 -14
- package/src/lib/templates/pipe/multiple-search.pipe.ts +0 -28
- package/src/lib/templates/pipe/simple-search.pipe.ts +0 -18
- package/src/lib/templates/pipe/translate.pipe.ts +0 -31
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.html +0 -16
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.scss +0 -0
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.spec.ts +0 -25
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.ts +0 -59
- package/src/lib/templates/table/table.component.html +0 -310
- package/src/lib/templates/table/table.component.scss +0 -0
- package/src/lib/templates/table/table.component.spec.ts +0 -25
- package/src/lib/templates/table/table.component.ts +0 -52
- package/src/lib/templates/template.service.ts +0 -43
- package/src/lib/templates/templates-routing.module.ts +0 -21
- package/src/lib/templates/templates.module.ts +0 -80
- package/src/lib/templates/topnav/topnav.component.html +0 -172
- package/src/lib/templates/topnav/topnav.component.scss +0 -10
- package/src/lib/templates/topnav/topnav.component.spec.ts +0 -25
- package/src/lib/templates/topnav/topnav.component.ts +0 -59
- package/src/lib/ticket/_interfaces/master-models.ts +0 -66
- package/src/lib/ticket/_interfaces/model.ts +0 -252
- package/src/lib/ticket/_ticket-services/ticket-api.service.ts +0 -319
- package/src/lib/ticket/_ticket-services/ticket-master-api.service.ts +0 -169
- package/src/lib/ticket/_ticket-services/ticket-priority.service.ts +0 -86
- package/src/lib/ticket/_ticket-services/ticketchannel.service.ts +0 -107
- package/src/lib/ticket/ticket-routing.module.ts +0 -12
- package/src/lib/ticket/ticket.module.ts +0 -29
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -25
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
|
@@ -1,2290 +0,0 @@
|
|
|
1
|
-
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import * as Highcharts from 'highcharts';
|
|
5
|
-
import { GlobalService } from '../../core/global.service';
|
|
6
|
-
import { TicketApiService } from '../../ticket/_ticket-services/ticket-api.service';
|
|
7
|
-
import { TemplateService } from '../template.service';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'app-dashboard',
|
|
12
|
-
templateUrl: './dashboard.component.html',
|
|
13
|
-
styleUrls: ['./dashboard.component.scss']
|
|
14
|
-
})
|
|
15
|
-
export class DashboardComponent implements OnInit {
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
-
private ticketApi: TicketApiService,
|
|
19
|
-
private globalService: GlobalService,
|
|
20
|
-
private router: Router,
|
|
21
|
-
private route: ActivatedRoute,
|
|
22
|
-
private service: TemplateService
|
|
23
|
-
) { }
|
|
24
|
-
|
|
25
|
-
ngOnInit(): void {
|
|
26
|
-
this.route.paramMap.subscribe((res) => {
|
|
27
|
-
this.getChartsData();
|
|
28
|
-
this.setDesignForTaskStatus();
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
taskStatusData: any[] = [
|
|
34
|
-
{ StatusName: "Done", Counts: 4 },
|
|
35
|
-
{ StatusName: "NotDone", Counts: 4 },
|
|
36
|
-
{ StatusName: "Close", Counts: 2 },
|
|
37
|
-
]
|
|
38
|
-
appId ="Productivity";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
ChartData: any;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
chartType: any[] = [
|
|
45
|
-
{ Id: 1, Value: "pie" },
|
|
46
|
-
{ Id: 2, Value: "bar" },
|
|
47
|
-
{ Id: 3, Value: "column" },
|
|
48
|
-
{ Id: 4, Value: "spline" },
|
|
49
|
-
];
|
|
50
|
-
|
|
51
|
-
openRequestByMonth: any[] = [
|
|
52
|
-
{ value: "OpenMonth", Label: "Open Month" },
|
|
53
|
-
{ value: "OpenCurrentMonth", Label: "Open CurrentMonth" },
|
|
54
|
-
{ value: "ClosedMonth", Label: "Closed Month" },
|
|
55
|
-
{ value: "ClosedCurrentMonth", Label: "Closed CurrentMonth" },
|
|
56
|
-
];
|
|
57
|
-
|
|
58
|
-
openRequestByWeekWise: any[] = [
|
|
59
|
-
{ value: "openedPrevious", Label: "Opened Previous" },
|
|
60
|
-
{ value: "openedCurrent", Label: "Opened Current" },
|
|
61
|
-
{ value: "closedPrevious", Label: "Closed Previous" },
|
|
62
|
-
{ value: "closedCurrent", Label: "Closed Current" },
|
|
63
|
-
]
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
ticketNewCount: number = 0;
|
|
67
|
-
ticketClosedCount: number = 0;
|
|
68
|
-
ticketResolvedCount: number = 0;
|
|
69
|
-
ticketCancelCount: number = 0;
|
|
70
|
-
ticketProgressCount: number = 0;
|
|
71
|
-
ticketInProgressCount: number = 0;
|
|
72
|
-
ticketReOpenCount: number = 0;
|
|
73
|
-
|
|
74
|
-
getTaskStatus() {
|
|
75
|
-
this.service.getTaskStatus().subscribe((x: any) => this.taskStatusData = x);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
setDesignForTaskStatus() {
|
|
79
|
-
|
|
80
|
-
this.taskStatusData.map((x) => {
|
|
81
|
-
if (x.StatusName == 'Done') {
|
|
82
|
-
let design = { Color: 'white', Background: '#64cceb' };
|
|
83
|
-
Object.assign(x, design);
|
|
84
|
-
}
|
|
85
|
-
if (x.StatusName == 'NotDone') {
|
|
86
|
-
let design = { Color: 'white', Background: '#a39c9c' };
|
|
87
|
-
Object.assign(x, design);
|
|
88
|
-
}
|
|
89
|
-
if (x.StatusName == 'Close') {
|
|
90
|
-
let design = { Color: 'white', Background: '#e9d43d' };
|
|
91
|
-
Object.assign(x, design);
|
|
92
|
-
}
|
|
93
|
-
})
|
|
94
|
-
console.log('taskstatusdata', this.taskStatusData);
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
getChartsData() {
|
|
99
|
-
|
|
100
|
-
this.ticketApi.getTicketCharts().subscribe(
|
|
101
|
-
(res) => {
|
|
102
|
-
|
|
103
|
-
this.ChartData = res;
|
|
104
|
-
this.ticketStatusData = res.StatusWithCounts;
|
|
105
|
-
this.getTicketDatas()
|
|
106
|
-
this.setStatusChartData();
|
|
107
|
-
|
|
108
|
-
this.ticketDepartmentData = res.OpenRequestsByDepartment;
|
|
109
|
-
this.setDepartmentChartData()
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
this.ticketPriorityData = res.OpenRequestsByPriority;
|
|
113
|
-
this.setPriorityChartData()
|
|
114
|
-
|
|
115
|
-
this.ticketTicketTypeData = res.OpenRequestsByTicketType;
|
|
116
|
-
this.setTicketTypeChartData()
|
|
117
|
-
|
|
118
|
-
this.ticketCategoryData = res.OpenRequestsByCategory;
|
|
119
|
-
this.setCategoryChartData()
|
|
120
|
-
|
|
121
|
-
this.ticketMonthData = res.OpenPrevMonthRequested;
|
|
122
|
-
this.setMonthChartData()
|
|
123
|
-
|
|
124
|
-
this.ticketOpenPrevWeekRequestedData = res.OpenPrevWeekRequested;
|
|
125
|
-
|
|
126
|
-
this.ticketOpenCurrentWeekRequestedData = res.OpenCurrentWeekRequested;
|
|
127
|
-
|
|
128
|
-
this.ticketClosedPrevWeekRequestedData = res.ClosedPrevWeekRequested;
|
|
129
|
-
|
|
130
|
-
this.ticketClosedCurrentWeekRequestedData = res.ClosedCurrentWeekRequested;
|
|
131
|
-
this.getWeekCharts();
|
|
132
|
-
|
|
133
|
-
this.ticketCurrentMonthData = res.OpenCurrentMonthRequested;
|
|
134
|
-
|
|
135
|
-
this.ticketClosedMonthData = res.ClosedPrevMonthRequested;
|
|
136
|
-
|
|
137
|
-
this.ticketClosedCurrentMonthData = res.ClosedCurrentMonthRequested;
|
|
138
|
-
|
|
139
|
-
this.GetOpenMonthCharts();
|
|
140
|
-
},
|
|
141
|
-
(error) => {
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
monthwisechart: string = "OpenMonth";
|
|
148
|
-
GetOpenMonthCharts() {
|
|
149
|
-
switch (this.monthwisechart) {
|
|
150
|
-
case "OpenMonth": {
|
|
151
|
-
this.getmonthwisechart();
|
|
152
|
-
this.setMonthChartData();
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
case "OpenCurrentMonth": {
|
|
157
|
-
this.getmonthwisechart();
|
|
158
|
-
this.setCurrentMonthChartData();
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
case "ClosedMonth": {
|
|
163
|
-
this.getmonthwisechart();
|
|
164
|
-
this.setClosedMonthChartData()
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
case "ClosedCurrentMonth": {
|
|
169
|
-
this.getmonthwisechart();
|
|
170
|
-
this.setClosedCurrentMonthChartData();
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
default: {
|
|
174
|
-
this.getmonthwisechart();
|
|
175
|
-
this.setCurrentMonthChartData();
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
getTicketDatas() {
|
|
182
|
-
this.ticketNewCount = this.ticketStatusData.filter(x => x.StatusId == 1)[0].Count;
|
|
183
|
-
this.ticketClosedCount = this.ticketStatusData.filter(x => x.StatusId == 2)[0].Count;
|
|
184
|
-
this.ticketResolvedCount = this.ticketStatusData.filter(x => x.StatusId == 4)[0].Count;
|
|
185
|
-
this.ticketCancelCount = this.ticketStatusData.filter(x => x.StatusId == 6)[0].Count;
|
|
186
|
-
this.ticketReOpenCount = this.ticketStatusData.filter(x => x.StatusId == 5)[0].Count;
|
|
187
|
-
this.ticketInProgressCount = this.ticketStatusData.filter(x => x.StatusId == 3)[0].Count;
|
|
188
|
-
this.ticketProgressCount = this.ticketStatusData.filter(x => x.StatusId == 9)[0].Count;
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
highcharts = Highcharts;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
/* #region Status */
|
|
197
|
-
totalStatusLabour: number = 0;
|
|
198
|
-
ticketStatusData: any = [];
|
|
199
|
-
chartOptions: any = {};
|
|
200
|
-
barChatOptions: any = {};
|
|
201
|
-
ddlTicketStatus: string = "pie";
|
|
202
|
-
ddlTicketPriority: string = "pie";
|
|
203
|
-
ddlTicketDepartment: string = "pie";
|
|
204
|
-
ddlTicketType: string = "pie";
|
|
205
|
-
ddlTicketCategory: string = "pie";
|
|
206
|
-
TicketStatus: any;
|
|
207
|
-
|
|
208
|
-
// changeTicketStatuschart(event) {
|
|
209
|
-
//
|
|
210
|
-
// this.setStatusChartData(this.ddlTicketStatus);
|
|
211
|
-
// }
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
setStatusChartData() {
|
|
218
|
-
|
|
219
|
-
this.totalStatusLabour = 0;
|
|
220
|
-
let _data = [];
|
|
221
|
-
|
|
222
|
-
let data = this.TicketStatus;
|
|
223
|
-
|
|
224
|
-
for (let index = 0; index < this.ticketStatusData.length; index++) {
|
|
225
|
-
let temp = [this.ticketStatusData[index].StatusName, this.ticketStatusData[index].Count];
|
|
226
|
-
_data.push(temp)
|
|
227
|
-
this.totalStatusLabour = this.totalStatusLabour + this.ticketStatusData[index].Count;
|
|
228
|
-
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
this.getStatusChart(_data)
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
showStatus: boolean = false;
|
|
235
|
-
getStatusChart(data) {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
// if (this.ddlTicketStatus == "donut") {
|
|
239
|
-
// this.chartOptions = {
|
|
240
|
-
// chart: {
|
|
241
|
-
// type: 'pie',
|
|
242
|
-
// plotBorderWidth: null,
|
|
243
|
-
// plotShadow: false
|
|
244
|
-
// },
|
|
245
|
-
// title: {
|
|
246
|
-
// text: ''
|
|
247
|
-
// },
|
|
248
|
-
// // title: {
|
|
249
|
-
// // text: 'Ticket Status'
|
|
250
|
-
// // },
|
|
251
|
-
// // tooltip : {
|
|
252
|
-
// // pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
253
|
-
// // },
|
|
254
|
-
// plotOptions: {
|
|
255
|
-
// pie: {
|
|
256
|
-
// allowPointSelect: true,
|
|
257
|
-
// cursor: 'pointer',
|
|
258
|
-
// center: ['50%', '50%'],
|
|
259
|
-
// size: '75%',
|
|
260
|
-
// innerSize: '50%',
|
|
261
|
-
// dataLabels: {
|
|
262
|
-
// enabled: true
|
|
263
|
-
// },
|
|
264
|
-
|
|
265
|
-
// showInLegend: true
|
|
266
|
-
|
|
267
|
-
// }
|
|
268
|
-
// },
|
|
269
|
-
// credits: { enabled: false },
|
|
270
|
-
// legend: { enabled: false },
|
|
271
|
-
// series: [{
|
|
272
|
-
// type: 'pie',
|
|
273
|
-
// name: 'Count',
|
|
274
|
-
// data: data,
|
|
275
|
-
|
|
276
|
-
// }]
|
|
277
|
-
// }
|
|
278
|
-
|
|
279
|
-
// }
|
|
280
|
-
if (this.ddlTicketStatus == "bar") {
|
|
281
|
-
this.chartOptions = {
|
|
282
|
-
chart: {
|
|
283
|
-
type: 'bar'
|
|
284
|
-
},
|
|
285
|
-
credits: { enabled: false },
|
|
286
|
-
legend: { enabled: false },
|
|
287
|
-
title: {
|
|
288
|
-
text: ''
|
|
289
|
-
},
|
|
290
|
-
yAxis: { visible: false },
|
|
291
|
-
xAxis: {
|
|
292
|
-
lineColor: '#fff',
|
|
293
|
-
categories: ['New', 'Closed', 'InProgress', 'Resolved', 'Reopen', 'Cancel', 'Progress'],
|
|
294
|
-
},
|
|
295
|
-
plotOptions: {
|
|
296
|
-
series: {
|
|
297
|
-
borderRadius: 5,
|
|
298
|
-
colorByPoint: true,
|
|
299
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue']
|
|
300
|
-
} as any,
|
|
301
|
-
|
|
302
|
-
},
|
|
303
|
-
// title: { text: 'Ticket Status', verticalAlign: 'top' },
|
|
304
|
-
series: [{
|
|
305
|
-
type: 'bar',
|
|
306
|
-
|
|
307
|
-
data: data
|
|
308
|
-
}]
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
else if (this.ddlTicketStatus == "pie") {
|
|
313
|
-
this.chartOptions = {
|
|
314
|
-
chart: {
|
|
315
|
-
type: 'pie',
|
|
316
|
-
plotBorderWidth: null,
|
|
317
|
-
plotShadow: false
|
|
318
|
-
},
|
|
319
|
-
title: {
|
|
320
|
-
text: ''
|
|
321
|
-
},
|
|
322
|
-
// title: {
|
|
323
|
-
// text: 'Ticket Open TicketType'
|
|
324
|
-
// },
|
|
325
|
-
// subtitle: {
|
|
326
|
-
// text: 'Ticket Status'
|
|
327
|
-
// },
|
|
328
|
-
// tooltip : {
|
|
329
|
-
// pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
330
|
-
// },
|
|
331
|
-
plotOptions: {
|
|
332
|
-
pie: {
|
|
333
|
-
allowPointSelect: true,
|
|
334
|
-
cursor: 'pointer',
|
|
335
|
-
dataLabels: {
|
|
336
|
-
enabled: true
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
showInLegend: false
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
credits: { enabled: false },
|
|
344
|
-
legend: { enabled: false },
|
|
345
|
-
series: [{
|
|
346
|
-
type: 'pie',
|
|
347
|
-
name: 'Count',
|
|
348
|
-
data: data,
|
|
349
|
-
|
|
350
|
-
}]
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
// if (this.ddlTicketStatus == "pie") {
|
|
354
|
-
// this.chartOptions = {
|
|
355
|
-
// chart: {
|
|
356
|
-
// type: 'pie',
|
|
357
|
-
// plotBorderWidth: null,
|
|
358
|
-
// plotShadow: false
|
|
359
|
-
// },
|
|
360
|
-
// title: {
|
|
361
|
-
// text: 'Ticket Status'
|
|
362
|
-
// },
|
|
363
|
-
// // tooltip : {
|
|
364
|
-
// // pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
365
|
-
// // },
|
|
366
|
-
// plotOptions: {
|
|
367
|
-
// pie: {
|
|
368
|
-
// allowPointSelect: true,
|
|
369
|
-
// cursor: 'pointer',
|
|
370
|
-
// dataLabels: {
|
|
371
|
-
// enabled: true
|
|
372
|
-
// },
|
|
373
|
-
// showInLegend: true
|
|
374
|
-
|
|
375
|
-
// }
|
|
376
|
-
|
|
377
|
-
// },
|
|
378
|
-
// series: [{
|
|
379
|
-
// type: 'pie',
|
|
380
|
-
// name: 'Count',
|
|
381
|
-
// data: data,
|
|
382
|
-
|
|
383
|
-
// }]
|
|
384
|
-
// }
|
|
385
|
-
// }
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
// else if (this.ddlTicketStatus == "bar") {
|
|
389
|
-
|
|
390
|
-
// this.chartOptions = {
|
|
391
|
-
// chart: {
|
|
392
|
-
// type: 'bar'
|
|
393
|
-
// },
|
|
394
|
-
// title: {
|
|
395
|
-
// text: 'Ticket Status'
|
|
396
|
-
// },
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
// xAxis: {
|
|
400
|
-
// categories: ['New', 'Closed', 'InProgress', 'Resolved', 'Reopen', 'Cancel', 'Progress'], title: {
|
|
401
|
-
// text: null
|
|
402
|
-
// }
|
|
403
|
-
// },
|
|
404
|
-
// yAxis: {
|
|
405
|
-
// min: 0, title: {
|
|
406
|
-
|
|
407
|
-
// },
|
|
408
|
-
// labels: {
|
|
409
|
-
// overflow: 'justify'
|
|
410
|
-
// },
|
|
411
|
-
|
|
412
|
-
// },
|
|
413
|
-
// plotOptions: {
|
|
414
|
-
// bar: {
|
|
415
|
-
// dataLabels: {
|
|
416
|
-
// enabled: true
|
|
417
|
-
// }
|
|
418
|
-
// }
|
|
419
|
-
// },
|
|
420
|
-
// credits: {
|
|
421
|
-
// enabled: false
|
|
422
|
-
// },
|
|
423
|
-
// series: [
|
|
424
|
-
// {
|
|
425
|
-
// type: 'bar',
|
|
426
|
-
// name: 'Status',
|
|
427
|
-
// data: data
|
|
428
|
-
// },
|
|
429
|
-
|
|
430
|
-
// ]
|
|
431
|
-
// };
|
|
432
|
-
|
|
433
|
-
// }
|
|
434
|
-
|
|
435
|
-
else if (this.ddlTicketStatus == "column") {
|
|
436
|
-
this.chartOptions = {
|
|
437
|
-
|
|
438
|
-
chart: {
|
|
439
|
-
type: 'column'
|
|
440
|
-
},
|
|
441
|
-
title: {
|
|
442
|
-
text: ''
|
|
443
|
-
},
|
|
444
|
-
|
|
445
|
-
xAxis: {
|
|
446
|
-
categories: ['New', 'Closed', 'InProgress', 'Resolved', 'Reopen', 'Cancel', 'Progress'],
|
|
447
|
-
crosshair: true,
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
yAxis: {
|
|
451
|
-
min: 0,
|
|
452
|
-
title: {
|
|
453
|
-
text: ''
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
// tooltip : {
|
|
457
|
-
// headerFormat: '<span style = "font-size:10px">{point.key}</span><table>',
|
|
458
|
-
// pointFormat: '<tr><td style = "color:{series.color};padding:0">{series.name}: </td>' +
|
|
459
|
-
// '<td style = "padding:0"><b>{point.y:.1f} mm</b></td></tr>', footerFormat: '</table>', shared: true, useHTML: true
|
|
460
|
-
// },
|
|
461
|
-
plotOptions: {
|
|
462
|
-
column: {
|
|
463
|
-
pointPadding: 0.2,
|
|
464
|
-
borderWidth: 0
|
|
465
|
-
},
|
|
466
|
-
series: {
|
|
467
|
-
colorByPoint: true,
|
|
468
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue']
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
series: [{
|
|
472
|
-
type: 'column',
|
|
473
|
-
name: 'Status',
|
|
474
|
-
data: data
|
|
475
|
-
},
|
|
476
|
-
]
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
else if (this.ddlTicketStatus == "spline") {
|
|
480
|
-
this.chartOptions = {
|
|
481
|
-
chart: {
|
|
482
|
-
type: "spline"
|
|
483
|
-
},
|
|
484
|
-
title: {
|
|
485
|
-
text: ''
|
|
486
|
-
},
|
|
487
|
-
xAxis: {
|
|
488
|
-
categories: ['New', 'Closed', 'InProgress', 'Resolved', 'Reopen', 'Cancel', 'Progress']
|
|
489
|
-
},
|
|
490
|
-
yAxis: {
|
|
491
|
-
title: {
|
|
492
|
-
text: "Status"
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
plotOptions: {
|
|
496
|
-
series: {
|
|
497
|
-
colorByPoint: true,
|
|
498
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue']
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
series: [{
|
|
502
|
-
name: 'Count',
|
|
503
|
-
type: "spline",
|
|
504
|
-
data: data
|
|
505
|
-
}
|
|
506
|
-
]
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
this.showStatus = true;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
/* #endregion */
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
/* #region Priority */
|
|
521
|
-
|
|
522
|
-
ticketPriorityData: any = [];
|
|
523
|
-
setPriorityChartData() {
|
|
524
|
-
let _data = [];
|
|
525
|
-
for (let index = 0; index < this.ticketPriorityData.length; index++) {
|
|
526
|
-
let temp = [this.ticketPriorityData[index].PriorityName, this.ticketPriorityData[index].Count];
|
|
527
|
-
_data.push(temp)
|
|
528
|
-
|
|
529
|
-
}
|
|
530
|
-
this.getPriorityChart(_data)
|
|
531
|
-
}
|
|
532
|
-
chartPriorityOptions: any = {}
|
|
533
|
-
showPriority: boolean = false;
|
|
534
|
-
getPriorityChart(data) {
|
|
535
|
-
|
|
536
|
-
// if (this.ddlTicketPriority == "donut") {
|
|
537
|
-
// this.chartPriorityOptions = {
|
|
538
|
-
// chart: {
|
|
539
|
-
// type: 'pie',
|
|
540
|
-
// plotBorderWidth: null,
|
|
541
|
-
// plotShadow: false
|
|
542
|
-
// },
|
|
543
|
-
// title: {
|
|
544
|
-
// text: ''
|
|
545
|
-
// },
|
|
546
|
-
// // title: {
|
|
547
|
-
// // text: 'Ticket Status'
|
|
548
|
-
// // },
|
|
549
|
-
// // tooltip : {
|
|
550
|
-
// // pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
551
|
-
// // },
|
|
552
|
-
// plotOptions: {
|
|
553
|
-
// pie: {
|
|
554
|
-
// allowPointSelect: true,
|
|
555
|
-
// cursor: 'pointer',
|
|
556
|
-
// center: ['50%', '50%'],
|
|
557
|
-
// size: '75%',
|
|
558
|
-
// innerSize: '50%',
|
|
559
|
-
// dataLabels: {
|
|
560
|
-
// enabled: true
|
|
561
|
-
// },
|
|
562
|
-
|
|
563
|
-
// showInLegend: true
|
|
564
|
-
|
|
565
|
-
// }
|
|
566
|
-
// },
|
|
567
|
-
// credits: { enabled: false },
|
|
568
|
-
// legend: { enabled: false },
|
|
569
|
-
// series: [{
|
|
570
|
-
// type: 'pie',
|
|
571
|
-
// name: 'Count',
|
|
572
|
-
// data: data,
|
|
573
|
-
|
|
574
|
-
// }]
|
|
575
|
-
// }
|
|
576
|
-
|
|
577
|
-
// }
|
|
578
|
-
if (this.ddlTicketPriority == "bar") {
|
|
579
|
-
this.chartPriorityOptions = {
|
|
580
|
-
chart: {
|
|
581
|
-
type: 'bar'
|
|
582
|
-
},
|
|
583
|
-
title: {
|
|
584
|
-
text: ''
|
|
585
|
-
},
|
|
586
|
-
credits: { enabled: false },
|
|
587
|
-
legend: { enabled: false },
|
|
588
|
-
yAxis: { visible: false },
|
|
589
|
-
xAxis: {
|
|
590
|
-
// lineColor: '#fff',
|
|
591
|
-
categories: ['High', 'Medium', 'Low'],
|
|
592
|
-
},
|
|
593
|
-
plotOptions: {
|
|
594
|
-
series: {
|
|
595
|
-
borderRadius: 5,
|
|
596
|
-
colorByPoint: true,
|
|
597
|
-
colors: ['#3C89DA', '#6c757d', 'green']
|
|
598
|
-
} as any,
|
|
599
|
-
|
|
600
|
-
},
|
|
601
|
-
// title: { text: 'Ticket Status', verticalAlign: 'top' },
|
|
602
|
-
series: [{
|
|
603
|
-
type: 'bar',
|
|
604
|
-
data: data
|
|
605
|
-
}]
|
|
606
|
-
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
else if (this.ddlTicketPriority == "pie") {
|
|
610
|
-
this.chartPriorityOptions = {
|
|
611
|
-
chart: {
|
|
612
|
-
type: 'pie',
|
|
613
|
-
plotBorderWidth: null,
|
|
614
|
-
plotShadow: false
|
|
615
|
-
},
|
|
616
|
-
title: {
|
|
617
|
-
text: ''
|
|
618
|
-
},
|
|
619
|
-
// title: {
|
|
620
|
-
// text: 'Ticket Open TicketType'
|
|
621
|
-
// },
|
|
622
|
-
// subtitle: {
|
|
623
|
-
// text: 'Ticket Status'
|
|
624
|
-
// },
|
|
625
|
-
// tooltip : {
|
|
626
|
-
// pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
627
|
-
// },
|
|
628
|
-
plotOptions: {
|
|
629
|
-
pie: {
|
|
630
|
-
allowPointSelect: true,
|
|
631
|
-
cursor: 'pointer',
|
|
632
|
-
dataLabels: {
|
|
633
|
-
enabled: true
|
|
634
|
-
},
|
|
635
|
-
|
|
636
|
-
showInLegend: false
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
credits: { enabled: false },
|
|
641
|
-
legend: { enabled: false },
|
|
642
|
-
series: [{
|
|
643
|
-
type: 'pie',
|
|
644
|
-
name: 'Count',
|
|
645
|
-
data: data,
|
|
646
|
-
|
|
647
|
-
}]
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
else if (this.ddlTicketPriority == "column") {
|
|
651
|
-
this.chartPriorityOptions = {
|
|
652
|
-
|
|
653
|
-
chart: {
|
|
654
|
-
type: 'column'
|
|
655
|
-
},
|
|
656
|
-
title: {
|
|
657
|
-
text: ''
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
xAxis: {
|
|
661
|
-
categories: ['High', 'Medium', 'Low'],
|
|
662
|
-
crosshair: true
|
|
663
|
-
},
|
|
664
|
-
yAxis: {
|
|
665
|
-
min: 0,
|
|
666
|
-
title: {
|
|
667
|
-
text: ''
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
// tooltip : {
|
|
671
|
-
// headerFormat: '<span style = "font-size:10px">{point.key}</span><table>',
|
|
672
|
-
// pointFormat: '<tr><td style = "color:{series.color};padding:0">{series.name}: </td>' +
|
|
673
|
-
// '<td style = "padding:0"><b>{point.y:.1f} mm</b></td></tr>', footerFormat: '</table>', shared: true, useHTML: true
|
|
674
|
-
// },
|
|
675
|
-
plotOptions: {
|
|
676
|
-
column: {
|
|
677
|
-
pointPadding: 0.2,
|
|
678
|
-
borderWidth: 0
|
|
679
|
-
},
|
|
680
|
-
series: {
|
|
681
|
-
colorByPoint: true,
|
|
682
|
-
colors: ['#3C89DA', '#6c757d', 'green']
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
series: [{
|
|
686
|
-
type: 'column',
|
|
687
|
-
name: 'Status',
|
|
688
|
-
data: data
|
|
689
|
-
},
|
|
690
|
-
]
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
else if (this.ddlTicketPriority == "spline") {
|
|
694
|
-
this.chartPriorityOptions = {
|
|
695
|
-
chart: {
|
|
696
|
-
type: "spline"
|
|
697
|
-
},
|
|
698
|
-
title: {
|
|
699
|
-
text: ''
|
|
700
|
-
},
|
|
701
|
-
xAxis: {
|
|
702
|
-
categories: ['High', 'Medium', 'Low']
|
|
703
|
-
},
|
|
704
|
-
yAxis: {
|
|
705
|
-
title: {
|
|
706
|
-
text: "Status"
|
|
707
|
-
}
|
|
708
|
-
},
|
|
709
|
-
plotOptions: {
|
|
710
|
-
series: {
|
|
711
|
-
colorByPoint: true,
|
|
712
|
-
colors: ['#3C89DA', '#6c757d', 'green']
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
series: [{
|
|
716
|
-
name: 'Status',
|
|
717
|
-
type: "spline",
|
|
718
|
-
data: data
|
|
719
|
-
}
|
|
720
|
-
]
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
this.showPriority = true;
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
/* #endregion */
|
|
729
|
-
|
|
730
|
-
/* #region Department */
|
|
731
|
-
ticketDepartmentData: any = [];
|
|
732
|
-
|
|
733
|
-
setDepartmentChartData() {
|
|
734
|
-
let _data = [];
|
|
735
|
-
for (let index = 0; index < this.ticketDepartmentData.length; index++) {
|
|
736
|
-
let temp = [
|
|
737
|
-
this.ticketDepartmentData[index].DepartmentName, this.ticketDepartmentData[index].Count];
|
|
738
|
-
_data.push(temp)
|
|
739
|
-
|
|
740
|
-
}
|
|
741
|
-
this.getDepartmentChart(_data)
|
|
742
|
-
}
|
|
743
|
-
departmentChartOptions: any = {}
|
|
744
|
-
showDepartment: boolean = false;
|
|
745
|
-
getDepartmentChart(data) {
|
|
746
|
-
|
|
747
|
-
// if (this.ddlTicketDepartment == "donut") {
|
|
748
|
-
// this.departmentChartOptions = {
|
|
749
|
-
// chart: {
|
|
750
|
-
// type: 'pie',
|
|
751
|
-
// plotBorderWidth: null,
|
|
752
|
-
// plotShadow: false
|
|
753
|
-
// },
|
|
754
|
-
// title: {
|
|
755
|
-
// text: ''
|
|
756
|
-
// },
|
|
757
|
-
// // title: {
|
|
758
|
-
// // text: 'Ticket Status'
|
|
759
|
-
// // },
|
|
760
|
-
// // tooltip : {
|
|
761
|
-
// // pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
762
|
-
// // },
|
|
763
|
-
// plotOptions: {
|
|
764
|
-
// pie: {
|
|
765
|
-
// allowPointSelect: true,
|
|
766
|
-
// cursor: 'pointer',
|
|
767
|
-
// center: ['50%', '50%'],
|
|
768
|
-
// size: '75%',
|
|
769
|
-
// innerSize: '50%',
|
|
770
|
-
// dataLabels: {
|
|
771
|
-
// enabled: true
|
|
772
|
-
// },
|
|
773
|
-
|
|
774
|
-
// showInLegend: true
|
|
775
|
-
|
|
776
|
-
// }
|
|
777
|
-
// },
|
|
778
|
-
// credits: { enabled: false },
|
|
779
|
-
// legend: { enabled: false },
|
|
780
|
-
// series: [{
|
|
781
|
-
// type: 'pie',
|
|
782
|
-
// name: 'Count',
|
|
783
|
-
// data: data,
|
|
784
|
-
|
|
785
|
-
// }]
|
|
786
|
-
// }
|
|
787
|
-
|
|
788
|
-
// }
|
|
789
|
-
if (this.ddlTicketDepartment == "bar") {
|
|
790
|
-
this.departmentChartOptions = {
|
|
791
|
-
chart: {
|
|
792
|
-
type: 'bar'
|
|
793
|
-
},
|
|
794
|
-
credits: { enabled: false },
|
|
795
|
-
legend: { enabled: false },
|
|
796
|
-
yAxis: { visible: false },
|
|
797
|
-
title: {
|
|
798
|
-
text: ''
|
|
799
|
-
},
|
|
800
|
-
xAxis: {
|
|
801
|
-
// lineColor: '#fff',
|
|
802
|
-
categories: [
|
|
803
|
-
'Customer Service',
|
|
804
|
-
'Follow Up',
|
|
805
|
-
'Manpower',
|
|
806
|
-
'Sales Business',
|
|
807
|
-
'Finance',
|
|
808
|
-
'Medical Insurance Team',
|
|
809
|
-
'Collection',
|
|
810
|
-
'Marketing',
|
|
811
|
-
'International Relations',
|
|
812
|
-
'Sales Individual',
|
|
813
|
-
'Lodging',
|
|
814
|
-
'CO - Customer Service',
|
|
815
|
-
'CO - Follow Up',
|
|
816
|
-
'CO - Manpower',
|
|
817
|
-
'CO - Sales Business',
|
|
818
|
-
'CO - Legal',
|
|
819
|
-
'CO - Collection',
|
|
820
|
-
'CO - Marketing',
|
|
821
|
-
'CO - International Relations',
|
|
822
|
-
'CO - Sales Individual',
|
|
823
|
-
'CO - IT',
|
|
824
|
-
'CO - Lodging',
|
|
825
|
-
'CO - Finance',
|
|
826
|
-
],
|
|
827
|
-
},
|
|
828
|
-
plotOptions: {
|
|
829
|
-
series: {
|
|
830
|
-
borderRadius: 5,
|
|
831
|
-
colorByPoint: true,
|
|
832
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue', '#8ba8c1', '#5cdcca', '#2ce47e', '#5ad83b', '#5ad83b', '#79499c']
|
|
833
|
-
} as any
|
|
834
|
-
},
|
|
835
|
-
// title: { text: 'Ticket Status', verticalAlign: 'top' },
|
|
836
|
-
series: [{
|
|
837
|
-
type: 'bar',
|
|
838
|
-
data: data
|
|
839
|
-
}]
|
|
840
|
-
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
else if (this.ddlTicketDepartment == "pie") {
|
|
844
|
-
this.departmentChartOptions = {
|
|
845
|
-
chart: {
|
|
846
|
-
type: 'pie',
|
|
847
|
-
plotBorderWidth: null,
|
|
848
|
-
plotShadow: false
|
|
849
|
-
},
|
|
850
|
-
title: {
|
|
851
|
-
text: ''
|
|
852
|
-
},
|
|
853
|
-
// title: {
|
|
854
|
-
// text: 'Ticket Open TicketType'
|
|
855
|
-
// },
|
|
856
|
-
// subtitle: {
|
|
857
|
-
// text: 'Ticket Status'
|
|
858
|
-
// },
|
|
859
|
-
// tooltip : {
|
|
860
|
-
// pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
861
|
-
// },
|
|
862
|
-
plotOptions: {
|
|
863
|
-
pie: {
|
|
864
|
-
allowPointSelect: true,
|
|
865
|
-
cursor: 'pointer',
|
|
866
|
-
size: '300px',
|
|
867
|
-
dataLabels: {
|
|
868
|
-
enabled: true
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
showInLegend: false
|
|
872
|
-
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
credits: { enabled: false },
|
|
876
|
-
legend: { enabled: false },
|
|
877
|
-
series: [{
|
|
878
|
-
type: 'pie',
|
|
879
|
-
name: 'Count',
|
|
880
|
-
data: data,
|
|
881
|
-
|
|
882
|
-
}]
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
else if (this.ddlTicketDepartment == "column") {
|
|
886
|
-
this.departmentChartOptions = {
|
|
887
|
-
|
|
888
|
-
chart: {
|
|
889
|
-
type: 'column'
|
|
890
|
-
},
|
|
891
|
-
title: {
|
|
892
|
-
text: ''
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
xAxis: {
|
|
896
|
-
categories: [
|
|
897
|
-
'Customer Service',
|
|
898
|
-
'Follow Up',
|
|
899
|
-
'Manpower',
|
|
900
|
-
'Sales Business',
|
|
901
|
-
'Finance',
|
|
902
|
-
'Medical Insurance Team',
|
|
903
|
-
'Collection',
|
|
904
|
-
'Marketing',
|
|
905
|
-
'International Relations',
|
|
906
|
-
'Sales Individual',
|
|
907
|
-
'Lodging',
|
|
908
|
-
'CO - Customer Service',
|
|
909
|
-
'CO - Follow Up',
|
|
910
|
-
'CO - Manpower',
|
|
911
|
-
'CO - Sales Business',
|
|
912
|
-
'CO - Legal',
|
|
913
|
-
'CO - Collection',
|
|
914
|
-
'CO - Marketing',
|
|
915
|
-
'CO - International Relations',
|
|
916
|
-
'CO - Sales Individual',
|
|
917
|
-
'CO - IT',
|
|
918
|
-
'CO - Lodging',
|
|
919
|
-
'CO - Finance',
|
|
920
|
-
],
|
|
921
|
-
crosshair: true
|
|
922
|
-
},
|
|
923
|
-
yAxis: {
|
|
924
|
-
min: 0,
|
|
925
|
-
title: {
|
|
926
|
-
text: ''
|
|
927
|
-
}
|
|
928
|
-
},
|
|
929
|
-
// tooltip : {
|
|
930
|
-
// headerFormat: '<span style = "font-size:10px">{point.key}</span><table>',
|
|
931
|
-
// pointFormat: '<tr><td style = "color:{series.color};padding:0">{series.name}: </td>' +
|
|
932
|
-
// '<td style = "padding:0"><b>{point.y:.1f} mm</b></td></tr>', footerFormat: '</table>', shared: true, useHTML: true
|
|
933
|
-
// },
|
|
934
|
-
plotOptions: {
|
|
935
|
-
column: {
|
|
936
|
-
pointPadding: 0.2,
|
|
937
|
-
borderWidth: 0
|
|
938
|
-
},
|
|
939
|
-
series: {
|
|
940
|
-
colorByPoint: true,
|
|
941
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue', '#8ba8c1', '#5cdcca', '#2ce47e', '#5ad83b', '#5ad83b', '#79499c']
|
|
942
|
-
}
|
|
943
|
-
},
|
|
944
|
-
series: [{
|
|
945
|
-
type: 'column',
|
|
946
|
-
name: 'Count',
|
|
947
|
-
data: data
|
|
948
|
-
},
|
|
949
|
-
]
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
else if (this.ddlTicketDepartment == "spline") {
|
|
953
|
-
this.departmentChartOptions = {
|
|
954
|
-
chart: {
|
|
955
|
-
type: "spline"
|
|
956
|
-
},
|
|
957
|
-
title: {
|
|
958
|
-
text: ''
|
|
959
|
-
},
|
|
960
|
-
xAxis: {
|
|
961
|
-
categories: [
|
|
962
|
-
'Customer Service',
|
|
963
|
-
'Follow Up',
|
|
964
|
-
'Manpower',
|
|
965
|
-
'Sales Business',
|
|
966
|
-
'Finance',
|
|
967
|
-
'Medical Insurance Team',
|
|
968
|
-
'Collection',
|
|
969
|
-
'Marketing',
|
|
970
|
-
'International Relations',
|
|
971
|
-
'Sales Individual',
|
|
972
|
-
'Lodging',
|
|
973
|
-
'CO - Customer Service',
|
|
974
|
-
'CO - Follow Up',
|
|
975
|
-
'CO - Manpower',
|
|
976
|
-
'CO - Sales Business',
|
|
977
|
-
'CO - Legal',
|
|
978
|
-
'CO - Collection',
|
|
979
|
-
'CO - Marketing',
|
|
980
|
-
'CO - International Relations',
|
|
981
|
-
'CO - Sales Individual',
|
|
982
|
-
'CO - IT',
|
|
983
|
-
'CO - Lodging',
|
|
984
|
-
'CO - Finance',
|
|
985
|
-
],
|
|
986
|
-
},
|
|
987
|
-
yAxis: {
|
|
988
|
-
title: {
|
|
989
|
-
text: ""
|
|
990
|
-
}
|
|
991
|
-
},
|
|
992
|
-
plotOptions: {
|
|
993
|
-
series: {
|
|
994
|
-
colorByPoint: true,
|
|
995
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue', '#8ba8c1', '#5cdcca', '#2ce47e', '#5ad83b', '#5ad83b', '#79499c']
|
|
996
|
-
}
|
|
997
|
-
},
|
|
998
|
-
series: [{
|
|
999
|
-
name: 'Count',
|
|
1000
|
-
type: "spline",
|
|
1001
|
-
data: data
|
|
1002
|
-
}
|
|
1003
|
-
]
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
this.showDepartment = true;
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
/* #endregion */
|
|
1013
|
-
|
|
1014
|
-
/* #region TicketType */
|
|
1015
|
-
ticketTicketTypeData: any = [];
|
|
1016
|
-
|
|
1017
|
-
setTicketTypeChartData() {
|
|
1018
|
-
let _data = [];
|
|
1019
|
-
for (let index = 0; index < this.ticketTicketTypeData.length; index++) {
|
|
1020
|
-
let temp = [this.ticketTicketTypeData[index].TicketTypeName, this.ticketTicketTypeData[index].Count];
|
|
1021
|
-
_data.push(temp)
|
|
1022
|
-
|
|
1023
|
-
}
|
|
1024
|
-
this.getTicketTypeChart(_data)
|
|
1025
|
-
}
|
|
1026
|
-
TicketTypeChartOptions: any = {}
|
|
1027
|
-
showTicketType: boolean = false;
|
|
1028
|
-
getTicketTypeChart(data) {
|
|
1029
|
-
|
|
1030
|
-
// if (this.ddlTicketType == "donut") {
|
|
1031
|
-
// this.TicketTypeChartOptions = {
|
|
1032
|
-
// chart: {
|
|
1033
|
-
// type: 'pie',
|
|
1034
|
-
// plotBorderWidth: null,
|
|
1035
|
-
// plotShadow: false
|
|
1036
|
-
// },
|
|
1037
|
-
// title: {
|
|
1038
|
-
// text: ''
|
|
1039
|
-
// },
|
|
1040
|
-
// // title: {
|
|
1041
|
-
// // text: 'Ticket Status'
|
|
1042
|
-
// // },
|
|
1043
|
-
// // tooltip : {
|
|
1044
|
-
// // pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
1045
|
-
// // },
|
|
1046
|
-
// plotOptions: {
|
|
1047
|
-
// pie: {
|
|
1048
|
-
// allowPointSelect: true,
|
|
1049
|
-
// cursor: 'pointer',
|
|
1050
|
-
// center: ['50%', '50%'],
|
|
1051
|
-
// size: '75%',
|
|
1052
|
-
// innerSize: '50%',
|
|
1053
|
-
// dataLabels: {
|
|
1054
|
-
// enabled: true
|
|
1055
|
-
// },
|
|
1056
|
-
|
|
1057
|
-
// showInLegend: true
|
|
1058
|
-
|
|
1059
|
-
// }
|
|
1060
|
-
// },
|
|
1061
|
-
// credits: { enabled: false },
|
|
1062
|
-
// legend: { enabled: false },
|
|
1063
|
-
// series: [{
|
|
1064
|
-
// type: 'pie',
|
|
1065
|
-
// name: 'Count',
|
|
1066
|
-
// data: data,
|
|
1067
|
-
|
|
1068
|
-
// }]
|
|
1069
|
-
// }
|
|
1070
|
-
|
|
1071
|
-
// }
|
|
1072
|
-
if (this.ddlTicketType == "bar") {
|
|
1073
|
-
this.TicketTypeChartOptions = {
|
|
1074
|
-
chart: {
|
|
1075
|
-
type: 'bar'
|
|
1076
|
-
},
|
|
1077
|
-
title: {
|
|
1078
|
-
text: ''
|
|
1079
|
-
},
|
|
1080
|
-
credits: { enabled: false },
|
|
1081
|
-
legend: { enabled: false },
|
|
1082
|
-
yAxis: { visible: false },
|
|
1083
|
-
xAxis: {
|
|
1084
|
-
// lineColor: '#fff',
|
|
1085
|
-
categories: ['Sales Enquiry', 'Customer Complaint', 'Internal Request', 'Labour Complaint', 'Customer Request', 'Customer Inquiry'],
|
|
1086
|
-
},
|
|
1087
|
-
plotOptions: {
|
|
1088
|
-
series: {
|
|
1089
|
-
borderRadius: 5,
|
|
1090
|
-
colorByPoint: true,
|
|
1091
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#79499c']
|
|
1092
|
-
} as any
|
|
1093
|
-
},
|
|
1094
|
-
// title: { text: 'Ticket Status', verticalAlign: 'top' },
|
|
1095
|
-
series: [{
|
|
1096
|
-
type: 'bar',
|
|
1097
|
-
data: data
|
|
1098
|
-
}]
|
|
1099
|
-
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
else if (this.ddlTicketType == "pie") {
|
|
1103
|
-
this.TicketTypeChartOptions = {
|
|
1104
|
-
chart: {
|
|
1105
|
-
type: 'pie',
|
|
1106
|
-
plotBorderWidth: null,
|
|
1107
|
-
plotShadow: false
|
|
1108
|
-
},
|
|
1109
|
-
title: {
|
|
1110
|
-
text: ''
|
|
1111
|
-
},
|
|
1112
|
-
// title: {
|
|
1113
|
-
// text: 'Ticket Open TicketType'
|
|
1114
|
-
// },
|
|
1115
|
-
// subtitle: {
|
|
1116
|
-
// text: 'Ticket Status'
|
|
1117
|
-
// },
|
|
1118
|
-
// tooltip : {
|
|
1119
|
-
// pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
1120
|
-
// },
|
|
1121
|
-
plotOptions: {
|
|
1122
|
-
pie: {
|
|
1123
|
-
allowPointSelect: true,
|
|
1124
|
-
cursor: 'pointer',
|
|
1125
|
-
dataLabels: {
|
|
1126
|
-
enabled: true
|
|
1127
|
-
},
|
|
1128
|
-
|
|
1129
|
-
showInLegend: false
|
|
1130
|
-
|
|
1131
|
-
}
|
|
1132
|
-
},
|
|
1133
|
-
credits: { enabled: false },
|
|
1134
|
-
legend: { enabled: false },
|
|
1135
|
-
series: [{
|
|
1136
|
-
type: 'pie',
|
|
1137
|
-
name: 'Count',
|
|
1138
|
-
data: data,
|
|
1139
|
-
|
|
1140
|
-
}]
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
else if (this.ddlTicketType == "column") {
|
|
1144
|
-
this.TicketTypeChartOptions = {
|
|
1145
|
-
|
|
1146
|
-
chart: {
|
|
1147
|
-
type: 'column'
|
|
1148
|
-
},
|
|
1149
|
-
title: {
|
|
1150
|
-
text: ''
|
|
1151
|
-
},
|
|
1152
|
-
|
|
1153
|
-
xAxis: {
|
|
1154
|
-
categories: ['Sales Enquiry', 'Customer Complaint', 'Internal Request', 'Labour Complaint', 'Customer Request', 'Customer Inquiry'],
|
|
1155
|
-
crosshair: true
|
|
1156
|
-
},
|
|
1157
|
-
yAxis: {
|
|
1158
|
-
min: 0,
|
|
1159
|
-
title: {
|
|
1160
|
-
text: ''
|
|
1161
|
-
}
|
|
1162
|
-
},
|
|
1163
|
-
// tooltip : {
|
|
1164
|
-
// headerFormat: '<span style = "font-size:10px">{point.key}</span><table>',
|
|
1165
|
-
// pointFormat: '<tr><td style = "color:{series.color};padding:0">{series.name}: </td>' +
|
|
1166
|
-
// '<td style = "padding:0"><b>{point.y:.1f} mm</b></td></tr>', footerFormat: '</table>', shared: true, useHTML: true
|
|
1167
|
-
// },
|
|
1168
|
-
plotOptions: {
|
|
1169
|
-
column: {
|
|
1170
|
-
pointPadding: 0.2,
|
|
1171
|
-
borderWidth: 0
|
|
1172
|
-
},
|
|
1173
|
-
series: {
|
|
1174
|
-
colorByPoint: true,
|
|
1175
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40']
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
series: [{
|
|
1179
|
-
type: 'column',
|
|
1180
|
-
name: 'Status',
|
|
1181
|
-
data: data
|
|
1182
|
-
},
|
|
1183
|
-
]
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
else if (this.ddlTicketType == "spline") {
|
|
1187
|
-
this.TicketTypeChartOptions = {
|
|
1188
|
-
|
|
1189
|
-
chart: {
|
|
1190
|
-
type: 'spline'
|
|
1191
|
-
},
|
|
1192
|
-
title: {
|
|
1193
|
-
text: ''
|
|
1194
|
-
},
|
|
1195
|
-
|
|
1196
|
-
xAxis: {
|
|
1197
|
-
categories: ['Sales Enquiry', 'Customer Complaint', 'Internal Request', 'Labour Complaint', 'Customer Request', 'Customer Inquiry'],
|
|
1198
|
-
},
|
|
1199
|
-
yAxis: {
|
|
1200
|
-
title: {
|
|
1201
|
-
text: ''
|
|
1202
|
-
}
|
|
1203
|
-
},
|
|
1204
|
-
plotOptions: {
|
|
1205
|
-
series: {
|
|
1206
|
-
colorByPoint: true,
|
|
1207
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40']
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
series: [{
|
|
1211
|
-
type: 'spline',
|
|
1212
|
-
name: 'Status',
|
|
1213
|
-
data: data
|
|
1214
|
-
},
|
|
1215
|
-
]
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
this.showTicketType = true;
|
|
1219
|
-
|
|
1220
|
-
}
|
|
1221
|
-
/* #endregion */
|
|
1222
|
-
|
|
1223
|
-
/* #region Category */
|
|
1224
|
-
ticketCategoryData: any = [];
|
|
1225
|
-
|
|
1226
|
-
setCategoryChartData() {
|
|
1227
|
-
let _data = [];
|
|
1228
|
-
for (let index = 0; index < this.ticketCategoryData.length; index++) {
|
|
1229
|
-
let temp = [this.ticketCategoryData[index].CategoryName, this.ticketCategoryData[index].Count];
|
|
1230
|
-
_data.push(temp)
|
|
1231
|
-
|
|
1232
|
-
}
|
|
1233
|
-
this.getCategoryChart(_data)
|
|
1234
|
-
}
|
|
1235
|
-
CategoryChartOptions: any = {}
|
|
1236
|
-
showCategory: boolean = false;
|
|
1237
|
-
getCategoryChart(data) {
|
|
1238
|
-
|
|
1239
|
-
// if (this.ddlTicketCategory == "donut") {
|
|
1240
|
-
// this.CategoryChartOptions = {
|
|
1241
|
-
// chart: {
|
|
1242
|
-
// type: 'pie',
|
|
1243
|
-
// plotBorderWidth: null,
|
|
1244
|
-
// plotShadow: false
|
|
1245
|
-
// },
|
|
1246
|
-
// title: {
|
|
1247
|
-
// text: ''
|
|
1248
|
-
// },
|
|
1249
|
-
// // tooltip : {
|
|
1250
|
-
// // pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
1251
|
-
// // },
|
|
1252
|
-
// plotOptions: {
|
|
1253
|
-
// pie: {
|
|
1254
|
-
// allowPointSelect: true,
|
|
1255
|
-
// cursor: 'pointer',
|
|
1256
|
-
// center: ['50%', '50%'],
|
|
1257
|
-
// size: '75%',
|
|
1258
|
-
// innerSize: '50%',
|
|
1259
|
-
// dataLabels: {
|
|
1260
|
-
// enabled: true
|
|
1261
|
-
// },
|
|
1262
|
-
|
|
1263
|
-
// showInLegend: true
|
|
1264
|
-
|
|
1265
|
-
// }
|
|
1266
|
-
// },
|
|
1267
|
-
// credits: { enabled: false },
|
|
1268
|
-
// legend: { enabled: false },
|
|
1269
|
-
// series: [{
|
|
1270
|
-
// type: 'pie',
|
|
1271
|
-
// name: 'Count',
|
|
1272
|
-
// data: data,
|
|
1273
|
-
|
|
1274
|
-
// }]
|
|
1275
|
-
// }
|
|
1276
|
-
|
|
1277
|
-
// }
|
|
1278
|
-
if (this.ddlTicketCategory == "bar") {
|
|
1279
|
-
this.CategoryChartOptions = {
|
|
1280
|
-
chart: {
|
|
1281
|
-
type: 'bar'
|
|
1282
|
-
},
|
|
1283
|
-
credits: { enabled: false },
|
|
1284
|
-
legend: { enabled: false },
|
|
1285
|
-
yAxis: { visible: false },
|
|
1286
|
-
title: {
|
|
1287
|
-
text: ''
|
|
1288
|
-
},
|
|
1289
|
-
xAxis: {
|
|
1290
|
-
// lineColor: '#fff',
|
|
1291
|
-
categories: [
|
|
1292
|
-
'Insurance Cards',
|
|
1293
|
-
'Iqama',
|
|
1294
|
-
'ATM',
|
|
1295
|
-
'Labor Complaints',
|
|
1296
|
-
'Customer Complaints',
|
|
1297
|
-
'Collections Issues',
|
|
1298
|
-
'Invoice problems',
|
|
1299
|
-
'Customer Requests',
|
|
1300
|
-
'Medical Test',
|
|
1301
|
-
'Labour Salary',
|
|
1302
|
-
'Retirement',
|
|
1303
|
-
'Contact Center Complaint',
|
|
1304
|
-
'CRM Complaint',
|
|
1305
|
-
'Report',
|
|
1306
|
-
'Cancelation Request',
|
|
1307
|
-
'Package',
|
|
1308
|
-
'Employee Issue',
|
|
1309
|
-
'Labour Receive',
|
|
1310
|
-
'Salary',
|
|
1311
|
-
'Financial Related',
|
|
1312
|
-
'Delivery',
|
|
1313
|
-
'Contract',
|
|
1314
|
-
'Package',
|
|
1315
|
-
'Labour Issue',
|
|
1316
|
-
'Labor violations',
|
|
1317
|
-
'Attendance',
|
|
1318
|
-
'MOL Complaint',
|
|
1319
|
-
'Event Related',
|
|
1320
|
-
'Campaign',
|
|
1321
|
-
'Agency',
|
|
1322
|
-
'Contact Center Request',
|
|
1323
|
-
'CRM Request',
|
|
1324
|
-
'Delegations Request',
|
|
1325
|
-
'Labour Request',
|
|
1326
|
-
'General Request',
|
|
1327
|
-
'VIP CRM Request',
|
|
1328
|
-
'VIP CRM Complaint',
|
|
1329
|
-
'مبالغ مالية',
|
|
1330
|
-
'مستحقات العمالة',
|
|
1331
|
-
'SADAD',
|
|
1332
|
-
'Labor Request"',
|
|
1333
|
-
'Visa Request',
|
|
1334
|
-
'Renewal',
|
|
1335
|
-
'Re-Issuance',
|
|
1336
|
-
'Generation',
|
|
1337
|
-
'Monthly Invoice',
|
|
1338
|
-
'Monthly Invoice',
|
|
1339
|
-
'Debit Note',
|
|
1340
|
-
'Credit Note',
|
|
1341
|
-
'Statement of Account',
|
|
1342
|
-
'Salary',
|
|
1343
|
-
'Ajeer',
|
|
1344
|
-
'General Request',
|
|
1345
|
-
'CO Package'
|
|
1346
|
-
],
|
|
1347
|
-
},
|
|
1348
|
-
plotOptions: {
|
|
1349
|
-
series: {
|
|
1350
|
-
borderRadius: 5,
|
|
1351
|
-
colorByPoint: true,
|
|
1352
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue', '#8ba8c1', '#5cdcca', '#2ce47e', '#5ad83b', '#5ad83b', '#79499c']
|
|
1353
|
-
} as any
|
|
1354
|
-
},
|
|
1355
|
-
// title: { text: 'Ticket Status', verticalAlign: 'top' },
|
|
1356
|
-
series: [{
|
|
1357
|
-
type: 'bar',
|
|
1358
|
-
data: data
|
|
1359
|
-
}]
|
|
1360
|
-
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
else if (this.ddlTicketCategory == "pie") {
|
|
1364
|
-
this.CategoryChartOptions = {
|
|
1365
|
-
chart: {
|
|
1366
|
-
type: 'pie',
|
|
1367
|
-
plotBorderWidth: null,
|
|
1368
|
-
plotShadow: false
|
|
1369
|
-
},
|
|
1370
|
-
title: {
|
|
1371
|
-
text: ''
|
|
1372
|
-
},
|
|
1373
|
-
// title: {
|
|
1374
|
-
// text: 'Ticket Open TicketType'
|
|
1375
|
-
// },
|
|
1376
|
-
// subtitle: {
|
|
1377
|
-
// text: 'Ticket Status'
|
|
1378
|
-
// },
|
|
1379
|
-
// tooltip : {
|
|
1380
|
-
// pointFormat: '{series.name}: <b>{point.percentage:.1f}</b>'
|
|
1381
|
-
// },
|
|
1382
|
-
plotOptions: {
|
|
1383
|
-
pie: {
|
|
1384
|
-
allowPointSelect: true,
|
|
1385
|
-
cursor: 'pointer',
|
|
1386
|
-
size: '300px',
|
|
1387
|
-
dataLabels: {
|
|
1388
|
-
enabled: true
|
|
1389
|
-
},
|
|
1390
|
-
|
|
1391
|
-
showInLegend: false
|
|
1392
|
-
|
|
1393
|
-
}
|
|
1394
|
-
},
|
|
1395
|
-
credits: { enabled: false },
|
|
1396
|
-
legend: { enabled: false },
|
|
1397
|
-
series: [{
|
|
1398
|
-
type: 'pie',
|
|
1399
|
-
name: 'Count',
|
|
1400
|
-
data: data,
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
}]
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
else if (this.ddlTicketCategory == "column") {
|
|
1407
|
-
this.CategoryChartOptions = {
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
chart: {
|
|
1411
|
-
type: 'column'
|
|
1412
|
-
},
|
|
1413
|
-
title: {
|
|
1414
|
-
text: ''
|
|
1415
|
-
},
|
|
1416
|
-
|
|
1417
|
-
xAxis: {
|
|
1418
|
-
categories: [
|
|
1419
|
-
'Insurance Cards',
|
|
1420
|
-
'Iqama',
|
|
1421
|
-
'ATM',
|
|
1422
|
-
'Labor Complaints',
|
|
1423
|
-
'Customer Complaints',
|
|
1424
|
-
'Collections Issues',
|
|
1425
|
-
'Invoice problems',
|
|
1426
|
-
'Customer Requests',
|
|
1427
|
-
'Medical Test',
|
|
1428
|
-
'Labour Salary',
|
|
1429
|
-
'Retirement',
|
|
1430
|
-
'Contact Center Complaint',
|
|
1431
|
-
'CRM Complaint',
|
|
1432
|
-
'Report',
|
|
1433
|
-
'Cancelation Request',
|
|
1434
|
-
'Package',
|
|
1435
|
-
'Employee Issue',
|
|
1436
|
-
'Labour Receive',
|
|
1437
|
-
'Salary',
|
|
1438
|
-
'Financial Related',
|
|
1439
|
-
'Delivery',
|
|
1440
|
-
'Contract',
|
|
1441
|
-
'Package',
|
|
1442
|
-
'Labour Issue',
|
|
1443
|
-
'Labor violations',
|
|
1444
|
-
'Attendance',
|
|
1445
|
-
'MOL Complaint',
|
|
1446
|
-
'Event Related',
|
|
1447
|
-
'Campaign',
|
|
1448
|
-
'Agency',
|
|
1449
|
-
'Contact Center Request',
|
|
1450
|
-
'CRM Request',
|
|
1451
|
-
'Delegations Request',
|
|
1452
|
-
'Labour Request',
|
|
1453
|
-
'General Request',
|
|
1454
|
-
'VIP CRM Request',
|
|
1455
|
-
'VIP CRM Complaint',
|
|
1456
|
-
'مبالغ مالية',
|
|
1457
|
-
'مستحقات العمالة',
|
|
1458
|
-
'SADAD',
|
|
1459
|
-
'Labor Request"',
|
|
1460
|
-
'Visa Request',
|
|
1461
|
-
'Renewal',
|
|
1462
|
-
'Re-Issuance',
|
|
1463
|
-
'Generation',
|
|
1464
|
-
'Monthly Invoice',
|
|
1465
|
-
'Monthly Invoice',
|
|
1466
|
-
'Debit Note',
|
|
1467
|
-
'Credit Note',
|
|
1468
|
-
'Statement of Account',
|
|
1469
|
-
'Salary',
|
|
1470
|
-
'Ajeer',
|
|
1471
|
-
'General Request',
|
|
1472
|
-
'CO Package'
|
|
1473
|
-
],
|
|
1474
|
-
crosshair: true
|
|
1475
|
-
},
|
|
1476
|
-
yAxis: {
|
|
1477
|
-
min: 0,
|
|
1478
|
-
title: {
|
|
1479
|
-
text: ''
|
|
1480
|
-
}
|
|
1481
|
-
},
|
|
1482
|
-
// tooltip : {
|
|
1483
|
-
// headerFormat: '<span style = "font-size:10px">{point.key}</span><table>',
|
|
1484
|
-
// pointFormat: '<tr><td style = "color:{series.color};padding:0">{series.name}: </td>' +
|
|
1485
|
-
// '<td style = "padding:0"><b>{point.y:.1f} mm</b></td></tr>', footerFormat: '</table>', shared: true, useHTML: true
|
|
1486
|
-
// },
|
|
1487
|
-
plotOptions: {
|
|
1488
|
-
column: {
|
|
1489
|
-
pointPadding: 0.2,
|
|
1490
|
-
borderWidth: 0
|
|
1491
|
-
},
|
|
1492
|
-
series: {
|
|
1493
|
-
colorByPoint: true,
|
|
1494
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue', '#8ba8c1', '#5cdcca', '#2ce47e', '#5ad83b', '#5ad83b', '#79499c']
|
|
1495
|
-
}
|
|
1496
|
-
},
|
|
1497
|
-
series: [{
|
|
1498
|
-
type: 'column',
|
|
1499
|
-
name: 'Count',
|
|
1500
|
-
data: data
|
|
1501
|
-
},
|
|
1502
|
-
]
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
else if (this.ddlTicketCategory == "spline") {
|
|
1506
|
-
this.CategoryChartOptions = {
|
|
1507
|
-
|
|
1508
|
-
chart: {
|
|
1509
|
-
type: 'spline'
|
|
1510
|
-
},
|
|
1511
|
-
title: {
|
|
1512
|
-
text: ''
|
|
1513
|
-
},
|
|
1514
|
-
|
|
1515
|
-
xAxis: {
|
|
1516
|
-
categories: [
|
|
1517
|
-
'Insurance Cards',
|
|
1518
|
-
'Iqama',
|
|
1519
|
-
'ATM',
|
|
1520
|
-
'Labor Complaints',
|
|
1521
|
-
'Customer Complaints',
|
|
1522
|
-
'Collections Issues',
|
|
1523
|
-
'Invoice problems',
|
|
1524
|
-
'Customer Requests',
|
|
1525
|
-
'Medical Test',
|
|
1526
|
-
'Labour Salary',
|
|
1527
|
-
'Retirement',
|
|
1528
|
-
'Contact Center Complaint',
|
|
1529
|
-
'CRM Complaint',
|
|
1530
|
-
'Report',
|
|
1531
|
-
'Cancelation Request',
|
|
1532
|
-
'Package',
|
|
1533
|
-
'Employee Issue',
|
|
1534
|
-
'Labour Receive',
|
|
1535
|
-
'Salary',
|
|
1536
|
-
'Financial Related',
|
|
1537
|
-
'Delivery',
|
|
1538
|
-
'Contract',
|
|
1539
|
-
'Package',
|
|
1540
|
-
'Labour Issue',
|
|
1541
|
-
'Labor violations',
|
|
1542
|
-
'Attendance',
|
|
1543
|
-
'MOL Complaint',
|
|
1544
|
-
'Event Related',
|
|
1545
|
-
'Campaign',
|
|
1546
|
-
'Agency',
|
|
1547
|
-
'Contact Center Request',
|
|
1548
|
-
'CRM Request',
|
|
1549
|
-
'Delegations Request',
|
|
1550
|
-
'Labour Request',
|
|
1551
|
-
'General Request',
|
|
1552
|
-
'VIP CRM Request',
|
|
1553
|
-
'VIP CRM Complaint',
|
|
1554
|
-
'مبالغ مالية',
|
|
1555
|
-
'مستحقات العمالة',
|
|
1556
|
-
'SADAD',
|
|
1557
|
-
'Labor Request"',
|
|
1558
|
-
'Visa Request',
|
|
1559
|
-
'Renewal',
|
|
1560
|
-
'Re-Issuance',
|
|
1561
|
-
'Generation',
|
|
1562
|
-
'Monthly Invoice',
|
|
1563
|
-
'Monthly Invoice',
|
|
1564
|
-
'Debit Note',
|
|
1565
|
-
'Credit Note',
|
|
1566
|
-
'Statement of Account',
|
|
1567
|
-
'Salary',
|
|
1568
|
-
'Ajeer',
|
|
1569
|
-
'General Request',
|
|
1570
|
-
'CO Package'
|
|
1571
|
-
],
|
|
1572
|
-
},
|
|
1573
|
-
yAxis: {
|
|
1574
|
-
title: {
|
|
1575
|
-
text: ''
|
|
1576
|
-
}
|
|
1577
|
-
},
|
|
1578
|
-
plotOptions: {
|
|
1579
|
-
series: {
|
|
1580
|
-
colorByPoint: true,
|
|
1581
|
-
colors: ['#3C89DA', '#6c757d', 'green', '#f3ad06', 'lightgrey', '#343a40', 'lightblue', '#8ba8c1', '#5cdcca', '#2ce47e', '#5ad83b', '#5ad83b', '#79499c']
|
|
1582
|
-
}
|
|
1583
|
-
},
|
|
1584
|
-
series: [{
|
|
1585
|
-
type: 'spline',
|
|
1586
|
-
name: 'Count',
|
|
1587
|
-
data: data
|
|
1588
|
-
},
|
|
1589
|
-
]
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
this.showCategory = true;
|
|
1593
|
-
|
|
1594
|
-
}
|
|
1595
|
-
/* #endregion */
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
/* #region ticket opened and closed Week wise */
|
|
1599
|
-
WeekWiseCurrentChart: string = "openedPrevious";
|
|
1600
|
-
WeekChartOptions: any = {};
|
|
1601
|
-
resetWeekWiseChart() {
|
|
1602
|
-
this.IsOpenPrevColumn = false;
|
|
1603
|
-
this.IsOpenCurrentColumn = false;
|
|
1604
|
-
this.IsClosedPrevWeekRequestedColumn = false;
|
|
1605
|
-
this.IsClosedCurrentWeekRequestedColumn = false;
|
|
1606
|
-
}
|
|
1607
|
-
getWeekCharts() {
|
|
1608
|
-
|
|
1609
|
-
switch (this.WeekWiseCurrentChart) {
|
|
1610
|
-
case "openedPrevious": {
|
|
1611
|
-
this.resetWeekWiseChart();
|
|
1612
|
-
this.setOpenPrevWeekRequestedChartData();
|
|
1613
|
-
break;
|
|
1614
|
-
}
|
|
1615
|
-
case "openedCurrent": {
|
|
1616
|
-
this.resetWeekWiseChart();
|
|
1617
|
-
this.setOpenCurrentWeekRequestedChartData();
|
|
1618
|
-
break;
|
|
1619
|
-
}
|
|
1620
|
-
case "closedPrevious": {
|
|
1621
|
-
this.resetWeekWiseChart();
|
|
1622
|
-
this.setClosedPrevWeekRequestedChartData();
|
|
1623
|
-
break;
|
|
1624
|
-
}
|
|
1625
|
-
case "closedCurrent": {
|
|
1626
|
-
this.resetWeekWiseChart();
|
|
1627
|
-
this.setClosedCurrentWeekRequestedChartData();
|
|
1628
|
-
break;
|
|
1629
|
-
}
|
|
1630
|
-
default: {
|
|
1631
|
-
this.resetWeekWiseChart();
|
|
1632
|
-
this.setOpenCurrentWeekRequestedChartData();
|
|
1633
|
-
break;
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
/* #endregion ticket opened and closed week wise */
|
|
1638
|
-
/* #region OpenPrevWeekRequested */
|
|
1639
|
-
|
|
1640
|
-
ticketOpenPrevWeekRequestedData: any = [];
|
|
1641
|
-
TotalOpenPrevWeekRequested: number = 0;
|
|
1642
|
-
setOpenPrevWeekRequestedChartData() {
|
|
1643
|
-
|
|
1644
|
-
this.TotalOpenPrevWeekRequested = 0;
|
|
1645
|
-
let _data = [];
|
|
1646
|
-
|
|
1647
|
-
for (let index = 0; index < 7; index++) {
|
|
1648
|
-
|
|
1649
|
-
if (this.ticketOpenPrevWeekRequestedData.length > 0) {
|
|
1650
|
-
if (this.ticketOpenPrevWeekRequestedData.length > index) {
|
|
1651
|
-
let temp = [this.ticketOpenPrevWeekRequestedData[index].Days, this.ticketOpenPrevWeekRequestedData[index].Count];
|
|
1652
|
-
if (temp.length > 0) {
|
|
1653
|
-
_data.push(temp)
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
else {
|
|
1657
|
-
let dummyData = ["Days", 0];
|
|
1658
|
-
_data.push(dummyData);
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
else {
|
|
1662
|
-
let dummyData = ["Days", 0];
|
|
1663
|
-
_data.push(dummyData);
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
this.getOpenPrevWeekRequestedChartData(_data);
|
|
1667
|
-
}
|
|
1668
|
-
IsOpenPrevColumn = false;
|
|
1669
|
-
CurrentOpenPrevChart: string;
|
|
1670
|
-
getOpenPrevWeekRequestedChartData(data) {
|
|
1671
|
-
|
|
1672
|
-
if (data.length > 0) {
|
|
1673
|
-
|
|
1674
|
-
this.WeekChartOptions = this.getColumnChartForOpenPrevWeekRequested(data);
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
getColumnChartForOpenPrevWeekRequested(data) {
|
|
1678
|
-
this.IsOpenPrevColumn = true;
|
|
1679
|
-
this.WeekChartOptions = {
|
|
1680
|
-
|
|
1681
|
-
chart: {
|
|
1682
|
-
type: 'column'
|
|
1683
|
-
},
|
|
1684
|
-
title: {
|
|
1685
|
-
text: 'Open Previous Week Requested'
|
|
1686
|
-
},
|
|
1687
|
-
|
|
1688
|
-
xAxis: {
|
|
1689
|
-
categories: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
|
|
1690
|
-
crosshair: true
|
|
1691
|
-
},
|
|
1692
|
-
yAxis: {
|
|
1693
|
-
min: 0,
|
|
1694
|
-
title: {
|
|
1695
|
-
text: 'No of Open Requests'
|
|
1696
|
-
}
|
|
1697
|
-
},
|
|
1698
|
-
plotOptions: {
|
|
1699
|
-
column: {
|
|
1700
|
-
pointPadding: 0.2,
|
|
1701
|
-
borderWidth: 0
|
|
1702
|
-
},
|
|
1703
|
-
series: {
|
|
1704
|
-
colorByPoint: true,
|
|
1705
|
-
colors: ["#CD5C5C", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#FF00FF", "#008080"]
|
|
1706
|
-
},
|
|
1707
|
-
},
|
|
1708
|
-
credits: { enabled: false },
|
|
1709
|
-
legend: { enabled: false },
|
|
1710
|
-
series: [{
|
|
1711
|
-
name: 'Count',
|
|
1712
|
-
type: 'column',
|
|
1713
|
-
data: data
|
|
1714
|
-
},
|
|
1715
|
-
]
|
|
1716
|
-
}
|
|
1717
|
-
return this.WeekChartOptions;
|
|
1718
|
-
}
|
|
1719
|
-
/* #endregion OpenPrevWeekRequested */
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
/* #region OpenCurrentWeekRequested */
|
|
1723
|
-
|
|
1724
|
-
ticketOpenCurrentWeekRequestedData: any = [];
|
|
1725
|
-
TotalOpenCurrentWeekRequested: number = 0;
|
|
1726
|
-
setOpenCurrentWeekRequestedChartData() {
|
|
1727
|
-
|
|
1728
|
-
this.TotalOpenCurrentWeekRequested = 0;
|
|
1729
|
-
let _data = [];
|
|
1730
|
-
|
|
1731
|
-
for (let index = 0; index < 7; index++) {
|
|
1732
|
-
|
|
1733
|
-
if (this.ticketOpenCurrentWeekRequestedData.length > 0) {
|
|
1734
|
-
if (this.ticketOpenCurrentWeekRequestedData.length > index) {
|
|
1735
|
-
let temp = [this.ticketOpenCurrentWeekRequestedData[index].Days, this.ticketOpenCurrentWeekRequestedData[index].Count];
|
|
1736
|
-
if (temp.length > 0) {
|
|
1737
|
-
_data.push(temp)
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1740
|
-
else {
|
|
1741
|
-
let dummyData = ["Days", 0];
|
|
1742
|
-
_data.push(dummyData);
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
else {
|
|
1746
|
-
let dummyData = ["Days", 0];
|
|
1747
|
-
_data.push(dummyData);
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
this.getColumnChartForOpenCurrentWeekRequested(_data);
|
|
1751
|
-
}
|
|
1752
|
-
IsOpenCurrentColumn = false;
|
|
1753
|
-
CurrentOpenCurrentChart: string;
|
|
1754
|
-
getOpenCurrentWeekRequestedChartData(data) {
|
|
1755
|
-
|
|
1756
|
-
if (data.length > 0) {
|
|
1757
|
-
|
|
1758
|
-
this.WeekChartOptions = this.getColumnChartForOpenCurrentWeekRequested(data);
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
getColumnChartForOpenCurrentWeekRequested(data) {
|
|
1762
|
-
|
|
1763
|
-
this.IsOpenCurrentColumn = true;
|
|
1764
|
-
this.WeekChartOptions = {
|
|
1765
|
-
|
|
1766
|
-
chart: {
|
|
1767
|
-
type: 'column'
|
|
1768
|
-
},
|
|
1769
|
-
title: {
|
|
1770
|
-
text: 'Open Current Week Requested'
|
|
1771
|
-
},
|
|
1772
|
-
|
|
1773
|
-
xAxis: {
|
|
1774
|
-
categories: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
|
|
1775
|
-
crosshair: true
|
|
1776
|
-
},
|
|
1777
|
-
yAxis: {
|
|
1778
|
-
min: 0,
|
|
1779
|
-
title: {
|
|
1780
|
-
text: 'No of Open Requests'
|
|
1781
|
-
}
|
|
1782
|
-
},
|
|
1783
|
-
plotOptions: {
|
|
1784
|
-
column: {
|
|
1785
|
-
pointPadding: 0.2,
|
|
1786
|
-
borderWidth: 0
|
|
1787
|
-
},
|
|
1788
|
-
series: {
|
|
1789
|
-
colorByPoint: true,
|
|
1790
|
-
colors: ["#CD5C5C", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#FF00FF", "#008080"]
|
|
1791
|
-
},
|
|
1792
|
-
},
|
|
1793
|
-
credits: { enabled: false },
|
|
1794
|
-
legend: { enabled: false },
|
|
1795
|
-
series: [{
|
|
1796
|
-
name: 'Count',
|
|
1797
|
-
type: 'column',
|
|
1798
|
-
data: data
|
|
1799
|
-
},
|
|
1800
|
-
]
|
|
1801
|
-
}
|
|
1802
|
-
return this.WeekChartOptions;
|
|
1803
|
-
}
|
|
1804
|
-
/* #endregion OpenCurrentWeekRequested */
|
|
1805
|
-
|
|
1806
|
-
/* #region ClosedPrevWeekRequested */
|
|
1807
|
-
|
|
1808
|
-
ticketClosedPrevWeekRequestedData: any = [];
|
|
1809
|
-
TotalClosedPrevWeekRequested: number = 0;
|
|
1810
|
-
setClosedPrevWeekRequestedChartData() {
|
|
1811
|
-
|
|
1812
|
-
this.TotalClosedPrevWeekRequested = 0;
|
|
1813
|
-
|
|
1814
|
-
let _data = [];
|
|
1815
|
-
|
|
1816
|
-
for (let index = 0; index < 7; index++) {
|
|
1817
|
-
|
|
1818
|
-
if (this.ticketClosedPrevWeekRequestedData.length > 0) {
|
|
1819
|
-
if (this.ticketClosedPrevWeekRequestedData.length > index) {
|
|
1820
|
-
let temp = [this.ticketClosedPrevWeekRequestedData[index].Days, this.ticketClosedPrevWeekRequestedData[index].Count];
|
|
1821
|
-
if (temp.length > 0) {
|
|
1822
|
-
_data.push(temp)
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
else {
|
|
1826
|
-
let dummyData = ["Days", 0];
|
|
1827
|
-
_data.push(dummyData);
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
else {
|
|
1831
|
-
let dummyData = ["Days", 0];
|
|
1832
|
-
_data.push(dummyData);
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
this.getClosedPrevWeekRequestedChartData(_data);
|
|
1836
|
-
}
|
|
1837
|
-
IsClosedPrevWeekRequestedColumn = false;
|
|
1838
|
-
CurrentClosedPrevWeekRequestedChart: string;
|
|
1839
|
-
getClosedPrevWeekRequestedChartData(data) {
|
|
1840
|
-
|
|
1841
|
-
if (data.length > 0) {
|
|
1842
|
-
|
|
1843
|
-
this.WeekChartOptions = this.getColumnChartForClosedPrevWeekRequested(data);
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
getColumnChartForClosedPrevWeekRequested(data) {
|
|
1847
|
-
this.IsClosedPrevWeekRequestedColumn = true;
|
|
1848
|
-
this.WeekChartOptions = {
|
|
1849
|
-
|
|
1850
|
-
chart: {
|
|
1851
|
-
type: 'column'
|
|
1852
|
-
},
|
|
1853
|
-
title: {
|
|
1854
|
-
text: 'Closed Previous Week Requested'
|
|
1855
|
-
},
|
|
1856
|
-
|
|
1857
|
-
xAxis: {
|
|
1858
|
-
categories: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
|
|
1859
|
-
crosshair: true
|
|
1860
|
-
},
|
|
1861
|
-
yAxis: {
|
|
1862
|
-
min: 0,
|
|
1863
|
-
title: {
|
|
1864
|
-
text: 'No of Open Requests'
|
|
1865
|
-
}
|
|
1866
|
-
},
|
|
1867
|
-
plotOptions: {
|
|
1868
|
-
column: {
|
|
1869
|
-
pointPadding: 0.2,
|
|
1870
|
-
borderWidth: 0
|
|
1871
|
-
},
|
|
1872
|
-
series: {
|
|
1873
|
-
colorByPoint: true,
|
|
1874
|
-
colors: ["#CD5C5C", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#FF00FF", "#008080"]
|
|
1875
|
-
},
|
|
1876
|
-
},
|
|
1877
|
-
credits: { enabled: false },
|
|
1878
|
-
legend: { enabled: false },
|
|
1879
|
-
series: [{
|
|
1880
|
-
name: 'Count',
|
|
1881
|
-
type: 'column',
|
|
1882
|
-
data: data
|
|
1883
|
-
},
|
|
1884
|
-
]
|
|
1885
|
-
}
|
|
1886
|
-
return this.WeekChartOptions;
|
|
1887
|
-
}
|
|
1888
|
-
/* #endregion ClosedPrevWeekRequested */
|
|
1889
|
-
|
|
1890
|
-
/* #region ClosedCurrentWeekRequested */
|
|
1891
|
-
|
|
1892
|
-
ticketClosedCurrentWeekRequestedData: any = [];
|
|
1893
|
-
TotalClosedCurrentWeekRequested: number = 0;
|
|
1894
|
-
setClosedCurrentWeekRequestedChartData() {
|
|
1895
|
-
|
|
1896
|
-
this.TotalClosedCurrentWeekRequested = 0;
|
|
1897
|
-
|
|
1898
|
-
let _data = [];
|
|
1899
|
-
|
|
1900
|
-
for (let index = 0; index < 7; index++) {
|
|
1901
|
-
|
|
1902
|
-
if (this.ticketClosedCurrentWeekRequestedData.length > 0) {
|
|
1903
|
-
if (this.ticketClosedCurrentWeekRequestedData.length > index) {
|
|
1904
|
-
let temp = [this.ticketClosedCurrentWeekRequestedData[index].Days, this.ticketClosedCurrentWeekRequestedData[index].Count];
|
|
1905
|
-
if (temp.length > 0) {
|
|
1906
|
-
_data.push(temp)
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
else {
|
|
1910
|
-
let dummyData = ["Days", 0];
|
|
1911
|
-
_data.push(dummyData);
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
else {
|
|
1915
|
-
let dummyData = ["Days", 0];
|
|
1916
|
-
_data.push(dummyData);
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
this.getClosedCurrentWeekRequestedChartData(_data);
|
|
1921
|
-
}
|
|
1922
|
-
IsClosedCurrentWeekRequestedColumn = false;
|
|
1923
|
-
ClosedCurrentWeekRequestedChart: string;
|
|
1924
|
-
getClosedCurrentWeekRequestedChartData(data) {
|
|
1925
|
-
|
|
1926
|
-
if (data.length > 0) {
|
|
1927
|
-
|
|
1928
|
-
this.WeekChartOptions = this.getColumnChartForClosedCurrentWeekRequested(data);
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
getColumnChartForClosedCurrentWeekRequested(data) {
|
|
1932
|
-
this.IsClosedCurrentWeekRequestedColumn = true;
|
|
1933
|
-
this.WeekChartOptions = {
|
|
1934
|
-
|
|
1935
|
-
chart: {
|
|
1936
|
-
type: 'column'
|
|
1937
|
-
},
|
|
1938
|
-
title: {
|
|
1939
|
-
text: 'Closed Current Week Requested'
|
|
1940
|
-
},
|
|
1941
|
-
|
|
1942
|
-
xAxis: {
|
|
1943
|
-
categories: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
|
|
1944
|
-
crosshair: true
|
|
1945
|
-
},
|
|
1946
|
-
yAxis: {
|
|
1947
|
-
min: 0,
|
|
1948
|
-
title: {
|
|
1949
|
-
text: 'No of Open Requests'
|
|
1950
|
-
}
|
|
1951
|
-
},
|
|
1952
|
-
plotOptions: {
|
|
1953
|
-
column: {
|
|
1954
|
-
pointPadding: 0.2,
|
|
1955
|
-
borderWidth: 0
|
|
1956
|
-
},
|
|
1957
|
-
series: {
|
|
1958
|
-
colorByPoint: true,
|
|
1959
|
-
colors: ["#CD5C5C", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#FF00FF", "#008080"]
|
|
1960
|
-
},
|
|
1961
|
-
},
|
|
1962
|
-
credits: { enabled: false },
|
|
1963
|
-
legend: { enabled: false },
|
|
1964
|
-
series: [{
|
|
1965
|
-
name: 'Count',
|
|
1966
|
-
type: 'column',
|
|
1967
|
-
data: data
|
|
1968
|
-
},
|
|
1969
|
-
]
|
|
1970
|
-
}
|
|
1971
|
-
return this.WeekChartOptions;
|
|
1972
|
-
}
|
|
1973
|
-
/* #endregion ClosedCurrentWeekRequested */
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
getmonthwisechart() {
|
|
1977
|
-
this.showMonth = false;
|
|
1978
|
-
this.showCurrentMonth = false;
|
|
1979
|
-
this.showClosedMonth = false;
|
|
1980
|
-
this.showClosedCurrentMonth = false;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
/* #region Month */
|
|
1984
|
-
ticketMonthData: any = [];
|
|
1985
|
-
TotalOpenPrevMonthRequested: number = 0;
|
|
1986
|
-
setMonthChartData() {
|
|
1987
|
-
this.TotalOpenPrevMonthRequested = 0;
|
|
1988
|
-
let _data = [];
|
|
1989
|
-
for (let index = 0; index < 31; index++) {
|
|
1990
|
-
|
|
1991
|
-
if (this.ticketMonthData.length > 0) {
|
|
1992
|
-
if (this.ticketMonthData.length > index) {
|
|
1993
|
-
let temp = [this.ticketMonthData[index].Days, this.ticketMonthData[index].Count];
|
|
1994
|
-
if (temp.length) {
|
|
1995
|
-
_data.push(temp)
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
else {
|
|
1999
|
-
let dummyData = ["Month", 0];
|
|
2000
|
-
_data.push(dummyData);
|
|
2001
|
-
}
|
|
2002
|
-
}
|
|
2003
|
-
else {
|
|
2004
|
-
let dummyData = ["Month", 0];
|
|
2005
|
-
_data.push(dummyData);
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
this.getMonthChart(_data)
|
|
2011
|
-
}
|
|
2012
|
-
MonthChartOptions: any = {}
|
|
2013
|
-
showMonth: boolean = false;
|
|
2014
|
-
getMonthChart(data) {
|
|
2015
|
-
|
|
2016
|
-
this.MonthChartOptions = {
|
|
2017
|
-
chart: {
|
|
2018
|
-
type: 'column'
|
|
2019
|
-
},
|
|
2020
|
-
title: {
|
|
2021
|
-
text: 'Ticket Open Month'
|
|
2022
|
-
},
|
|
2023
|
-
subtitle: {
|
|
2024
|
-
text: 'Based on Month Vise tickets count'
|
|
2025
|
-
},
|
|
2026
|
-
xAxis: {
|
|
2027
|
-
categories: data,
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
},
|
|
2031
|
-
yAxis: {
|
|
2032
|
-
min: 0.5,
|
|
2033
|
-
title: {
|
|
2034
|
-
text: '',
|
|
2035
|
-
|
|
2036
|
-
}
|
|
2037
|
-
},
|
|
2038
|
-
|
|
2039
|
-
plotOptions: {
|
|
2040
|
-
column: {
|
|
2041
|
-
pointPadding: 0.4,
|
|
2042
|
-
borderWidth: 0
|
|
2043
|
-
},
|
|
2044
|
-
series: {
|
|
2045
|
-
colorByPoint: true,
|
|
2046
|
-
colors: ["#CD5C5C", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#FF00FF", "#008080"]
|
|
2047
|
-
}
|
|
2048
|
-
},
|
|
2049
|
-
series: [{
|
|
2050
|
-
name: 'Month',
|
|
2051
|
-
data: data
|
|
2052
|
-
|
|
2053
|
-
}],
|
|
2054
|
-
|
|
2055
|
-
}
|
|
2056
|
-
this.showMonth = true;
|
|
2057
|
-
}
|
|
2058
|
-
/* #endregion */
|
|
2059
|
-
|
|
2060
|
-
/* #region CurrentMonth*/
|
|
2061
|
-
ticketCurrentMonthData: any = [];
|
|
2062
|
-
TotalOpenPrevCurrentMonthRequested: number = 0;
|
|
2063
|
-
setCurrentMonthChartData() {
|
|
2064
|
-
this.TotalOpenPrevCurrentMonthRequested = 0;
|
|
2065
|
-
let _data = [];
|
|
2066
|
-
for (let index = 0; index < 31; index++) {
|
|
2067
|
-
|
|
2068
|
-
if (this.ticketCurrentMonthData.length > 0) {
|
|
2069
|
-
if (this.ticketCurrentMonthData.length > index) {
|
|
2070
|
-
let temp = [this.ticketCurrentMonthData[index].Days, this.ticketCurrentMonthData[index].Count];
|
|
2071
|
-
if (temp.length) {
|
|
2072
|
-
_data.push(temp)
|
|
2073
|
-
}
|
|
2074
|
-
}
|
|
2075
|
-
else {
|
|
2076
|
-
let dummyData = ["Month", 0];
|
|
2077
|
-
_data.push(dummyData);
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
else {
|
|
2081
|
-
let dummyData = ["Month", 0];
|
|
2082
|
-
_data.push(dummyData);
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
this.getCurrentMonthChart(_data)
|
|
2088
|
-
}
|
|
2089
|
-
CurrentMonthChartOptions: any = {}
|
|
2090
|
-
showCurrentMonth: boolean = false;
|
|
2091
|
-
getCurrentMonthChart(data) {
|
|
2092
|
-
|
|
2093
|
-
this.CurrentMonthChartOptions = {
|
|
2094
|
-
chart: {
|
|
2095
|
-
type: 'column'
|
|
2096
|
-
},
|
|
2097
|
-
title: {
|
|
2098
|
-
text: 'Ticket Open CurrentMonth'
|
|
2099
|
-
},
|
|
2100
|
-
subtitle: {
|
|
2101
|
-
text: 'Based on Month Vise tickets count'
|
|
2102
|
-
},
|
|
2103
|
-
xAxis: {
|
|
2104
|
-
categories: data,
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
},
|
|
2108
|
-
yAxis: {
|
|
2109
|
-
min: 0.5,
|
|
2110
|
-
title: {
|
|
2111
|
-
text: '',
|
|
2112
|
-
|
|
2113
|
-
}
|
|
2114
|
-
},
|
|
2115
|
-
|
|
2116
|
-
plotOptions: {
|
|
2117
|
-
column: {
|
|
2118
|
-
pointPadding: 0.4,
|
|
2119
|
-
borderWidth: 0
|
|
2120
|
-
},
|
|
2121
|
-
series: {
|
|
2122
|
-
colorByPoint: true,
|
|
2123
|
-
colors: ["#FF00FF", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#CD5C5C", "#008080"]
|
|
2124
|
-
}
|
|
2125
|
-
},
|
|
2126
|
-
series: [{
|
|
2127
|
-
name: 'CurrentMonth',
|
|
2128
|
-
data: data
|
|
2129
|
-
|
|
2130
|
-
}],
|
|
2131
|
-
|
|
2132
|
-
}
|
|
2133
|
-
this.showCurrentMonth = true;
|
|
2134
|
-
}
|
|
2135
|
-
/* #endregion */
|
|
2136
|
-
|
|
2137
|
-
/*region ClosedMonth*/
|
|
2138
|
-
ticketClosedMonthData: any = [];
|
|
2139
|
-
TotalClosedPrevCurrentMonthRequested: number = 0;
|
|
2140
|
-
setClosedMonthChartData() {
|
|
2141
|
-
this.TotalClosedPrevCurrentMonthRequested = 0;
|
|
2142
|
-
let _data = [];
|
|
2143
|
-
for (let index = 0; index < 31; index++) {
|
|
2144
|
-
|
|
2145
|
-
if (this.ticketClosedMonthData.length > 0) {
|
|
2146
|
-
if (this.ticketClosedMonthData.length > index) {
|
|
2147
|
-
let temp = [this.ticketClosedMonthData[index].Days, this.ticketClosedMonthData[index].Count];
|
|
2148
|
-
if (temp.length) {
|
|
2149
|
-
_data.push(temp)
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
else {
|
|
2153
|
-
let dummyData = ["Month", 0];
|
|
2154
|
-
_data.push(dummyData);
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
else {
|
|
2158
|
-
let dummyData = ["Month", 0];
|
|
2159
|
-
_data.push(dummyData);
|
|
2160
|
-
}
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
this.getClosedMonthChart(_data)
|
|
2165
|
-
}
|
|
2166
|
-
ClosedMonthChartOptions: any = {}
|
|
2167
|
-
showClosedMonth: boolean = false;
|
|
2168
|
-
getClosedMonthChart(data) {
|
|
2169
|
-
|
|
2170
|
-
this.ClosedMonthChartOptions = {
|
|
2171
|
-
chart: {
|
|
2172
|
-
type: 'column'
|
|
2173
|
-
},
|
|
2174
|
-
title: {
|
|
2175
|
-
text: 'Ticket Open ClosedMonth'
|
|
2176
|
-
},
|
|
2177
|
-
subtitle: {
|
|
2178
|
-
text: 'Based on Month Vise tickets count'
|
|
2179
|
-
},
|
|
2180
|
-
xAxis: {
|
|
2181
|
-
categories: data,
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
},
|
|
2185
|
-
yAxis: {
|
|
2186
|
-
min: 0.5,
|
|
2187
|
-
title: {
|
|
2188
|
-
text: '',
|
|
2189
|
-
|
|
2190
|
-
}
|
|
2191
|
-
},
|
|
2192
|
-
|
|
2193
|
-
plotOptions: {
|
|
2194
|
-
column: {
|
|
2195
|
-
pointPadding: 0.4,
|
|
2196
|
-
borderWidth: 0
|
|
2197
|
-
},
|
|
2198
|
-
series: {
|
|
2199
|
-
colorByPoint: true,
|
|
2200
|
-
colors: ["#CD5C5C", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#FF00FF", "#008080"]
|
|
2201
|
-
}
|
|
2202
|
-
},
|
|
2203
|
-
series: [{
|
|
2204
|
-
name: 'ClosedMonth',
|
|
2205
|
-
data: data
|
|
2206
|
-
|
|
2207
|
-
}],
|
|
2208
|
-
|
|
2209
|
-
}
|
|
2210
|
-
this.showClosedMonth = true;
|
|
2211
|
-
}
|
|
2212
|
-
/*endregion*/
|
|
2213
|
-
|
|
2214
|
-
/* #region ClosedCurrentMonth*/
|
|
2215
|
-
ticketClosedCurrentMonthData: any = [];
|
|
2216
|
-
TotalPrevClosedCurrentMonthRequested: number = 0;
|
|
2217
|
-
setClosedCurrentMonthChartData() {
|
|
2218
|
-
this.TotalPrevClosedCurrentMonthRequested = 0;
|
|
2219
|
-
let _data = [];
|
|
2220
|
-
for (let index = 0; index < 31; index++) {
|
|
2221
|
-
|
|
2222
|
-
if (this.ticketClosedCurrentMonthData.length > 0) {
|
|
2223
|
-
if (this.ticketClosedCurrentMonthData.length > index) {
|
|
2224
|
-
let temp = [this.ticketClosedCurrentMonthData[index].Days, this.ticketClosedCurrentMonthData[index].Count];
|
|
2225
|
-
if (temp.length) {
|
|
2226
|
-
_data.push(temp)
|
|
2227
|
-
}
|
|
2228
|
-
}
|
|
2229
|
-
else {
|
|
2230
|
-
let dummyData = ["Month", 0];
|
|
2231
|
-
_data.push(dummyData);
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
else {
|
|
2235
|
-
let dummyData = ["Month", 0];
|
|
2236
|
-
_data.push(dummyData);
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
this.getClosedCurrentMonthChart(_data)
|
|
2242
|
-
}
|
|
2243
|
-
ClosedCurrentMonthChartOptions: any = {}
|
|
2244
|
-
showClosedCurrentMonth: boolean = false;
|
|
2245
|
-
getClosedCurrentMonthChart(data) {
|
|
2246
|
-
|
|
2247
|
-
this.ClosedCurrentMonthChartOptions = {
|
|
2248
|
-
chart: {
|
|
2249
|
-
type: 'column'
|
|
2250
|
-
},
|
|
2251
|
-
title: {
|
|
2252
|
-
text: 'Ticket Open CurrentMonth'
|
|
2253
|
-
},
|
|
2254
|
-
subtitle: {
|
|
2255
|
-
text: 'Based on Month Vise tickets count'
|
|
2256
|
-
},
|
|
2257
|
-
xAxis: {
|
|
2258
|
-
categories: data,
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
},
|
|
2262
|
-
yAxis: {
|
|
2263
|
-
min: 0.5,
|
|
2264
|
-
title: {
|
|
2265
|
-
text: '',
|
|
2266
|
-
|
|
2267
|
-
}
|
|
2268
|
-
},
|
|
2269
|
-
|
|
2270
|
-
plotOptions: {
|
|
2271
|
-
column: {
|
|
2272
|
-
pointPadding: 0.4,
|
|
2273
|
-
borderWidth: 0
|
|
2274
|
-
},
|
|
2275
|
-
series: {
|
|
2276
|
-
colorByPoint: true,
|
|
2277
|
-
colors: ["#FF00FF", "#FF7F50", "#9FE2BF", "#6495ED", "#FFBF00", "#CD5C5C", "#008080"]
|
|
2278
|
-
}
|
|
2279
|
-
},
|
|
2280
|
-
series: [{
|
|
2281
|
-
name: 'ClosedCurrentMonth',
|
|
2282
|
-
data: data
|
|
2283
|
-
|
|
2284
|
-
}],
|
|
2285
|
-
|
|
2286
|
-
}
|
|
2287
|
-
this.showClosedCurrentMonth = true;
|
|
2288
|
-
}
|
|
2289
|
-
/* #endregion */
|
|
2290
|
-
}
|