b2adminui 1.0.6 → 1.0.7
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/package.json +5 -2
- package/Dockerfile +0 -45
- package/app-config-prod.json +0 -6
- package/app-config.json +0 -10
- package/b2@1.0.0 +0 -0
- package/bs-config.json +0 -8
- package/config/helpers.js +0 -10
- package/config/karma-test-shim.js +0 -21
- package/config/karma.conf.js +0 -37
- package/config/webpack.common.js +0 -96
- package/config/webpack.dev.js +0 -24
- package/config/webpack.eks.js +0 -72
- package/config/webpack.prod.js +0 -72
- package/config/webpack.test.js +0 -53
- package/default.nginx.config +0 -60
- package/docker-entrypoint.sh +0 -6
- package/e2e-spec.ts +0 -21
- package/favicon.ico +0 -0
- package/karma.webpack.conf.js +0 -1
- package/npm +0 -0
- package/rimraf +0 -0
- package/src/app/app-config.ts +0 -21
- package/src/app/app-routing.module.ts +0 -165
- package/src/app/app.component.ts +0 -30
- package/src/app/app.module.ts +0 -72
- package/src/app/auth/auth.guard.ts +0 -192
- package/src/app/customer-management/customer-management.module.ts +0 -52
- package/src/app/customer-management/customer-personal-details/components/customer-personal-details.component.ts +0 -766
- package/src/app/customer-management/customer-personal-details/customer-personal-details.component.css +0 -4
- package/src/app/customer-management/customer-personal-details/customer-personal-details.component.html +0 -812
- package/src/app/customer-management/customer-personal-details/models/companyrisksetting.model.ts +0 -65
- package/src/app/customer-management/customer-profile-history-list/components/customer-profile-history-list.component.ts +0 -149
- package/src/app/customer-management/customer-profile-history-list/customer-profile-history-list.component.html +0 -104
- package/src/app/customer-management/customer-profile-history-list/models/customer-profile-history-list.model.ts +0 -33
- package/src/app/customer-management/customer-profile-history-list/models/index.ts +0 -1
- package/src/app/customer-management/customer-registration/components/customer-registration.component.ts +0 -1595
- package/src/app/customer-management/customer-registration/customer-registration.component.css +0 -6
- package/src/app/customer-management/customer-registration/customer-registration.component.html +0 -1169
- package/src/app/customer-management/customer-registration/models/approve-customer.model.ts +0 -5
- package/src/app/customer-management/customer-registration/models/index.ts +0 -1
- package/src/app/customer-management/customer-registration/models/wallet-registration.model.ts +0 -198
- package/src/app/customer-management/customer-registration-list/components/customer-registration-list.component.ts +0 -444
- package/src/app/customer-management/customer-registration-list/customer-registration-list.component.html +0 -354
- package/src/app/customer-management/customer-registration-list/models/index.ts +0 -2
- package/src/app/customer-management/customer-registration-list/models/wallet-list.model.ts +0 -44
- package/src/app/customer-management/customer-registration-list/models/wallet.model.ts +0 -13
- package/src/app/customer-management/manual-topup/components/manual-topup.component.ts +0 -299
- package/src/app/customer-management/manual-topup/manual-topup.component.html +0 -173
- package/src/app/customer-management/manual-topup/models/index.ts +0 -1
- package/src/app/customer-management/manual-topup/models/manual-topup.model.ts +0 -17
- package/src/app/customer-management/wallet-balance-history/components/wallet-balance-history.component.ts +0 -243
- package/src/app/customer-management/wallet-balance-history/models/balance-history-list.model.ts +0 -25
- package/src/app/customer-management/wallet-balance-history/models/balance-history.model.ts +0 -13
- package/src/app/customer-management/wallet-balance-history/models/index.ts +0 -3
- package/src/app/customer-management/wallet-balance-history/models/wallet.model.ts +0 -13
- package/src/app/customer-management/wallet-balance-history/wallet-balance-history.component.html +0 -182
- package/src/app/customer-management/wallet-history/components/wallet-history.component.ts +0 -239
- package/src/app/customer-management/wallet-history/models/index.ts +0 -2
- package/src/app/customer-management/wallet-history/models/wallet-history-list.model.ts +0 -11
- package/src/app/customer-management/wallet-history/models/wallet-history.model.ts +0 -10
- package/src/app/customer-management/wallet-history/wallet-history.component.html +0 -85
- package/src/app/external-change-password/components/external-change-password.component.ts +0 -71
- package/src/app/external-change-password/external-change-password.component.html +0 -57
- package/src/app/external-change-password/models/external-change-password.model.ts +0 -6
- package/src/app/fee-management/company/company.component.html +0 -491
- package/src/app/fee-management/company/components/company.component.ts +0 -472
- package/src/app/fee-management/company/models/company.model.ts +0 -55
- package/src/app/fee-management/company/models/index.ts +0 -1
- package/src/app/fee-management/company-wallet-profile/company-wallet-profile.component.html +0 -161
- package/src/app/fee-management/company-wallet-profile/components/company-wallet-profile.component.ts +0 -194
- package/src/app/fee-management/fee-management.module.ts +0 -51
- package/src/app/fee-management/menu-setup/models/menu-setup.model.ts +0 -75
- package/src/app/fee-management/wallet-fee-setting/components/wallet-fee-setting.component.ts +0 -337
- package/src/app/fee-management/wallet-fee-setting/models/index.ts +0 -7
- package/src/app/fee-management/wallet-fee-setting/models/transfer-fee.model.ts +0 -32
- package/src/app/fee-management/wallet-fee-setting/models/verify-risk-level.model.ts +0 -7
- package/src/app/fee-management/wallet-fee-setting/models/wallet-fee-setting.model.ts +0 -32
- package/src/app/fee-management/wallet-fee-setting/models/wallet-setting.model.ts +0 -17
- package/src/app/fee-management/wallet-fee-setting/models/wallet.model.ts +0 -28
- package/src/app/fee-management/wallet-fee-setting/wallet-fee-setting.component.html +0 -1226
- package/src/app/fee-management/wallet-profile-limit-setting/components/wallet-profile-limit-setting.component.ts +0 -284
- package/src/app/fee-management/wallet-profile-limit-setting/models/index.ts +0 -1
- package/src/app/fee-management/wallet-profile-limit-setting/models/wallet-profile-limit-setting.model.ts +0 -79
- package/src/app/fee-management/wallet-profile-limit-setting/wallet-profile-limit-setting.component.html +0 -1285
- package/src/app/fee-management/wallet-profile-setting-list/components/wallet-profile-setting-list.component.ts +0 -350
- package/src/app/fee-management/wallet-profile-setting-list/models/index.ts +0 -2
- package/src/app/fee-management/wallet-profile-setting-list/models/wallet-profile-setting-list.model.ts +0 -36
- package/src/app/fee-management/wallet-profile-setting-list/models/wallet-profile-setting.model.ts +0 -12
- package/src/app/fee-management/wallet-profile-setting-list/wallet-profile-setting-list.component.html +0 -220
- package/src/app/fee-management/wallet-topup/components/wallet-topup.component.ts +0 -209
- package/src/app/fee-management/wallet-topup/models/index.ts +0 -3
- package/src/app/fee-management/wallet-topup/models/wallet-topup.model.ts +0 -11
- package/src/app/fee-management/wallet-topup/wallet-topup.component.html +0 -97
- package/src/app/forgot-password/components/forgot-password.component.ts +0 -87
- package/src/app/forgot-password/forgot-password.component.html +0 -40
- package/src/app/forgot-password/models/forgot-password.model.ts +0 -5
- package/src/app/forgot-password/models/index.ts +0 -2
- package/src/app/login/components/login.component.ts +0 -199
- package/src/app/login/login.component.html +0 -49
- package/src/app/login/models/common.model.ts +0 -21
- package/src/app/login/models/login.model.ts +0 -5
- package/src/app/models/audit-log-insert.model.ts +0 -11
- package/src/app/models/common.model.ts +0 -56
- package/src/app/models/index.ts +0 -4
- package/src/app/models/navigation-data.model.ts +0 -24
- package/src/app/models/page-info-model.ts +0 -4
- package/src/app/models/response-model.ts +0 -5
- package/src/app/models/search-model.ts +0 -21
- package/src/app/navbar/components/navbar.component.ts +0 -288
- package/src/app/navbar/navbar.component.html +0 -200
- package/src/app/profile-setting/change-password/change-password.component.html +0 -85
- package/src/app/profile-setting/change-password/components/change-password.component.ts +0 -76
- package/src/app/profile-setting/change-password/models/change-password.model.ts +0 -5
- package/src/app/profile-setting/change-password/models/index.ts +0 -1
- package/src/app/profile-setting/profile-setting/components/profile-setting.component.ts +0 -234
- package/src/app/profile-setting/profile-setting/models/profile-setting.model.ts +0 -21
- package/src/app/profile-setting/profile-setting/profile-setting.component.html +0 -228
- package/src/app/profile-setting/profile-setting.module.ts +0 -22
- package/src/app/shared/alerts/alertOptions.ts +0 -14
- package/src/app/shared/alerts/alerts.ts +0 -57
- package/src/app/shared/common/common.ts +0 -1353
- package/src/app/shared/constants/constants.ts +0 -550
- package/src/app/shared/interceptor/https-interceptor.ts +0 -69
- package/src/app/shared/service/shared.service.ts +0 -287
- package/src/app/shared/source-of-fund/source-of-fund.ts +0 -4
- package/src/app/shared/transaction/transaction-type-status.ts +0 -32
- package/src/app/transaction-history/transaction-history.module.ts +0 -83
- package/src/app/transaction-history/wallet-transaction-list/components/wallet-transaction-list.component.ts +0 -500
- package/src/app/transaction-history/wallet-transaction-list/models/wallet-transaction-list.model.ts +0 -75
- package/src/app/transaction-history/wallet-transaction-list/wallet-transaction-list.component.html +0 -530
- package/src/app/transaction-history/wallet-transaction-list-details/components/wallet-transaction-list-details.component.ts +0 -154
- package/src/app/transaction-history/wallet-transaction-list-details/models/index.ts +0 -3
- package/src/app/transaction-history/wallet-transaction-list-details/models/wallet-transaction-list-details.model.ts +0 -39
- package/src/app/transaction-history/wallet-transaction-list-details/models/wallet-transaction-refund.model.ts +0 -5
- package/src/app/transaction-history/wallet-transaction-list-details/wallet-transaction-list-details.component.html +0 -452
- package/src/app/user-management/audit-log-list/audit-log-list.component.html +0 -198
- package/src/app/user-management/audit-log-list/components/audit-log-list.component.ts +0 -415
- package/src/app/user-management/audit-log-list/models/audit-log-list.model.ts +0 -38
- package/src/app/user-management/audit-log-list/models/audit-log.model.ts +0 -11
- package/src/app/user-management/audit-log-list/models/index.ts +0 -2
- package/src/app/user-management/system-user/components/system-user.component.ts +0 -466
- package/src/app/user-management/system-user/models/system-user.model.ts +0 -23
- package/src/app/user-management/system-user/system-user.component.html +0 -349
- package/src/app/user-management/system-user-list/components/system-user-list.component.ts +0 -399
- package/src/app/user-management/system-user-list/models/index.ts +0 -2
- package/src/app/user-management/system-user-list/models/system-user-list.model.ts +0 -40
- package/src/app/user-management/system-user-list/models/system-user.model.ts +0 -11
- package/src/app/user-management/system-user-list/system-user-list.component.html +0 -266
- package/src/app/user-management/user-group-permission/components/user-group-permission.component.ts +0 -1819
- package/src/app/user-management/user-group-permission/models/user-group-permission.model.ts +0 -288
- package/src/app/user-management/user-group-permission/user-group-permission.component.html +0 -100
- package/src/app/user-management/user-group-permission-list/components/user-group-permission-list.component.ts +0 -379
- package/src/app/user-management/user-group-permission-list/models/index.ts +0 -2
- package/src/app/user-management/user-group-permission-list/models/user-group-permission-list.model.ts +0 -28
- package/src/app/user-management/user-group-permission-list/models/user-group-permission.model.ts +0 -8
- package/src/app/user-management/user-group-permission-list/user-group-permission-list.component.html +0 -184
- package/src/app/user-management/user-management.module.ts +0 -38
- package/src/app/validate-change-password/components/validate-change-password.component.ts +0 -66
- package/src/app/validate-change-password/validate-change-password.component.html +0 -8
- package/src/assets/css/animate.css +0 -2848
- package/src/assets/css/bootstrap.css +0 -6760
- package/src/assets/css/bootstrap.css.map +0 -1
- package/src/assets/css/bootstrap.min.css +0 -6
- package/src/assets/css/bootstrap.min.css.map +0 -1
- package/src/assets/css/font.css +0 -10
- package/src/assets/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css +0 -251
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery-indicator.css +0 -71
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery-video.css +0 -87
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery.css +0 -226
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery.min.css +0 -1
- package/src/assets/css/plugins/blueimp/css/demo.css +0 -51
- package/src/assets/css/plugins/blueimp/img/error.png +0 -0
- package/src/assets/css/plugins/blueimp/img/error.svg +0 -5
- package/src/assets/css/plugins/blueimp/img/loading.gif +0 -0
- package/src/assets/css/plugins/blueimp/img/play-pause.png +0 -0
- package/src/assets/css/plugins/blueimp/img/play-pause.svg +0 -6
- package/src/assets/css/plugins/blueimp/img/video-play.png +0 -0
- package/src/assets/css/plugins/blueimp/img/video-play.svg +0 -5
- package/src/assets/css/plugins/bootstrap-datepicker/bootstrap-datepicker3.min.css +0 -9
- package/src/assets/css/plugins/bootstrap-markdown/bootstrap-markdown.min.css +0 -1
- package/src/assets/css/plugins/bootstrap-rtl/bootstrap-rtl.css +0 -1468
- package/src/assets/css/plugins/bootstrap-rtl/bootstrap-rtl.css.map +0 -1
- package/src/assets/css/plugins/bootstrap-rtl/bootstrap-rtl.min.css +0 -9
- package/src/assets/css/plugins/bootstrap-timepicker/bootstrap-timepicker.min.css +0 -10
- package/src/assets/css/plugins/bootstrapTour/bootstrap-tour.min.css +0 -22
- package/src/assets/css/plugins/c3/c3.min.css +0 -1
- package/src/assets/css/plugins/chartist/chartist.min.css +0 -773
- package/src/assets/css/plugins/chosen/chosen-sprite.png +0 -0
- package/src/assets/css/plugins/chosen/chosen-sprite@2x.png +0 -0
- package/src/assets/css/plugins/chosen/chosen.css +0 -429
- package/src/assets/css/plugins/clockpicker/clockpicker.css +0 -168
- package/src/assets/css/plugins/codemirror/ambiance.css +0 -77
- package/src/assets/css/plugins/codemirror/codemirror.css +0 -309
- package/src/assets/css/plugins/colorpicker/bootstrap-colorpicker.min.css +0 -9
- package/src/assets/css/plugins/cropper/cropper.min.css +0 -9
- package/src/assets/css/plugins/dataTables/datatables.min.css +0 -21
- package/src/assets/css/plugins/datapicker/datepicker3.css +0 -789
- package/src/assets/css/plugins/datatables.net/css/jquery.dataTables.css +0 -455
- package/src/assets/css/plugins/datatables.net/images/sort_asc.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_asc_disabled.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_both.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_desc.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_desc_disabled.png +0 -0
- package/src/assets/css/plugins/daterangepicker/daterangepicker-bs3.css +0 -335
- package/src/assets/css/plugins/dropzone/basic.css +0 -155
- package/src/assets/css/plugins/dropzone/dropzone.css +0 -410
- package/src/assets/css/plugins/footable/fonts/footable.eot +0 -0
- package/src/assets/css/plugins/footable/fonts/footable.svg +0 -78
- package/src/assets/css/plugins/footable/fonts/footable.ttf +0 -0
- package/src/assets/css/plugins/footable/fonts/footable.woff +0 -0
- package/src/assets/css/plugins/footable/footable.core.css +0 -178
- package/src/assets/css/plugins/fullcalendar/fullcalendar.css +0 -977
- package/src/assets/css/plugins/fullcalendar/fullcalendar.print.css +0 -202
- package/src/assets/css/plugins/iCheck/custom.css +0 -59
- package/src/assets/css/plugins/iCheck/green.png +0 -0
- package/src/assets/css/plugins/iCheck/green@2x.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/alpha.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/hue.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/saturation.png +0 -0
- package/src/assets/css/plugins/images/sort.png +0 -0
- package/src/assets/css/plugins/images/sort_asc.png +0 -0
- package/src/assets/css/plugins/images/sort_desc.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-flat.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-flat2.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-nice.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-simple.png +0 -0
- package/src/assets/css/plugins/images/spritemap.png +0 -0
- package/src/assets/css/plugins/images/spritemap@2x.png +0 -0
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.css +0 -126
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css +0 -89
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.skinNice.css +0 -85
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.skinSimple.css +0 -85
- package/src/assets/css/plugins/jQueryUI/images/animated-overlay.gif +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_222222_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_2e83ff_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_454545_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_888888_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_cd0a0a_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css +0 -7
- package/src/assets/css/plugins/jQueryUI/jquery-ui.css +0 -1177
- package/src/assets/css/plugins/jasny/jasny-bootstrap.min.css +0 -7
- package/src/assets/css/plugins/jqGrid/ui.jqgrid.css +0 -171
- package/src/assets/css/plugins/jsTree/32px.png +0 -0
- package/src/assets/css/plugins/jsTree/39px.png +0 -0
- package/src/assets/css/plugins/jsTree/40px.png +0 -0
- package/src/assets/css/plugins/jsTree/style.css +0 -1050
- package/src/assets/css/plugins/jsTree/style.min.css +0 -1
- package/src/assets/css/plugins/jsTree/throbber.gif +0 -0
- package/src/assets/css/plugins/ladda/ladda-themeless.min.css +0 -7
- package/src/assets/css/plugins/ladda/ladda.min.css +0 -9
- package/src/assets/css/plugins/morris/morris-0.4.3.min.css +0 -2
- package/src/assets/css/plugins/nouslider/jquery.nouislider.css +0 -165
- package/src/assets/css/plugins/select2/select2.min.css +0 -1
- package/src/assets/css/plugins/slick/ajax-loader.gif +0 -0
- package/src/assets/css/plugins/slick/fonts/slick.eot +0 -0
- package/src/assets/css/plugins/slick/fonts/slick.svg +0 -14
- package/src/assets/css/plugins/slick/fonts/slick.ttf +0 -0
- package/src/assets/css/plugins/slick/fonts/slick.woff +0 -0
- package/src/assets/css/plugins/slick/slick-theme.css +0 -201
- package/src/assets/css/plugins/slick/slick.css +0 -119
- package/src/assets/css/plugins/social-buttons/social-buttons.css +0 -68
- package/src/assets/css/plugins/steps/jquery.steps.css +0 -380
- package/src/assets/css/plugins/summernote/summernote-bs3.css +0 -5970
- package/src/assets/css/plugins/summernote/summernote.css +0 -446
- package/src/assets/css/plugins/sweetalert/sweetalert.css +0 -715
- package/src/assets/css/plugins/switchery/switchery.css +0 -32
- package/src/assets/css/plugins/toastr/ng2-toastr.min.css +0 -1
- package/src/assets/css/plugins/toastr/toastr.min.css +0 -222
- package/src/assets/css/plugins/touchspin/jquery.bootstrap-touchspin.min.css +0 -10
- package/src/assets/css/style.css +0 -9725
- package/src/assets/css/style.scss +0 -1
- package/src/assets/font-awesome/css/font-awesome.css +0 -2337
- package/src/assets/font-awesome/css/font-awesome.min.css +0 -4
- package/src/assets/font-awesome/fonts/FontAwesome.otf +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.svg +0 -2671
- package/src/assets/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- package/src/assets/font-awesome/less/animated.less +0 -34
- package/src/assets/font-awesome/less/bordered-pulled.less +0 -25
- package/src/assets/font-awesome/less/core.less +0 -12
- package/src/assets/font-awesome/less/fixed-width.less +0 -6
- package/src/assets/font-awesome/less/font-awesome.less +0 -18
- package/src/assets/font-awesome/less/icons.less +0 -789
- package/src/assets/font-awesome/less/larger.less +0 -13
- package/src/assets/font-awesome/less/list.less +0 -19
- package/src/assets/font-awesome/less/mixins.less +0 -60
- package/src/assets/font-awesome/less/path.less +0 -15
- package/src/assets/font-awesome/less/rotated-flipped.less +0 -20
- package/src/assets/font-awesome/less/screen-reader.less +0 -5
- package/src/assets/font-awesome/less/stacked.less +0 -20
- package/src/assets/font-awesome/less/variables.less +0 -800
- package/src/assets/font-awesome/scss/_animated.scss +0 -34
- package/src/assets/font-awesome/scss/_bordered-pulled.scss +0 -25
- package/src/assets/font-awesome/scss/_core.scss +0 -12
- package/src/assets/font-awesome/scss/_fixed-width.scss +0 -6
- package/src/assets/font-awesome/scss/_icons.scss +0 -789
- package/src/assets/font-awesome/scss/_larger.scss +0 -13
- package/src/assets/font-awesome/scss/_list.scss +0 -19
- package/src/assets/font-awesome/scss/_mixins.scss +0 -60
- package/src/assets/font-awesome/scss/_path.scss +0 -15
- package/src/assets/font-awesome/scss/_rotated-flipped.scss +0 -20
- package/src/assets/font-awesome/scss/_screen-reader.scss +0 -5
- package/src/assets/font-awesome/scss/_stacked.scss +0 -20
- package/src/assets/font-awesome/scss/_variables.scss +0 -800
- package/src/assets/font-awesome/scss/font-awesome.scss +0 -18
- package/src/assets/fonts/DejaVuSans-Bold.ttf +0 -0
- package/src/assets/fonts/DejaVuSans-Oblique.ttf +0 -0
- package/src/assets/fonts/DejaVuSans.ttf +0 -0
- package/src/assets/fonts/Garuda.ttf +0 -0
- package/src/assets/fonts/NotoSansThaiUI-Regular.ttf +0 -0
- package/src/assets/fonts/TH-Charmonman-Regular.ttf +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.svg +0 -288
- package/src/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/assets/fonts/kanit-v3-latin_latin-ext_thai-regular.ttf +0 -0
- package/src/assets/img/2c2p_169x60.png +0 -0
- package/src/assets/img/2c2p_169x60_black_header.png +0 -0
- package/src/assets/img/calendar_gray.png +0 -0
- package/src/assets/img/success.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/img/warning.png +0 -0
- package/src/assets/js/bootstrap.js +0 -2363
- package/src/assets/js/bootstrap.min.js +0 -7
- package/src/assets/js/demo/chartjs-demo.js +0 -217
- package/src/assets/js/demo/dashboard-demo.js +0 -117
- package/src/assets/js/demo/flot-demo.js +0 -308
- package/src/assets/js/demo/flot-demo2.js +0 -377
- package/src/assets/js/demo/morris-demo.js +0 -89
- package/src/assets/js/demo/peity-demo.js +0 -33
- package/src/assets/js/demo/rickshaw-demo.js +0 -103
- package/src/assets/js/demo/sparkline-demo.js +0 -51
- package/src/assets/js/inspinia.js +0 -301
- package/src/assets/js/jquery-2.1.1.js +0 -4
- package/src/assets/js/jquery-3.3.1.min.js +0 -2
- package/src/assets/js/jquery-ui-1.10.4.min.js +0 -7
- package/src/assets/js/jquery-ui.custom.min.js +0 -16
- package/src/assets/js/plugins/blueimp/jquery.blueimp-gallery.min.js +0 -1
- package/src/assets/js/plugins/bootstrap-datepicker/bootstrap-datepicker.min.js +0 -9
- package/src/assets/js/plugins/bootstrap-markdown/bootstrap-markdown.js +0 -1386
- package/src/assets/js/plugins/bootstrap-markdown/markdown.js +0 -1616
- package/src/assets/js/plugins/bootstrap-timepicker/bootstrap-timepicker.min.js +0 -5
- package/src/assets/js/plugins/bootstrapTour/bootstrap-tour.min.js +0 -22
- package/src/assets/js/plugins/c3/c3.min.js +0 -5
- package/src/assets/js/plugins/chartJs/Chart.min.js +0 -14
- package/src/assets/js/plugins/chartist/chartist.min.js +0 -9
- package/src/assets/js/plugins/chartist/chartist.min.js.map +0 -1
- package/src/assets/js/plugins/chosen/chosen.jquery.js +0 -1211
- package/src/assets/js/plugins/clipboard/clipboard.min.js +0 -7
- package/src/assets/js/plugins/clockpicker/clockpicker.js +0 -729
- package/src/assets/js/plugins/codemirror/codemirror.js +0 -7830
- package/src/assets/js/plugins/codemirror/mode/apl/apl.js +0 -175
- package/src/assets/js/plugins/codemirror/mode/apl/index.html +0 -72
- package/src/assets/js/plugins/codemirror/mode/asterisk/asterisk.js +0 -198
- package/src/assets/js/plugins/codemirror/mode/asterisk/index.html +0 -154
- package/src/assets/js/plugins/codemirror/mode/clike/clike.js +0 -474
- package/src/assets/js/plugins/codemirror/mode/clike/index.html +0 -225
- package/src/assets/js/plugins/codemirror/mode/clike/scala.html +0 -767
- package/src/assets/js/plugins/codemirror/mode/clojure/clojure.js +0 -243
- package/src/assets/js/plugins/codemirror/mode/clojure/index.html +0 -88
- package/src/assets/js/plugins/codemirror/mode/cobol/cobol.js +0 -255
- package/src/assets/js/plugins/codemirror/mode/cobol/index.html +0 -210
- package/src/assets/js/plugins/codemirror/mode/coffeescript/coffeescript.js +0 -369
- package/src/assets/js/plugins/codemirror/mode/coffeescript/index.html +0 -740
- package/src/assets/js/plugins/codemirror/mode/commonlisp/commonlisp.js +0 -120
- package/src/assets/js/plugins/codemirror/mode/commonlisp/index.html +0 -177
- package/src/assets/js/plugins/codemirror/mode/css/css.js +0 -717
- package/src/assets/js/plugins/codemirror/mode/css/index.html +0 -70
- package/src/assets/js/plugins/codemirror/mode/css/less.html +0 -152
- package/src/assets/js/plugins/codemirror/mode/css/less_test.js +0 -51
- package/src/assets/js/plugins/codemirror/mode/css/scss.html +0 -157
- package/src/assets/js/plugins/codemirror/mode/css/scss_test.js +0 -110
- package/src/assets/js/plugins/codemirror/mode/css/test.js +0 -135
- package/src/assets/js/plugins/codemirror/mode/cypher/cypher.js +0 -146
- package/src/assets/js/plugins/codemirror/mode/cypher/index.html +0 -63
- package/src/assets/js/plugins/codemirror/mode/d/d.js +0 -218
- package/src/assets/js/plugins/codemirror/mode/d/index.html +0 -273
- package/src/assets/js/plugins/codemirror/mode/diff/diff.js +0 -47
- package/src/assets/js/plugins/codemirror/mode/diff/index.html +0 -117
- package/src/assets/js/plugins/codemirror/mode/django/django.js +0 -67
- package/src/assets/js/plugins/codemirror/mode/django/index.html +0 -63
- package/src/assets/js/plugins/codemirror/mode/dtd/dtd.js +0 -142
- package/src/assets/js/plugins/codemirror/mode/dtd/index.html +0 -89
- package/src/assets/js/plugins/codemirror/mode/dylan/dylan.js +0 -299
- package/src/assets/js/plugins/codemirror/mode/dylan/index.html +0 -407
- package/src/assets/js/plugins/codemirror/mode/ecl/ecl.js +0 -207
- package/src/assets/js/plugins/codemirror/mode/ecl/index.html +0 -52
- package/src/assets/js/plugins/codemirror/mode/eiffel/eiffel.js +0 -162
- package/src/assets/js/plugins/codemirror/mode/eiffel/index.html +0 -429
- package/src/assets/js/plugins/codemirror/mode/erlang/erlang.js +0 -622
- package/src/assets/js/plugins/codemirror/mode/erlang/index.html +0 -76
- package/src/assets/js/plugins/codemirror/mode/fortran/fortran.js +0 -188
- package/src/assets/js/plugins/codemirror/mode/fortran/index.html +0 -81
- package/src/assets/js/plugins/codemirror/mode/gas/gas.js +0 -345
- package/src/assets/js/plugins/codemirror/mode/gas/index.html +0 -68
- package/src/assets/js/plugins/codemirror/mode/gfm/gfm.js +0 -122
- package/src/assets/js/plugins/codemirror/mode/gfm/index.html +0 -82
- package/src/assets/js/plugins/codemirror/mode/gfm/test.js +0 -164
- package/src/assets/js/plugins/codemirror/mode/gherkin/gherkin.js +0 -178
- package/src/assets/js/plugins/codemirror/mode/gherkin/index.html +0 -48
- package/src/assets/js/plugins/codemirror/mode/go/go.js +0 -184
- package/src/assets/js/plugins/codemirror/mode/go/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/groovy/groovy.js +0 -226
- package/src/assets/js/plugins/codemirror/mode/groovy/index.html +0 -84
- package/src/assets/js/plugins/codemirror/mode/haml/haml.js +0 -159
- package/src/assets/js/plugins/codemirror/mode/haml/index.html +0 -79
- package/src/assets/js/plugins/codemirror/mode/haml/test.js +0 -97
- package/src/assets/js/plugins/codemirror/mode/haskell/haskell.js +0 -267
- package/src/assets/js/plugins/codemirror/mode/haskell/index.html +0 -73
- package/src/assets/js/plugins/codemirror/mode/haxe/haxe.js +0 -518
- package/src/assets/js/plugins/codemirror/mode/haxe/index.html +0 -124
- package/src/assets/js/plugins/codemirror/mode/htmlembedded/htmlembedded.js +0 -86
- package/src/assets/js/plugins/codemirror/mode/htmlembedded/index.html +0 -58
- package/src/assets/js/plugins/codemirror/mode/htmlmixed/htmlmixed.js +0 -121
- package/src/assets/js/plugins/codemirror/mode/htmlmixed/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/http/http.js +0 -113
- package/src/assets/js/plugins/codemirror/mode/http/index.html +0 -45
- package/src/assets/js/plugins/codemirror/mode/index.html +0 -125
- package/src/assets/js/plugins/codemirror/mode/jade/index.html +0 -70
- package/src/assets/js/plugins/codemirror/mode/jade/jade.js +0 -590
- package/src/assets/js/plugins/codemirror/mode/javascript/index.html +0 -114
- package/src/assets/js/plugins/codemirror/mode/javascript/javascript.js +0 -684
- package/src/assets/js/plugins/codemirror/mode/javascript/json-ld.html +0 -72
- package/src/assets/js/plugins/codemirror/mode/javascript/test.js +0 -194
- package/src/assets/js/plugins/codemirror/mode/javascript/typescript.html +0 -61
- package/src/assets/js/plugins/codemirror/mode/jinja2/index.html +0 -54
- package/src/assets/js/plugins/codemirror/mode/jinja2/jinja2.js +0 -142
- package/src/assets/js/plugins/codemirror/mode/julia/index.html +0 -195
- package/src/assets/js/plugins/codemirror/mode/julia/julia.js +0 -301
- package/src/assets/js/plugins/codemirror/mode/kotlin/index.html +0 -89
- package/src/assets/js/plugins/codemirror/mode/kotlin/kotlin.js +0 -280
- package/src/assets/js/plugins/codemirror/mode/livescript/index.html +0 -459
- package/src/assets/js/plugins/codemirror/mode/livescript/livescript.js +0 -280
- package/src/assets/js/plugins/codemirror/mode/lua/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/lua/lua.js +0 -159
- package/src/assets/js/plugins/codemirror/mode/markdown/index.html +0 -359
- package/src/assets/js/plugins/codemirror/mode/markdown/markdown.js +0 -758
- package/src/assets/js/plugins/codemirror/mode/markdown/test.js +0 -754
- package/src/assets/js/plugins/codemirror/mode/meta.js +0 -144
- package/src/assets/js/plugins/codemirror/mode/mirc/index.html +0 -160
- package/src/assets/js/plugins/codemirror/mode/mirc/mirc.js +0 -193
- package/src/assets/js/plugins/codemirror/mode/mllike/index.html +0 -179
- package/src/assets/js/plugins/codemirror/mode/mllike/mllike.js +0 -205
- package/src/assets/js/plugins/codemirror/mode/modelica/index.html +0 -67
- package/src/assets/js/plugins/codemirror/mode/modelica/modelica.js +0 -245
- package/src/assets/js/plugins/codemirror/mode/nginx/index.html +0 -181
- package/src/assets/js/plugins/codemirror/mode/nginx/nginx.js +0 -178
- package/src/assets/js/plugins/codemirror/mode/ntriples/index.html +0 -45
- package/src/assets/js/plugins/codemirror/mode/ntriples/ntriples.js +0 -186
- package/src/assets/js/plugins/codemirror/mode/octave/index.html +0 -83
- package/src/assets/js/plugins/codemirror/mode/octave/octave.js +0 -135
- package/src/assets/js/plugins/codemirror/mode/pascal/index.html +0 -61
- package/src/assets/js/plugins/codemirror/mode/pascal/pascal.js +0 -109
- package/src/assets/js/plugins/codemirror/mode/pegjs/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/pegjs/pegjs.js +0 -114
- package/src/assets/js/plugins/codemirror/mode/perl/index.html +0 -75
- package/src/assets/js/plugins/codemirror/mode/perl/perl.js +0 -832
- package/src/assets/js/plugins/codemirror/mode/php/index.html +0 -64
- package/src/assets/js/plugins/codemirror/mode/php/php.js +0 -226
- package/src/assets/js/plugins/codemirror/mode/php/test.js +0 -154
- package/src/assets/js/plugins/codemirror/mode/pig/index.html +0 -55
- package/src/assets/js/plugins/codemirror/mode/pig/pig.js +0 -188
- package/src/assets/js/plugins/codemirror/mode/properties/index.html +0 -53
- package/src/assets/js/plugins/codemirror/mode/properties/properties.js +0 -78
- package/src/assets/js/plugins/codemirror/mode/puppet/index.html +0 -121
- package/src/assets/js/plugins/codemirror/mode/puppet/puppet.js +0 -220
- package/src/assets/js/plugins/codemirror/mode/python/index.html +0 -198
- package/src/assets/js/plugins/codemirror/mode/python/python.js +0 -359
- package/src/assets/js/plugins/codemirror/mode/q/index.html +0 -144
- package/src/assets/js/plugins/codemirror/mode/q/q.js +0 -139
- package/src/assets/js/plugins/codemirror/mode/r/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/r/r.js +0 -162
- package/src/assets/js/plugins/codemirror/mode/rpm/changes/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/rpm/index.html +0 -149
- package/src/assets/js/plugins/codemirror/mode/rpm/rpm.js +0 -101
- package/src/assets/js/plugins/codemirror/mode/rst/index.html +0 -535
- package/src/assets/js/plugins/codemirror/mode/rst/rst.js +0 -557
- package/src/assets/js/plugins/codemirror/mode/ruby/index.html +0 -184
- package/src/assets/js/plugins/codemirror/mode/ruby/ruby.js +0 -285
- package/src/assets/js/plugins/codemirror/mode/ruby/test.js +0 -14
- package/src/assets/js/plugins/codemirror/mode/rust/index.html +0 -60
- package/src/assets/js/plugins/codemirror/mode/rust/rust.js +0 -451
- package/src/assets/js/plugins/codemirror/mode/sass/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/sass/sass.js +0 -327
- package/src/assets/js/plugins/codemirror/mode/scheme/index.html +0 -77
- package/src/assets/js/plugins/codemirror/mode/scheme/scheme.js +0 -248
- package/src/assets/js/plugins/codemirror/mode/shell/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/shell/shell.js +0 -138
- package/src/assets/js/plugins/codemirror/mode/shell/test.js +0 -58
- package/src/assets/js/plugins/codemirror/mode/sieve/index.html +0 -93
- package/src/assets/js/plugins/codemirror/mode/sieve/sieve.js +0 -193
- package/src/assets/js/plugins/codemirror/mode/slim/index.html +0 -96
- package/src/assets/js/plugins/codemirror/mode/slim/slim.js +0 -575
- package/src/assets/js/plugins/codemirror/mode/slim/test.js +0 -96
- package/src/assets/js/plugins/codemirror/mode/smalltalk/index.html +0 -68
- package/src/assets/js/plugins/codemirror/mode/smalltalk/smalltalk.js +0 -168
- package/src/assets/js/plugins/codemirror/mode/smarty/index.html +0 -136
- package/src/assets/js/plugins/codemirror/mode/smarty/smarty.js +0 -221
- package/src/assets/js/plugins/codemirror/mode/smartymixed/index.html +0 -114
- package/src/assets/js/plugins/codemirror/mode/smartymixed/smartymixed.js +0 -197
- package/src/assets/js/plugins/codemirror/mode/solr/index.html +0 -57
- package/src/assets/js/plugins/codemirror/mode/solr/solr.js +0 -104
- package/src/assets/js/plugins/codemirror/mode/sparql/index.html +0 -53
- package/src/assets/js/plugins/codemirror/mode/sparql/sparql.js +0 -160
- package/src/assets/js/plugins/codemirror/mode/sql/index.html +0 -84
- package/src/assets/js/plugins/codemirror/mode/sql/sql.js +0 -393
- package/src/assets/js/plugins/codemirror/mode/stex/index.html +0 -110
- package/src/assets/js/plugins/codemirror/mode/stex/stex.js +0 -262
- package/src/assets/js/plugins/codemirror/mode/stex/test.js +0 -123
- package/src/assets/js/plugins/codemirror/mode/tcl/index.html +0 -142
- package/src/assets/js/plugins/codemirror/mode/tcl/tcl.js +0 -147
- package/src/assets/js/plugins/codemirror/mode/textile/index.html +0 -191
- package/src/assets/js/plugins/codemirror/mode/textile/test.js +0 -406
- package/src/assets/js/plugins/codemirror/mode/textile/textile.js +0 -553
- package/src/assets/js/plugins/codemirror/mode/tiddlywiki/index.html +0 -154
- package/src/assets/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
- package/src/assets/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -369
- package/src/assets/js/plugins/codemirror/mode/tiki/index.html +0 -95
- package/src/assets/js/plugins/codemirror/mode/tiki/tiki.css +0 -26
- package/src/assets/js/plugins/codemirror/mode/tiki/tiki.js +0 -323
- package/src/assets/js/plugins/codemirror/mode/toml/index.html +0 -73
- package/src/assets/js/plugins/codemirror/mode/toml/toml.js +0 -88
- package/src/assets/js/plugins/codemirror/mode/tornado/index.html +0 -63
- package/src/assets/js/plugins/codemirror/mode/tornado/tornado.js +0 -68
- package/src/assets/js/plugins/codemirror/mode/turtle/index.html +0 -50
- package/src/assets/js/plugins/codemirror/mode/turtle/turtle.js +0 -160
- package/src/assets/js/plugins/codemirror/mode/vb/index.html +0 -102
- package/src/assets/js/plugins/codemirror/mode/vb/vb.js +0 -274
- package/src/assets/js/plugins/codemirror/mode/vbscript/index.html +0 -55
- package/src/assets/js/plugins/codemirror/mode/vbscript/vbscript.js +0 -350
- package/src/assets/js/plugins/codemirror/mode/velocity/index.html +0 -118
- package/src/assets/js/plugins/codemirror/mode/velocity/velocity.js +0 -201
- package/src/assets/js/plugins/codemirror/mode/verilog/index.html +0 -120
- package/src/assets/js/plugins/codemirror/mode/verilog/test.js +0 -273
- package/src/assets/js/plugins/codemirror/mode/verilog/verilog.js +0 -364
- package/src/assets/js/plugins/codemirror/mode/xml/index.html +0 -57
- package/src/assets/js/plugins/codemirror/mode/xml/test.js +0 -51
- package/src/assets/js/plugins/codemirror/mode/xml/xml.js +0 -384
- package/src/assets/js/plugins/codemirror/mode/xquery/index.html +0 -210
- package/src/assets/js/plugins/codemirror/mode/xquery/test.js +0 -67
- package/src/assets/js/plugins/codemirror/mode/xquery/xquery.js +0 -447
- package/src/assets/js/plugins/codemirror/mode/yaml/index.html +0 -80
- package/src/assets/js/plugins/codemirror/mode/yaml/yaml.js +0 -112
- package/src/assets/js/plugins/codemirror/mode/z80/index.html +0 -52
- package/src/assets/js/plugins/codemirror/mode/z80/z80.js +0 -100
- package/src/assets/js/plugins/colorpicker/bootstrap-colorpicker.min.js +0 -1
- package/src/assets/js/plugins/cropper/cropper.min.js +0 -9
- package/src/assets/js/plugins/d3/d3.min.js +0 -5
- package/src/assets/js/plugins/dataTables/datatables.min.js +0 -336
- package/src/assets/js/plugins/datapicker/bootstrap-datepicker.js +0 -1671
- package/src/assets/js/plugins/datatables.net/jquery.dataTables.js +0 -15344
- package/src/assets/js/plugins/daterangepicker/daterangepicker.js +0 -1304
- package/src/assets/js/plugins/diff_match_patch/COPYING +0 -177
- package/src/assets/js/plugins/diff_match_patch/README.txt +0 -43
- package/src/assets/js/plugins/diff_match_patch/javascript/diff_match_patch.js +0 -49
- package/src/assets/js/plugins/dotdotdot/jquery.dotdotdot.min.js +0 -13
- package/src/assets/js/plugins/dropzone/dropzone.js +0 -1841
- package/src/assets/js/plugins/easypiechart/easypiechart.js +0 -350
- package/src/assets/js/plugins/easypiechart/jquery.easypiechart.js +0 -359
- package/src/assets/js/plugins/flot/curvedLines.js +0 -315
- package/src/assets/js/plugins/flot/excanvas.min.js +0 -1
- package/src/assets/js/plugins/flot/jquery.flot.js +0 -3168
- package/src/assets/js/plugins/flot/jquery.flot.pie.js +0 -820
- package/src/assets/js/plugins/flot/jquery.flot.resize.js +0 -59
- package/src/assets/js/plugins/flot/jquery.flot.spline.js +0 -212
- package/src/assets/js/plugins/flot/jquery.flot.symbol.js +0 -71
- package/src/assets/js/plugins/flot/jquery.flot.time.js +0 -432
- package/src/assets/js/plugins/flot/jquery.flot.tooltip.min.js +0 -12
- package/src/assets/js/plugins/footable/footable.all.min.js +0 -14
- package/src/assets/js/plugins/fullcalendar/fullcalendar.min.js +0 -8
- package/src/assets/js/plugins/fullcalendar/moment.min.js +0 -7
- package/src/assets/js/plugins/gritter/images/gritter-light.png +0 -0
- package/src/assets/js/plugins/gritter/images/gritter-long.png +0 -0
- package/src/assets/js/plugins/gritter/images/gritter.png +0 -0
- package/src/assets/js/plugins/gritter/images/ie-spacer.gif +0 -0
- package/src/assets/js/plugins/gritter/jquery.gritter.css +0 -137
- package/src/assets/js/plugins/gritter/jquery.gritter.min.js +0 -1
- package/src/assets/js/plugins/i18next/i18next.min.js +0 -7
- package/src/assets/js/plugins/iCheck/icheck.min.js +0 -11
- package/src/assets/js/plugins/idle-timer/idle-timer.min.js +0 -2
- package/src/assets/js/plugins/ionRangeSlider/ion.rangeSlider.min.js +0 -26
- package/src/assets/js/plugins/jasny/jasny-bootstrap.min.js +0 -6
- package/src/assets/js/plugins/jeditable/jquery.jeditable.js +0 -543
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ar.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-bg.js +0 -134
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-bg1251.js +0 -132
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-cat.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-cn.js +0 -169
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-cs.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-da.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-de.js +0 -173
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-dk.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-el.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-en.js +0 -170
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-es.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-fa.js +0 -147
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-fi.js +0 -131
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-fr.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-gl.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-he.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-hr.js +0 -164
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-hr1250.js +0 -164
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-hu.js +0 -131
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-id.js +0 -170
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-is.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-it.js +0 -1
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ja.js +0 -158
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-kr.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-lt.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-mne.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-nl.js +0 -150
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-no.js +0 -1
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-pl.js +0 -134
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-pt-br.js +0 -137
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-pt.js +0 -127
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ro.js +0 -141
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ru.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sk.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sr-latin.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sr.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sv.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-th.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-tr.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-tw.js +0 -131
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ua.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-vi.js +0 -170
- package/src/assets/js/plugins/jqGrid/jquery.jqGrid.min.js +0 -545
- package/src/assets/js/plugins/jquery-ui/i18n/jquery-ui-i18n.min.js +0 -6
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/images/animated-overlay.gif +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/jquery-ui.css +0 -1189
- package/src/assets/js/plugins/jquery-ui/jquery-ui.js +0 -15040
- package/src/assets/js/plugins/jquery-ui/jquery-ui.min.css +0 -4
- package/src/assets/js/plugins/jquery-ui/jquery-ui.min.js +0 -12
- package/src/assets/js/plugins/jsKnob/jquery.knob.js +0 -791
- package/src/assets/js/plugins/jsTree/jstree.min.js +0 -5
- package/src/assets/js/plugins/justified-gallery/README.md +0 -14
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.css +0 -73
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.js +0 -258
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.min.css +0 -17
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.min.js +0 -24
- package/src/assets/js/plugins/justified-gallery/loading.gif +0 -0
- package/src/assets/js/plugins/jvectormap/jquery-jvectormap-2.0.2.css +0 -130
- package/src/assets/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js +0 -3328
- package/src/assets/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js +0 -1
- package/src/assets/js/plugins/ladda/ladda.jquery.min.js +0 -8
- package/src/assets/js/plugins/ladda/ladda.min.js +0 -8
- package/src/assets/js/plugins/ladda/spin.min.js +0 -1
- package/src/assets/js/plugins/masonary/masonry.pkgd.min.js +0 -9
- package/src/assets/js/plugins/metisMenu/jquery.metisMenu.js +0 -10
- package/src/assets/js/plugins/morris/morris.js +0 -1892
- package/src/assets/js/plugins/morris/raphael-2.1.0.min.js +0 -10
- package/src/assets/js/plugins/nestable/jquery.nestable.js +0 -484
- package/src/assets/js/plugins/nouslider/jquery.nouislider.min.js +0 -34
- package/src/assets/js/plugins/pace/pace.min.js +0 -2
- package/src/assets/js/plugins/peity/jquery.peity.min.js +0 -13
- package/src/assets/js/plugins/preetyTextDiff/jquery.pretty-text-diff.min.js +0 -76
- package/src/assets/js/plugins/rickshaw/rickshaw.min.js +0 -3
- package/src/assets/js/plugins/rickshaw/vendor/d3.v3.js +0 -5
- package/src/assets/js/plugins/select2/select2.full.min.js +0 -3
- package/src/assets/js/plugins/slick/slick.min.js +0 -18
- package/src/assets/js/plugins/slimscroll/jquery.slimscroll.js +0 -474
- package/src/assets/js/plugins/slimscroll/jquery.slimscroll.min.js +0 -16
- package/src/assets/js/plugins/sparkline/jquery.sparkline.min.js +0 -5
- package/src/assets/js/plugins/staps/jquery.steps.min.js +0 -6
- package/src/assets/js/plugins/summernote/summernote.min.js +0 -2
- package/src/assets/js/plugins/sweetalert/sweetalert.min.js +0 -1
- package/src/assets/js/plugins/switchery/switchery.js +0 -1
- package/src/assets/js/plugins/tinycon/tinycon.min.js +0 -8
- package/src/assets/js/plugins/toastr/toastr.min.js +0 -2
- package/src/assets/js/plugins/touchspin/jquery.bootstrap-touchspin.min.js +0 -9
- package/src/assets/js/plugins/validate/jquery.validate.min.js +0 -4
- package/src/assets/js/plugins/video/responsible-video.js +0 -21
- package/src/assets/js/plugins/wow/wow.min.js +0 -2
- package/src/environment.ts +0 -24
- package/src/index.html +0 -23
- package/src/main.ts +0 -10
- package/src/polyfills.ts +0 -3
- package/src/tsconfig.json +0 -21
- package/src/vendor.ts +0 -32
- package/tslint.json +0 -93
- package/types.d.ts +0 -0
- package/web.config +0 -34
- package/webpack.config.js +0 -1
|
@@ -1,1595 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit, AfterViewInit, ViewContainerRef, ViewChild } from '@angular/core';
|
|
2
|
-
import { Common } from '../../../shared/common/common';
|
|
3
|
-
import { Router, ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { SharedService } from '../../../shared/service/shared.service';
|
|
5
|
-
import { Constants } from '../../../shared/constants/constants';
|
|
6
|
-
import { WalletRegistrationModel, ContactModel, CustomerModel, WalletModel, MailingAddressModel, CompanyAddressModel, CardModel, AttachFileModel, AttachFileListModel, DownloadFileModel, AddWalletAuditLogModel } from '../models/index';
|
|
7
|
-
import { Alerts } from '../../../shared/alerts/alerts';
|
|
8
|
-
import { AuditLogInsertModel } from '../../../models/audit-log-insert.model';
|
|
9
|
-
import { AddCardAuditLogMoel, AddWalletModel, BankLinkAccountModel, CustomerDipChipModel, UpdateStatus } from "../models/wallet-registration.model";
|
|
10
|
-
import { CustomerPersonalDetailsComponent } from '../../customer-personal-details/components/customer-personal-details.component';
|
|
11
|
-
import { CompanyModel } from '../../../fee-management/company/models';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'customer-registration',
|
|
15
|
-
templateUrl: '../customer-registration.component.html',
|
|
16
|
-
styleUrls: ['../customer-registration.component.css']
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
export class CustomerRegistrationComponent implements OnInit, AfterViewInit {
|
|
20
|
-
@ViewChild('duplicateMobileModal') duplicateMobileModal: any;
|
|
21
|
-
@ViewChild('addWalletModal') addWalletModal: any;
|
|
22
|
-
@ViewChild('deleteConfirmationModal') deleteConfirmationModal: any;
|
|
23
|
-
@ViewChild('updateDataConfirmationModal') updateDataConfirmationModal: any;
|
|
24
|
-
@ViewChild(CustomerPersonalDetailsComponent) custPersonalDetailsComp: CustomerPersonalDetailsComponent;
|
|
25
|
-
@ViewChild('customPopupModal') customPopupModal: any;
|
|
26
|
-
private showCardModel: boolean;
|
|
27
|
-
private showWalletModal: boolean;
|
|
28
|
-
private dateFormat: string;
|
|
29
|
-
private walletRegistrationModel: WalletRegistrationModel;
|
|
30
|
-
private cardModel: CardModel;
|
|
31
|
-
private attachFileModel: AttachFileModel;
|
|
32
|
-
private stateList: any[];
|
|
33
|
-
private stateListData: any[];
|
|
34
|
-
private mailingStateListData: any[];
|
|
35
|
-
private companyStateListData: any[];
|
|
36
|
-
private districtList: any[];
|
|
37
|
-
private districtListData: any[];
|
|
38
|
-
private mailingDistrictList: any[];
|
|
39
|
-
private mailingDistrictListData: any[];
|
|
40
|
-
private companyDistrictList: any[];
|
|
41
|
-
private companyDistrictListData: any[];
|
|
42
|
-
private walletStatusList: any[];
|
|
43
|
-
public walletStatusListData: any[];
|
|
44
|
-
public walletTypeList: any[];
|
|
45
|
-
public walletTypeListData: any[];
|
|
46
|
-
public addWalletTypeListData: any[];
|
|
47
|
-
public pageName: string;
|
|
48
|
-
public customerId: any;
|
|
49
|
-
private todayDate: Date;
|
|
50
|
-
private auditLogInsertModel: AuditLogInsertModel;
|
|
51
|
-
private actualObject: WalletRegistrationModel;
|
|
52
|
-
public isUserTerminated: boolean = false;
|
|
53
|
-
public isWalletTerminated: boolean = false;
|
|
54
|
-
public homeAsMailingAddress: boolean = false;
|
|
55
|
-
public confirmMessage: string;
|
|
56
|
-
private fileName: any;
|
|
57
|
-
private url: string;
|
|
58
|
-
public imageURL: any;
|
|
59
|
-
public attachFileType = ['jpg', 'jpeg', 'pdf'];
|
|
60
|
-
public countryList: any[];
|
|
61
|
-
public countryListData: any[];
|
|
62
|
-
public mailingCountryListData: any[];
|
|
63
|
-
public downloadFileModel: DownloadFileModel;
|
|
64
|
-
public isWalletPresent: boolean = false;
|
|
65
|
-
public topupRights: boolean = false;
|
|
66
|
-
public resetPasscodeRights: boolean = false;
|
|
67
|
-
public addCardRights: boolean = false;
|
|
68
|
-
public addWalletRights: boolean = false;
|
|
69
|
-
public fullPanRights: boolean = false;
|
|
70
|
-
public addCardAuditLogMoel: AddCardAuditLogMoel;
|
|
71
|
-
public isFile1Deleted: boolean = false;
|
|
72
|
-
public isFile2Deleted: boolean = false;
|
|
73
|
-
public isFileUpdated1: boolean = false;
|
|
74
|
-
public isFileUpdated2: boolean = false;
|
|
75
|
-
public isStateListPopulated: boolean = false;
|
|
76
|
-
public selectedFile: string;
|
|
77
|
-
public addWalletModel: AddWalletModel;
|
|
78
|
-
public addWalletAuditLogModel: AddWalletAuditLogModel;
|
|
79
|
-
public disableEdit: boolean = false;
|
|
80
|
-
public disableCreate: boolean = false;
|
|
81
|
-
public walletProfileList: any[];
|
|
82
|
-
public walletProfileListData: any;
|
|
83
|
-
public addWalletProfileListData: any[];
|
|
84
|
-
public is2C2PAdmin: boolean = true;
|
|
85
|
-
public isAddWalletSubmit: boolean = false;
|
|
86
|
-
public walletTypeCustomer: number = Constants.WALLET_CUSTOMER;
|
|
87
|
-
public walletId: string;
|
|
88
|
-
public thaiCountryId: string = '764';
|
|
89
|
-
public defaultWalletTypeItem: any;
|
|
90
|
-
public defaultWalletProfileItem: any;
|
|
91
|
-
public defaultCountryItem: any;
|
|
92
|
-
public defaultStateItem: any;
|
|
93
|
-
public defaultDistrictItem: any;
|
|
94
|
-
public alertMessage: string;
|
|
95
|
-
public editAbnormalCase: Boolean = false;
|
|
96
|
-
public displayKycValidation: Boolean = false;
|
|
97
|
-
public walletStatusDisabled: boolean = false;
|
|
98
|
-
private disableWalletProfile: Boolean = false;
|
|
99
|
-
private showApprovalIcon: boolean = false;
|
|
100
|
-
private autoApprove: boolean = true;
|
|
101
|
-
private companyModel: CompanyModel;
|
|
102
|
-
public BankAccountNumber: string;
|
|
103
|
-
|
|
104
|
-
constructor(public sharedService: SharedService, public common: Common,
|
|
105
|
-
private router: Router, private route: ActivatedRoute, private alert: Alerts,
|
|
106
|
-
private vcr: ViewContainerRef) {
|
|
107
|
-
this.alert.setRootViewContainerRef(vcr);
|
|
108
|
-
this.walletRegistrationModel = new WalletRegistrationModel();
|
|
109
|
-
this.walletRegistrationModel.Customer = new CustomerModel();
|
|
110
|
-
this.walletRegistrationModel.Contact = new ContactModel();
|
|
111
|
-
this.walletRegistrationModel.Wallet = new WalletModel();
|
|
112
|
-
this.walletRegistrationModel.MailingAddress = new MailingAddressModel();
|
|
113
|
-
this.walletRegistrationModel.CompanyAddress = new CompanyAddressModel();
|
|
114
|
-
this.walletRegistrationModel.AttachFileListModel = new AttachFileListModel();
|
|
115
|
-
this.walletRegistrationModel.CustomerDipChip = new CustomerDipChipModel();
|
|
116
|
-
this.cardModel = new CardModel();
|
|
117
|
-
this.attachFileModel = new AttachFileModel();
|
|
118
|
-
this.stateList = [];
|
|
119
|
-
this.stateListData = [];
|
|
120
|
-
this.mailingStateListData = [];
|
|
121
|
-
this.companyStateListData = [];
|
|
122
|
-
this.walletStatusList = [];
|
|
123
|
-
this.walletTypeList = [];
|
|
124
|
-
this.auditLogInsertModel = new AuditLogInsertModel();
|
|
125
|
-
this.actualObject = new WalletRegistrationModel();
|
|
126
|
-
this.imageURL = { src: null, fileName: null };
|
|
127
|
-
this.downloadFileModel = new DownloadFileModel();
|
|
128
|
-
this.actualObject.Customer = new CustomerModel();
|
|
129
|
-
this.actualObject.Contact = new ContactModel();
|
|
130
|
-
this.actualObject.Wallet = new WalletModel();
|
|
131
|
-
this.actualObject.MailingAddress = new MailingAddressModel();
|
|
132
|
-
this.actualObject.CompanyAddress = new CompanyAddressModel();
|
|
133
|
-
this.actualObject.AttachFileListModel = new AttachFileListModel();
|
|
134
|
-
this.actualObject.BankLinkAccount = new BankLinkAccountModel();
|
|
135
|
-
this.sharedService.disableButton = false;
|
|
136
|
-
this.addWalletModel = new AddWalletModel();
|
|
137
|
-
this.addWalletAuditLogModel = new AddWalletAuditLogModel();
|
|
138
|
-
this.defaultWalletTypeItem = { walletType: Constants.SELECT_WALLET_TYPE, walletTypeId: null }
|
|
139
|
-
this.defaultWalletProfileItem = { profileName: Constants.SELECT_WALLET_PROFILE, walletProfileId: null }
|
|
140
|
-
this.defaultCountryItem = { countryName: Constants.SELECT_COUNTRY, countryCode: null }
|
|
141
|
-
this.defaultStateItem = { stateName: 'Select State / Province', stateId: null }
|
|
142
|
-
this.defaultDistrictItem = { districtName: 'Select District', districtId: null }
|
|
143
|
-
this.autoApprove = this.sharedService.autoApprove;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
ngOnInit() {
|
|
147
|
-
// set date format
|
|
148
|
-
this.dateFormat = Constants.DATE_FORMAT;
|
|
149
|
-
this.todayDate = new Date();
|
|
150
|
-
this.showApprovalIcon = this.sharedService.CanChecker();
|
|
151
|
-
|
|
152
|
-
// get page name and wallet Id from url
|
|
153
|
-
let urlSegment = this.route.snapshot.url[0];
|
|
154
|
-
if (urlSegment) {
|
|
155
|
-
switch (urlSegment.path) {
|
|
156
|
-
case 'customer-registration-view':
|
|
157
|
-
this.pageName = Constants.VIEW;
|
|
158
|
-
if (localStorage.getItem('displayKycFailure') === 'true') {
|
|
159
|
-
this.displayKycValidation = true;
|
|
160
|
-
}
|
|
161
|
-
localStorage.removeItem('displayKycFailure');
|
|
162
|
-
break;
|
|
163
|
-
|
|
164
|
-
case 'customer-registration-new':
|
|
165
|
-
this.pageName = Constants.NEW;
|
|
166
|
-
break;
|
|
167
|
-
|
|
168
|
-
case 'customer-registration-edit':
|
|
169
|
-
this.pageName = Constants.EDIT;
|
|
170
|
-
if (localStorage.getItem('editAbnormal') === 'true') {
|
|
171
|
-
this.editAbnormalCase = true;
|
|
172
|
-
}
|
|
173
|
-
localStorage.removeItem('editAbnormal');
|
|
174
|
-
|
|
175
|
-
if (localStorage.getItem('displayKycFailure') === 'true') {
|
|
176
|
-
this.displayKycValidation = true;
|
|
177
|
-
}
|
|
178
|
-
localStorage.removeItem('displayKycFailure');
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
this.customerId = this.route.snapshot.params[Constants.ID];
|
|
184
|
-
|
|
185
|
-
this.initializeWalletData();
|
|
186
|
-
|
|
187
|
-
if (this.common.getManualPostingUserRights('CustomerManagement', Constants.WALLET_MANUAL_POST, Constants.TOPUP_WITHDRAW) ||
|
|
188
|
-
this.common.getManualPostingUserRights('CustomerManagement', Constants.WALLET_MANUAL_POST, Constants.DEBIT_CREDIT_ADJUSTMENT)) {
|
|
189
|
-
this.topupRights = true;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
this.resetPasscodeRights = this.common.getUserRights('CustomerManagement', 'ResetPasscode');
|
|
193
|
-
this.addCardRights = this.common.getUserRights('CustomerManagement', 'AddCard');
|
|
194
|
-
this.fullPanRights = this.common.getUserRights('Others', 'FullPAN');
|
|
195
|
-
this.addWalletRights = this.common.getUserRights('CustomerManagement', 'AddWallet');
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
ngAfterViewInit() {
|
|
199
|
-
this.bindEvents();
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
private bindEvents() {
|
|
203
|
-
let componentObject = this;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
private initializeWalletData() {
|
|
207
|
-
if (this.pageName) {
|
|
208
|
-
switch (this.pageName) {
|
|
209
|
-
case Constants.EDIT:
|
|
210
|
-
// set page title and url
|
|
211
|
-
this.common.setPageTitle(Constants.CUSTOMER_MANAGEMENT, Constants.CUSTOMER_REGISTRATION_URL,
|
|
212
|
-
Constants.CUSTOMER_REGISTRATION, Constants.CUSTOMER_REGISTRATION_URL, Constants.EDIT_TITLE,
|
|
213
|
-
Constants.CUSTOMER_REGISTRATION_EDIT_URL, Constants.CUSTOMER_REGISTRATION_URL);
|
|
214
|
-
// bind Events
|
|
215
|
-
this.bindEvents();
|
|
216
|
-
break;
|
|
217
|
-
case Constants.VIEW:
|
|
218
|
-
// set page title and url
|
|
219
|
-
this.common.setPageTitle(Constants.CUSTOMER_MANAGEMENT, Constants.CUSTOMER_REGISTRATION_URL,
|
|
220
|
-
Constants.CUSTOMER_REGISTRATION, Constants.CUSTOMER_REGISTRATION_URL, Constants.VIEW_TITLE,
|
|
221
|
-
Constants.CUSTOMER_REGISTRATION_VIEW_URL, Constants.CUSTOMER_REGISTRATION_URL);
|
|
222
|
-
break;
|
|
223
|
-
case Constants.NEW:
|
|
224
|
-
// Set page title and url
|
|
225
|
-
this.common.setPageTitle(Constants.CUSTOMER_MANAGEMENT, Constants.CUSTOMER_REGISTRATION_URL,
|
|
226
|
-
Constants.CUSTOMER_REGISTRATION, Constants.CUSTOMER_REGISTRATION_URL, Constants.NEW_TITLE,
|
|
227
|
-
Constants.CUSTOMER_REGISTRATION_NEW_URL, Constants.CUSTOMER_REGISTRATION_URL);
|
|
228
|
-
break;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
this.getCountryList();
|
|
232
|
-
this.getWalletStatusList();
|
|
233
|
-
this.getWalletTypeList();
|
|
234
|
-
|
|
235
|
-
if (this.common.getCompanyId() != Constants.COMPANY_ID_2C2P) {
|
|
236
|
-
this.walletRegistrationModel.Customer.CompanyUniqueId = this.common.getCompanyUniqueId();
|
|
237
|
-
this.is2C2PAdmin = false;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
if (this.pageName != Constants.NEW) {
|
|
241
|
-
this.getWalletDetails();
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
private getCountryList() {
|
|
247
|
-
this.sharedService.get(Constants.MASTER_COUNTRY_NAME_API).subscribe((data: any) => {
|
|
248
|
-
let response: any = data;
|
|
249
|
-
this.handleResponse(response, Constants.MASTER_COUNTRY_NAME_API);
|
|
250
|
-
}, (error: any) => {
|
|
251
|
-
this.alert.error(error);
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
private getWalletStatusList() {
|
|
256
|
-
this.sharedService.get(Constants.MASTER_WALLET_STATUS_API).subscribe((data: any) => {
|
|
257
|
-
let response: any = data;
|
|
258
|
-
this.handleResponse(response, Constants.MASTER_WALLET_STATUS_API);
|
|
259
|
-
}, (error: any) => {
|
|
260
|
-
this.alert.error(error);
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
public getStateList(isCountryChange?: boolean) {
|
|
265
|
-
if (isCountryChange) {
|
|
266
|
-
this.walletRegistrationModel.Contact.StateId = null;
|
|
267
|
-
this.walletRegistrationModel.Contact.DistrictId = null;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
if (this.walletRegistrationModel.Contact.CountryCode === this.thaiCountryId) {
|
|
271
|
-
let url = `${Constants.MASTER_STATE_API}?countryId=${this.walletRegistrationModel.Contact.CountryCode}`;
|
|
272
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
273
|
-
let response: any = data ? data : null;
|
|
274
|
-
switch (response.responseCode) {
|
|
275
|
-
case Constants.SUCCESS_CODE:
|
|
276
|
-
this.stateList = response.stateList;
|
|
277
|
-
|
|
278
|
-
this.BindStateName();
|
|
279
|
-
|
|
280
|
-
break;
|
|
281
|
-
case Constants.DATA_NOT_FOUND:
|
|
282
|
-
this.stateList = [];
|
|
283
|
-
this.walletRegistrationModel.Contact.StateId = null;
|
|
284
|
-
break;
|
|
285
|
-
default:
|
|
286
|
-
this.alert.error(response.resDescriptionEN);
|
|
287
|
-
this.stateList = [];
|
|
288
|
-
this.walletRegistrationModel.Contact.StateId = null;
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
this.stateListData = this.stateList;
|
|
292
|
-
}, (error: any) => {
|
|
293
|
-
this.alert.error(error);
|
|
294
|
-
this.stateList = [];
|
|
295
|
-
this.walletRegistrationModel.Contact.StateId = null;
|
|
296
|
-
this.stateListData = this.stateList;
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
this.stateList = [];
|
|
301
|
-
this.walletRegistrationModel.Contact.StateId = null;
|
|
302
|
-
this.stateListData = this.stateList;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
private getWalletTypeList() {
|
|
307
|
-
this.sharedService.get(Constants.MASTER_WALLET_TYPE_API).subscribe((data: any) => {
|
|
308
|
-
let response: any = data;
|
|
309
|
-
this.handleResponse(response, Constants.MASTER_WALLET_TYPE_API);
|
|
310
|
-
}, (error: any) => {
|
|
311
|
-
this.alert.error(error);
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
private BindStateName() {
|
|
316
|
-
|
|
317
|
-
if (this.pageName === Constants.VIEW) {
|
|
318
|
-
if (this.walletRegistrationModel.Contact.StateId > 0 && !this.walletRegistrationModel.Contact.State) {
|
|
319
|
-
let data = this.stateList.filter((element: any) => {
|
|
320
|
-
if (element.stateId == this.walletRegistrationModel.Contact.StateId)
|
|
321
|
-
return element;
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
if (data && data.length > 0)
|
|
325
|
-
this.walletRegistrationModel.Contact.State = data[0].stateName;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
if (this.walletRegistrationModel.MailingAddress.StateId > 0 && !this.walletRegistrationModel.MailingAddress.State) {
|
|
329
|
-
let data = this.stateList.filter((element: any) => {
|
|
330
|
-
if (element.stateId == this.walletRegistrationModel.MailingAddress.StateId)
|
|
331
|
-
return element;
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
if (data && data.length > 0)
|
|
335
|
-
this.walletRegistrationModel.MailingAddress.State = data[0].stateName;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
if (this.walletRegistrationModel.CompanyAddress.StateId > 0 && !this.walletRegistrationModel.CompanyAddress.CompanyState) {
|
|
339
|
-
let data = this.stateList.filter((element: any) => {
|
|
340
|
-
if (element.stateId == this.walletRegistrationModel.CompanyAddress.StateId)
|
|
341
|
-
return element;
|
|
342
|
-
});
|
|
343
|
-
|
|
344
|
-
if (data && data.length > 0)
|
|
345
|
-
this.walletRegistrationModel.CompanyAddress.CompanyState = data[0].stateName;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
private getWalletDetails() {
|
|
351
|
-
let url = `${Constants.GET_WALLET_DETAILS}/${this.customerId}`;
|
|
352
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
353
|
-
let response: any = data;
|
|
354
|
-
this.handleResponse(response, Constants.GET_REQUEST);
|
|
355
|
-
}, (error: any) => {
|
|
356
|
-
this.alert.error(error);
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
// on Edit Click redirect to edit page
|
|
361
|
-
public onEditClick() {
|
|
362
|
-
this.router.navigate(['/customer-registration-edit', this.customerId]);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
public saveData() {
|
|
366
|
-
if (this.walletRegistrationModel.Customer.CustomerCompany != undefined && this.walletRegistrationModel.Customer.CustomerCompany.length > 100) {
|
|
367
|
-
this.alert.error("Customer company can't be greater than 100 characters");
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
this.sharedService.disableButton = true;
|
|
372
|
-
|
|
373
|
-
if (this.walletRegistrationModel.Contact.CountryCode === this.thaiCountryId) {
|
|
374
|
-
this.walletRegistrationModel.Contact.State = null;
|
|
375
|
-
}
|
|
376
|
-
else {
|
|
377
|
-
this.walletRegistrationModel.Contact.StateId = null;
|
|
378
|
-
this.walletRegistrationModel.Contact.DistrictId = null;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
if (this.walletRegistrationModel.MailingAddress.CountryCode === this.thaiCountryId) {
|
|
382
|
-
this.walletRegistrationModel.MailingAddress.State = null;
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
this.walletRegistrationModel.MailingAddress.StateId = null;
|
|
386
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = null;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
if (this.walletRegistrationModel.CompanyAddress.CompanyCountryCode === this.thaiCountryId) {
|
|
390
|
-
this.walletRegistrationModel.CompanyAddress.CompanyState = null;
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
this.walletRegistrationModel.CompanyAddress.StateId = null;
|
|
394
|
-
this.walletRegistrationModel.CompanyAddress.DistrictId = null;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
if (this.pageName == Constants.EDIT) {
|
|
398
|
-
this.updateCustomer();
|
|
399
|
-
return;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
if (this.disableCreate) {
|
|
403
|
-
return false;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
this.disableCreate = true;
|
|
407
|
-
let url = `${Constants.CUSTOMER_API}`;
|
|
408
|
-
let requestJson = this.getRequestJson();
|
|
409
|
-
this.sharedService.post(url, requestJson).subscribe((data: any) => {
|
|
410
|
-
let response: any = data;
|
|
411
|
-
this.handleResponse(response, Constants.POST_REQUEST);
|
|
412
|
-
}, (error: any) => {
|
|
413
|
-
this.alert.error(error);
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
public onAddWallet() {
|
|
418
|
-
if (!this.addWalletRights) {
|
|
419
|
-
this.alert.error(this.common.permissionMessage);
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
if (this.addWalletModel.WalletTypeId == 0) {
|
|
424
|
-
return false;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
this.isAddWalletSubmit = true;
|
|
428
|
-
var walletTypeItem = this.walletTypeList.filter(item => item.walletTypeId == this.addWalletModel.WalletTypeId);
|
|
429
|
-
let customerWalletType = walletTypeItem[0].walletType;
|
|
430
|
-
if ((this.addWalletModel.WalletProfileId == null || this.addWalletModel.WalletProfileId == 0) &&
|
|
431
|
-
customerWalletType === Constants.WALLET_TYPE_CUSTOMER) {
|
|
432
|
-
return false;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
let request = {
|
|
436
|
-
CustomerId: this.customerId,
|
|
437
|
-
WalletTypeId: this.addWalletModel.WalletTypeId,
|
|
438
|
-
CompanyId: this.common.getCompanyId(),
|
|
439
|
-
WalletProfileId: customerWalletType === Constants.WALLET_TYPE_CUSTOMER ? this.addWalletModel.WalletProfileId : null
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
this.addWalletModel.WalletType = walletTypeItem[0].walletType;
|
|
443
|
-
this.addWalletAuditLogModel.WalletType = this.addWalletModel.WalletType;
|
|
444
|
-
let url = `${Constants.CUSTOMER_ADD_WALLET}`;
|
|
445
|
-
this.sharedService.post(url, request).subscribe((data: any) => {
|
|
446
|
-
let response: any = data;
|
|
447
|
-
if (response && response.responseCode === Constants.SUCCESS_CODE) {
|
|
448
|
-
this.addWalletModal.close();
|
|
449
|
-
this.showWalletModal = false;
|
|
450
|
-
this.insertAddWalletLog(this.auditLogInsertModel);
|
|
451
|
-
this.getWalletDetails();
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
this.alert.error(response.resDescriptionEN);
|
|
455
|
-
}
|
|
456
|
-
}, (error: any) => {
|
|
457
|
-
this.alert.error(error);
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
// update existing Customer mobile number = mobile number + companyID and terminate existing customer
|
|
462
|
-
public updateCustomer() {
|
|
463
|
-
this.duplicateMobileModal.close();
|
|
464
|
-
|
|
465
|
-
let url = `${Constants.GET_CUSTOMER_REGISTRATION_LIST}/${this.customerId}`;
|
|
466
|
-
let requestJson = this.getRequestJson();
|
|
467
|
-
this.sharedService.put(url, requestJson).subscribe((data: any) => {
|
|
468
|
-
let response: any = data;
|
|
469
|
-
if (response.responseCode == Constants.SUCCESS_CODE) {
|
|
470
|
-
|
|
471
|
-
// insert audit log
|
|
472
|
-
this.insertEditAuditLog(this.auditLogInsertModel);
|
|
473
|
-
|
|
474
|
-
if (this.custPersonalDetailsComp.kycVerificationRequired && this.walletRegistrationModel.Customer.CustomerTypeId === 1) {
|
|
475
|
-
this.updateDataConfirmationModal.open();
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
this.alert.success(Constants.UPDATE_SUCCESS_MESSAGE);
|
|
479
|
-
this.loadViewPage();
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
else {
|
|
483
|
-
this.alert.error(response.resDescriptionEN);
|
|
484
|
-
}
|
|
485
|
-
}, (error: any) => {
|
|
486
|
-
this.alert.error(error);
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
private loadViewPage() {
|
|
491
|
-
setTimeout(() => {
|
|
492
|
-
this.router.navigate(['/customer-registration-list']);
|
|
493
|
-
}, Constants.TIMEOUT);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// validate Date
|
|
497
|
-
private setUpdatedDate(date: any) {
|
|
498
|
-
let strDate: string = date ? date.toString() : null;
|
|
499
|
-
let dob = this.common.parseStringDateToFormat(strDate, Constants.DEFAULT_DATE_CONVERT);
|
|
500
|
-
this.walletRegistrationModel.Customer.CustomerDateOfBirth = dob >= this.todayDate ? null : dob;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
private handleResponse(response: any, requestType: string) {
|
|
504
|
-
if (!response) {
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
this.disableCreate = false;
|
|
509
|
-
switch (response.responseCode) {
|
|
510
|
-
case Constants.SUCCESS_CODE:
|
|
511
|
-
this.handleSuccessResponse(response, requestType);
|
|
512
|
-
break;
|
|
513
|
-
case Constants.DUPLICATE_MOBILE_NUMBER:
|
|
514
|
-
if (requestType == Constants.PUT_REQUEST) {
|
|
515
|
-
this.duplicateMobileModal.open();
|
|
516
|
-
this.confirmMessage = response.responseDescription;
|
|
517
|
-
}
|
|
518
|
-
else if (requestType == Constants.POST_REQUEST) {
|
|
519
|
-
this.alert.error(response.responseDescription);
|
|
520
|
-
}
|
|
521
|
-
break;
|
|
522
|
-
default:
|
|
523
|
-
this.alert.error(response.responseDescription);
|
|
524
|
-
break;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
private handleSuccessResponse(response: any, requestType: string) {
|
|
529
|
-
if (response && requestType) {
|
|
530
|
-
switch (requestType) {
|
|
531
|
-
// get master wallet profile list
|
|
532
|
-
case Constants.GET_MASTER_WALLET_PROFILE_LIST:
|
|
533
|
-
this.walletProfileList = response.walletProfileList;
|
|
534
|
-
this.walletProfileListData = this.walletProfileList;
|
|
535
|
-
this.addWalletProfileListData = this.walletProfileList;
|
|
536
|
-
break;
|
|
537
|
-
// get master country list request
|
|
538
|
-
case Constants.MASTER_COUNTRY_NAME_API:
|
|
539
|
-
this.countryList = response.countryNameList;
|
|
540
|
-
this.countryListData = this.countryList;
|
|
541
|
-
this.mailingCountryListData = this.countryList;
|
|
542
|
-
break;
|
|
543
|
-
// get master state list request
|
|
544
|
-
case Constants.MASTER_STATE_API:
|
|
545
|
-
this.stateList = response.stateList;
|
|
546
|
-
this.stateListData = this.stateList;
|
|
547
|
-
break;
|
|
548
|
-
// get master wallet status list request
|
|
549
|
-
case Constants.MASTER_WALLET_STATUS_API:
|
|
550
|
-
this.walletStatusList = response.walletStatusList;
|
|
551
|
-
this.walletStatusListData = this.walletStatusList;
|
|
552
|
-
break;
|
|
553
|
-
|
|
554
|
-
case Constants.MASTER_WALLET_TYPE_API:
|
|
555
|
-
if (this.common.getCompanyId() != Constants.COMPANY_ID_2C2P) {
|
|
556
|
-
response.walletTypeList = response.walletTypeList.filter((wallet: any) => wallet.walletTypeId !== 2);
|
|
557
|
-
this.is2C2PAdmin = false;
|
|
558
|
-
}
|
|
559
|
-
this.walletTypeList = response.walletTypeList;
|
|
560
|
-
this.walletTypeListData = this.walletTypeList;
|
|
561
|
-
this.addWalletTypeListData = this.walletTypeList;
|
|
562
|
-
break;
|
|
563
|
-
|
|
564
|
-
// get details request
|
|
565
|
-
case Constants.GET_REQUEST:
|
|
566
|
-
if (response && response.Wallet) {
|
|
567
|
-
this.walletRegistrationModel.Wallet = response.Wallet;
|
|
568
|
-
this.walletRegistrationModel.BankLinkAccount = response.Wallet;
|
|
569
|
-
this.isWalletPresent = true;
|
|
570
|
-
|
|
571
|
-
if (this.common.getCompanyId() != Constants.COMPANY_ID_2C2P && this.walletRegistrationModel.Wallet.WalletTypeId == 2) {
|
|
572
|
-
this.disableEdit = true;
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
575
|
-
this.disableEdit = false;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
this.walletStatusDisabled = ((this.walletRegistrationModel.Wallet.WalletStatusId == Constants.WALLET_STATUS_SUSPENDED_KYC) ||
|
|
579
|
-
(this.walletRegistrationModel.Wallet.WalletStatusId == Constants.WALLET_STATUS_FRAUD));
|
|
580
|
-
|
|
581
|
-
if ((this.walletRegistrationModel.Wallet.WalletStatusId != Constants.WALLET_STATUS_SUSPENDED_KYC) &&
|
|
582
|
-
(this.walletRegistrationModel.Wallet.WalletStatusId != Constants.WALLET_STATUS_FRAUD)) {
|
|
583
|
-
this.walletStatusListData = this.walletStatusListData.filter(ws => ws.walletStatusId != Constants.WALLET_STATUS_SUSPENDED_KYC);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
else {
|
|
587
|
-
this.isWalletPresent = false;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
this.walletRegistrationModel.Contact = response.Contact;
|
|
591
|
-
this.walletRegistrationModel.Customer = response.Customer;
|
|
592
|
-
this.walletRegistrationModel.MailingAddress = response.MailingAddress;
|
|
593
|
-
this.walletRegistrationModel.CompanyAddress = response.CompanyAddress;
|
|
594
|
-
this.walletRegistrationModel.AttachFile1 = response.AttachFile1;
|
|
595
|
-
this.walletRegistrationModel.AttachFile2 = response.AttachFile2;
|
|
596
|
-
this.walletRegistrationModel.FileName1 = response.AttachFileName1;
|
|
597
|
-
this.walletRegistrationModel.FileName2 = response.AttachFileName2;
|
|
598
|
-
|
|
599
|
-
this.custPersonalDetailsComp.getUserStatusList();
|
|
600
|
-
|
|
601
|
-
if (this.walletRegistrationModel.Contact.CountryCode === this.thaiCountryId ||
|
|
602
|
-
this.walletRegistrationModel.MailingAddress.CountryCode === this.thaiCountryId ||
|
|
603
|
-
this.walletRegistrationModel.CompanyAddress.CompanyCountryCode === this.thaiCountryId) {
|
|
604
|
-
this.getStateList();
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
if (response && response.Card) {
|
|
608
|
-
this.walletRegistrationModel.Card = response.Card;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
this.isWalletTerminated = this.walletRegistrationModel.Wallet.WalletStatusId == Constants.TERMINATED_STATUS ? true : false;
|
|
612
|
-
this.isUserTerminated = this.walletRegistrationModel.Customer.UserStatusId == Constants.TERMINATED_STATUS ? true : false;
|
|
613
|
-
|
|
614
|
-
// set undefined if null or blank
|
|
615
|
-
this.common.verifySearchObject(this.walletRegistrationModel.Wallet);
|
|
616
|
-
this.common.verifySearchObject(this.walletRegistrationModel.Contact);
|
|
617
|
-
this.common.verifySearchObject(this.walletRegistrationModel.Customer);
|
|
618
|
-
this.common.verifySearchObject(this.walletRegistrationModel.MailingAddress);
|
|
619
|
-
this.common.verifySearchObject(this.walletRegistrationModel.CompanyAddress);
|
|
620
|
-
this.common.verifySearchObject(this.walletRegistrationModel.Card);
|
|
621
|
-
|
|
622
|
-
if (this.walletRegistrationModel.Customer.DateOfBirth) {
|
|
623
|
-
var dateItemsComponent = this.walletRegistrationModel.Customer.DateOfBirth.split('-');
|
|
624
|
-
if (dateItemsComponent[2] == '00' && dateItemsComponent[1] == '00') {
|
|
625
|
-
this.walletRegistrationModel.Customer.DateOfBirthType = Constants.DATE_TYPE_YYYY
|
|
626
|
-
this.walletRegistrationModel.Customer.CustomerDateOfBirth = this.common.parseStringDateToFormat(this.walletRegistrationModel.Customer.DateOfBirth,
|
|
627
|
-
Constants.DATE_TO_STRING_FORMAT_YYYY);
|
|
628
|
-
this.custPersonalDetailsComp.dateOfBirthTypeChange(Constants.DATE_TYPE_YYYY);
|
|
629
|
-
}
|
|
630
|
-
else if (dateItemsComponent[2] == '00' && dateItemsComponent[1] != '00') {
|
|
631
|
-
this.walletRegistrationModel.Customer.DateOfBirthType = Constants.DATE_TYPE_MMYYYY
|
|
632
|
-
this.walletRegistrationModel.Customer.CustomerDateOfBirth = this.common.parseStringDateToFormat(this.walletRegistrationModel.Customer.DateOfBirth,
|
|
633
|
-
Constants.DATE_TO_STRING_FORMAT_YYYYMM);
|
|
634
|
-
this.custPersonalDetailsComp.dateOfBirthTypeChange(Constants.DATE_TYPE_MMYYYY);
|
|
635
|
-
|
|
636
|
-
}
|
|
637
|
-
else if (dateItemsComponent[2] != '00' && dateItemsComponent[1] != '00') {
|
|
638
|
-
this.walletRegistrationModel.Customer.DateOfBirthType = Constants.DATE_TYPE_DDMMYYYY;
|
|
639
|
-
this.walletRegistrationModel.Customer.CustomerDateOfBirth = this.common.parseStringDateToFormat(this.walletRegistrationModel.Customer.DateOfBirth,
|
|
640
|
-
Constants.DATE_TO_STRING_FORMAT_YYYY_MM_DD);
|
|
641
|
-
this.custPersonalDetailsComp.dateOfBirthTypeChange(Constants.DATE_TYPE_DDMMYYYY);
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
if (this.walletRegistrationModel.Customer.IdIssueDate) {
|
|
646
|
-
this.walletRegistrationModel.Customer.IdIssuedDate = this.common.parseStringDateToFormat(this.walletRegistrationModel.Customer.IdIssueDate,
|
|
647
|
-
Constants.DEFAULT_DATE_CONVERT);
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
if (this.walletRegistrationModel.Customer.IdExpiryDate) {
|
|
651
|
-
this.walletRegistrationModel.Customer.IdExpiredDate = this.common.parseStringDateToFormat(this.walletRegistrationModel.Customer.IdExpiryDate,
|
|
652
|
-
Constants.DEFAULT_DATE_CONVERT);
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
this.custPersonalDetailsComp.getTypeOfIdList();
|
|
656
|
-
|
|
657
|
-
// Clone model data for audit log
|
|
658
|
-
this.setAuditLogModel();
|
|
659
|
-
|
|
660
|
-
this.insertViewAuditLog(this.auditLogInsertModel);
|
|
661
|
-
|
|
662
|
-
if (this.walletRegistrationModel.Customer.CompanyUniqueId) {
|
|
663
|
-
this.getWalletProfileList(this.walletRegistrationModel.Customer.CompanyUniqueId, false);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
if (this.walletRegistrationModel.Wallet.WalletId) {
|
|
667
|
-
this.walletId = ` ${this.common.maskString(6, 4, this.walletRegistrationModel.Wallet.WalletId.toString(), Constants.ASTERISK_SYMBOL)}`;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
if (this.walletRegistrationModel.BankLinkAccount.BankAccountNumber) {
|
|
671
|
-
this.BankAccountNumber = ` ${this.common.maskStringBank(this.walletRegistrationModel.BankLinkAccount.BankAccountNumber.toString(), Constants.ASTERISK_SYMBOL)}`;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
this.custPersonalDetailsComp.afterDataLoad();
|
|
675
|
-
|
|
676
|
-
if (this.walletRegistrationModel.Contact.StateId > 0) {
|
|
677
|
-
this.getDistrictList();
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
if (this.walletRegistrationModel.MailingAddress.StateId > 0) {
|
|
681
|
-
this.getMailingStateList();
|
|
682
|
-
this.getMailingDistrictList();
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
if (this.walletRegistrationModel.CompanyAddress.StateId > 0) {
|
|
686
|
-
this.getCompanyStateList();
|
|
687
|
-
this.getCompanyDistrictList();
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
if (this.displayKycValidation) {
|
|
691
|
-
this.alertMessage = this.pageName === Constants.VIEW ? Constants.CUSTOMER_KYC_ERROR : Constants.VERIFY_CUSTOMER_INFO_ERROR;
|
|
692
|
-
this.customPopupModal.open();
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
break;
|
|
696
|
-
|
|
697
|
-
// update request
|
|
698
|
-
case Constants.PUT_REQUEST:
|
|
699
|
-
this.alert.success(Constants.UPDATE_SUCCESS_MESSAGE);
|
|
700
|
-
this.loadViewPage();
|
|
701
|
-
|
|
702
|
-
this.insertEditAuditLog(this.auditLogInsertModel);
|
|
703
|
-
break;
|
|
704
|
-
case Constants.POST_REQUEST:
|
|
705
|
-
this.insertAddAuditLog(this.auditLogInsertModel);
|
|
706
|
-
|
|
707
|
-
if (this.autoApprove && this.custPersonalDetailsComp.kycVerificationRequired && this.walletRegistrationModel.Customer.CustomerTypeId === 1) {
|
|
708
|
-
this.customerId = response.customerId;
|
|
709
|
-
|
|
710
|
-
this.updateDataConfirmationModal.open();
|
|
711
|
-
}
|
|
712
|
-
else {
|
|
713
|
-
this.alert.success(Constants.CREATE_SUCCESS_MESSAGE);
|
|
714
|
-
this.loadViewPage();
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
private updateStatuses(type: number) {
|
|
721
|
-
let url = `${Constants.UPDATE_STATUS_API}`;
|
|
722
|
-
let updateRequestJson: UpdateStatus = {
|
|
723
|
-
CustomerId: this.customerId,
|
|
724
|
-
UpdateType: type
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
this.sharedService.put(url, updateRequestJson).subscribe((data: any) => {
|
|
728
|
-
let response: any = data;
|
|
729
|
-
if (response.responseCode != Constants.SUCCESS_CODE) {
|
|
730
|
-
}
|
|
731
|
-
}, (error: any) => {
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
private getRequestJson() {
|
|
736
|
-
if (this.walletRegistrationModel.Customer.CustomerTypeId == 1) {
|
|
737
|
-
this.walletRegistrationModel.Customer.FirstName = this.walletRegistrationModel.Customer && this.walletRegistrationModel.Customer.FirstName ?
|
|
738
|
-
this.walletRegistrationModel.Customer.FirstName.trim() : null;
|
|
739
|
-
|
|
740
|
-
this.walletRegistrationModel.Customer.LastName = this.walletRegistrationModel.Customer && this.walletRegistrationModel.Customer.LastName ?
|
|
741
|
-
this.walletRegistrationModel.Customer.LastName.trim() : null;
|
|
742
|
-
}
|
|
743
|
-
else {
|
|
744
|
-
this.walletRegistrationModel.Customer.FirstName = this.walletRegistrationModel.Customer && this.walletRegistrationModel.Customer.FirstName ?
|
|
745
|
-
this.walletRegistrationModel.Customer.FirstName.trim() : null;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
if (this.walletRegistrationModel.Customer.DateOfBirthType == Constants.DATE_TYPE_DDMMYYYY) {
|
|
749
|
-
this.walletRegistrationModel.Customer.DateOfBirth = this.common.convertDateStringFormat(this.walletRegistrationModel.Customer.CustomerDateOfBirth,
|
|
750
|
-
Constants.DATE_TO_STRING_FORMAT_YYYY_MM_DD);
|
|
751
|
-
}
|
|
752
|
-
else if (this.walletRegistrationModel.Customer.DateOfBirthType == Constants.DATE_TYPE_MMYYYY) {
|
|
753
|
-
this.walletRegistrationModel.Customer.DateOfBirth = this.common.convertDateStringFormat(this.walletRegistrationModel.Customer.CustomerDateOfBirth,
|
|
754
|
-
Constants.DATE_TO_STRING_FORMAT_YYYYMM);
|
|
755
|
-
}
|
|
756
|
-
else if (this.walletRegistrationModel.Customer.DateOfBirthType == Constants.DATE_TYPE_YYYY) {
|
|
757
|
-
this.walletRegistrationModel.Customer.DateOfBirth = this.common.convertDateStringFormat(this.walletRegistrationModel.Customer.CustomerDateOfBirth,
|
|
758
|
-
Constants.DATE_TO_STRING_FORMAT_YYYY);
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
if (this.walletRegistrationModel.Customer.IdIssuedDate) {
|
|
762
|
-
this.walletRegistrationModel.Customer.IdIssueDate = this.common.convertDateStringFormat(this.walletRegistrationModel.Customer.IdIssuedDate,
|
|
763
|
-
Constants.DEFAULT_DATE_CONVERT);
|
|
764
|
-
}
|
|
765
|
-
else {
|
|
766
|
-
this.walletRegistrationModel.Customer.IdIssueDate = null;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
if (this.walletRegistrationModel.Customer.IdExpiredDate) {
|
|
770
|
-
this.walletRegistrationModel.Customer.IdExpiryDate = this.common.convertDateStringFormat(this.walletRegistrationModel.Customer.IdExpiredDate,
|
|
771
|
-
Constants.DEFAULT_DATE_CONVERT);
|
|
772
|
-
}
|
|
773
|
-
else {
|
|
774
|
-
this.walletRegistrationModel.Customer.IdExpiryDate = null;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
if (this.walletRegistrationModel.Contact.MobileCountryCode && (!this.walletRegistrationModel.Contact.MobileNo ||
|
|
778
|
-
(this.walletRegistrationModel.Contact.MobileNo && !this.walletRegistrationModel.Contact.MobileNo.trim()))
|
|
779
|
-
) {
|
|
780
|
-
this.walletRegistrationModel.Contact.MobileCountryCode = null;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
this.walletRegistrationModel.UserUniqueId = this.common.getCurrentUserUniqueID();
|
|
784
|
-
this.walletRegistrationModel.Contact.PostalCode = this.walletRegistrationModel.Contact.PostalCode ? this.walletRegistrationModel.Contact.PostalCode : null;
|
|
785
|
-
this.walletRegistrationModel.MailingAddress.PostalCode = this.walletRegistrationModel.MailingAddress.PostalCode ? this.walletRegistrationModel.MailingAddress.PostalCode : null;
|
|
786
|
-
this.walletRegistrationModel.CompanyAddress.CompanyPostalCode = this.walletRegistrationModel.CompanyAddress.CompanyPostalCode ? this.walletRegistrationModel.CompanyAddress.CompanyPostalCode : null;
|
|
787
|
-
var companyDetails = this.custPersonalDetailsComp.companyList.filter(x => x.companyUniqueId == this.walletRegistrationModel.Customer.CompanyUniqueId)[0];
|
|
788
|
-
|
|
789
|
-
if (companyDetails) {
|
|
790
|
-
this.walletRegistrationModel.Customer.CompanyName = companyDetails.companyName;
|
|
791
|
-
this.walletRegistrationModel.Customer.CompanyUniqueId = companyDetails.companyUniqueId;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
if (this.walletRegistrationModel.Customer.WalletPurposeId != 999) {
|
|
795
|
-
this.walletRegistrationModel.Customer.WalletPurposeDescription = null;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
return this.walletRegistrationModel;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
public resetPassCode() {
|
|
802
|
-
if (this.resetPasscodeRights) {
|
|
803
|
-
let url = `${Constants.WALLET_API}/${this.customerId}/${Constants.RESET_USER_PASSWORD_REQUEST}`;
|
|
804
|
-
this.sharedService.put(url, {}).subscribe((data: any) => {
|
|
805
|
-
let response: any = data ? data : null;
|
|
806
|
-
if (response && response.responseCode === Constants.SUCCESS_CODE) {
|
|
807
|
-
this.alert.success(Constants.UPDATE_SUCCESS_MESSAGE);
|
|
808
|
-
this.insertResetPasscodeLog(this.auditLogInsertModel);
|
|
809
|
-
}
|
|
810
|
-
else {
|
|
811
|
-
this.alert.error(response.resDescriptionEN);
|
|
812
|
-
}
|
|
813
|
-
}, (error: any) => {
|
|
814
|
-
this.alert.error(error);
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
else {
|
|
818
|
-
this.alert.error(this.common.permissionMessage);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
private insertViewAuditLog(auditLog: AuditLogInsertModel) {
|
|
823
|
-
this.auditLogInsertModel = new AuditLogInsertModel();
|
|
824
|
-
this.auditLogInsertModel.Menu = this.common.getMenuId(Constants.CUSTOMER_REGISTRATION_MENU);
|
|
825
|
-
this.auditLogInsertModel.Action = this.common.getAuditTypeId(Constants.VIEW_AUDIT_TYPE);
|
|
826
|
-
this.auditLogInsertModel.Description = this.getViewDescription();
|
|
827
|
-
this.auditLogInsertModel.CustomerUniqueId = this.customerId;
|
|
828
|
-
this.common.insertAuditLog(this.auditLogInsertModel);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
private insertAddAuditLog(auditLog: AuditLogInsertModel) {
|
|
832
|
-
this.auditLogInsertModel = new AuditLogInsertModel();
|
|
833
|
-
this.auditLogInsertModel.Menu = this.common.getMenuId(Constants.CUSTOMER_REGISTRATION_MENU);
|
|
834
|
-
this.auditLogInsertModel.Action = this.common.getAuditTypeId(Constants.ADD_AUDIT_TYPE);
|
|
835
|
-
let description = this.getViewDescription();
|
|
836
|
-
this.auditLogInsertModel.CustomerUniqueId = this.customerId;
|
|
837
|
-
this.auditLogInsertModel.Description = description;
|
|
838
|
-
this.common.insertAuditLog(this.auditLogInsertModel);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
private insertEditAuditLog(auditLog: AuditLogInsertModel) {
|
|
842
|
-
this.auditLogInsertModel = new AuditLogInsertModel();
|
|
843
|
-
this.auditLogInsertModel.Menu = this.common.getMenuId(Constants.CUSTOMER_REGISTRATION_MENU);
|
|
844
|
-
this.auditLogInsertModel.Action = this.common.getAuditTypeId(Constants.EDIT_AUDIT_TYPE);
|
|
845
|
-
this.auditLogInsertModel.CustomerUniqueId = this.customerId;
|
|
846
|
-
let description = Constants.STRING_EMPTY;
|
|
847
|
-
description = this.getDescriptionFirstLine();
|
|
848
|
-
//Country name for home address
|
|
849
|
-
this.actualObject.Contact.CountryName = this.getCountryName(this.actualObject.Contact.CountryCode);
|
|
850
|
-
this.walletRegistrationModel.Contact.CountryName = this.getCountryName(this.walletRegistrationModel.Contact.CountryCode);
|
|
851
|
-
//Country name for mailing address
|
|
852
|
-
this.actualObject.MailingAddress.CountryName = this.getCountryName(this.actualObject.MailingAddress.CountryCode);
|
|
853
|
-
this.walletRegistrationModel.MailingAddress.CountryName = this.getCountryName(this.walletRegistrationModel.MailingAddress.CountryCode);
|
|
854
|
-
this.actualObject.CompanyAddress.CompanyCountryName = this.getCountryName(this.actualObject.CompanyAddress.CompanyCountryCode);
|
|
855
|
-
this.walletRegistrationModel.CompanyAddress.CompanyCountryName = this.getCountryName(this.walletRegistrationModel.CompanyAddress.CompanyCountryCode);
|
|
856
|
-
//Nationality and occupation name
|
|
857
|
-
this.actualObject.Customer.Occupation = this.custPersonalDetailsComp.getOccupationName(this.actualObject.Customer.OccupationId);
|
|
858
|
-
this.actualObject.Customer.NationalityName = this.custPersonalDetailsComp.getNationality(this.actualObject.Customer.NationalityId);
|
|
859
|
-
this.walletRegistrationModel.Customer.Occupation = this.custPersonalDetailsComp.getOccupationName(this.walletRegistrationModel.Customer.OccupationId);
|
|
860
|
-
this.walletRegistrationModel.Customer.NationalityName = this.custPersonalDetailsComp.getNationality(this.walletRegistrationModel.Customer.NationalityId);
|
|
861
|
-
this.walletRegistrationModel.Wallet.WalletStatus = this.getWalletStatus(this.walletRegistrationModel.Wallet.WalletStatusId);
|
|
862
|
-
|
|
863
|
-
// Update user status according status id
|
|
864
|
-
let userrStatus = this.custPersonalDetailsComp.userStatusList.filter(status => status.userStatusId == this.walletRegistrationModel.Customer.UserStatusId);
|
|
865
|
-
if (userrStatus && userrStatus.length > 0) {
|
|
866
|
-
this.walletRegistrationModel.Customer.UserStatus = userrStatus[0].userStatus;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
this.actualObject.Contact.CountryCode = this.walletRegistrationModel.Contact.CountryCode;
|
|
870
|
-
this.actualObject.MailingAddress.CountryCode = this.walletRegistrationModel.MailingAddress.CountryCode;
|
|
871
|
-
this.actualObject.CompanyAddress.CompanyCountryCode = this.walletRegistrationModel.CompanyAddress.CompanyCountryCode;
|
|
872
|
-
this.actualObject.Customer.OccupationId = this.walletRegistrationModel.Customer.OccupationId;
|
|
873
|
-
this.actualObject.Customer.NationalityId = this.walletRegistrationModel.Customer.NationalityId;
|
|
874
|
-
this.actualObject.Customer.IdentityId = this.walletRegistrationModel.Customer.IdentityId;
|
|
875
|
-
this.actualObject.Customer.UserStatusId = this.walletRegistrationModel.Customer.UserStatusId;
|
|
876
|
-
this.actualObject.Wallet.WalletStatusId = this.walletRegistrationModel.Wallet.WalletStatusId;
|
|
877
|
-
|
|
878
|
-
if (this.walletRegistrationModel.Customer.IdentityId == Constants.THAI_IDENTITY_ID)
|
|
879
|
-
this.walletRegistrationModel.Customer.IdNumber = this.common.maskString(4, 3, this.walletRegistrationModel.Customer.IdNumber, Constants.ASTERISK_SYMBOL)
|
|
880
|
-
if (this.walletRegistrationModel.Customer.IdentityId == 2)
|
|
881
|
-
this.walletRegistrationModel.Customer.IdNumber = this.common.maskString(0, 4, this.walletRegistrationModel.Customer.IdNumber, Constants.ASTERISK_SYMBOL)
|
|
882
|
-
|
|
883
|
-
description += this.common.getEditAuditDescription(this.actualObject.Customer, this.walletRegistrationModel.Customer);
|
|
884
|
-
description += this.common.getEditAuditDescription(this.actualObject.Contact, this.walletRegistrationModel.Contact);
|
|
885
|
-
description += this.common.getEditAuditDescription(this.actualObject.CompanyAddress, this.walletRegistrationModel.CompanyAddress);
|
|
886
|
-
description += this.common.getEditAuditDescription(this.actualObject.CompanyAddress, this.walletRegistrationModel.CompanyAddress);
|
|
887
|
-
description += this.common.getEditAuditDescription(this.actualObject.Wallet, this.walletRegistrationModel.Wallet);
|
|
888
|
-
this.auditLogInsertModel.Description = description;
|
|
889
|
-
this.common.insertAuditLog(this.auditLogInsertModel);
|
|
890
|
-
|
|
891
|
-
if (this.isFileUpdated1 || this.isFileUpdated2)
|
|
892
|
-
this.insertAttachFileLog(false);
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
private getDescriptionFirstLine() {
|
|
896
|
-
var Description: string = Constants.STRING_EMPTY;
|
|
897
|
-
if (this.actualObject.Customer.FirstName)
|
|
898
|
-
Description = `${this.actualObject.Customer.FirstName} `
|
|
899
|
-
if (this.actualObject.Customer.LastName)
|
|
900
|
-
Description += `${this.actualObject.Customer.LastName} `
|
|
901
|
-
if (this.actualObject.Customer.IdNumber) {
|
|
902
|
-
if (this.actualObject.Customer.IdentityId == 1 || this.actualObject.Customer.IdentityId == 2) {
|
|
903
|
-
Description += ` ${this.common.maskString(3, 4, this.actualObject.Customer.IdNumber, Constants.ASTERISK_SYMBOL)}`;
|
|
904
|
-
}
|
|
905
|
-
else {
|
|
906
|
-
Description += ` ${this.actualObject.Customer.IdNumber}`;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
if (this.actualObject.Wallet.WalletId)
|
|
911
|
-
Description += `${this.actualObject.Wallet.WalletId} `
|
|
912
|
-
|
|
913
|
-
if (this.actualObject.BankLinkAccount.BankAccountNumber)
|
|
914
|
-
Description += `${this.actualObject.BankLinkAccount.BankAccountNumber} `
|
|
915
|
-
|
|
916
|
-
return Description;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
// insert Reset Passcode Log
|
|
920
|
-
// Description template: <First Name> <Last Name> <ID Number> <Wallet ID>
|
|
921
|
-
// Reset Passcode
|
|
922
|
-
private insertResetPasscodeLog(auditLog: AuditLogInsertModel) {
|
|
923
|
-
this.auditLogInsertModel = new AuditLogInsertModel();
|
|
924
|
-
this.auditLogInsertModel.Menu = this.common.getMenuId(Constants.CUSTOMER_REGISTRATION_MENU);
|
|
925
|
-
this.auditLogInsertModel.Action = this.common.getAuditTypeId(Constants.RESET_PASSCODE_AUDIT_TYPE);
|
|
926
|
-
this.auditLogInsertModel.Description = this.getViewDescription();
|
|
927
|
-
this.auditLogInsertModel.Description += `\n${Constants.RESET_PASSCODE}`;
|
|
928
|
-
this.auditLogInsertModel.CustomerUniqueId = this.customerId;
|
|
929
|
-
this.common.insertAuditLog(this.auditLogInsertModel);
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
private insertAddWalletLog(auditLog: AuditLogInsertModel) {
|
|
933
|
-
this.auditLogInsertModel = new AuditLogInsertModel();
|
|
934
|
-
this.auditLogInsertModel.Menu = this.common.getMenuId(Constants.CUSTOMER_REGISTRATION_MENU);
|
|
935
|
-
this.auditLogInsertModel.Action = this.common.getAuditTypeId(Constants.ADD_WALLET_AUDIT_TYPE);
|
|
936
|
-
this.auditLogInsertModel.Description = this.getViewDescription();
|
|
937
|
-
this.auditLogInsertModel.Description += ` ` + this.addWalletAuditLogModel.WalletType;
|
|
938
|
-
this.auditLogInsertModel.CustomerUniqueId = this.customerId;
|
|
939
|
-
this.common.insertAuditLog(this.auditLogInsertModel);
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
// get View Description for logs
|
|
943
|
-
// Description template: <First Name> <Last Name> <ID Number> <Wallet ID>
|
|
944
|
-
private getViewDescription() {
|
|
945
|
-
let description = Constants.STRING_EMPTY;
|
|
946
|
-
if (this.walletRegistrationModel.Customer.FirstName)
|
|
947
|
-
description += `${this.walletRegistrationModel.Customer.FirstName}`;
|
|
948
|
-
if (this.walletRegistrationModel.Customer.LastName)
|
|
949
|
-
description += ` ${this.walletRegistrationModel.Customer.LastName}`;
|
|
950
|
-
if (this.walletRegistrationModel.Customer.IdNumber)
|
|
951
|
-
if (this.walletRegistrationModel.Customer.IdentityId == 1 || this.walletRegistrationModel.Customer.IdentityId == 2) {
|
|
952
|
-
description += ` ${this.common.maskString(3, 4, this.walletRegistrationModel.Customer.IdNumber, Constants.ASTERISK_SYMBOL)}`;
|
|
953
|
-
}
|
|
954
|
-
else {
|
|
955
|
-
description += ` ${this.walletRegistrationModel.Customer.IdNumber}`;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
if (this.walletRegistrationModel.Wallet.WalletId) {
|
|
959
|
-
let walletId = this.walletRegistrationModel.Wallet.WalletId ? this.walletRegistrationModel.Wallet.WalletId.toString() : '';
|
|
960
|
-
|
|
961
|
-
description += ` ${this.common.maskString(6, 4, walletId, Constants.ASTERISK_SYMBOL)}`;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
if (this.walletRegistrationModel.BankLinkAccount.BankAccountNumber) {
|
|
965
|
-
let bankaccountnumber = this.walletRegistrationModel.BankLinkAccount.BankAccountNumber ? this.walletRegistrationModel.BankLinkAccount.BankAccountNumber.toString() : '';
|
|
966
|
-
|
|
967
|
-
description += ` ${this.common.maskStringBank(bankaccountnumber, Constants.ASTERISK_SYMBOL)}`;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
return description;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
public redirectToManualTopup() {
|
|
974
|
-
if (this.topupRights) {
|
|
975
|
-
this.sharedService.navigationData['walletRegistrationModel'] = this.walletRegistrationModel;
|
|
976
|
-
this.router.navigate(['/manual-post-wallet', this.customerId]);
|
|
977
|
-
}
|
|
978
|
-
else {
|
|
979
|
-
this.alert.error(this.common.permissionMessage);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
// Home Address as mailing
|
|
984
|
-
public onChangeAddressCheckbox() {
|
|
985
|
-
if (!this.homeAsMailingAddress) {
|
|
986
|
-
this.walletRegistrationModel.MailingAddress = new MailingAddressModel();
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
this.walletRegistrationModel.MailingAddress.MailAddress1 = this.walletRegistrationModel.Contact.HomeAddress1;
|
|
990
|
-
this.walletRegistrationModel.MailingAddress.MailAddress2 = this.walletRegistrationModel.Contact.HomeAddress2;
|
|
991
|
-
this.walletRegistrationModel.MailingAddress.CountryCode = this.walletRegistrationModel.Contact.CountryCode;
|
|
992
|
-
this.walletRegistrationModel.MailingAddress.CountryName = this.walletRegistrationModel.Contact.CountryName;
|
|
993
|
-
|
|
994
|
-
if (this.walletRegistrationModel.Contact.CountryCode == this.thaiCountryId) {
|
|
995
|
-
this.mailingStateListData = this.stateListData;
|
|
996
|
-
this.mailingDistrictListData = this.districtListData;
|
|
997
|
-
this.walletRegistrationModel.MailingAddress.StateId = this.walletRegistrationModel.Contact.StateId;
|
|
998
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = this.walletRegistrationModel.Contact.DistrictId;
|
|
999
|
-
}
|
|
1000
|
-
else {
|
|
1001
|
-
this.walletRegistrationModel.MailingAddress.State = this.walletRegistrationModel.Contact.State;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
this.walletRegistrationModel.MailingAddress.PostalCode = this.walletRegistrationModel.Contact.PostalCode;
|
|
1005
|
-
this.walletRegistrationModel.MailingAddress.AddressDefine1 = this.walletRegistrationModel.Contact.AddressDefine1;
|
|
1006
|
-
this.walletRegistrationModel.MailingAddress.AddressDefine2 = this.walletRegistrationModel.Contact.AddressDefine2;
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
// uploadFile: Get uploaded file.
|
|
1010
|
-
public uploadFile(event: any) {
|
|
1011
|
-
let thisComponent = this;
|
|
1012
|
-
if (event.target.files && event.target.files[0]) {
|
|
1013
|
-
let file = event.target.files[0];
|
|
1014
|
-
let fileType = file.type.split('/')[1].toLowerCase();
|
|
1015
|
-
if (this.attachFileType.indexOf(fileType) < 0) {
|
|
1016
|
-
this.alert.error(Constants.CUST_REG_ATTACH_ERROR_MSG);
|
|
1017
|
-
event.target.value = Constants.STRING_EMPTY;
|
|
1018
|
-
return;
|
|
1019
|
-
}
|
|
1020
|
-
if (file.size > Constants.MAX_IMAGE_SIZE_1MB) {
|
|
1021
|
-
this.alert.error(Constants.MAX_IMAGE_SIZE_ERROR_1MB);
|
|
1022
|
-
event.target.value = Constants.STRING_EMPTY;
|
|
1023
|
-
return;
|
|
1024
|
-
}
|
|
1025
|
-
let pattern: RegExp = /^[^\\\/\:\*\?\"\<\>\|]+$/;
|
|
1026
|
-
if (!pattern.test(file.name)) {
|
|
1027
|
-
this.alert.error(Constants.CUST_REG_ATTACH_PATTERN_MSG);
|
|
1028
|
-
event.target.value = Constants.STRING_EMPTY;
|
|
1029
|
-
return;
|
|
1030
|
-
}
|
|
1031
|
-
this.imageURL.fileName = file.name;
|
|
1032
|
-
let reader = new FileReader();
|
|
1033
|
-
var base64;
|
|
1034
|
-
|
|
1035
|
-
reader.onload = (e: any) => {
|
|
1036
|
-
base64 = e.target.result;
|
|
1037
|
-
if (event.target.id == "file1") {
|
|
1038
|
-
thisComponent.walletRegistrationModel.FileName1 = file.name;
|
|
1039
|
-
thisComponent.walletRegistrationModel.AttachFile1 = thisComponent.common.getImageString(base64);
|
|
1040
|
-
this.isFile1Deleted = false;
|
|
1041
|
-
this.isFileUpdated1 = true;
|
|
1042
|
-
}
|
|
1043
|
-
else if (event.target.id == "file2") {
|
|
1044
|
-
thisComponent.walletRegistrationModel.FileName2 = file.name;
|
|
1045
|
-
thisComponent.walletRegistrationModel.AttachFile2 = thisComponent.common.getImageString(base64);
|
|
1046
|
-
this.isFile2Deleted = false;
|
|
1047
|
-
this.isFileUpdated2 = true;
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1050
|
-
};
|
|
1051
|
-
reader.readAsDataURL(event.target.files[0]);
|
|
1052
|
-
}
|
|
1053
|
-
event.currentTarget.value = Constants.STRING_EMPTY;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
//method to delete file
|
|
1057
|
-
public deleteFile(file: string) {
|
|
1058
|
-
if (file == "file1") {
|
|
1059
|
-
this.walletRegistrationModel.AttachFile1 = this.walletRegistrationModel.FileName1 = null;
|
|
1060
|
-
this.isFile1Deleted = true;
|
|
1061
|
-
if (this.actualObject.FileName1)
|
|
1062
|
-
this.isFileUpdated1 = true;
|
|
1063
|
-
else {
|
|
1064
|
-
this.isFileUpdated1 = false;
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
else {
|
|
1068
|
-
this.walletRegistrationModel.AttachFile2 = this.walletRegistrationModel.FileName2 = null;
|
|
1069
|
-
this.isFile2Deleted = true;
|
|
1070
|
-
if (this.actualObject.FileName2)
|
|
1071
|
-
this.isFileUpdated2 = true;
|
|
1072
|
-
else {
|
|
1073
|
-
this.isFileUpdated2 = false;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
this.deleteConfirmationModal.close();
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
// Download attached file
|
|
1080
|
-
public downloadFile(fileId: any, isDownload: boolean) {
|
|
1081
|
-
this.url = Constants.DOWNLOAD_FILE_API;
|
|
1082
|
-
let requestJSON = {
|
|
1083
|
-
customerId: this.customerId,
|
|
1084
|
-
attachFileId: fileId,
|
|
1085
|
-
companyUniqueId: this.walletRegistrationModel.Customer.CompanyUniqueId
|
|
1086
|
-
};
|
|
1087
|
-
this.sharedService.post(this.url, requestJSON).subscribe((data: any) => {
|
|
1088
|
-
var response = data;
|
|
1089
|
-
if (response.responseCode == Constants.SUCCESS_CODE) {
|
|
1090
|
-
if (isDownload) {
|
|
1091
|
-
let data = `${Constants.PDF_JPEG_CONTENT_FORMAT}${response.AttachFile}`;
|
|
1092
|
-
this.common.saveAsFile(response.AttachFileName, data);
|
|
1093
|
-
// Insert download file audit log.
|
|
1094
|
-
this.insertAttachFileLog(true, fileId);
|
|
1095
|
-
}
|
|
1096
|
-
else {
|
|
1097
|
-
if (fileId == 1)
|
|
1098
|
-
this.walletRegistrationModel.AttachFile1 = response.AttachFile;
|
|
1099
|
-
else
|
|
1100
|
-
this.walletRegistrationModel.AttachFile2 = response.AttachFile;
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
else {
|
|
1104
|
-
this.alert.error(response.resDescriptionEN);
|
|
1105
|
-
}
|
|
1106
|
-
}, (error: any) => {
|
|
1107
|
-
this.alert.error(error);
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
public actionPermissionDenied() {
|
|
1112
|
-
this.alert.error(this.common.permissionMessage);
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
openWalletPopup() {
|
|
1116
|
-
this.showWalletModal = true;
|
|
1117
|
-
this.isAddWalletSubmit = false;
|
|
1118
|
-
this.addWalletAuditLogModel.FirstName = this.actualObject.Customer.FirstName;
|
|
1119
|
-
this.addWalletAuditLogModel.LastName = this.actualObject.Customer.LastName;
|
|
1120
|
-
this.addWalletAuditLogModel.IdNumber = this.actualObject.Customer.IdNumber;
|
|
1121
|
-
this.addWalletModel.WalletTypeId = 1;
|
|
1122
|
-
this.addWalletModel.WalletProfileId = null;
|
|
1123
|
-
this.addWalletModal.CompanyUniqueId = this.actualObject.Customer.CompanyUniqueId;
|
|
1124
|
-
this.getWalletProfileList(this.addWalletModal.CompanyUniqueId, true);
|
|
1125
|
-
this.addWalletModal.open();
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
openCardPopup() {
|
|
1129
|
-
this.showCardModel = true;
|
|
1130
|
-
//Create model for add card audit log.
|
|
1131
|
-
this.addCardAuditLogMoel = new AddCardAuditLogMoel();
|
|
1132
|
-
this.addCardAuditLogMoel.FirstName = this.actualObject.Customer.FirstName;
|
|
1133
|
-
this.addCardAuditLogMoel.LastName = this.actualObject.Customer.LastName;
|
|
1134
|
-
this.addCardAuditLogMoel.IdNumber = this.actualObject.Customer.IdNumber;
|
|
1135
|
-
// this.addCardModal.open();
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
refresh() {
|
|
1139
|
-
this.getWalletDetails();
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
private getCountryName(countryCode: any) {
|
|
1143
|
-
let countryName: string = Constants.STRING_EMPTY;
|
|
1144
|
-
if (countryCode) {
|
|
1145
|
-
let data = this.countryList.filter((element: any) => {
|
|
1146
|
-
if (element.countryCode == countryCode)
|
|
1147
|
-
return element;
|
|
1148
|
-
});
|
|
1149
|
-
|
|
1150
|
-
if (data && data.length > 0)
|
|
1151
|
-
countryName = data[0].countryName;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
return countryName;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
private insertAttachFileLog(isDownloadFile?: boolean, fileId?: number) {
|
|
1158
|
-
this.auditLogInsertModel = new AuditLogInsertModel();
|
|
1159
|
-
this.auditLogInsertModel.Menu = this.common.getMenuId(Constants.CUSTOMER_REGISTRATION_MENU);
|
|
1160
|
-
this.auditLogInsertModel.Action = this.common.getAuditTypeId(Constants.ATTACH_FILE_AUDIT_TYPE);
|
|
1161
|
-
this.auditLogInsertModel.Description = `${this.getDescriptionFirstLine()}\n`;
|
|
1162
|
-
this.auditLogInsertModel.CustomerUniqueId = this.customerId;
|
|
1163
|
-
//Delete File Log
|
|
1164
|
-
if ((this.walletRegistrationModel.AttachFile1 == null || this.walletRegistrationModel.AttachFile1 == Constants.STRING_EMPTY) && this.isFileUpdated1)
|
|
1165
|
-
this.auditLogInsertModel.Description += `File1 : ${Constants.FILE_DELETED_LABEL}\n`
|
|
1166
|
-
if ((this.walletRegistrationModel.AttachFile2 == null || this.walletRegistrationModel.AttachFile2 == Constants.STRING_EMPTY) && this.isFileUpdated2)
|
|
1167
|
-
this.auditLogInsertModel.Description += `File2 : ${Constants.FILE_DELETED_LABEL}\n`
|
|
1168
|
-
|
|
1169
|
-
//Attach File Log
|
|
1170
|
-
if (!this.isFile1Deleted)
|
|
1171
|
-
if (this.walletRegistrationModel.AttachFile1 != this.actualObject.AttachFile1)
|
|
1172
|
-
this.auditLogInsertModel.Description += `File1 : ${Constants.FILE_ATTACHED_LABEL}\n`
|
|
1173
|
-
|
|
1174
|
-
if (!this.isFile2Deleted)
|
|
1175
|
-
if (this.walletRegistrationModel.AttachFile2 != this.actualObject.AttachFile2)
|
|
1176
|
-
this.auditLogInsertModel.Description += `File2 : ${Constants.FILE_ATTACHED_LABEL}\n`
|
|
1177
|
-
|
|
1178
|
-
//Download File Log.
|
|
1179
|
-
if (isDownloadFile)
|
|
1180
|
-
this.auditLogInsertModel.Description += `\n ${(fileId == 1) ? 'File1' : 'File2'} : ${Constants.FILE_DOWNLOAD_LABEL}`;
|
|
1181
|
-
|
|
1182
|
-
this.common.insertAuditLog(this.auditLogInsertModel);
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
private getWalletStatus(statusId: number) {
|
|
1186
|
-
let walletStatus: string;
|
|
1187
|
-
let walletData = this.walletStatusList.filter(x => x.walletStatusId == statusId);
|
|
1188
|
-
|
|
1189
|
-
if (walletData && walletData.length > 0) {
|
|
1190
|
-
walletStatus = walletData[0].walletStatus;
|
|
1191
|
-
}
|
|
1192
|
-
return walletStatus;
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
private setAuditLogModel() {
|
|
1196
|
-
this.actualObject.Wallet = Object.assign({}, this.walletRegistrationModel.Wallet);
|
|
1197
|
-
this.actualObject.Contact = Object.assign({}, this.walletRegistrationModel.Contact);
|
|
1198
|
-
this.actualObject.Customer = Object.assign({}, this.walletRegistrationModel.Customer);
|
|
1199
|
-
this.actualObject.Card = Object.assign([], this.walletRegistrationModel.Card);
|
|
1200
|
-
this.actualObject.MailingAddress = Object.assign({}, this.walletRegistrationModel.MailingAddress);
|
|
1201
|
-
this.actualObject.CompanyAddress = Object.assign({}, this.walletRegistrationModel.CompanyAddress);
|
|
1202
|
-
this.actualObject.FileName1 = this.walletRegistrationModel.FileName1;
|
|
1203
|
-
this.actualObject.FileName2 = this.walletRegistrationModel.FileName2;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
public validateIdNumber(event: any) {
|
|
1207
|
-
let content: any = this.common.allowNumericOnly(event);
|
|
1208
|
-
if (content) {
|
|
1209
|
-
if (this.pageName == Constants.EDIT)
|
|
1210
|
-
this.walletRegistrationModel.Customer.IdNumber += content;
|
|
1211
|
-
else {
|
|
1212
|
-
this.walletRegistrationModel.Customer.IdNumber = this.walletRegistrationModel.Customer.IdNumber ? this.walletRegistrationModel.Customer.IdNumber : Constants.STRING_EMPTY
|
|
1213
|
-
this.walletRegistrationModel.Customer.IdNumber += `${this.walletRegistrationModel.Customer.IdNumber}${content}`;
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
return false;
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
public openConfirmationPopup(file: string) {
|
|
1220
|
-
this.selectedFile = file;
|
|
1221
|
-
this.deleteConfirmationModal.open()
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
// public navigateToCardList() {
|
|
1225
|
-
// if (this.customerId) {
|
|
1226
|
-
// this.router.navigate(['/customer-registration/all-card-list', this.customerId]);
|
|
1227
|
-
// }
|
|
1228
|
-
// }
|
|
1229
|
-
|
|
1230
|
-
public navigateToProfileHistory() {
|
|
1231
|
-
if (this.customerId) {
|
|
1232
|
-
this.router.navigate(['/customer-profile-history', this.customerId]);
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
public navigateToWalletHistory() {
|
|
1237
|
-
if (this.customerId) {
|
|
1238
|
-
this.router.navigate(['/wallet-history', this.customerId]);
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
private getWalletProfileList(companyUniqueId: number, isAddWalletRequest: boolean) {
|
|
1243
|
-
|
|
1244
|
-
if (isAddWalletRequest && !this.addWalletRights) {
|
|
1245
|
-
return;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
let url = `${Constants.GET_MASTER_WALLET_PROFILE_LIST}?companyUniqueId=${companyUniqueId}`;
|
|
1249
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
1250
|
-
let response: any = data;
|
|
1251
|
-
this.handleResponse(response, Constants.GET_MASTER_WALLET_PROFILE_LIST);
|
|
1252
|
-
},
|
|
1253
|
-
(error: any) => {
|
|
1254
|
-
this.alert.error(error);
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
public redirectToWalletProfileSetting() {
|
|
1259
|
-
if (this.walletRegistrationModel.Wallet.ProfileId > 0) {
|
|
1260
|
-
this.router.navigate(['/company-setting/wallet-profile-setting-view', this.walletRegistrationModel.Wallet.ProfileId]);
|
|
1261
|
-
}
|
|
1262
|
-
else {
|
|
1263
|
-
this.alert.error('No WalletProfile found.');
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
public getFullWalletId() {
|
|
1268
|
-
if (!this.walletRegistrationModel.Wallet.WalletId) {
|
|
1269
|
-
return;
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
if (this.fullPanRights) {
|
|
1273
|
-
this.walletId = this.walletRegistrationModel.Wallet.WalletId.toString();
|
|
1274
|
-
}
|
|
1275
|
-
else {
|
|
1276
|
-
this.alert.error(this.common.permissionMessage);
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
public getFullBankAccount() {
|
|
1280
|
-
if (!this.walletRegistrationModel.BankLinkAccount.BankAccountNumber) {
|
|
1281
|
-
return;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
if (this.fullPanRights) {
|
|
1285
|
-
this.walletId = this.walletRegistrationModel.BankLinkAccount.BankAccountNumber.toString();
|
|
1286
|
-
}
|
|
1287
|
-
else {
|
|
1288
|
-
this.alert.error(this.common.permissionMessage);
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
public getDistrictList(stateChanged?: boolean) {
|
|
1293
|
-
if (stateChanged) {
|
|
1294
|
-
this.walletRegistrationModel.Contact.DistrictId = null;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
if (!this.walletRegistrationModel.Contact.StateId) {
|
|
1298
|
-
this.districtListData = this.districtListData = null;
|
|
1299
|
-
return;
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
let url = `${Constants.MASTER_DISTRICT_API}?stateId=${this.walletRegistrationModel.Contact.StateId}`;
|
|
1303
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
1304
|
-
let response: any = data ? data : null;
|
|
1305
|
-
switch (response.responseCode) {
|
|
1306
|
-
case Constants.SUCCESS_CODE:
|
|
1307
|
-
this.districtList = response.districtList;
|
|
1308
|
-
break;
|
|
1309
|
-
case Constants.DATA_NOT_FOUND:
|
|
1310
|
-
this.districtList = [];
|
|
1311
|
-
this.walletRegistrationModel.Contact.DistrictId = null;
|
|
1312
|
-
break;
|
|
1313
|
-
default:
|
|
1314
|
-
this.alert.error(response.resDescriptionEN);
|
|
1315
|
-
this.districtList = [];
|
|
1316
|
-
this.walletRegistrationModel.Contact.DistrictId = null;
|
|
1317
|
-
break;
|
|
1318
|
-
}
|
|
1319
|
-
this.districtListData = this.districtList;
|
|
1320
|
-
}, (error: any) => {
|
|
1321
|
-
this.alert.error(error);
|
|
1322
|
-
this.districtList = [];
|
|
1323
|
-
this.walletRegistrationModel.Contact.DistrictId = null;
|
|
1324
|
-
this.districtListData = this.districtList;
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
public getMailingStateList(countryChanged?: boolean) {
|
|
1329
|
-
if (countryChanged) {
|
|
1330
|
-
this.walletRegistrationModel.MailingAddress.StateId = null;
|
|
1331
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = null;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
if (this.walletRegistrationModel.MailingAddress.CountryCode !== this.thaiCountryId) {
|
|
1335
|
-
this.walletRegistrationModel.MailingAddress.StateId = null;
|
|
1336
|
-
this.mailingStateListData = [];
|
|
1337
|
-
return;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
if (this.stateList.length > 0) {
|
|
1341
|
-
this.mailingStateListData = this.stateList;
|
|
1342
|
-
return;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
let url = `${Constants.MASTER_STATE_API}?countryId=${this.walletRegistrationModel.MailingAddress.CountryCode}`;
|
|
1346
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
1347
|
-
let response: any = data ? data : null;
|
|
1348
|
-
switch (response.responseCode) {
|
|
1349
|
-
case Constants.SUCCESS_CODE:
|
|
1350
|
-
this.stateList = response.stateList;
|
|
1351
|
-
break;
|
|
1352
|
-
case Constants.DATA_NOT_FOUND:
|
|
1353
|
-
this.stateList = [];
|
|
1354
|
-
this.walletRegistrationModel.MailingAddress.StateId = null;
|
|
1355
|
-
break;
|
|
1356
|
-
default:
|
|
1357
|
-
this.alert.error(response.resDescriptionEN);
|
|
1358
|
-
this.stateList = [];
|
|
1359
|
-
this.walletRegistrationModel.MailingAddress.StateId = null;
|
|
1360
|
-
break;
|
|
1361
|
-
}
|
|
1362
|
-
this.mailingStateListData = this.stateList;
|
|
1363
|
-
|
|
1364
|
-
}, (error: any) => {
|
|
1365
|
-
this.alert.error(error);
|
|
1366
|
-
this.stateList = [];
|
|
1367
|
-
this.walletRegistrationModel.MailingAddress.StateId = null;
|
|
1368
|
-
this.mailingStateListData = this.stateList;
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
public getMailingDistrictList(stateChanged?: boolean) {
|
|
1373
|
-
if (stateChanged) {
|
|
1374
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = null;
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
if (!this.walletRegistrationModel.MailingAddress.StateId) {
|
|
1378
|
-
return;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
if (this.walletRegistrationModel.MailingAddress.StateId === this.walletRegistrationModel.Contact.StateId
|
|
1382
|
-
&& this.districtList && this.districtList.length > 0) {
|
|
1383
|
-
this.mailingDistrictListData = this.mailingDistrictList = this.districtList;
|
|
1384
|
-
return;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
let url = `${Constants.MASTER_DISTRICT_API}?stateId=${this.walletRegistrationModel.MailingAddress.StateId}`;
|
|
1388
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
1389
|
-
let response: any = data ? data : null;
|
|
1390
|
-
switch (response.responseCode) {
|
|
1391
|
-
case Constants.SUCCESS_CODE:
|
|
1392
|
-
this.mailingDistrictList = response.districtList;
|
|
1393
|
-
break;
|
|
1394
|
-
case Constants.DATA_NOT_FOUND:
|
|
1395
|
-
this.mailingDistrictList = [];
|
|
1396
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = null;
|
|
1397
|
-
break;
|
|
1398
|
-
default:
|
|
1399
|
-
this.alert.error(response.resDescriptionEN);
|
|
1400
|
-
this.mailingDistrictList = [];
|
|
1401
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = null;
|
|
1402
|
-
break;
|
|
1403
|
-
}
|
|
1404
|
-
this.mailingDistrictListData = this.mailingDistrictList;
|
|
1405
|
-
|
|
1406
|
-
}, (error: any) => {
|
|
1407
|
-
this.alert.error(error);
|
|
1408
|
-
this.mailingDistrictList = [];
|
|
1409
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = null;
|
|
1410
|
-
this.mailingDistrictListData = this.mailingDistrictList;
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
public getCompanyStateList(countryChanged?: boolean) {
|
|
1415
|
-
if (countryChanged) {
|
|
1416
|
-
this.walletRegistrationModel.CompanyAddress.StateId = null;
|
|
1417
|
-
this.walletRegistrationModel.CompanyAddress.DistrictId = null;
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
if (this.walletRegistrationModel.CompanyAddress.CompanyCountryCode !== this.thaiCountryId) {
|
|
1421
|
-
this.walletRegistrationModel.CompanyAddress.StateId = null;
|
|
1422
|
-
this.companyStateListData = [];
|
|
1423
|
-
return;
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
if (this.stateList.length > 0) {
|
|
1427
|
-
this.companyStateListData = this.stateList;
|
|
1428
|
-
return;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
let url = `${Constants.MASTER_STATE_API}?countryId=${this.walletRegistrationModel.CompanyAddress.CompanyCountryCode}`;
|
|
1432
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
1433
|
-
let response: any = data ? data : null;
|
|
1434
|
-
switch (response.responseCode) {
|
|
1435
|
-
case Constants.SUCCESS_CODE:
|
|
1436
|
-
this.stateList = response.stateList;
|
|
1437
|
-
break;
|
|
1438
|
-
case Constants.DATA_NOT_FOUND:
|
|
1439
|
-
this.stateList = [];
|
|
1440
|
-
this.walletRegistrationModel.CompanyAddress.StateId = null;
|
|
1441
|
-
break;
|
|
1442
|
-
default:
|
|
1443
|
-
this.alert.error(response.resDescriptionEN);
|
|
1444
|
-
this.stateList = [];
|
|
1445
|
-
this.walletRegistrationModel.CompanyAddress.StateId = null;
|
|
1446
|
-
break;
|
|
1447
|
-
}
|
|
1448
|
-
this.companyStateListData = this.stateList;
|
|
1449
|
-
|
|
1450
|
-
}, (error: any) => {
|
|
1451
|
-
this.alert.error(error);
|
|
1452
|
-
this.stateList = [];
|
|
1453
|
-
this.walletRegistrationModel.CompanyAddress.StateId = null;
|
|
1454
|
-
this.companyStateListData = this.stateList;
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
public getCompanyDistrictList(stateChanged?: boolean) {
|
|
1459
|
-
if (stateChanged) {
|
|
1460
|
-
this.walletRegistrationModel.CompanyAddress.DistrictId = null;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
if (!this.walletRegistrationModel.CompanyAddress.StateId) {
|
|
1464
|
-
this.companyStateListData = this.companyDistrictList = this.companyDistrictListData = null;
|
|
1465
|
-
return;
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
if (this.walletRegistrationModel.Contact.StateId > 0 &&
|
|
1469
|
-
this.walletRegistrationModel.CompanyAddress.StateId == this.walletRegistrationModel.Contact.StateId &&
|
|
1470
|
-
this.districtListData && this.districtListData.length > 0) {
|
|
1471
|
-
this.companyDistrictListData = this.companyDistrictList = this.districtList;
|
|
1472
|
-
return;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
if (this.walletRegistrationModel.MailingAddress.StateId > 0 &&
|
|
1476
|
-
this.walletRegistrationModel.CompanyAddress.StateId == this.walletRegistrationModel.MailingAddress.StateId &&
|
|
1477
|
-
this.mailingDistrictList && this.mailingDistrictList.length > 0) {
|
|
1478
|
-
this.companyDistrictListData = this.companyDistrictList = this.mailingDistrictList;
|
|
1479
|
-
return;
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
let url = `${Constants.MASTER_DISTRICT_API}?stateId=${this.walletRegistrationModel.CompanyAddress.StateId}`;
|
|
1483
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
1484
|
-
let response: any = data ? data : null;
|
|
1485
|
-
switch (response.responseCode) {
|
|
1486
|
-
case Constants.SUCCESS_CODE:
|
|
1487
|
-
this.companyDistrictList = response.districtList;
|
|
1488
|
-
break;
|
|
1489
|
-
case Constants.DATA_NOT_FOUND:
|
|
1490
|
-
this.companyDistrictList = [];
|
|
1491
|
-
this.walletRegistrationModel.CompanyAddress.DistrictId = null;
|
|
1492
|
-
break;
|
|
1493
|
-
default:
|
|
1494
|
-
this.alert.error(response.resDescriptionEN);
|
|
1495
|
-
this.companyDistrictList = [];
|
|
1496
|
-
this.walletRegistrationModel.CompanyAddress.DistrictId = null;
|
|
1497
|
-
break;
|
|
1498
|
-
}
|
|
1499
|
-
this.companyDistrictListData = this.companyDistrictList;
|
|
1500
|
-
|
|
1501
|
-
}, (error: any) => {
|
|
1502
|
-
this.alert.error(error);
|
|
1503
|
-
this.mailingDistrictList = [];
|
|
1504
|
-
this.walletRegistrationModel.MailingAddress.DistrictId = null;
|
|
1505
|
-
this.mailingDistrictListData = this.mailingDistrictList;
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
public updateCustomerIndividualData(customerId: number) {
|
|
1510
|
-
this.updateDataConfirmationModal.close();
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
public CancelUserKycUpdate() {
|
|
1514
|
-
this.updateDataConfirmationModal.close();
|
|
1515
|
-
|
|
1516
|
-
if (this.pageName !== Constants.NEW) {
|
|
1517
|
-
this.sharedService.disableButton = false;
|
|
1518
|
-
return;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
this.updateStatuses(Constants.SET_STATUS_PENDING);
|
|
1522
|
-
localStorage.setItem('editAbnormal', 'true');
|
|
1523
|
-
this.onEditClick();
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
public GetCompanyDetails(companyUniqueId: number) {
|
|
1527
|
-
let url = `${Constants.COMPANY_DEFAULT_ACTION_API}/${companyUniqueId}`;
|
|
1528
|
-
this.sharedService.get(url).subscribe((data: any) => {
|
|
1529
|
-
let response: any = data ? data : null;
|
|
1530
|
-
if (response && response.responseCode === Constants.SUCCESS_CODE) {
|
|
1531
|
-
this.companyModel = this.common.removePropertyFromJSON(response);
|
|
1532
|
-
this.companyModel.externalProfileSetting = this.companyModel.externalProfileSetting ? this.companyModel.externalProfileSetting : false;
|
|
1533
|
-
|
|
1534
|
-
this.disableWalletProfile = this.pageName == Constants.EDIT && this.companyModel.externalProfileSetting;
|
|
1535
|
-
}
|
|
1536
|
-
else {
|
|
1537
|
-
this.disableWalletProfile = false;
|
|
1538
|
-
}
|
|
1539
|
-
}, (error: any) => {
|
|
1540
|
-
this.disableWalletProfile = false;
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
public walletProfileSearchFilter(value: any) {
|
|
1545
|
-
this.walletProfileListData = this.walletProfileList.filter((wp: any) => wp.profileName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
public countrySearchFilter(value: any) {
|
|
1549
|
-
this.countryListData = this.countryList.filter((c: any) => c.countryName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
public mailingCountrySearchFilter(value: any) {
|
|
1553
|
-
this.mailingCountryListData = this.countryList.filter((c: any) => c.countryName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
public walletStatusSearchFilter(value: any) {
|
|
1557
|
-
this.walletStatusListData = this.walletStatusList.filter((ws: any) => ws.walletStatus.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
public walletTypesSearchFilter(value: any) {
|
|
1561
|
-
this.walletTypeListData = this.walletTypeList.filter((ws: any) => ws.walletStatus.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
public addWalletTypeSearchFilter(value: any) {
|
|
1565
|
-
this.addWalletTypeListData = this.walletTypeList.filter((wt: any) => wt.walletType.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
public addWalletProfileSearchFilter(value: any) {
|
|
1569
|
-
this.addWalletProfileListData = this.walletProfileList.filter((wp: any) => wp.profileName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
public stateSearchFilter(value: any) {
|
|
1573
|
-
this.stateListData = this.stateList.filter((st: any) => st.stateName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
public mailingStateSearchFilter(value: any) {
|
|
1577
|
-
this.mailingStateListData = this.stateList.filter((st: any) => st.stateName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
public companyStateSearchFilter(value: any) {
|
|
1581
|
-
this.companyStateListData = this.stateList.filter((st: any) => st.stateName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
public districtSearchFilter(value: any) {
|
|
1585
|
-
this.districtListData = this.districtList.filter((d: any) => d.districtName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
public mailingDistrictSearchFilter(value: any) {
|
|
1589
|
-
this.mailingDistrictListData = this.mailingDistrictList.filter((md: any) => md.districtName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
public companyDistrictSearchFilter(value: any) {
|
|
1593
|
-
this.companyDistrictListData = this.companyDistrictList.filter((cd: any) => cd.districtName.toLowerCase().indexOf(value.toLowerCase()) !== -1);
|
|
1594
|
-
}
|
|
1595
|
-
}
|