summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/column-list/column-list.component.html
blob: 0d4f3c809c3e3136944aceff271ed0e4fe860c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<app-save-sql-changes-dialog-component [(visible)]="showSaveColDialog">

    <div class="card">
        <div class="card-body" style="height: 200px;">
            <div class="modalTitle">{{EditColstatus}}</div>
            <button *ngIf="SQLclosable" (click)="close()" aria-label="Close" class="dialog__close-btn">X</button>
            <br/>
            <label>{{EditColmessage}}</label>
        </div>
        <div class="card-footer"style="width: 500px;">
            <button (click)="close()" class="btn btn-alt btn-small">Close</button>
        </div>
    </div>
</app-save-sql-changes-dialog-component>




<app-columns-edit-component [(visible)]="showDialog">
    <div class="card">
      <div class="card-header">
          <div class="modalTitle">{{message}}</div>
          <button *ngIf="closable" (click)="close()" aria-label="Close" class="dialog__close-btn">X</button>
          <br/>
      </div>
        <div class="card-body" style="width: 1000px; height: 532px; ">
            <div style="height:500px; overflow: scroll; overflow-x: hidden;">
                <div class="tab-pane">
                    <app-edit-drill-down-link *ngIf="showEditDrillDownPage" [reportId]="reportId" [drillDownObj]="drillDownObj" (completed)="onCompleted($event)" >

                      </app-edit-drill-down-link>
                    <app-column-advanced-display *ngIf="showAdvancedDisplayPage"
                                                 [semaphoreArr]="semaphoreList"
                                                 [inputSemaphoreName]="semaphoreName"
                                                 [addNew]="addDisplay"
                                                  (completed)="finishAdvancedDisplay($event)" [columnName]="finalEditRowGetObj.colId">

                    </app-column-advanced-display>
                      <div *ngIf="!showEditDrillDownPage && !showAdvancedDisplayPage">
                    <div class="field-group">
                        <label class="defaultFontSize1">Column ID:</label><label class="boxMargin defaultFontSize">{{finalEditRowGetObj.colId}}</label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Column Name:</label><label class="boxMargin defaultFontSize">{{finalEditRowGetObj.colName}}</label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Depends on formfield:</label><label><input  class=" defaultFontSize" id="depeondsOnForField" type="text"  [(ngModel)]="dependsOnFormFields" value="{{finalEditRowGetObj.depeondsOnForField}}"/></label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1" for="dataType">Data Type:</label>
                        <select  class="browser-default custom-select"  required="required" placeholder="Select Report Type" [(ngModel)]="dataType"  value="{{finalEditRowGetObj.dataType}}">
                            <option class="defaultFontSize1" selected>Select Data Type  </option>
                            <option class="defaultFontSize1" value="Number" >Number</option>
                            <option class="defaultFontSize1" value="Date" >Date</option>
                            <option class="defaultFontSize1" value="Character" >Character</option>
                            <option class="defaultFontSize1" value="Hyperlink" >Hyperlink</option>
                          </select>
                     </div>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Group By Pos:</label><label><input  class="defaultFontSize" id="groupByPos" type="text"  [(ngModel)]="groupByPos" value="{{finalEditRowGetObj.groupByPos}}"/></label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Custom Text for Sub-Total:</label><label><input class="defaultFontSize" id="subTotalCustomText" type="text"  [(ngModel)]="customTextForSubTotal" value="{{finalEditRowGetObj.subTotalCustomText}}"/></label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Hide Repeated Values:</label>
                          <label class="defaultFontSize1" for="hideFormFieldsAfterRun" class="checkbox">
                              <input id="hideFormFieldsAfterRun" type="checkbox"  class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="hideRepeatedValues" value="{{finalEditRowGetObj.hideRepeatedKey}}"><i class="skin"></i><span></span>
                            </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Multi Group Column Level:</label>
                        <label><select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Report Type" [(ngModel)]="multiGroupColumnLevel"  value="{{finalEditRowGetObj.multiGroupColumnLevel}}">
                            <option class="defaultFontSize1" selected>Select Level  </option>
                            <option  class="defaultFontSize1" value="1" >1</option>
                            <option  class="defaultFontSize1" value="2" >2</option>
                            <option class="defaultFontSize1"  value="3" >3</option>
                            <option class="defaultFontSize1"  value="4" >4</option>
                          </select>
                        </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Multi group Column Range : Colspan:</label><label><input class="defaultFontSize" id="colspan" type="text"  [(ngModel)]="colspan" value="{{finalEditRowGetObj.colspan}}"/></label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                      <label class="displayName">Display Name:</label><label><input class="defaultFontSize" id="displayName" type="text"  [(ngModel)]="displayName" value="{{finalEditRowGetObj.displayName}}"/></label>
                   </div>
                   <br/>
                   <br/>
                     <div>
                        <label class="defaultFontSize1">Display Width (In Pxls):</label><label><input class="defaultFontSize" id="displayWidthInPixel" type="text"  [(ngModel)]="displayWidthInPixel" value="{{finalEditRowGetObj.displayWidthInPixel}}"/></label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">No Wrap ?:</label>
                        <label class="defaultFontSize" for="noWrap" class="checkbox">
                            <input id="noWrap" type="checkbox"  class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="noWrap" value="{{finalEditRowGetObj.noWrap}}"><i class="skin"></i><span></span>
                          </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Indent Parameter to display value:</label>
                        <label><select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Indent" [(ngModel)]="indentation"  value="{{finalEditRowGetObj.indentation}}">
                            <option class="defaultFontSize" selected>Select Indent  </option>
                            <option  class="defaultFontSize" value="1" >1</option>
                            <option class="defaultFontSize"  value="2" >2</option>
                            <option class="defaultFontSize"  value="3" >3</option>
                          </select>
                        </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Display Alignment:</label>
                        <label><select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Report Type" [(ngModel)]="displayAlignment"  value="{{finalEditRowGetObj.displayAlignment}}">
                            <option class="defaultFontSize" selected>Select Alignment  </option><option value="Left" >Left</option>
                            <option class="defaultFontSize"  value="Center" >Center</option>
                            <option class="defaultFontSize"  value="Right" >Right</option>
                          </select>
                        </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Display Header Alignment:</label>
                        <label><select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Report Type" [(ngModel)]="displayHeaderAlignment"  value="{{finalEditRowGetObj.displayHeaderAlignment}}">
                            <option selected>Select Header Alignment  </option>
                            <option value="Left" >Left</option>
                            <option value="Center" >Center</option>
                            <option value="Right" >Right</option>
                          </select>
                        </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Sortable:</label>
                        <label  class="defaultFontSize" for="sortable" class="checkbox">
                            <input id="sortable" type="checkbox"  class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="sortable" value="{{finalEditRowGetObj.sortable}}"><i class="skin"></i><span></span>
                          </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Visible:</label>
                        <label  class="defaultFontSize" for="visible" class="checkbox">
                            <input id="visible" type="checkbox" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="visible" value="true"><i class="skin"></i><span></span>
                          </label>
                     </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Drill-down Link: <mat-icon aria-hidden="false" aria-label="edit"  (click)="drillDownLinkPage()">edit</mat-icon> </label>
                        <label><select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Report Type" [(ngModel)]="drilldownURL"  value="{{finalEditRowGetObj.drilldownURL}}">
                            <option class="defaultFontSize" value="" selected>Select Drill Down Link  </option>
                            <option  class="defaultFontSize" *ngFor="let URLObj of URLListObjArray" value="{{URLObj.id}}" >{{URLObj.id}}|{{URLObj.name}}</option>
                          </select>
                        </label>
                     </div>
                          <div>
                              <label class="defaultFontSize1">Advanced Display
                                  <mat-icon *ngIf="semaphoreName !== 'No Display'" aria-hidden="false" aria-label="edit"  (click)="editDisplay()">edit</mat-icon>
                                  <mat-icon  aria-hidden="false" aria-label="add" (click)="addNewDisplay()">add</mat-icon>
                              </label>
                              <label><select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Report Type" [(ngModel)]="semaphoreName"  value="{{semaphoreName}}">
                                  <option class="defaultFontSize" selected>No Display </option>
                                  <option  class="defaultFontSize" *ngFor="let sem of semaphoreList.semaphore" value="{{sem.semaphoreName}}" >{{sem.semaphoreName}}</option>
                              </select>
                              </label>
                          </div>
                     <br/>
                     <br/>
                     <div>
                        <label class="defaultFontSize1">Total for the column:</label>
                        <label><select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Report Type" [(ngModel)]="displayTotal"  value="{{finalEditRowGetObj.displayTotal}}">
                            <option selected value="">Select Total  </option>
                            <option *ngFor="let TotalListObj of TotalColListObjArray" value="{{TotalListObj.id}}" >{{TotalListObj.name}}</option>
                          </select>
                        </label>
                     </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="card-footer" style="width: 1000px; padding-left: 770px;">
            <button *ngIf="!showConfirmButton && !showAdvancedDisplayPage" (click)="save();" class="btn btn-alt btn-small">Save</button>&nbsp;
            <button *ngIf="showConfirmButton && !showAdvancedDisplayPage" (click)="complete();" class="btn btn-alt btn-small">Confirm</button>&nbsp;&nbsp;
            <button (click)="close()" class="btn btn-alt btn-small">Cancel</button>
        </div>
    </div>
