api registery
This commit is contained in:
parent
006f503e27
commit
2ba5667c4a
@ -0,0 +1,10 @@
|
|||||||
|
export class ApiRegisteryLine {
|
||||||
|
public id: number;
|
||||||
|
public url: string;
|
||||||
|
public method: string;
|
||||||
|
public header_id: number;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
// import { Component, Input, Output, EventEmitter } from '@angular/core';
|
||||||
|
|
||||||
|
// @Component({
|
||||||
|
// selector: 'app-file-upload-list',
|
||||||
|
// templateUrl: './file-upload-list.component.html',
|
||||||
|
// })
|
||||||
|
// export class FileUploadListComponent {
|
||||||
|
// @Input() fileData: any[] = [];
|
||||||
|
// @Input() type: 'image' | 'audio' | 'video' | 'document' = 'image';
|
||||||
|
// @Output() fileChanged = new EventEmitter<{ event: any, index: number }>();
|
||||||
|
// @Output() deleteRow = new EventEmitter<number>();
|
||||||
|
// @Output() addRow = new EventEmitter<void>();
|
||||||
|
|
||||||
|
// get acceptType() {
|
||||||
|
// switch (this.type) {
|
||||||
|
// case 'image': return 'image/*';
|
||||||
|
// case 'audio': return 'audio/*';
|
||||||
|
// case 'video': return 'video/*';
|
||||||
|
// case 'document': return 'application/pdf,.csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel';
|
||||||
|
// default: return '*/*';
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
<!-- <div class="clr-row" style="margin-top: 10px;">
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>No</th>
|
||||||
|
<th>File</th>
|
||||||
|
<th>File Name</th>
|
||||||
|
<th>Preview</th>
|
||||||
|
<th>Cancel</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let attach of fileData; let i = index">
|
||||||
|
<td style="width: 70px;">
|
||||||
|
<input type="text" class="clr-input" [value]="i+1" readonly>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type="file" [accept]="acceptType" (change)="fileChanged.emit({ event: $event, index: i })">
|
||||||
|
</td>
|
||||||
|
<td>{{attach.uploadedfile_name}}</td>
|
||||||
|
<td> -->
|
||||||
|
|
||||||
|
<!-- Image Preview -->
|
||||||
|
<!-- <img *ngIf="type === 'image'" [src]="attach.filePreview" width="100px" height="100px" /> -->
|
||||||
|
|
||||||
|
<!-- Audio Preview -->
|
||||||
|
<!-- <audio *ngIf="type === 'audio'" [src]="attach.filePreview" controls></audio> -->
|
||||||
|
|
||||||
|
<!-- Video Preview -->
|
||||||
|
<!-- <video *ngIf="type === 'video'" [src]="attach.filePreview" width="100px" height="100px" controls></video> -->
|
||||||
|
|
||||||
|
<!-- Document Preview -->
|
||||||
|
<!-- <a *ngIf="type === 'document'" [href]="attach.filePreview" target="_blank">Open File</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a (click)="deleteRow.emit(i)">
|
||||||
|
<clr-icon shape="trash" class="is-error"></clr-icon>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<button type="button" class="btn btn-primary" style="margin-left: 20px;" (click)="addRow.emit()">
|
||||||
|
<clr-icon shape="plus"></clr-icon>
|
||||||
|
</button>
|
||||||
|
</table>
|
||||||
|
</div> -->
|
||||||
@ -34,7 +34,7 @@ export class DatamanagementComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.getall();
|
this.getall();
|
||||||
this.getuserall();
|
// this.getuserall();
|
||||||
this.allentity();
|
this.allentity();
|
||||||
this.entitygetall();
|
this.entitygetall();
|
||||||
this.entryForm = this._fb.group({
|
this.entryForm = this._fb.group({
|
||||||
|
|||||||
@ -0,0 +1,354 @@
|
|||||||
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
|
<li><a href="javascript://"> Token registery</a></li>
|
||||||
|
</ol>
|
||||||
|
<div class="dg-wrapper">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-8">
|
||||||
|
<h3>Token registery </h3>
|
||||||
|
</div>
|
||||||
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
|
shape="bars"></clr-icon>
|
||||||
|
</button>
|
||||||
|
<!-- button -->
|
||||||
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
|
<clr-icon shape="plus"></clr-icon>Generate
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
|
[(clrDgSelected)]="selected">
|
||||||
|
<clr-dg-placeholder>
|
||||||
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="'token_name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> token name
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="'token'"> <ng-container *clrDgHideableColumn="{hidden: false}"> token
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user.token_name }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell (click)="goToReplaceStringtoken(user.token)"
|
||||||
|
style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon></clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<clr-modal [(clrModalOpen)]="rsModaltoken" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
|
<div class="modal-body">
|
||||||
|
<textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
<!-- // EDIT DATA......... -->
|
||||||
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<h3 class="modal-title">Update Token registery
|
||||||
|
<!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
|
<!-- button -->
|
||||||
|
<form>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>token name</label>
|
||||||
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.token_name" name="token_name" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
|
<h1 class="delete">Are You Sure Want to delete?</h1>
|
||||||
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
<!-- ADD FORM ..... -->
|
||||||
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<h3 class="modal-title">Add Token registery
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
|
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
|
<a id="build_extension" [routerLink]="['../extension/all']"
|
||||||
|
[queryParams]="{ formCode: 'Token_registery_formCode' }">
|
||||||
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
|
</a>
|
||||||
|
<span class="tooltip-content">Form Extension</span>
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<div class="modal-body">
|
||||||
|
<form [formGroup]="entryForm">
|
||||||
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> token name</label>
|
||||||
|
<input class="clr-input" type="text" formControlName="token_name" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
|
class="clr-input" />
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
|
class="clr-input" />
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
|
class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- htmlpopup -->
|
||||||
@ -0,0 +1,85 @@
|
|||||||
|
//@import "../../../../assets/scss/var";
|
||||||
|
.s-info-bar {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
button {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.delete,.heading{
|
||||||
|
text-align: center;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.entry-pg {
|
||||||
|
width: 750px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button1::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
.button1:hover::after {
|
||||||
|
content: "ADD ROWS";
|
||||||
|
}
|
||||||
|
|
||||||
|
.section {
|
||||||
|
background-color: #dddddd;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section p {
|
||||||
|
//color: white;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clr-input {
|
||||||
|
color: #212529;
|
||||||
|
border: 1px solid #ced4da;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
padding: 0.75rem 0.75rem;
|
||||||
|
margin-top: 3px;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clr-file {
|
||||||
|
color: #212529;
|
||||||
|
border: 1px solid #ced4da;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
//padding: 0.6rem 0.75rem;
|
||||||
|
margin-top: 3px;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
select{
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 3px;
|
||||||
|
padding: 5px 5px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
input[type=text],[type=date],[type=number],textarea {
|
||||||
|
width: 100%;
|
||||||
|
padding: 15px 15px;
|
||||||
|
background-color:rgb(255, 255, 255);
|
||||||
|
// margin: 8px 0;
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.error_mess {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.universal-section-header {
|
||||||
|
margin: 24px 0 10px 0;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #1a237e;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
@ -0,0 +1,251 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { ToastrService } from 'ngx-toastr';
|
||||||
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
|
import { Token_registeryservice } from './Token_registery.service';
|
||||||
|
import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
|
||||||
|
import { ExtensionService } from 'src/app/services/fnd/extension.service';
|
||||||
|
import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
|
||||||
|
import { Token_registerycardvariable } from './Token_registery_cardvariable';
|
||||||
|
import { UserInfoService } from 'src/app/services/user-info.service';
|
||||||
|
declare var JsBarcode: any;
|
||||||
|
@Component({
|
||||||
|
selector: 'app-Token_registery',
|
||||||
|
templateUrl: './Token_registery.component.html',
|
||||||
|
styleUrls: ['./Token_registery.component.scss']
|
||||||
|
})
|
||||||
|
export class Token_registeryComponent implements OnInit {
|
||||||
|
cardButton = Token_registerycardvariable.cardButton;
|
||||||
|
cardmodeldata = Token_registerycardvariable.cardmodeldata;
|
||||||
|
public dashboardArray: DashboardContentModel2[];
|
||||||
|
isCardview = Token_registerycardvariable.cardButton;
|
||||||
|
cardmodal; changeView() {
|
||||||
|
this.isCardview = !this.isCardview;
|
||||||
|
}
|
||||||
|
beforeText(fieldtext: string): string { // Extract the text before the first '<'
|
||||||
|
const index = fieldtext.indexOf('<');
|
||||||
|
return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
|
||||||
|
}
|
||||||
|
afterText(fieldtext: string): string { // Extract the text after the last '>'
|
||||||
|
const index = fieldtext.lastIndexOf('>');
|
||||||
|
return index !== -1 ? fieldtext.substring(index + 1) : '';
|
||||||
|
}
|
||||||
|
transform(fieldtext: string): string {
|
||||||
|
const match = fieldtext.match(/<([^>]*)>/);
|
||||||
|
return match ? match[1] : ''; // Extract the text between '<' and '>'
|
||||||
|
}
|
||||||
|
userrole;
|
||||||
|
rowSelected: any = {};
|
||||||
|
modaldelete = false;
|
||||||
|
modalEdit = false;
|
||||||
|
modalAdd = false;
|
||||||
|
public entryForm: FormGroup;
|
||||||
|
loading = false;
|
||||||
|
product;
|
||||||
|
modalOpenedforNewLine = false;
|
||||||
|
newLine: any;
|
||||||
|
additionalFieldsFromBackend: any[] = [];
|
||||||
|
formcode = 'Token_registery_formCode'
|
||||||
|
tableName = 'Token_registery'; checkFormCode; selected: any[] = []; constructor(
|
||||||
|
private extensionService: ExtensionService,
|
||||||
|
private userInfoService: UserInfoService,
|
||||||
|
private mainService: Token_registeryservice,
|
||||||
|
private alertService: AlertService,
|
||||||
|
private toastr: ToastrService,
|
||||||
|
private _fb: FormBuilder,
|
||||||
|
) { }
|
||||||
|
private editInterval: any;
|
||||||
|
// component button
|
||||||
|
ngOnInit(): void {
|
||||||
|
if (this.cardmodeldata !== '') {
|
||||||
|
this.cardmodal = JSON.parse(this.cardmodeldata);
|
||||||
|
this.dashboardArray = this.cardmodal.dashboard.slice();
|
||||||
|
console.log(this.dashboardArray)
|
||||||
|
}
|
||||||
|
this.userrole = this.userInfoService.getRoles();
|
||||||
|
this.getData();
|
||||||
|
this.entryForm = this._fb.group({
|
||||||
|
token_name: [null],
|
||||||
|
|
||||||
|
token: [null],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}); // component_button200
|
||||||
|
// form code start
|
||||||
|
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
||||||
|
console.log(data);
|
||||||
|
const jsonArray = data.map((str) => JSON.parse(str));
|
||||||
|
this.additionalFieldsFromBackend = jsonArray;
|
||||||
|
this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Token_registery_formCode");
|
||||||
|
console.log(this.checkFormCode);
|
||||||
|
console.log(this.additionalFieldsFromBackend);
|
||||||
|
if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
|
||||||
|
this.additionalFieldsFromBackend.forEach(field => {
|
||||||
|
if (field.formCode === this.formcode) {
|
||||||
|
if (!this.entryForm.contains(field.extValue)) {
|
||||||
|
// Add the control only if it doesn't exist in the form
|
||||||
|
this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
console.log(this.entryForm.value);
|
||||||
|
// form code end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
ngOnDestroy(): void {
|
||||||
|
if (this.editInterval) {
|
||||||
|
clearInterval(this.editInterval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
error;
|
||||||
|
getData() {
|
||||||
|
this.mainService.getAll().subscribe((data) => {
|
||||||
|
console.log(data);
|
||||||
|
this.product = data;
|
||||||
|
this.product = [...this.product].reverse(); if (this.product.length == 0) {
|
||||||
|
this.error = "No Data Available"
|
||||||
|
}
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error) {
|
||||||
|
this.error = "Server Error";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
onEdit(row) {
|
||||||
|
this.rowSelected = row;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
this.modalEdit = true;
|
||||||
|
}
|
||||||
|
onDelete(row) {
|
||||||
|
this.rowSelected = row;
|
||||||
|
this.modaldelete = true;
|
||||||
|
}
|
||||||
|
delete(id) {
|
||||||
|
this.modaldelete = false;
|
||||||
|
console.log("in delete " + id);
|
||||||
|
this.mainService.delete(id).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
this.ngOnInit();
|
||||||
|
if (data) { this.toastr.success('Deleted successfully'); }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
onUpdate(id) {
|
||||||
|
this.modalEdit = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//console.log("in update");
|
||||||
|
console.log("id " + id);
|
||||||
|
console.log(this.rowSelected);
|
||||||
|
//console.log("out update");
|
||||||
|
this.mainService.update(id, this.rowSelected).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Update Successfully");
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("update Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
onCreate() {
|
||||||
|
this.modalAdd = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
this.mainService.create(this.entryForm.value).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Added Successfully");
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("Added Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
goToAdd(row) {
|
||||||
|
this.modalAdd = true; this.submitted = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
submitted = false;
|
||||||
|
onSubmit() {
|
||||||
|
console.log(this.entryForm.value);
|
||||||
|
this.submitted = true;
|
||||||
|
if (this.entryForm.invalid) {
|
||||||
|
return;
|
||||||
|
} this.onCreate();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
rsModaltoken = false;
|
||||||
|
goToReplaceStringtoken(row) {
|
||||||
|
this.rowSelected = row; this.rsModaltoken = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// updateaction
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
|
||||||
|
import { ApiRequestService } from "src/app/services/api/api-request.service";
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class Token_registeryservice {
|
||||||
|
private baseURL = "apiregistery";
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
|
||||||
|
private apiRequest: ApiRequestService,
|
||||||
|
) { }
|
||||||
|
getAll(page?: number, size?: number): Observable<any> {
|
||||||
|
return this.apiRequest.get(this.baseURL + "/getall");
|
||||||
|
}
|
||||||
|
getById(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.get(_http);
|
||||||
|
}
|
||||||
|
create(data: any): Observable<any> {
|
||||||
|
return this.apiRequest.post(this.baseURL + "/generateToken", data);
|
||||||
|
}
|
||||||
|
update(id: number, data: any): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.put(_http, data);
|
||||||
|
}
|
||||||
|
delete(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/delete/" + id;
|
||||||
|
return this.apiRequest.delete(_http);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// updateaction
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
export const Token_registerycardvariable = {
|
||||||
|
"cardButton": false,
|
||||||
|
"cardmodeldata": ``
|
||||||
|
}
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
|
||||||
|
import { ApiRequestService } from "src/app/services/api/api-request.service";
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class ApiRegisteryservice {
|
||||||
|
private baseURL = "Api_registery_header/Api_registery_header"; constructor(
|
||||||
|
private http: HttpClient,
|
||||||
|
private apiRequest: ApiRequestService,
|
||||||
|
) { }
|
||||||
|
getAll(page?: number, size?: number): Observable<any> {
|
||||||
|
return this.apiRequest.get(this.baseURL);
|
||||||
|
}
|
||||||
|
getById(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.get(_http);
|
||||||
|
}
|
||||||
|
create(data: any): Observable<any> {
|
||||||
|
return this.apiRequest.post(this.baseURL, data);
|
||||||
|
}
|
||||||
|
update(id: number, data: any): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.put(_http, data);
|
||||||
|
}
|
||||||
|
delete(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.delete(_http);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// updateaction
|
||||||
|
}
|
||||||
@ -0,0 +1,382 @@
|
|||||||
|
<ol class="breadcrumb breadcrumb-arrow font-trirong">
|
||||||
|
<li><a href="javascript://"> ApiRegisteryLine</a></li>
|
||||||
|
</ol>
|
||||||
|
<div class="dg-wrapper">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-8">
|
||||||
|
<h3>ApiRegisteryLine </h3>
|
||||||
|
</div>
|
||||||
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
|
<button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()">
|
||||||
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview"
|
||||||
|
shape="bars"></clr-icon>
|
||||||
|
</button>
|
||||||
|
<!-- button -->
|
||||||
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)">
|
||||||
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ng-container *ngIf="!isCardview"> <!-- GET ALL --> <clr-datagrid [clrDgLoading]="loading"
|
||||||
|
[(clrDgSelected)]="selected">
|
||||||
|
<clr-dg-placeholder>
|
||||||
|
<ng-template #loadingSpinner>
|
||||||
|
<clr-spinner>Loading ... </clr-spinner>
|
||||||
|
</ng-template>
|
||||||
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="'url'"> <ng-container *clrDgHideableColumn="{hidden: false}"> url
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="'method'"> <ng-container *clrDgHideableColumn="{hidden: false}"> method
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
|
</ng-container></clr-dg-column>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user.url }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user.method }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- who column -->
|
||||||
|
<clr-dg-cell>
|
||||||
|
<clr-signpost>
|
||||||
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
|
<div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
|
||||||
|
<div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
|
||||||
|
<div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
|
||||||
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
|
</clr-signpost-content>
|
||||||
|
</clr-signpost>
|
||||||
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
<!-- who colmn -->
|
||||||
|
|
||||||
|
<clr-dg-action-overflow>
|
||||||
|
<button class="action-item" (click)="onEdit(user)">Edit</button>
|
||||||
|
<button class="action-item" (click)="onDelete(user)">Delete</button>
|
||||||
|
</clr-dg-action-overflow>
|
||||||
|
</clr-dg-row>
|
||||||
|
<clr-dg-footer>
|
||||||
|
<clr-dg-pagination #pagination [clrDgPageSize]="10">
|
||||||
|
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
|
||||||
|
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
|
||||||
|
of {{pagination.totalItems}} users
|
||||||
|
</clr-dg-pagination>
|
||||||
|
</clr-dg-footer>
|
||||||
|
</clr-datagrid> </ng-container>
|
||||||
|
<ng-template #showInfo>
|
||||||
|
<div class="alert alert-info" role="alert">
|
||||||
|
<div class="alert-items">
|
||||||
|
<div class="alert-item static">
|
||||||
|
<span class="alert-text">
|
||||||
|
<clr-icon class="alert-icon" shape="info-circle"></clr-icon>
|
||||||
|
Data could be found. Loading..
|
||||||
|
<clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-template><ng-container *ngIf="isCardview">
|
||||||
|
<div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
|
||||||
|
<div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto">
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
|
||||||
|
<div class="card" style="padding: 10px; "
|
||||||
|
[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
|
||||||
|
<div class="card-body"
|
||||||
|
style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
|
||||||
|
<ng-container *ngFor="let item of dashboardArray">
|
||||||
|
<div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1"
|
||||||
|
[style.gridColumnEnd]="item.x + item.cols + 1" [style.gridRowEnd]="item.y + item.rows + 1">
|
||||||
|
<div *ngIf="item.name === 'textField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] }}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'dateField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ] | date}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="item.name === 'numberField'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
{{beforeText(item.fieldtext)}}
|
||||||
|
{{ app[transform(item.fieldtext) ]}}
|
||||||
|
{{afterText(item.fieldtext)}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Line'" class="title-card card-title"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div *ngIf="item.name === 'Icon'" class="icon-card"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
|
||||||
|
<clr-icon [attr.shape]="item.iconName"></clr-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="item.name == 'Image'"
|
||||||
|
[style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
|
||||||
|
[style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
|
||||||
|
[style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
|
||||||
|
[style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
|
||||||
|
[style.font-style]="item.italic == true ? 'Italic' : 'normal'"
|
||||||
|
[style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' :
|
||||||
|
(item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
|
||||||
|
[style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
|
||||||
|
[style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
|
||||||
|
[style.background-color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
|
||||||
|
[style.color]="item.conditionValue == app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
|
||||||
|
<img id="filePreview" [src]="item.imageURL" alt="File Preview"
|
||||||
|
[style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
|
||||||
|
[style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- // EDIT DATA......... -->
|
||||||
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<h3 class="modal-title">Update ApiRegisteryLine
|
||||||
|
<!--update button -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
|
<!-- button -->
|
||||||
|
<form>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>url</label>
|
||||||
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.url" name="url" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>method</label>
|
||||||
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.method" name="method" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
|
||||||
|
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"
|
||||||
|
col="10" row="2"></textarea>
|
||||||
|
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}"
|
||||||
|
[(ngModel)]="rowSelected[field.extValue]" class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
|
<h1 class="delete">Are You Sure Want to delete?</h1>
|
||||||
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
<!-- ADD FORM ..... -->
|
||||||
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<h3 class="modal-title">Add ApiRegisteryLine
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
|
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
|
<a id="build_extension" [routerLink]="['../extension/all']"
|
||||||
|
[queryParams]="{ formCode: 'Apiregisteryline_formCode' }">
|
||||||
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
|
</a>
|
||||||
|
<span class="tooltip-content">Form Extension</span>
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<div class="modal-body">
|
||||||
|
<form [formGroup]="entryForm">
|
||||||
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> url</label>
|
||||||
|
<input class="clr-input" type="text" formControlName="url" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> method</label>
|
||||||
|
<input class="clr-input" type="text" formControlName="method" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- form code start -->
|
||||||
|
<div *ngIf="checkFormCode">
|
||||||
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
|
||||||
|
<ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
|
||||||
|
<!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
|
class="clr-input" />
|
||||||
|
<!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
|
||||||
|
<input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
|
class="clr-input" />
|
||||||
|
<!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
|
||||||
|
<textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
|
||||||
|
<!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
|
||||||
|
<input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
|
||||||
|
class="clr-checkbox" />
|
||||||
|
</ng-container>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- htmlpopup -->
|
||||||
@ -0,0 +1,78 @@
|
|||||||
|
//@import "../../../../assets/scss/var";
|
||||||
|
.s-info-bar {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
button {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.delete,.heading{
|
||||||
|
text-align: center;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.entry-pg {
|
||||||
|
width: 750px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button1::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
.button1:hover::after {
|
||||||
|
content: "ADD ROWS";
|
||||||
|
}
|
||||||
|
|
||||||
|
.section {
|
||||||
|
background-color: #dddddd;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section p {
|
||||||
|
//color: white;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clr-input {
|
||||||
|
color: #212529;
|
||||||
|
border: 1px solid #ced4da;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
padding: 0.75rem 0.75rem;
|
||||||
|
margin-top: 3px;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clr-file {
|
||||||
|
color: #212529;
|
||||||
|
border: 1px solid #ced4da;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
//padding: 0.6rem 0.75rem;
|
||||||
|
margin-top: 3px;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
select{
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 3px;
|
||||||
|
padding: 5px 5px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
input[type=text],[type=date],[type=number],textarea {
|
||||||
|
width: 100%;
|
||||||
|
padding: 15px 15px;
|
||||||
|
background-color:rgb(255, 255, 255);
|
||||||
|
// margin: 8px 0;
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.error_mess {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
@ -0,0 +1,230 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { ToastrService } from 'ngx-toastr';
|
||||||
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
|
import { Apiregisterylineservice } from './Apiregisteryline.service';
|
||||||
|
import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
|
||||||
|
import { ExtensionService } from 'src/app/services/fnd/extension.service';
|
||||||
|
import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
|
||||||
|
import { Apiregisterylinecardvariable } from './Apiregisteryline_cardvariable';
|
||||||
|
import { UserInfoService } from 'src/app/services/user-info.service';
|
||||||
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
declare var JsBarcode: any;
|
||||||
|
@Component({
|
||||||
|
selector: 'app-Apiregisteryline',
|
||||||
|
templateUrl: './Apiregisteryline.component.html',
|
||||||
|
styleUrls: ['./Apiregisteryline.component.scss']
|
||||||
|
})
|
||||||
|
export class ApiregisterylineComponent implements OnInit {
|
||||||
|
cardButton = Apiregisterylinecardvariable.cardButton;
|
||||||
|
cardmodeldata = Apiregisterylinecardvariable.cardmodeldata;
|
||||||
|
public dashboardArray: DashboardContentModel2[];
|
||||||
|
isCardview = Apiregisterylinecardvariable.cardButton;
|
||||||
|
cardmodal; changeView() {
|
||||||
|
this.isCardview = !this.isCardview;
|
||||||
|
}
|
||||||
|
beforeText(fieldtext: string): string { // Extract the text before the first '<'
|
||||||
|
const index = fieldtext.indexOf('<');
|
||||||
|
return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
|
||||||
|
}
|
||||||
|
afterText(fieldtext: string): string { // Extract the text after the last '>'
|
||||||
|
const index = fieldtext.lastIndexOf('>');
|
||||||
|
return index !== -1 ? fieldtext.substring(index + 1) : '';
|
||||||
|
}
|
||||||
|
transform(fieldtext: string): string {
|
||||||
|
const match = fieldtext.match(/<([^>]*)>/);
|
||||||
|
return match ? match[1] : ''; // Extract the text between '<' and '>'
|
||||||
|
}
|
||||||
|
userrole;
|
||||||
|
rowSelected: any = {};
|
||||||
|
modaldelete = false;
|
||||||
|
modalEdit = false;
|
||||||
|
modalAdd = false;
|
||||||
|
public entryForm: FormGroup;
|
||||||
|
loading = false;
|
||||||
|
product;
|
||||||
|
modalOpenedforNewLine = false;
|
||||||
|
newLine: any;
|
||||||
|
additionalFieldsFromBackend: any[] = [];
|
||||||
|
formcode = 'Apiregisteryline_formCode';
|
||||||
|
headerId;
|
||||||
|
tableName = 'Apiregisteryline'; checkFormCode; selected: any[] = []; constructor(
|
||||||
|
private extensionService: ExtensionService,
|
||||||
|
private userInfoService: UserInfoService,
|
||||||
|
private mainService: Apiregisterylineservice,
|
||||||
|
private alertService: AlertService,
|
||||||
|
private toastr: ToastrService,
|
||||||
|
private _fb: FormBuilder,
|
||||||
|
private route: ActivatedRoute,
|
||||||
|
) { }
|
||||||
|
private editInterval: any;
|
||||||
|
// component button
|
||||||
|
ngOnInit(): void {
|
||||||
|
|
||||||
|
this.headerId = this.route.snapshot.params["id"];
|
||||||
|
console.log("headerId = ", this.headerId);
|
||||||
|
|
||||||
|
if (this.cardmodeldata !== '') {
|
||||||
|
this.cardmodal = JSON.parse(this.cardmodeldata);
|
||||||
|
this.dashboardArray = this.cardmodal.dashboard.slice();
|
||||||
|
console.log(this.dashboardArray)
|
||||||
|
}
|
||||||
|
this.userrole = this.userInfoService.getRoles();
|
||||||
|
this.getData();
|
||||||
|
this.entryForm = this._fb.group({
|
||||||
|
url: [null],
|
||||||
|
|
||||||
|
method: [null],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}); // component_button200
|
||||||
|
// form code start
|
||||||
|
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
||||||
|
console.log(data);
|
||||||
|
const jsonArray = data.map((str) => JSON.parse(str));
|
||||||
|
this.additionalFieldsFromBackend = jsonArray;
|
||||||
|
this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Apiregisteryline_formCode");
|
||||||
|
console.log(this.checkFormCode);
|
||||||
|
console.log(this.additionalFieldsFromBackend);
|
||||||
|
if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
|
||||||
|
this.additionalFieldsFromBackend.forEach(field => {
|
||||||
|
if (field.formCode === this.formcode) {
|
||||||
|
if (!this.entryForm.contains(field.extValue)) {
|
||||||
|
// Add the control only if it doesn't exist in the form
|
||||||
|
this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
console.log(this.entryForm.value);
|
||||||
|
// form code end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
ngOnDestroy(): void {
|
||||||
|
if (this.editInterval) {
|
||||||
|
clearInterval(this.editInterval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
error;
|
||||||
|
getData() {
|
||||||
|
this.mainService.getAll(this.headerId).subscribe((data) => {
|
||||||
|
console.log(data);
|
||||||
|
this.product = data;
|
||||||
|
this.product = [...this.product].reverse(); if (this.product.length == 0) {
|
||||||
|
this.error = "No Data Available"
|
||||||
|
}
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error) {
|
||||||
|
this.error = "Server Error";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
onEdit(row) {
|
||||||
|
this.rowSelected = row;
|
||||||
|
this.modalEdit = true;
|
||||||
|
}
|
||||||
|
onDelete(row) {
|
||||||
|
this.rowSelected = row;
|
||||||
|
this.modaldelete = true;
|
||||||
|
}
|
||||||
|
delete(id) {
|
||||||
|
this.modaldelete = false;
|
||||||
|
console.log("in delete " + id);
|
||||||
|
this.mainService.delete(id).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
this.ngOnInit();
|
||||||
|
if (data) { this.toastr.success('Deleted successfully'); }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
onUpdate(id) {
|
||||||
|
this.modalEdit = false;
|
||||||
|
//console.log("in update");
|
||||||
|
console.log("id " + id);
|
||||||
|
console.log(this.rowSelected);
|
||||||
|
//console.log("out update");
|
||||||
|
this.mainService.update(id, this.rowSelected).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Update Successfully");
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("update Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
onCreate() {
|
||||||
|
this.modalAdd = false;
|
||||||
|
this.entryForm.value.header_id = this.headerId;
|
||||||
|
this.mainService.create(this.entryForm.value).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Added Successfully");
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("Added Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
goToAdd(row) {
|
||||||
|
this.modalAdd = true; this.submitted = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
submitted = false;
|
||||||
|
onSubmit() {
|
||||||
|
console.log(this.entryForm.value);
|
||||||
|
this.submitted = true;
|
||||||
|
if (this.entryForm.invalid) {
|
||||||
|
return;
|
||||||
|
} this.onCreate();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// updateaction
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
|
||||||
|
import { ApiRequestService } from "src/app/services/api/api-request.service";
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class Apiregisterylineservice {
|
||||||
|
private baseURL = "Api_registery_line/Api_registery_line"; constructor(
|
||||||
|
private http: HttpClient,
|
||||||
|
private apiRequest: ApiRequestService,
|
||||||
|
) { }
|
||||||
|
getAll(headerId: number, page?: number, size?: number): Observable<any> {
|
||||||
|
return this.apiRequest.get(this.baseURL + "/header/" + headerId);
|
||||||
|
}
|
||||||
|
getById(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.get(_http);
|
||||||
|
}
|
||||||
|
create(data: any): Observable<any> {
|
||||||
|
return this.apiRequest.post(this.baseURL, data);
|
||||||
|
}
|
||||||
|
update(id: number, data: any): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.put(_http, data);
|
||||||
|
}
|
||||||
|
delete(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.delete(_http);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// updateaction
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
export const Apiregisterylinecardvariable = {
|
||||||
|
"cardButton": false,
|
||||||
|
"cardmodeldata": ``
|
||||||
|
}
|
||||||
@ -2,9 +2,9 @@
|
|||||||
<li><a href="javascript://" [routerLink]="['/']"><clr-icon shape="home"></clr-icon></a></li>
|
<li><a href="javascript://" [routerLink]="['/']"><clr-icon shape="home"></clr-icon></a></li>
|
||||||
<li><a href="javascript://"> <clr-icon shape="crown"></clr-icon>Super Admin</a></li>
|
<li><a href="javascript://"> <clr-icon shape="crown"></clr-icon>Super Admin</a></li>
|
||||||
<li><a href="javascript://">Form-Extension</a></li>
|
<li><a href="javascript://">Form-Extension</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<div class="dg-wrapper">
|
<div class="dg-wrapper">
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
<div class="clr-col-8">
|
<div class="clr-col-8">
|
||||||
<h3>API-Registery <span *ngIf="getFormCode !== undefined">- {{getFormCode}}</span></h3>
|
<h3>API-Registery <span *ngIf="getFormCode !== undefined">- {{getFormCode}}</span></h3>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<div class="clr-col-4" style="text-align: right;">
|
<div class="clr-col-4" style="text-align: right;">
|
||||||
|
|
||||||
|
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd()" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(alldata)">
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -20,11 +20,12 @@
|
|||||||
<clr-datagrid [clrDgLoading]="loading">
|
<clr-datagrid [clrDgLoading]="loading">
|
||||||
|
|
||||||
<clr-dg-placeholder><ng-template #loadingSpinner><clr-spinner>Loading ... </clr-spinner></ng-template>
|
<clr-dg-placeholder><ng-template #loadingSpinner><clr-spinner>Loading ... </clr-spinner></ng-template>
|
||||||
<div *ngIf="error;else loadingSpinner">{{error}}</div></clr-dg-placeholder>
|
<div *ngIf="error;else loadingSpinner">{{error}}</div>
|
||||||
|
</clr-dg-placeholder>
|
||||||
|
|
||||||
<!-- <clr-dg-column [clrDgField]="''" style="max-width: 40px;"> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<!-- <clr-dg-column [clrDgField]="''" style="max-width: 40px;"> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
</ng-container></clr-dg-column> -->
|
</ng-container></clr-dg-column> -->
|
||||||
<!--
|
<!--
|
||||||
<clr-dg-column [clrDgField]="''"><ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column [clrDgField]="''"><ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
Go To
|
Go To
|
||||||
</ng-container></clr-dg-column> -->
|
</ng-container></clr-dg-column> -->
|
||||||
@ -41,19 +42,21 @@
|
|||||||
Action
|
Action
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of rows" [clrDgItem]="user" >
|
<clr-dg-row *clrDgItems="let user of alldata" [clrDgItem]="user">
|
||||||
<!-- <clr-dg-cell style="max-width: 40px;">
|
<clr-dg-cell style="max-width: 40px;">
|
||||||
<span style="cursor: pointer;"><clr-icon shape="edit" (click)="goToEdit(user.id)" class="red is-error" style="color:red;"></clr-icon></span>
|
<span style="cursor: pointer;"><clr-icon shape="edit" (click)="goToEdit(user.id)" class="red is-error"
|
||||||
</clr-dg-cell> -->
|
style="color:red;"></clr-icon></span>
|
||||||
|
</clr-dg-cell>
|
||||||
<!-- <clr-dg-cell><span class="label label-light-blue" style="display: inline;margin-left: 10px; cursor: pointer;" (click)="buildExtension(user.id,user.account_id)">Build</span></clr-dg-cell> -->
|
<!-- <clr-dg-cell><span class="label label-light-blue" style="display: inline;margin-left: 10px; cursor: pointer;" (click)="buildExtension(user.id,user.account_id)">Build</span></clr-dg-cell> -->
|
||||||
|
|
||||||
<clr-dg-cell>{{user.field_name}}</clr-dg-cell>
|
<clr-dg-cell>{{user.table_name}}</clr-dg-cell>
|
||||||
<!-- <clr-dg-cell>{{user.mapping}}</clr-dg-cell>
|
|
||||||
<clr-dg-cell> {{user.data_type}}</clr-dg-cell> -->
|
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<span style="cursor: pointer;padding: 10px; "><clr-icon shape="trash" (click)="onDelete(user)" class="red is-error" style="color: red;"></clr-icon></span>
|
<span style="cursor: pointer;padding: 10px; "><clr-icon shape="trash" (click)="onDelete(user)"
|
||||||
|
class="red is-error" style="color: red;"></clr-icon></span>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
|
<span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success"
|
||||||
|
style="color: rgb(0, 130, 236);"></clr-icon></span>
|
||||||
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
<clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
|
||||||
<h5 style="margin-top: 0">Who Column</h5>
|
<h5 style="margin-top: 0">Who Column</h5>
|
||||||
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
<div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
|
||||||
@ -63,13 +66,18 @@
|
|||||||
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
<div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
|
||||||
</clr-signpost-content>
|
</clr-signpost-content>
|
||||||
</clr-signpost>
|
</clr-signpost>
|
||||||
|
|
||||||
|
<clr-icon shape="bullet-list" (click)="gotoline(user.id)" style="color: rgb(108, 108, 194);"></clr-icon>
|
||||||
|
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<!-- <clr-dg-action-overflow>
|
<!-- <clr-dg-action-overflow>
|
||||||
<button class="action-item" (click)="buildExtension(user.account_id)">Build <clr-icon shape="pop-out" class="is-error"></clr-icon> </button>
|
<button class="action-item" (click)="buildExtension(user.account_id)">Build <clr-icon shape="pop-out" class="is-error"></clr-icon> </button>
|
||||||
<button class="action-item" (click)="goToEdit(user.id)">Edit<clr-icon shape="edit" class="is-error"></clr-icon></button>
|
<button class="action-item" (click)="goToEdit(user.id)">Edit<clr-icon shape="edit" class="is-error"></clr-icon></button>
|
||||||
<button class="action-item" (click)="onDelete(user)">Delete<clr-icon shape="trash" class="is-error"></clr-icon></button>
|
<button class="action-item" (click)="onDelete(user)">Delete<clr-icon shape="trash" class="is-error"></clr-icon></button>
|
||||||
</clr-dg-action-overflow> -->
|
</clr-dg-action-overflow> -->
|
||||||
<clr-dg-row-detail *clrIfExpanded >
|
<clr-dg-row-detail *clrIfExpanded>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-title">Field Name: </td>
|
<td class="td-title">Field Name: </td>
|
||||||
@ -86,17 +94,79 @@
|
|||||||
</clr-dg-pagination>
|
</clr-dg-pagination>
|
||||||
</clr-dg-footer>
|
</clr-dg-footer>
|
||||||
</clr-datagrid>
|
</clr-datagrid>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h1 class="delete">Are You Sure Want to delete?</h1>
|
<h1 class="delete">Are You Sure Want to delete?</h1>
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
<button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
|
||||||
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
|
<button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary">Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</clr-modal>
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- // EDIT DATA......... -->
|
||||||
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<h3 class="modal-title">Update ApiRegistery
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
|
<!-- button -->
|
||||||
|
<form>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>Table Name</label>
|
||||||
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.table_name" name="table_name" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form code end -->
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onUpdate(rowSelected.id)">Update</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ADD FORM ..... -->
|
||||||
|
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
|
<h3 class="modal-title">Add ApiRegistery
|
||||||
|
|
||||||
|
|
||||||
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
|
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip"
|
||||||
|
aria-haspopup="true" class="tooltip tooltip-sm tooltip-bottom-left">
|
||||||
|
<a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Sttest_formCode' }">
|
||||||
|
<clr-icon shape="airplane" size="32"></clr-icon>
|
||||||
|
</a>
|
||||||
|
<span class="tooltip-content">Form Extension</span>
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<div class="modal-body">
|
||||||
|
<form [formGroup]="entryForm">
|
||||||
|
<div class="clr-row" style="height: fit-content;">
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>Table Name</label>
|
||||||
|
<input class="clr-input" type="text" formControlName="table_name" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</clr-modal>
|
||||||
@ -1,31 +1,18 @@
|
|||||||
// import { Component } from '@angular/core';
|
|
||||||
|
|
||||||
// @Component({
|
|
||||||
// selector: 'app-allapiregistery',
|
|
||||||
// templateUrl: './allapiregistery.component.html',
|
|
||||||
// styleUrls: ['./allapiregistery.component.scss']
|
|
||||||
// })
|
|
||||||
// export class AllapiregisteryComponent {
|
|
||||||
|
|
||||||
// }
|
|
||||||
import { Component, OnInit, TemplateRef, ViewChild, ViewEncapsulation, } from '@angular/core';
|
import { Component, OnInit, TemplateRef, ViewChild, ViewEncapsulation, } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from "@angular/router";
|
import { ActivatedRoute, Router } from "@angular/router";
|
||||||
|
|
||||||
import { ToastrService } from 'ngx-toastr';
|
import { ToastrService } from 'ngx-toastr';
|
||||||
import { ExtensionField } from "src/app/models/fnd/ExtensionField";
|
import { ExtensionField } from "src/app/models/fnd/ExtensionField";
|
||||||
import { ExtensionService } from 'src/app/services/fnd/extension.service';
|
import { ExtensionService } from 'src/app/services/fnd/extension.service';
|
||||||
import { ApiregisteryService } from 'src/app/services/fnd/apiregistery.service';
|
|
||||||
|
|
||||||
//import { Teacher } from "src/app/pages/university/teacher/Teacher";
|
//import { Teacher } from "src/app/pages/university/teacher/Teacher";
|
||||||
import { UserInfoService } from "src/app/services/user-info.service";
|
import { UserInfoService } from "src/app/services/user-info.service";
|
||||||
import { ApiRegisteryLine } from 'src/app/models/fnd/apiregisteryline';
|
import { ApiRegisteryservice } from '../ApiRegistery.service';
|
||||||
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||||
|
|
||||||
interface Rows {
|
interface Rows {
|
||||||
// id: number;
|
|
||||||
// field_name: any;
|
|
||||||
// mapping: any;
|
|
||||||
// data_type: any;
|
|
||||||
// isActive: any;
|
|
||||||
id: number;
|
id: number;
|
||||||
url: string;
|
url: string;
|
||||||
method: string;
|
method: string;
|
||||||
@ -43,26 +30,30 @@ export class AllapiregisteryComponent implements OnInit {
|
|||||||
//@ViewChild("filter") filter: ElementRef;
|
//@ViewChild("filter") filter: ElementRef;
|
||||||
basic: boolean = false;
|
basic: boolean = false;
|
||||||
// whoColumns: Teacher; // who columns data
|
// whoColumns: Teacher; // who columns data
|
||||||
alldata:any;
|
alldata: any;
|
||||||
|
userrole;
|
||||||
columns: any[];
|
columns: any[];
|
||||||
rows: Rows[];
|
rows: Rows[];
|
||||||
temp = [];
|
temp = [];
|
||||||
rowSelected: any = {};
|
rowSelected: any = {};
|
||||||
modaldelete = false;
|
modaldelete = false;
|
||||||
|
modalEdit = false;
|
||||||
|
modalAdd = false;
|
||||||
|
public entryForm: FormGroup;
|
||||||
loading = false;
|
loading = false;
|
||||||
error;
|
error;
|
||||||
selected: any[] = [];
|
selected: any[] = [];
|
||||||
filterData: string;
|
filterData: string;
|
||||||
isLoading: boolean = false;
|
isLoading: boolean = false;
|
||||||
extensionField: ExtensionField[] = [];
|
extensionField: ExtensionField[] = [];
|
||||||
apiRegisteryLineData: ApiRegisteryLine[] = [];
|
|
||||||
constructor(private router: Router,
|
constructor(private router: Router,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private toastr: ToastrService,
|
private toastr: ToastrService,
|
||||||
private extensionService: ExtensionService,
|
private extensionService: ExtensionService,
|
||||||
private apiregistery: ApiregisteryService,
|
private apiregistery: ApiRegisteryservice,
|
||||||
private userInfoService: UserInfoService) { }
|
private userInfoService: UserInfoService,
|
||||||
|
private _fb: FormBuilder,
|
||||||
|
) { }
|
||||||
|
|
||||||
private account_id: any;
|
private account_id: any;
|
||||||
// private formCode: any;
|
// private formCode: any;
|
||||||
@ -89,49 +80,26 @@ export class AllapiregisteryComponent implements OnInit {
|
|||||||
// { prop: "data_type", name: "Data Type", width: 190 },
|
// { prop: "data_type", name: "Data Type", width: 190 },
|
||||||
// /* { prop: "id", name: "Show In Grid", width: 90, cellTemplate: this.txId } */
|
// /* { prop: "id", name: "Show In Grid", width: 90, cellTemplate: this.txId } */
|
||||||
// ];
|
// ];
|
||||||
|
|
||||||
|
this.entryForm = this._fb.group({
|
||||||
|
table_name: [null],
|
||||||
|
});
|
||||||
|
|
||||||
|
this.userrole = this.userInfoService.getRoles();
|
||||||
|
|
||||||
}
|
}
|
||||||
// getData() {
|
|
||||||
// this.isLoading = true;
|
|
||||||
// //this.extensionField = new ExtensionField();
|
|
||||||
// this.apiregistery.getAll().subscribe((data) => {
|
|
||||||
// this.isLoading = false;
|
|
||||||
// console.log(data);
|
|
||||||
// // this.extensionField = data;
|
|
||||||
// if (this.formCode === 'undefined' || this.formCode === undefined || this.formCode === null) {
|
|
||||||
// this.extensionField = data;
|
|
||||||
// } else {
|
|
||||||
// this.extensionField = data.filter(item => item.form_code === this.formCode);
|
|
||||||
// console.log(this.extensionField);
|
|
||||||
// }
|
|
||||||
// this.rows = this.extensionField;
|
|
||||||
// if (this.extensionField.length == 0) {
|
|
||||||
// this.error = "No data Available";
|
|
||||||
// console.log(this.error)
|
|
||||||
// }
|
|
||||||
// //this.temp = [...this.extensionField];
|
|
||||||
// }, (error) => {
|
|
||||||
// console.log(error);
|
|
||||||
// if (error) {
|
|
||||||
// this.error = "No data Available OR server Error";
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getData() {
|
getData() {
|
||||||
this.apiregistery.getAll().subscribe((data)=>{
|
this.apiregistery.getAll().subscribe((data) => {
|
||||||
this.alldata=data
|
this.alldata = data
|
||||||
console.log(this.alldata);
|
console.log(' get all ', this.alldata);
|
||||||
if(this.alldata.length==0){
|
if (this.alldata.length == 0) {
|
||||||
this.error="No data Available";
|
this.error = "No data Available";
|
||||||
console.log(this.error)
|
console.log(this.error)
|
||||||
}
|
}
|
||||||
},(error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if(error){
|
if (error) {
|
||||||
this.error="Server Error";
|
this.error = "Server Error";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -211,12 +179,94 @@ export class AllapiregisteryComponent implements OnInit {
|
|||||||
// //this.extensionService.update(id,this.extField).subscribe();
|
// //this.extensionService.update(id,this.extField).subscribe();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
goToAdd() {
|
goToEdit(row) {
|
||||||
this.router.navigate(["../add"], { relativeTo: this.route });
|
this.rowSelected = row;
|
||||||
|
|
||||||
|
this.modalEdit = true;
|
||||||
}
|
}
|
||||||
goToEdit(id: number) {
|
|
||||||
this.router.navigate(["../edit/" + id], { relativeTo: this.route });
|
onUpdate(id) {
|
||||||
|
this.modalEdit = false;
|
||||||
|
//console.log("in update");
|
||||||
|
console.log("id " + id);
|
||||||
|
console.log(this.rowSelected);
|
||||||
|
//console.log("out update");
|
||||||
|
this.apiregistery.update(id, this.rowSelected).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log(data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Update Successfully");
|
||||||
}
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("update Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Updated");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
onCreate() {
|
||||||
|
this.modalAdd = false;
|
||||||
|
this.apiregistery.create(this.entryForm.value).subscribe(
|
||||||
|
(data) => {
|
||||||
|
console.log('after add ', data);
|
||||||
|
if (data || data.status >= 200 && data.status <= 299) {
|
||||||
|
this.toastr.success("Added Successfully");
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
}, (error) => {
|
||||||
|
console.log(error);
|
||||||
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
|
// this.toastr.success("Added Succesfully");
|
||||||
|
}
|
||||||
|
if (error.status >= 400 && error.status <= 499) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
if (error.status >= 500 && error.status <= 599) {
|
||||||
|
this.toastr.error("Not Added");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.ngOnInit();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
goToAdd(row) {
|
||||||
|
this.modalAdd = true;
|
||||||
|
this.submitted = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
submitted = false;
|
||||||
|
onSubmit() {
|
||||||
|
console.log(this.entryForm.value);
|
||||||
|
this.submitted = true;
|
||||||
|
if (this.entryForm.invalid) {
|
||||||
|
return;
|
||||||
|
} this.onCreate();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// goToAdd() {
|
||||||
|
// this.router.navigate(["../add"], { relativeTo: this.route });
|
||||||
|
// }
|
||||||
|
// goToEdit(id: number) {
|
||||||
|
// this.router.navigate(["../edit/" + id], { relativeTo: this.route });
|
||||||
|
// }
|
||||||
|
|
||||||
goToWhoColumns(id: number) {
|
goToWhoColumns(id: number) {
|
||||||
this.basic = !this.basic;
|
this.basic = !this.basic;
|
||||||
@ -241,4 +291,9 @@ export class AllapiregisteryComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
gotoline(id: any) {
|
||||||
|
this.router.navigate(["../line/" + id], { relativeTo: this.route })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,9 +10,9 @@ import { map } from 'rxjs/operators';
|
|||||||
})
|
})
|
||||||
export class DatamanagementService {
|
export class DatamanagementService {
|
||||||
private URL = environment.backendUrl;
|
private URL = environment.backendUrl;
|
||||||
private updateUrl="api/template/dynamic/dynamic_temp"
|
private updateUrl = "api/template/dynamic/dynamic_temp"
|
||||||
constructor( private apiRequest: ApiRequestService,private _http: HttpClient) { }
|
constructor(private apiRequest: ApiRequestService, private _http: HttpClient) { }
|
||||||
getall(){
|
getall() {
|
||||||
return this.apiRequest.get(`api/template/getalltemplate`);
|
return this.apiRequest.get(`api/template/getalltemplate`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,15 +52,15 @@ private updateUrl="api/template/dynamic/dynamic_temp"
|
|||||||
return this.apiRequest.postFormData(`api/template/save/${fileType}`, formData);
|
return this.apiRequest.postFormData(`api/template/save/${fileType}`, formData);
|
||||||
}
|
}
|
||||||
|
|
||||||
update(id: number, data:any,files:any): Observable<any> {
|
update(id: number, data: any, files: any): Observable<any> {
|
||||||
const s =JSON.stringify(data);
|
const s = JSON.stringify(data);
|
||||||
const formData:FormData=new FormData();
|
const formData: FormData = new FormData();
|
||||||
formData.append("data",s);
|
formData.append("data", s);
|
||||||
formData.append("file",files);
|
formData.append("file", files);
|
||||||
return this.apiRequest.postFormData(`${this.updateUrl}/${id}`,formData);
|
return this.apiRequest.postFormData(`${this.updateUrl}/${id}`, formData);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(id:any){
|
delete(id: any) {
|
||||||
return this.apiRequest.delete(`api/template/deletetemplate/${id}`);
|
return this.apiRequest.delete(`api/template/deletetemplate/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,19 +68,19 @@ private updateUrl="api/template/dynamic/dynamic_temp"
|
|||||||
// return this.apiRequest.get(`api/dynamic/jsonkeychange`);
|
// return this.apiRequest.get(`api/dynamic/jsonkeychange`);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
changeKeysOfJson(newjson: string, body:any): Observable<any> {
|
changeKeysOfJson(newjson: string, body: any): Observable<any> {
|
||||||
// const headers = new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded');
|
// const headers = new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
// let params: HttpParams = new HttpParams();
|
// let params: HttpParams = new HttpParams();
|
||||||
// params =params.append('newjson', newJson);
|
// params =params.append('newjson', newJson);
|
||||||
// params =params.append('body', body);
|
// params =params.append('body', body);
|
||||||
const formData:FormData=new FormData();
|
const formData: FormData = new FormData();
|
||||||
formData.append("newjson",newjson);
|
formData.append("newjson", newjson);
|
||||||
formData.append("body",body);
|
formData.append("body", body);
|
||||||
return this.apiRequest.postFormData(`api/dynamic/jsonkeychange`, formData);
|
return this.apiRequest.postFormData(`api/dynamic/jsonkeychange`, formData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
saveTemplateInJson(id: any): Observable<any> {
|
saveTemplateInJson(id: any): Observable<any> {
|
||||||
// const formData: FormData = new FormData();
|
// const formData: FormData = new FormData();
|
||||||
// formData.append('file', file);
|
// formData.append('file', file);
|
||||||
// console.log(formData, file);
|
// console.log(formData, file);
|
||||||
@ -88,14 +88,14 @@ saveTemplateInJson(id: any): Observable<any> {
|
|||||||
// let params: HttpParams = new HttpParams();
|
// let params: HttpParams = new HttpParams();
|
||||||
// params =params.append("file",file);
|
// params =params.append("file",file);
|
||||||
return this.apiRequest.get(`api/dynamic/templatetojson/${id}`);
|
return this.apiRequest.get(`api/dynamic/templatetojson/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
convertFileToJson(id: number): Observable<any> {
|
convertFileToJson(id: number): Observable<any> {
|
||||||
return this.apiRequest.post(`api/dynamic/templatetojson/${id}`, {});
|
return this.apiRequest.post(`api/dynamic/templatetojson/${id}`, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
downloadExcel(tableName: string, data:any): Observable<any> {
|
downloadExcel(tableName: string, data: any): Observable<any> {
|
||||||
// return this.apiRequest.post(`api/dynamic/DownloadExcel/${tableName}`, data);
|
// return this.apiRequest.post(`api/dynamic/DownloadExcel/${tableName}`, data);
|
||||||
const url = `${this.URL}/api/dynamic/DownloadExcel/${tableName}`;
|
const url = `${this.URL}/api/dynamic/DownloadExcel/${tableName}`;
|
||||||
return this._http.post(url, data, { responseType: 'blob' }).pipe(
|
return this._http.post(url, data, { responseType: 'blob' }).pipe(
|
||||||
@ -104,7 +104,7 @@ downloadExcel(tableName: string, data:any): Observable<any> {
|
|||||||
return response;
|
return response;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -226,10 +226,150 @@
|
|||||||
"MENU_ACTION_LINK": "Menu Action Link",
|
"MENU_ACTION_LINK": "Menu Action Link",
|
||||||
"STATUS": "Status",
|
"STATUS": "Status",
|
||||||
"SUB_MENU": "Sub Menu",
|
"SUB_MENU": "Sub Menu",
|
||||||
"Active": "Active",
|
"video_Field2": "video_Field2",
|
||||||
|
"video_Field": "video_Field",
|
||||||
|
"numadd": "numadd",
|
||||||
|
"Support": "Support",
|
||||||
|
"about": "about",
|
||||||
|
"Button_Field2": "Button_Field2",
|
||||||
|
"autotest": "autotest",
|
||||||
|
"Childform": "Childform",
|
||||||
|
"Test2": "Test2",
|
||||||
|
"Chtes2": "Chtes2",
|
||||||
|
"documentsequenc": "documentsequenc",
|
||||||
|
"state_name": "state_name",
|
||||||
|
"Currency": "Currency",
|
||||||
|
"token_name": "token_name",
|
||||||
|
"state": "state",
|
||||||
|
"Adv5": "Adv5",
|
||||||
|
"Adv4": "Adv4",
|
||||||
|
"Adv3": "Adv3",
|
||||||
|
"addition": "addition",
|
||||||
|
"automulti": "automulti",
|
||||||
|
"calculated_Field": "calculated_Field",
|
||||||
|
"counrymulti": "counrymulti",
|
||||||
|
"Paragraph_Field2": "Paragraph_Field2",
|
||||||
|
"Number_Field": "Number_Field",
|
||||||
|
"Basicp1": "Basicp1",
|
||||||
|
"Sum": "Sum",
|
||||||
|
"ButtonUpdate": "ButtonUpdate",
|
||||||
|
"datagrid_Field": "datagrid_Field",
|
||||||
|
"Email_Field": "Email_Field",
|
||||||
|
"audio_Field2": "audio_Field2",
|
||||||
|
"QRCode_Field2": "QRCode_Field2",
|
||||||
|
"dylist": "dylist",
|
||||||
|
"Basicp3": "Basicp3",
|
||||||
|
"Basicp2": "Basicp2",
|
||||||
|
"stmlit": "stmlit",
|
||||||
|
"1ega": "1ega",
|
||||||
|
"Country": "Country",
|
||||||
|
"BarCode_Field2": "BarCode_Field2",
|
||||||
|
"Imageupload_Field": "Imageupload_Field",
|
||||||
|
"dy2": "dy2",
|
||||||
|
"name2": "name2",
|
||||||
|
"idfemale": "idfemale",
|
||||||
|
"dy1": "dy1",
|
||||||
|
"Url_Field2": "Url_Field2",
|
||||||
|
"t1": "t1",
|
||||||
|
"age2": "age2",
|
||||||
|
"t2": "t2",
|
||||||
|
"age1": "age1",
|
||||||
|
"Sum2": "Sum2",
|
||||||
|
"t4": "t4",
|
||||||
|
"Decimal_Field2": "Decimal_Field2",
|
||||||
"Description": "Description",
|
"Description": "Description",
|
||||||
"Fileupload_Field": "Fileupload_Field",
|
"gender": "gender",
|
||||||
"Test22": "Test22",
|
"select_Field": "select_Field",
|
||||||
|
"QRCode_Field": "QRCode_Field",
|
||||||
|
"Datetime_Field": "Datetime_Field",
|
||||||
|
"sum": "sum",
|
||||||
|
"test1": "test1",
|
||||||
"Test11": "Test11",
|
"Test11": "Test11",
|
||||||
"Name": "Name"
|
"Checkout_Field": "Checkout_Field",
|
||||||
|
"Ad6": "Ad6",
|
||||||
|
"picupload": "picupload",
|
||||||
|
"Textarea_Field": "Textarea_Field",
|
||||||
|
"Textarea": "Textarea",
|
||||||
|
"Ad8": "Ad8",
|
||||||
|
"Ad7": "Ad7",
|
||||||
|
"Ad9": "Ad9",
|
||||||
|
"num1": "num1",
|
||||||
|
"multiplication": "multiplication",
|
||||||
|
"Date_Field": "Date_Field",
|
||||||
|
"num3": "num3",
|
||||||
|
"num2": "num2",
|
||||||
|
"Token_registery": "Token_registery",
|
||||||
|
"dymulti": "dymulti",
|
||||||
|
"Toggle_Switch": "Toggle_Switch",
|
||||||
|
"last_name": "last_name",
|
||||||
|
"atoc": "atoc",
|
||||||
|
"Percentage_Field2": "Percentage_Field2",
|
||||||
|
"Test22": "Test22",
|
||||||
|
"Date_Field2": "Date_Field2",
|
||||||
|
"default_Prce": "default_Prce",
|
||||||
|
"token": "token",
|
||||||
|
"test2": "test2",
|
||||||
|
"test3": "test3",
|
||||||
|
"dymlti1": "dymlti1",
|
||||||
|
"Fileupload_Field2": "Fileupload_Field2",
|
||||||
|
"audio_Field": "audio_Field",
|
||||||
|
"mobile_number": "mobile_number",
|
||||||
|
"Decimal_Field": "Decimal_Field",
|
||||||
|
"country": "country",
|
||||||
|
"ismale": "ismale",
|
||||||
|
"Currency2": "Currency2",
|
||||||
|
"Name": "Name",
|
||||||
|
"atc2": "atc2",
|
||||||
|
"data_grid_Field": "data_grid_Field",
|
||||||
|
"BarCode_Field": "BarCode_Field",
|
||||||
|
"Imageupload_Field2": "Imageupload_Field2",
|
||||||
|
"recaptcha2": "recaptcha2",
|
||||||
|
"Buttonupdate2": "Buttonupdate2",
|
||||||
|
"test": "test",
|
||||||
|
"atdy1": "atdy1",
|
||||||
|
"Phone_Number2": "Phone_Number2",
|
||||||
|
"atdy2": "atdy2",
|
||||||
|
"Sttest": "Sttest",
|
||||||
|
"Percentage_Field": "Percentage_Field",
|
||||||
|
"Textarea2": "Textarea2",
|
||||||
|
"Url_Field": "Url_Field",
|
||||||
|
"Active": "Active",
|
||||||
|
"dymlt2": "dymlt2",
|
||||||
|
"Paragraph_Field": "Paragraph_Field",
|
||||||
|
"State": "State",
|
||||||
|
"district": "district",
|
||||||
|
"name": "name",
|
||||||
|
"UserId_Field": "UserId_Field",
|
||||||
|
"Email_Field2": "Email_Field2",
|
||||||
|
"Static": "Static",
|
||||||
|
"District": "District",
|
||||||
|
"about_yourself": "about_yourself",
|
||||||
|
"datagrid_Field2": "datagrid_Field2",
|
||||||
|
"Toggle_Switch2": "Toggle_Switch2",
|
||||||
|
"Dv2": "Dv2",
|
||||||
|
"Dynamic": "Dynamic",
|
||||||
|
"description": "description",
|
||||||
|
"number1": "number1",
|
||||||
|
"Phone_Number": "Phone_Number",
|
||||||
|
"Fileupload_Field": "Fileupload_Field",
|
||||||
|
"number2": "number2",
|
||||||
|
"Value_List_Field": "Value_List_Field",
|
||||||
|
"Value_List_Field2": "Value_List_Field2",
|
||||||
|
"district_name": "district_name",
|
||||||
|
"OneToOne": "OneToOne",
|
||||||
|
"recaptcha": "recaptcha",
|
||||||
|
"stmmlt2": "stmmlt2",
|
||||||
|
"country_name": "country_name",
|
||||||
|
"Dependent_Dropdown_Field": "Dependent_Dropdown_Field",
|
||||||
|
"Adv1": "Adv1",
|
||||||
|
"OneToManyExtension": "OneToManyExtension",
|
||||||
|
"Datetime_Field2": "Datetime_Field2",
|
||||||
|
"country_list": "country_list",
|
||||||
|
"Textarea_Field2": "Textarea_Field2",
|
||||||
|
"Defatest": "Defatest",
|
||||||
|
"Approved_Field": "Approved_Field",
|
||||||
|
"select_Field2": "select_Field2",
|
||||||
|
"Password_Field": "Password_Field",
|
||||||
|
"age": "age",
|
||||||
|
"Button_Field": "Button_Field"
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user