|
@@ -32,42 +32,6 @@ export class CustomersListComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
dataList = [];
|
|
|
dataListIds= [];
|
|
@@ -77,6 +41,44 @@ export class CustomersListComponent implements OnInit {
|
|
|
count: number;
|
|
|
perPagePagenation: number;
|
|
|
selectedAll: any;
|
|
|
+ company_registrtion =
|
|
|
+ {
|
|
|
+
|
|
|
+ company_name : '',
|
|
|
+ phone : '',
|
|
|
+ commercial_number : '',
|
|
|
+ industrial : '',
|
|
|
+ website_address :'',
|
|
|
+ address : '',
|
|
|
+ total_users_request : '',
|
|
|
+ register_date : '',
|
|
|
+ expire_date : '',
|
|
|
+ logo_photo : '',
|
|
|
+ company_admins : [
|
|
|
+ {
|
|
|
+ name : '',
|
|
|
+ email : '',
|
|
|
+ password : '',
|
|
|
+ password_confirmation : ''
|
|
|
+
|
|
|
+ }],
|
|
|
+ company_branches : [
|
|
|
+ {
|
|
|
+ branch_name : '',
|
|
|
+ branch_users : [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ email : '',
|
|
|
+ type : '',
|
|
|
+ position : '',
|
|
|
+ phone : '',
|
|
|
+ hire_date: '',
|
|
|
+ is_active: null,
|
|
|
+ password : '',
|
|
|
+ password_confirmation : ''
|
|
|
+ }]
|
|
|
+ }]
|
|
|
+ }
|
|
|
|
|
|
ngOnInit() {
|
|
|
this.pageser.getListData(this.currentPage, this.dataTableNumber, 'all', 'customers')
|
|
@@ -184,11 +186,12 @@ export class CustomersListComponent implements OnInit {
|
|
|
}
|
|
|
onAdding(){
|
|
|
this.router.navigate(['../register'], {relativeTo: this.route});
|
|
|
+ localStorage.setItem('company_registrtion', JSON.stringify(this.company_registrtion));
|
|
|
}
|
|
|
|
|
|
onEdit(editId: number) {
|
|
|
-
|
|
|
-
|
|
|
+ this.router.navigate(['../edit/' + editId], {relativeTo: this.route});
|
|
|
+ console.log(editId);
|
|
|
|
|
|
}
|
|
|
}
|