|
|
|
@ -8,6 +8,7 @@ import { PasswordHideShowComponent } from '../../shared/components/password-hide
|
|
|
|
import { pageSizeOptions } from '../../utils/app.constants';
|
|
|
|
import { pageSizeOptions } from '../../utils/app.constants';
|
|
|
|
import { URIKey } from '../../utils/uri-enums';
|
|
|
|
import { URIKey } from '../../utils/uri-enums';
|
|
|
|
import { HttpURIService } from '../../app.http.uri.service';
|
|
|
|
import { HttpURIService } from '../../app.http.uri.service';
|
|
|
|
|
|
|
|
import { ButtonManagementService } from '../../services/button-management.service';
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
@Component({
|
|
|
|
selector: 'app-third-party-registration',
|
|
|
|
selector: 'app-third-party-registration',
|
|
|
|
@ -22,14 +23,23 @@ export class ThirdPartyRegistrationComponent implements OnInit {
|
|
|
|
renewalDataExpanded = true;
|
|
|
|
renewalDataExpanded = true;
|
|
|
|
pageSizeOptions = pageSizeOptions;
|
|
|
|
pageSizeOptions = pageSizeOptions;
|
|
|
|
itemsPerPage: number = 5;
|
|
|
|
itemsPerPage: number = 5;
|
|
|
|
constructor(private fb: FormBuilder, private httpURIService: HttpURIService){}
|
|
|
|
buttonPermissions: any;
|
|
|
|
@ViewChild(PasswordHideShowComponent) passwordHideShow?: PasswordHideShowComponent;
|
|
|
|
@ViewChild(PasswordHideShowComponent) passwordHideShow?: PasswordHideShowComponent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
|
|
|
|
private fb: FormBuilder,
|
|
|
|
|
|
|
|
private httpURIService: HttpURIService,
|
|
|
|
|
|
|
|
private buttonManagementService: ButtonManagementService
|
|
|
|
|
|
|
|
){}
|
|
|
|
|
|
|
|
|
|
|
|
togglePasswordType() {
|
|
|
|
togglePasswordType() {
|
|
|
|
this.passwordType = this.passwordHideShow?.showPassword ? 'password' : 'text';
|
|
|
|
this.passwordType = this.passwordHideShow?.showPassword ? 'password' : 'text';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void{
|
|
|
|
ngOnInit(): void{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getButtonPermissions();
|
|
|
|
|
|
|
|
|
|
|
|
this.thirdPartyRegForm = this.fb.group({
|
|
|
|
this.thirdPartyRegForm = this.fb.group({
|
|
|
|
thirdPartyId: ['', [Validators.required]],
|
|
|
|
thirdPartyId: ['', [Validators.required]],
|
|
|
|
thirdPartyName: ['',[Validators.required]],
|
|
|
|
thirdPartyName: ['',[Validators.required]],
|
|
|
|
@ -67,4 +77,8 @@ export class ThirdPartyRegistrationComponent implements OnInit {
|
|
|
|
this.httpURIService.requestPOST(URIKey.THIRD_PARTY_REGISTER_URI, payload)
|
|
|
|
this.httpURIService.requestPOST(URIKey.THIRD_PARTY_REGISTER_URI, payload)
|
|
|
|
.subscribe();
|
|
|
|
.subscribe();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getButtonPermissions() {
|
|
|
|
|
|
|
|
this.buttonPermissions = this.buttonManagementService.buttonPermissions["thirdPartyRegistration"];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|