1 <app-sql-validate-changes-dialog-component [(visible)]="showDialog1">
2 <span *ngIf="showVerifySpinner" class="ecomp-spinner"></span>
3 <div *ngIf="!showVerifySpinner">
5 <div class="card-body" style="width: 800px; height: 615px; ">
6 <div style="height:600px; overflow: scroll;">
7 <div class="modalTitle">{{Validatestatus}}</div>
8 <button (click)="closeValidateModal()" *ngIf="Validateclosable" aria-label="Close"
9 class="dialog__close-btn">X
12 <app-sql-validate-success-dialog-component
13 [tableObj]="validateResponseString"></app-sql-validate-success-dialog-component>
14 <!-- <app-sql-validate-error-dialog-component *ngIf="!ValidatePostResponse.query" [tableObj] = "GetValidateResponseString()"></app-sql-validate-error-dialog-component> -->
17 <div class="card-footer" style="width: 800px;">
18 <button (click)="closeValidateModal()" class="btn btn-alt btn-small" style="font-size: 17px;">Close
23 </app-sql-validate-changes-dialog-component>
25 <app-form-fields-add-edit [(visible)]="showDialog">
27 <div class="card-header">
28 <div class="modalTitle">Report Form Field - Edit</div>
29 <button (click)="close()" *ngIf="closable" aria-label="Close" class="dialog__close-btn">X</button>
34 <div class="card-body" style="width: 100px; height: 760px; ">
35 <div style="height:737px; overflow: scroll; overflow-x: hidden;">
40 <label class="defaultLabelFontSize">Field Name:</label><label><input [(ngModel)]="fieldName"
41 class="defaultFontSize" id="fieldName"
43 value="{{fieldName}}"/></label>
49 <div class="field-group">
50 <label>Field Type:</label>
51 <select [(ngModel)]="fieldType" class="browser-default custom-select defaultFontSize" id="fieldType"
52 required="required" value="{{fieldType}}">
53 <option class="defaultFontSize" selected>Select Field Type</option>
54 <option class="defaultFontSize" value="TEXT">Text Box</option>
55 <option class="defaultFontSize" value="TEXTAREA">TEXTAREA</option>
56 <option class="defaultFontSize" value="LIST_BOX">List Box</option>
57 <option class="defaultFontSize" value="LIST_MULTI_SELECT">Multi-select List Box</option>
58 <option class="defaultFontSize" value="HIDDEN">Hidden</option>
64 <div class="field-group">
65 <label>Visible:</label>
66 <select [(ngModel)]="visible" class="browser-default custom-select defaultFontSize" id="visible"
67 required="required" value="{{visible}}">
68 <option class="defaultFontSize" selected value="YES">YES</option>
69 <option class="defaultFontSize" value="NO">NO</option>
76 <label class="defaultLabelFontSize">Is used in Group By Clause?:</label>
77 <label class="defaultLabelFontSize" class="checkbox" for="groupFormField">
78 <input [(ngModel)]="groupFormField" class="ng-valid ng-dirty ng-valid-parse ng-touched" id="groupFormField"
79 type="checkbox" value="{{groupFormField}}"><i class="skin"></i><span></span>
86 <label class="defaultLabelFontSize">SQL as Default Value:</label>
87 <label class="defaultLabelFontSize" class="checkbox" for="isDefaultSql">
88 <input [(ngModel)]="isDefaultSql" class="ng-valid ng-dirty ng-valid-parse ng-touched" id="isDefaultSql"
89 type="checkbox" value="{{isDefaultSql}}"><i class="skin"></i><span></span>
93 <div *ngIf="isDefaultSql">
96 <div class="field-group">
97 <label>Default SQL:</label>
98 <textarea [(ngModel)]="fieldDefaultSQL" class="defaultFontSize" id="fieldDefaultSQL"
99 type="textarea" value="{{fieldDefaultSQL}}"></textarea>
101 <button (click)="verify('Default')" class="btn btn-alt btn-small" style="font-size: 17px;">
108 <div *ngIf="(fieldDefaultSQL == null || fieldDefaultSQL == '') && isDefaultSql == false">
109 <label class="defaultLabelFontSize">Default Value:</label>
110 <label><input [(ngModel)]="defaultValue" class="defaultFontSize" id="defaultValue" type="text"
111 value="{{defaultValue}}"/></label>
118 <div class="field-group">
119 <label>Verify Field Value As:</label>
120 <select [(ngModel)]="validationType" class="browser-default custom-select defaultFontSize"
121 id="validationType" required="required" value="{{validationType}}">
122 <option class="defaultFontSize" selected value="">Select Visibility</option>
123 <option class="defaultFontSize" value="">Do Not Perform Validation</option>
124 <option class="defaultFontSize" value="INTEGER">Integer</option>
125 <option class="defaultFontSize" value="POSITIVE_INTEGER">Positive Integer</option>
126 <option class="defaultFontSize" value="DATE">Date</option>
127 <option class="defaultFontSize" value="TIMESTAMP_SEC">Timestamp(Hour, Min, Sec)</option>
128 <option class="defaultFontSize" value="TIMESTAMP_MIN">Timestamp(Hour, Min)</option>
129 <option class="defaultFontSize" value="TIMESTAMP_HOUR">Timestamp(Hour)</option>
130 <option class="defaultFontSize" value="NON_NEGATIVE_INTEGER">Positive Integer Can not Be Zero
132 <option class="defaultFontSize" value="FLOAT">Any Number</option>
133 <option class="defaultFontSize" value="NON_NEGATIVE_FLOAT">Positive Number</option>
134 <option class="defaultFontSize" value="POSITIVE_FLOAT">Positive Number Can Not Be Zero</option>
139 <div class="field-group">
140 <label>SQL Generating Custom List of Values:</label>
141 <textarea [(ngModel)]="fieldSQL" class="defaultFontSize" id="fieldSQL" type="textarea"
142 value="{{fieldSQL}}"></textarea>
144 <button (click)="verify('Regular')" class="btn btn-alt btn-small"
145 style="font-size: 17px;">Verify
152 <label class="defaultLabelFontSize">Provide Predefined List of Values: Do not use Predefined list -
153 Generate list from database:</label><label><input [(ngModel)]="predefinedValue" class="defaultFontSize"
154 id="predefinedValue" type="text"
155 value="{{predefinedValue}}"/></label>
156 <button (click)="addToList(predefinedValue)" class="btn btn-alt btn-small" style="font-size: 17px;">
164 <div *ngFor="let value of predefinedValueList">
165 <div style="margin-left: 5px;">
166 <label>{{value.name}}</label>
167 <mat-icon (click)="deleteFromList(value.id)" aria-hidden="false" aria-label="delete">
176 <div class="card-footer" style="width: 1000px; height: 65px; padding-left: 770px;">
177 <button (click)="save();" *ngIf="!showConfirmButton" class="btn btn-alt btn-small" style="font-size: 17px;">
180 <button (click)="complete();" *ngIf="showConfirmButton" class="btn btn-alt btn-small"
181 style="font-size: 17px;">Confirm
182 </button>
183 <button (click)="close()" class="btn btn-alt btn-small" style="font-size: 17px;">Cancel</button>
188 </app-form-fields-add-edit>
191 <div class="stdForm">
193 <div class="tab-content">
194 <h3>Step 4 - Report Form Fields</h3>
197 <span *ngIf="showSpinner" class="ecomp-spinner"></span>
201 <h4>Form Field Groups</h4>
203 <div *ngFor="let group of Groups">
204 <button class="formFieldGroupButton" mat-button>{{group.name}}</button>
205 <mat-icon (click)="deleteGroup(group.name)" aria-hidden="false" aria-label="delete" style="margin-left: 21%;">
208 <mat-icon (click)="editGroup(group)" aria-hidden="false" aria-label="edit" class="edit-group">edit</mat-icon>
209 <table class="app-data-table" style="margin-top: 10px;">
211 <th class="defaultFontSize">Order Number</th>
212 <th class="defaultFontSize">Field Name</th>
213 <th class="defaultFontSize">Delete From Group</th>
215 <tr *ngFor="let item of group.formFieldList; let i = index;">
223 <mat-icon (click)="deleteFromGroup(item.id)" aria-hidden="false" aria-label="delete">delete
232 <div class="field-group">
233 <table style="width: auto; margin-left: 70%;">
236 <button (click)="createGroup()" class="btn btn-alt btn-small" style="font-size: 17px;">Create
241 <button (click)="saveFormFieldGroups()" class="btn btn-alt btn-small" style="font-size: 17px;">Save
249 <h4>Form Field List</h4>
250 <div *ngIf="!showSpinner">
252 <table class="app-data-table" style="margin-top: 10px;">
254 <th class="defaultFontSize">Order Number</th>
255 <th class="defaultFontSize">Field Name</th>
256 <th class="defaultFontSize">Edit</th>
257 <th class="defaultFontSize">Delete</th>
259 <tr *ngFor="let item of formFieldsListObj; let i = index;">
267 <mat-icon (click)="edit(item.id); setDisplayMode('Edit');" aria-hidden="false" aria-label="edit">
272 <mat-icon (click)="delete(item.id)" aria-hidden="false" aria-label="delete">delete</mat-icon>
279 <div class="field-group">
280 <button (click)="add(); setDisplayMode('Add');" class="btn btn-alt btn-small"
281 style="font-size: 17px; margin-left: 80%;">Add