summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/definition.component.html
blob: 289a1e1ca10f4de945bb6fb08bff2010e5c5e5e5 (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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<app-definition-save-dialog-component [(visible)]="showDialog">

    <div class="card">
        <div class="card-body">
            <div class="modalTitle">{{status}}</div>
            <button *ngIf="closable" (click)="close()" aria-label="Close" class="dialog__close-btn">X</button>
            <br/>
            <h4>{{message}}</h4>
        </div>
        <div class="card-footer">
            <button (click)="showDialog = !showDialog" class="btn btn-alt btn-small">Close</button>
        </div>
    </div>
    </app-definition-save-dialog-component> 

<div class="stdForm">
        <br/>
<div class="tab-content">
    <h1>Step 1 - Report Definition</h1> 
</div>
<br/>
<br/>
<div *ngIf="showSpinner">
        <div class="lds-ring"><div></div><div></div><div></div><div></div></div>
</div>
<div *ngIf="!showSpinner">
<div class="forms-group">
<div class="tab-pane">
<div class="field-group">
    <label>Report ID</label> <br/>
    <input class="defaultFontSize" id="textinputID-2a" type="text"  ng-disabled="true" disabled="disabled" [(ngModel)]="reportId" value="{{finalGetObj.reportId}}" />
</div>
<br/>
<div class="field-group">
    <label>Report Name</label> <br/>
    <input  class="defaultFontSize" id="reportName" type="text"  [(ngModel)]="reportName" value="{{finalGetObj.reportName}}"/>
</div>
<br/>
<div class="field-group">
    <label>Report Description</label> <br/>
    <textarea  class="defaultFontSize" id="reportDescription" type="textarea" [(ngModel)]="reportDescription"  value="{{finalGetObj.reportDescr}}"></textarea>
</div>
<br/>
<div class="field-group">
    <label for="reportType">*Report Type</label> <br/>
            <select class="browser-default custom-select defaultFontSize"  required="required" placeholder="Select Report Type" [(ngModel)]="reportType"  value="{{finalGetObj.reportType}}">
                <option  class="defaultFontSize" selected>Select Report Type  </option>
                <option  class="defaultFontSize" value="Linear" >Linear</option>
              </select>
  
    
</div>
<br/>
<div class="field-group">
    <label for="dataSrc">*Data Source</label> <br/>
    <select class="browser-default custom-select defaultFontSize" id="dataSrc" required="required" value="Select Report Type" [(ngModel)]="dataSrc" value="{{finalGetObj.dbInfo}}" >
        <option  class="defaultFontSize" selected>Select Data Source  </option>
        <option  class="defaultFontSize" value="local">local</option>
      </select>
</div>
<br/>
<div class="field-group">
    <label>Form Help Text</label> <br/>
    <textarea  class="defaultFontSize" id="helpText" type="textarea" [(ngModel)]="helpText" value="{{finalGetObj.formHelpText}}"></textarea>
</div>
<br/>
<div class="field-group">
        <label>Report Definition</label> <br/>
        <input  class="defaultFontSize" id="reportDefinition" type="text" ng-disabled="true" disabled="disabled" value="SQL-Based" placeholder="SQL-Based" [(ngModel)]="reportDefinition" value="{{finalGetObj.repDefType}}"/>
</div>
<br/>
<div class="field-group">
        <label>Page Size</label> <br/>
        <select  class="browser-default custom-select defaultFontSize" id="pageSize" required="required" value="Select Report Type" [(ngModel)]="pageSize" value="{{finalGetObj.pageSize}}">
                <option  class="defaultFontSize" selected>Select Page Size  </option>
                <option  class="defaultFontSize" value="100">100</option>
                <option class="defaultFontSize"  value="200">200</option>
                <option  class="defaultFontSize" value="300">300</option>
                <option  class="defaultFontSize" value="400">400</option>
                <option  class="defaultFontSize" value="500">500</option>
              </select>
</div>
<br/>
<div class="field-group">
        <label>Display Area </label>
</div>
<mat-button-toggle-group name="fontStyle" aria-label="Font Style" vertical [(ngModel)]="displayArea" >
        <mat-button-toggle class="defaultFontSize" value="HOME">HOME</mat-button-toggle>
        <mat-button-toggle class="defaultFontSize" value="CUSTOMER">CUSTOMER</mat-button-toggle>
        <mat-button-toggle class="defaultFontSize" value="REPORTS">REPORTS</mat-button-toggle>
</mat-button-toggle-group>
<br/>
<br/>
<div class="field-group">
        <label for="hideFormFields1" class="checkbox">
                <input  id="hideFormFields1" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="hideFormFields1">
                <i class="skin"></i><span class="defaultFontSize">Hide Form fields after run?</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label>Max Rows in Excel/CSV Download</label> <br/>
        <select class="browser-default custom-select defaultFontSize" id="maxRows" required="required" [(ngModel)]="maxRows">
                <option  class="defaultFontSize" selected>Select Max Rows  </option>
                <option  class="defaultFontSize" value="100">100</option>
                <option  class="defaultFontSize" value="200">200</option>
                <option  class="defaultFontSize" value="300">300</option>
                <option  class="defaultFontSize" value="400">400</option>
                <option  class="defaultFontSize" value="500">500</option>
              </select>
</div>
<br/>
<div class="field-group">
        <label>Columns to be Frozen</label> <br/>
        <select class="browser-default custom-select defaultFontSize" id="colsFrozen" required="required" [(ngModel)]="colsFrozen">
                <option  class="defaultFontSize" selected>Select Columns To Be Frozen  </option>
                <option  class="defaultFontSize" value="100">100</option>
                <option  class="defaultFontSize" value="200">200</option>
                <option  class="defaultFontSize" value="300">300</option>
                <option  class="defaultFontSize" value="400">400</option>
                <option  class="defaultFontSize" value="500">500</option>
              </select>
</div>
<br/>
<div class="field-group">
        <label>Data Grid Align</label> <br/>
        <select class="browser-default custom-select defaultFontSize" id="gridAlign" required="required" [(ngModel)]="gridAlign">
                <option  class="defaultFontSize" selected>Select Grid Align  </option>
                <option  class="defaultFontSize" value="100">100</option>
                <option  class="defaultFontSize" value="200">200</option>
                <option  class="defaultFontSize" value="300">300</option>
                <option  class="defaultFontSize" value="400">400</option>
                <option  class="defaultFontSize" value="500">500</option>
              </select>
</div>
<br/>
<div class="field-group">
        <label>Empty message</label> <br/>
        <input  class="defaultFontSize" id="emptyMessage" type="text" [(ngModel)]="emptyMessage"/>
</div>
<br/>

<div class="field-group">
        <label>Height of the Data Container(%)</label> <br/>
        <select class="browser-default custom-select defaultFontSize" id="heightContainer" required="required" [(ngModel)]="heightContainer">
                <option  class="defaultFontSize" selected>Select height of Data Container(%)  </option>
                <option  class="defaultFontSize" value="100">100</option>
                <option  class="defaultFontSize" value="200">200</option>
                <option  class="defaultFontSize" value="300">300</option>
                <option  class="defaultFontSize" value="400">400</option>
                <option  class="defaultFontSize" value="500">500</option>
              </select>
</div>
<br/>
<div class="field-group">
        <label>Width of the Data Container(%)</label> <br/>
        <select class="browser-default custom-select defaultFontSize" id="widthContainer" required="required" [(ngModel)]="widthContainer">
                <option  selected>Select Width of the Data Container(%)  </option>
                <option  class="defaultFontSize" value="100">100</option>
                <option  class="defaultFontSize" value="200">200</option>
                <option  class="defaultFontSize" value="300">300</option>
                <option  class="defaultFontSize" value="400">400</option>
                <option  class="defaultFontSize" value="500">500</option>
              </select>
</div>
<br/>
<div class="field-group">
        <label for="allowScheduler" class="checkbox">
                <input   id="allowScheduler" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="allowScheduler">
                <i class="skin"></i><span>Allow Scheduler</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="sizedByContent" class="checkbox">
                <input   id="sizedByContent" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="sizedByContent">
                <i class="skin"></i><span>Sized By Content</span>
            </label>
</div>
<br/>
<div class="field-group">
 <label>Options:</label>
</div>

<div class="field-group">
        <label for="HideFormFields" class="checkbox">
                <input   id="HideFormFields" type="checkbox" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="HideFormFields">
                <i class="skin"></i><span>Hide Form Fields</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="HideChart" class="checkbox">
                <input   id="HideChart" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="HideChart">
                <i class="skin"></i><span>Hide Chart</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="HideReportData" class="checkbox">
                <input   id="HideReportData" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="HideReportData">
                <i class="skin"></i><span>Hide Report Data</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="HideExcel" class="checkbox">
                <input  id="HideExcel" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="HideExcel">
                <i class="skin"></i><span>Hide Excel</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="HidePDF" class="checkbox">
                <input   id="HidePDF" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="HidePDF">
                <i class="skin"></i><span>Hide PDF</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="disableColumnSort" class="checkbox">
                <input    id="disableColumnSort" type="checkbox" ng-model="definitionData.hideFormFieldsAfterRun" class="ng-valid ng-dirty ng-valid-parse ng-touched" [(ngModel)]="disableColumnSort">
                <i class="skin"></i><span>Disable column sort at runtime?</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label>Run-time Form Number Columns</label> <br/>
        <select class="browser-default custom-select defaultFontSize" id="runTimeFormNum" required="required" [(ngModel)]="runTimeFormNum">
                <option  class="defaultFontSize" selected>Select Run-time Form Number Columns  </option>
                <option class="defaultFontSize" value="100">100</option>
                <option class="defaultFontSize" value="200">200</option>
                <option class="defaultFontSize" value="300">300</option>
                <option class="defaultFontSize" value="400">400</option>
                <option class="defaultFontSize" value="500">500</option>
              </select>
</div>
<br/>
<div class="field-group">
        <label>Report Title (if blank, the Report Name will be displayed)</label> <br/>
        <textarea  class="defaultFontSize" id="reportTitle" type="textarea" [(ngModel)]="reportTitle"></textarea>
</div>
<br/>
<div class="field-group">
        <label>Report Sub-Title</label> <br/>
        <textarea  class="defaultFontSize" id="reportSubTitle" type="textarea" [(ngModel)]="reportSubTitle"></textarea>
</div>
<br/>
<div class="field-group">
        <label for="oneTime" class="checkbox">
                <input  id="oneTime" type="checkbox"  [(ngModel)]="oneTime" value="{{finalGetObj.oneTimeRec}}">
                <i class="skin"></i><span>One Time</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="hourly" class="checkbox">
                <input  id="hourly" type="checkbox"  [(ngModel)]="hourly" value="{{finalGetObj.hourlyRec}}">
                <i class="skin"></i><span>Hourly</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="daily" class="checkbox">
                <input  id="daily" type="checkbox"  [(ngModel)]="daily" value="{{finalGetObj.dailyRec}}">
                <i class="skin"></i><span>Daily</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="MonFri" class="checkbox">
                <input  class="defaultFontSize" id="MonFri" type="checkbox"  [(ngModel)]="MonFri" value="{{finalGetObj.dailyMFRec}}">
                <i class="skin"></i><span>Daily Monday - Friday</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="Weekly" class="checkbox">
                <input  class="defaultFontSize" id="Weekly" type="checkbox" [(ngModel)]="Weekly" value="{{finalGetObj.weeklyRec}}">
                <i class="skin"></i><span>Weekly</span>
            </label>
</div>
<br/>
<div class="field-group">
        <label for="Monthly" class="checkbox">
                <input  class="defaultFontSize" id="Monthly" type="checkbox" [(ngModel)]="Monthly" value="{{Monthly}}">
                <i class="skin"></i><span>Monthly</span>
            </label>
</div>
<br/>
</div>
<br/>
<div class="field-group">
        <button style="font-size: 17px;" class="btn btn-alt btn-small" (click)="saveDefinitionInfo()" >Save</button>
</div>
<br/>
</div>
</div>
</div>