</app-columns-edit-component>

  <span class="ecomp-spinner" *ngIf="showSpinner"></span>

<div class="app-data-table">

  <table mat-table class="full-width-table app-data-table" matSort aria-label="Elements">
    <!-- Id Column -->
    <ng-container matColumnDef="id">
      <th mat-header-cell *matHeaderCellDef mat-sort-header class="defaultFontSize">ID</th>
      <td mat-cell *matCellDef="let row">{{row.id}}</td>
    </ng-container>

    <!-- No Column -->
    <ng-container matColumnDef="no">
      <th mat-header-cell *matHeaderCellDef mat-sort-header class="defaultFontSize">NO</th>
      <td mat-cell *matCellDef="let row">{{row.no}}</td>
    </ng-container>

    <!-- Name Column -->
    <ng-container matColumnDef="name">
        <th mat-header-cell *matHeaderCellDef mat-sort-header class="defaultFontSize">NAME</th>
        <td mat-cell *matCellDef="let row">{{row.name}}</td>
      </ng-container>

    <!-- Name Column -->
      <ng-container matColumnDef="edit">
          <th mat-header-cell *matHeaderCellDef mat-sort-header class="defaultFontSize">EDIT</th>
          <td mat-cell *matCellDef="let row"><mat-icon aria-hidden="false" aria-label="edit" (click)="editRecord(row.id)">edit</mat-icon></td>

        </ng-container>

    <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
    <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
  </table>

  <mat-paginator #paginator
      [length]="dataSource?.data.length"
      [pageIndex]="0"
      [pageSize]="25"
      [pageSizeOptions]="[25, 50, 100, 250]">
  </mat-paginator>
</div>