diff --git a/src/app/modules/admin/member/partner/components/list.component.html b/src/app/modules/admin/member/partner/components/list.component.html
index 1cadf41..cb93111 100644
--- a/src/app/modules/admin/member/partner/components/list.component.html
+++ b/src/app/modules/admin/member/partner/components/list.component.html
@@ -28,7 +28,7 @@
0; else noPartner">
diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.html b/src/app/modules/admin/member/partner/compose/regist-compose.component.html
index 109a5cd..9e44ee9 100644
--- a/src/app/modules/admin/member/partner/compose/regist-compose.component.html
+++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.html
@@ -32,7 +32,11 @@
회원 아이디
-
+
diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts
index 3f0319b..8e3b966 100644
--- a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts
+++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts
@@ -1,6 +1,25 @@
-import { Component, OnInit, ViewEncapsulation } from '@angular/core';
+import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
-import { MatDialogRef } from '@angular/material/dialog';
+import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
+import { IdentityService } from 'app/modules/polyglot/member/services/identity.service';
+
+export interface RegistComposeData {
+ title: string;
+ parentId: string;
+}
+export interface RegistComposeResult {
+ parentId: string;
+ siteName: string;
+ signinId: string;
+ password: string;
+ exchangePassword: string;
+ nickname: string;
+ calculateType: string;
+ phoneNumber: string;
+ bankName: string;
+ accountNumber: string;
+ accountHolder: string;
+}
@Component({
selector: 'app-regist-compose',
@@ -26,7 +45,9 @@ export class RegistComposeComponent implements OnInit {
*/
constructor(
public matDialogRef: MatDialogRef,
- private _formBuilder: FormBuilder
+ @Inject(MAT_DIALOG_DATA) public data: RegistComposeData,
+ private _formBuilder: FormBuilder,
+ private _identityService: IdentityService
) {}
// -----------------------------------------------------------------------------------------------------
@@ -97,4 +118,14 @@ export class RegistComposeComponent implements OnInit {
* Send the message
*/
send(): void {}
+
+ __checkSigninId(event: FocusEvent): void {
+ const signinId = this.composeForm.get('signinId')?.value;
+ // console.log(event, '::', signinId);
+ this._identityService
+ .checkUsernameForDuplication(signinId)
+ .then((isUse: boolean) => {
+ console.log('check username: ', isUse);
+ });
+ }
}