|
@@ -32,42 +32,6 @@ export class CustomersListComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
- // settings = {
|
|
|
-
|
|
|
- // edit: {
|
|
|
- // editButtonContent: '<i class="nb-edit"></i>',
|
|
|
- // saveButtonContent: '<i class="nb-checkmark"></i>',
|
|
|
- // cancelButtonContent: '<i class="nb-close"></i>',
|
|
|
- // },
|
|
|
- // delete: {
|
|
|
- // deleteButtonContent: '<i class="nb-trash"></i>',
|
|
|
- // confirmDelete: true,
|
|
|
- // },
|
|
|
- // selectMode: 'multi',
|
|
|
- // actions: {
|
|
|
- // add: false,
|
|
|
- // delete: false,
|
|
|
- // select: true,
|
|
|
- // },
|
|
|
- // columns: {
|
|
|
- // name: {
|
|
|
- // title: 'Name',
|
|
|
- // type: 'string',
|
|
|
- // },
|
|
|
- // industrial: {
|
|
|
- // title: 'industrial',
|
|
|
- // type: 'string',
|
|
|
- // },
|
|
|
- // website_address: {
|
|
|
- // title: 'website',
|
|
|
- // type: 'string',
|
|
|
- // },
|
|
|
- // phone: {
|
|
|
- // title: 'Phone',
|
|
|
- // type: 'string',
|
|
|
- // },
|
|
|
- // },
|
|
|
- // };
|
|
|
|
|
|
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]);
|
|
|
- // console.log(editId);
|
|
|
+ this.router.navigate(['../edit/' + editId], {relativeTo: this.route});
|
|
|
+ console.log(editId);
|
|
|
|
|
|
}
|
|
|
}
|