sf-i-events 1.0.880 → 1.0.881
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/index.html +36 -17
- package/package.json +2 -2
- package/sf-i-events.d.ts +5 -0
- package/sf-i-events.js +936 -48
- package/src/sf-i-events.ts +1158 -159
package/sf-i-events.js
CHANGED
|
@@ -2519,7 +2519,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2519
2519
|
return html;
|
|
2520
2520
|
};
|
|
2521
2521
|
this.renderCalendarRowDivItemDivStart = (mmdd, event, itemNumber, partStatus, bgStatus) => {
|
|
2522
|
-
var _a, _b, _c, _f;
|
|
2522
|
+
var _a, _b, _c, _f, _g;
|
|
2523
2523
|
var html = '';
|
|
2524
2524
|
var remarks = "";
|
|
2525
2525
|
var occurrenceDate = "";
|
|
@@ -2556,7 +2556,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2556
2556
|
const moduleType = (_f = event.module) !== null && _f !== void 0 ? _f : 'compliance';
|
|
2557
2557
|
const partStatusSanitized = partStatus.replace(/-/g, '_');
|
|
2558
2558
|
const entityIdSanitized = event.entityid.replace(/-/g, '_');
|
|
2559
|
-
const locationIdSanitized = event.locationid.replace(/-/g, '_');
|
|
2559
|
+
const locationIdSanitized = ((_g = event.locationid) !== null && _g !== void 0 ? _g : "").replace(/-/g, '_');
|
|
2560
2560
|
const eventIdSanitized = event.id.replace(/-/g, '_');
|
|
2561
2561
|
const mmddSanitized = mmdd.replace(/\//g, '-');
|
|
2562
2562
|
const dueDateParts = event.duedate.split('/');
|
|
@@ -3491,7 +3491,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3491
3491
|
html += '<button class="invisible" part="button">Save</button>';
|
|
3492
3492
|
html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>';
|
|
3493
3493
|
html += '</div>';
|
|
3494
|
-
if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != 'contract' && event.module != 'license') {
|
|
3494
|
+
if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
3495
3495
|
html += '<div class="m-20">';
|
|
3496
3496
|
html += '<label part="input-label">Supporting Documents</label>';
|
|
3497
3497
|
html += '<slot name="uploader"></slot>';
|
|
@@ -3501,7 +3501,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3501
3501
|
html += '<div class="d-flex m-20 flex-col">';
|
|
3502
3502
|
html += '<label part="input-label">Approver Comments*</label>';
|
|
3503
3503
|
html += '<input id="input-approver-comments" type="text" part="input" value=""/><br />';
|
|
3504
|
-
if (event.module != 'contract' && event.module != 'license') {
|
|
3504
|
+
if (event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
3505
3505
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
3506
3506
|
html += '<input id="input-approver-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" disabled/><br />';
|
|
3507
3507
|
html += '<label part="input-label">Percentage</label>';
|
|
@@ -3550,7 +3550,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3550
3550
|
html += '<div class="d-flex m-20 flex-col">';
|
|
3551
3551
|
html += '<label part="input-label">Reporter Comments*</label>';
|
|
3552
3552
|
html += '<input id="input-reporter-comments" type="text" part="input" value=""/><br />';
|
|
3553
|
-
if (event.module != 'contract' && event.module != 'license') {
|
|
3553
|
+
if (event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
3554
3554
|
html += '<label part="input-label">Date of Completion*</label>';
|
|
3555
3555
|
html += '<input id="input-reporter-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" max="' + (new Date().toISOString().substring(0, 10)) + '"/><br />';
|
|
3556
3556
|
html += '<label part="input-label">Completion Percentage*</label>';
|
|
@@ -3601,7 +3601,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3601
3601
|
html += '<div class="d-flex m-20 flex-col">';
|
|
3602
3602
|
html += '<label part="input-label">Auditor Comments</label>';
|
|
3603
3603
|
html += '<input id="input-auditor-comments" type="text" part="input" value=""/><br />';
|
|
3604
|
-
if (event.module != 'contract' && event.module != 'license') {
|
|
3604
|
+
if (event.module != 'contract' && event.module != 'license' && event.module != 'rcmresource') {
|
|
3605
3605
|
html += '<label part="input-label">Date of Completion</label>';
|
|
3606
3606
|
html += '<input id="input-auditor-doc" part="input" type="date" value="' + (dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0, 10)) + '" max="' + (new Date().toISOString().substring(0, 10)) + '" readonly/><br />';
|
|
3607
3607
|
html += '<label part="input-label">Percentage</label>';
|
|
@@ -3664,6 +3664,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3664
3664
|
event.docsOptional = event['docs'] == null ? [] : event['docs'];
|
|
3665
3665
|
html = this.renderReporting(event, mmddyyyy);
|
|
3666
3666
|
console.log('reporting html', html);
|
|
3667
|
+
let ddmmyyyy = mmddyyyy.split('/')[1] + '/' + mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[2];
|
|
3668
|
+
let emailcontent = `<table border="0" cellspacing="0" style="color:#666666;border-radius:5px;border:solid 1px #efefef;width:100%; margin-top:20px"><tbody><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Compliance ID</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.id}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Country</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.countryname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Entity</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.entityname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Location</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.locationname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Statute</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.statute}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Subcategory</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.subcategory}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Due Date</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${ddmmyyyy}</td></tr></tbody></table>`;
|
|
3669
|
+
this._SfUploader[0].querySelector('#uploader').emailcontent = emailcontent;
|
|
3667
3670
|
let listReportingContainers = eventsContainer.querySelectorAll('.list-reporting-container');
|
|
3668
3671
|
for (let tempReportingContainer of listReportingContainers) {
|
|
3669
3672
|
tempReportingContainer.style.display = 'none';
|
|
@@ -4492,6 +4495,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4492
4495
|
else if (module === "license") {
|
|
4493
4496
|
this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4494
4497
|
}
|
|
4498
|
+
else if (module === "rcmresource") {
|
|
4499
|
+
this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4500
|
+
}
|
|
4495
4501
|
else {
|
|
4496
4502
|
let found = false;
|
|
4497
4503
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
@@ -4528,6 +4534,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4528
4534
|
else if (module === "license") {
|
|
4529
4535
|
this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4530
4536
|
}
|
|
4537
|
+
else if (module === "rcmresource") {
|
|
4538
|
+
this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
4539
|
+
}
|
|
4531
4540
|
else {
|
|
4532
4541
|
let found = false;
|
|
4533
4542
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
@@ -7954,6 +7963,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7954
7963
|
else if (module === "license") {
|
|
7955
7964
|
this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
7956
7965
|
}
|
|
7966
|
+
else if (module === "rcmresource") {
|
|
7967
|
+
this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
7968
|
+
}
|
|
7957
7969
|
else {
|
|
7958
7970
|
let found = false;
|
|
7959
7971
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
@@ -7989,6 +8001,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7989
8001
|
else if (module === "license") {
|
|
7990
8002
|
this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
7991
8003
|
}
|
|
8004
|
+
else if (module === "rcmresource") {
|
|
8005
|
+
this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8006
|
+
}
|
|
7992
8007
|
else {
|
|
7993
8008
|
let found = false;
|
|
7994
8009
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
@@ -8466,6 +8481,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8466
8481
|
else if (module === "license") {
|
|
8467
8482
|
this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8468
8483
|
}
|
|
8484
|
+
else if (module === "rcmresource") {
|
|
8485
|
+
this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8486
|
+
}
|
|
8469
8487
|
else {
|
|
8470
8488
|
let found = false;
|
|
8471
8489
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
@@ -8504,6 +8522,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8504
8522
|
else if (module === "license") {
|
|
8505
8523
|
this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8506
8524
|
}
|
|
8525
|
+
else if (module === "rcmresource") {
|
|
8526
|
+
this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
|
|
8527
|
+
}
|
|
8507
8528
|
else {
|
|
8508
8529
|
let found = false;
|
|
8509
8530
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
@@ -10097,28 +10118,815 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10097
10118
|
if (this.mode == "next") {
|
|
10098
10119
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
10099
10120
|
}
|
|
10100
|
-
else {
|
|
10101
|
-
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10102
|
-
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10103
|
-
// } else
|
|
10104
|
-
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
10105
|
-
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
10106
|
-
this.processFindSelection(this._SfFindContainer, searchString);
|
|
10121
|
+
else {
|
|
10122
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10123
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10124
|
+
// } else
|
|
10125
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
10126
|
+
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
10127
|
+
this.processFindSelection(this._SfFindContainer, searchString);
|
|
10128
|
+
}
|
|
10129
|
+
else {
|
|
10130
|
+
if (this.selectedItemIds.length > 0) {
|
|
10131
|
+
await this.fetchBulkReportingData();
|
|
10132
|
+
}
|
|
10133
|
+
this.renderAppropriateStream(this.sdate, this.edate, true, flagBulk);
|
|
10134
|
+
// if(currentColumnButton != null) {
|
|
10135
|
+
// currentColumnButton.click();
|
|
10136
|
+
// }
|
|
10137
|
+
}
|
|
10138
|
+
}
|
|
10139
|
+
}
|
|
10140
|
+
}
|
|
10141
|
+
}
|
|
10142
|
+
}
|
|
10143
|
+
});
|
|
10144
|
+
}
|
|
10145
|
+
}
|
|
10146
|
+
}
|
|
10147
|
+
if (this._SfUploader[0] != null) {
|
|
10148
|
+
this._SfDetailContainer.querySelector('.uploader-analysis-message').style.display = "none";
|
|
10149
|
+
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisInProgress', (_ev) => {
|
|
10150
|
+
console.log('uploader analysisInProgress', _ev);
|
|
10151
|
+
this._SfDetailContainer.querySelector('.uploader-analysis-message').style.display = "block";
|
|
10152
|
+
});
|
|
10153
|
+
this._SfUploader[0].querySelector('#uploader').addEventListener('analysisCompleted', (_ev) => {
|
|
10154
|
+
console.log('uploader analysisInProgress', _ev);
|
|
10155
|
+
this._SfDetailContainer.querySelector('.uploader-analysis-message').style.display = "none";
|
|
10156
|
+
});
|
|
10157
|
+
//console.log('documentType checking', documentType);
|
|
10158
|
+
if (documentType != null) {
|
|
10159
|
+
this._SfUploader[0].querySelector('#uploader').docType = documentType;
|
|
10160
|
+
}
|
|
10161
|
+
this._SfUploader[0].querySelector('#uploader').prepopulatedInputArr = JSON.stringify([]);
|
|
10162
|
+
console.log('uploader', this._SfUploader[0].querySelector('#uploader'));
|
|
10163
|
+
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
10164
|
+
if (docs.length > 0) {
|
|
10165
|
+
this._SfUploader[0].querySelector('#uploader').prepopulatedInputArr = JSON.stringify(docs);
|
|
10166
|
+
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
10167
|
+
}
|
|
10168
|
+
if (this.myRole == this.TAB_APPROVER || approved) {
|
|
10169
|
+
this._SfUploader[0].querySelector('#uploader').readOnly = true;
|
|
10170
|
+
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
10171
|
+
}
|
|
10172
|
+
else {
|
|
10173
|
+
this._SfUploader[0].querySelector('#uploader').readOnly = false;
|
|
10174
|
+
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
10175
|
+
}
|
|
10176
|
+
const dataPassthrough = {
|
|
10177
|
+
projectId: this.projectId,
|
|
10178
|
+
countryId: this.countryId,
|
|
10179
|
+
entityId: listEvent.entityid,
|
|
10180
|
+
locationId: listEvent.locationid,
|
|
10181
|
+
mmddyyyy: mmddyyyy,
|
|
10182
|
+
complianceId: listEvent['id'],
|
|
10183
|
+
path: "uploadextract"
|
|
10184
|
+
};
|
|
10185
|
+
const callbackUrlHost = "8icpy39ru0.execute-api.us-east-1.amazonaws.com";
|
|
10186
|
+
const callbackUrlPath = "test/uploadextract";
|
|
10187
|
+
this._SfUploader[0].querySelector('#uploader').projectId = this.projectId;
|
|
10188
|
+
this._SfUploader[0].querySelector('#uploader').dataPassthrough = JSON.stringify(dataPassthrough);
|
|
10189
|
+
this._SfUploader[0].querySelector('#uploader').callbackUrlHost = callbackUrlHost;
|
|
10190
|
+
this._SfUploader[0].querySelector('#uploader').callbackUrlPath = callbackUrlPath;
|
|
10191
|
+
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
10192
|
+
}
|
|
10193
|
+
//console.log('approved 1', event["approved"], this.myRole, this.TAB_APPROVER);
|
|
10194
|
+
if (this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_VIEWER || this.myRole == this.TAB_AUDITOR || this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
10195
|
+
//console.log('approved 1', event["approved"], this.myRole, this.TAB_APPROVER);
|
|
10196
|
+
if (listEvent["approved"] != null) {
|
|
10197
|
+
if (listEvent["approved"] === true) {
|
|
10198
|
+
//console.log('approved 2', event["approved"], this.myRole, this.TAB_APPROVER);
|
|
10199
|
+
if (this._SfDetailContainer.querySelector('#input-approve-yes') != null) {
|
|
10200
|
+
this._SfDetailContainer.querySelector('#input-approve-yes').checked = true;
|
|
10201
|
+
}
|
|
10202
|
+
if (this._SfDetailContainer.querySelector('#input-approve-no') != null) {
|
|
10203
|
+
this._SfDetailContainer.querySelector('#input-approve-no').checked = false;
|
|
10204
|
+
}
|
|
10205
|
+
}
|
|
10206
|
+
else {
|
|
10207
|
+
if (this._SfDetailContainer.querySelector('#input-approve-yes') != null) {
|
|
10208
|
+
this._SfDetailContainer.querySelector('#input-approve-yes').checked = false;
|
|
10209
|
+
}
|
|
10210
|
+
if (this._SfDetailContainer.querySelector('#input-approve-no') != null) {
|
|
10211
|
+
this._SfDetailContainer.querySelector('#input-approve-no').checked = true;
|
|
10212
|
+
}
|
|
10213
|
+
}
|
|
10214
|
+
}
|
|
10215
|
+
else {
|
|
10216
|
+
if (this._SfDetailContainer.querySelector('#input-approve-yes') != null) {
|
|
10217
|
+
this._SfDetailContainer.querySelector('#input-approve-yes').checked = false;
|
|
10218
|
+
}
|
|
10219
|
+
if (this._SfDetailContainer.querySelector('#input-approve-no') != null) {
|
|
10220
|
+
this._SfDetailContainer.querySelector('#input-approve-no').checked = true;
|
|
10221
|
+
}
|
|
10222
|
+
}
|
|
10223
|
+
}
|
|
10224
|
+
}
|
|
10225
|
+
};
|
|
10226
|
+
this.fetchContractDetails = async (listEvent, mmddyyyy) => {
|
|
10227
|
+
let entityId = listEvent.entityid;
|
|
10228
|
+
let locationId = listEvent.locationid;
|
|
10229
|
+
let url = "https://" + this.apiIdAgreements + "/getallobjectdetails";
|
|
10230
|
+
//console.log('fetch calendar url', url);
|
|
10231
|
+
let urlBody = { projectid: this.projectId, objectid: listEvent.id, entityid: entityId, locationid: locationId, userprofileid: this.userProfileId, role: this.myRole, year: this.calendarStartYYYY, mmddyyyy: mmddyyyy };
|
|
10232
|
+
//console.log('urlbody', urlBody);
|
|
10233
|
+
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
10234
|
+
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
10235
|
+
this._SfLoader.innerHTML = '';
|
|
10236
|
+
if (xhr.status == 200) {
|
|
10237
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
10238
|
+
console.log('jsonRespose agreement details', jsonRespose);
|
|
10239
|
+
this.renderContractDetails(jsonRespose.object, mmddyyyy);
|
|
10240
|
+
}
|
|
10241
|
+
else {
|
|
10242
|
+
if (xhr.status == 401) {
|
|
10243
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
10244
|
+
this.dispatchEvent(changeEvent);
|
|
10245
|
+
}
|
|
10246
|
+
else {
|
|
10247
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
10248
|
+
this.setError(jsonRespose.error);
|
|
10249
|
+
}
|
|
10250
|
+
}
|
|
10251
|
+
};
|
|
10252
|
+
this.renewContract = async (listEvent, reportformatvalues) => {
|
|
10253
|
+
var _a;
|
|
10254
|
+
let url = "https://" + this.apiIdAgreements + "/reopen";
|
|
10255
|
+
console.log('renewing', reportformatvalues);
|
|
10256
|
+
//console.log('fetch calendar url', url);
|
|
10257
|
+
let urlBody = { projectid: this.projectId, objectid: listEvent.id, newvalues: reportformatvalues == "" ? null : JSON.parse(reportformatvalues), published: true, terminated: ((_a = JSON.parse(reportformatvalues).terminated) !== null && _a !== void 0 ? _a : false) };
|
|
10258
|
+
// console.log('reopen body', url, urlBody)
|
|
10259
|
+
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
10260
|
+
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
10261
|
+
this._SfLoader.innerHTML = '';
|
|
10262
|
+
if (xhr.status == 200) {
|
|
10263
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
10264
|
+
console.log('jsonRespose agreement reopen', jsonRespose);
|
|
10265
|
+
}
|
|
10266
|
+
else {
|
|
10267
|
+
if (xhr.status == 401) {
|
|
10268
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
10269
|
+
this.dispatchEvent(changeEvent);
|
|
10270
|
+
}
|
|
10271
|
+
else {
|
|
10272
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
10273
|
+
this.setError(jsonRespose.error);
|
|
10274
|
+
}
|
|
10275
|
+
}
|
|
10276
|
+
};
|
|
10277
|
+
this.renderContractDetails = async (listEvent, mmddyyyy) => {
|
|
10278
|
+
var _a, _b, _c, _f, _g, _h;
|
|
10279
|
+
// await this.fetchAgreementDetails(listEvent, mmddyyyy);
|
|
10280
|
+
// return;
|
|
10281
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
10282
|
+
let entityId = listEvent.entityid;
|
|
10283
|
+
let locationId = listEvent.locationid;
|
|
10284
|
+
let comments = listEvent['comments'];
|
|
10285
|
+
let docs = listEvent['documents'] == null ? [] : listEvent['documents'] == null ? [] : (listEvent['documents']);
|
|
10286
|
+
let approved = listEvent['approved'] == null ? false : listEvent['approved'] == null ? false : listEvent['approved'];
|
|
10287
|
+
let makercheckers = listEvent['makercheckers'] == null ? [] : listEvent['makercheckers'] == null ? [] : listEvent['makercheckers'];
|
|
10288
|
+
// let docsOptional = listEvent['docs'] == null ? [] : listEvent['docs'] == null ? [] : listEvent['docs'];
|
|
10289
|
+
let html = '';
|
|
10290
|
+
let documentType = listEvent['documenttype'] == null ? null : listEvent['documenttype'][0] == null ? null : listEvent['documenttype'][0].split(" ")[0];
|
|
10291
|
+
html += `
|
|
10292
|
+
<div part="compliance-detail-title" class="d-flex justify-between">
|
|
10293
|
+
<button part="button-icon" class="material-icons invisible">close</button>
|
|
10294
|
+
<h3 part="results-title" class="m-0">Agreement Details</h3>
|
|
10295
|
+
<button id="button-detail-close" part="button-icon" class="material-icons">close</button>
|
|
10296
|
+
</div>
|
|
10297
|
+
`;
|
|
10298
|
+
html += `
|
|
10299
|
+
<div class="box-large" id="shimmer-container-agreements" part="shimmer-container-agreements">
|
|
10300
|
+
</div>
|
|
10301
|
+
`;
|
|
10302
|
+
html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="Contract Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdAgreements + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
|
|
10303
|
+
html += '<div part="reporting-view-container">';
|
|
10304
|
+
html += this.renderReporting(listEvent, mmddyyyy);
|
|
10305
|
+
html += "</div>";
|
|
10306
|
+
html += '<div class="d-flex justify-between m-20">';
|
|
10307
|
+
html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
|
|
10308
|
+
html += '</div>';
|
|
10309
|
+
html += '<div class="m-20">';
|
|
10310
|
+
html += '<div class="d-flex flex-col">';
|
|
10311
|
+
for (var i = 0; i < comments.length; i++) {
|
|
10312
|
+
html += '<div part="commentbox" class="d-flex commentbox ' + (comments[i].author + "").toLowerCase() + 'box">';
|
|
10313
|
+
html += '<div class="mr-20 d-flex flex-col align-end"><span part="comment-username">' + (comments[i].username != null ? comments[i].username : '') + '</span><span part="td-head">' + comments[i].author + '</span>' + ((i === (comments.length - 1) && this.enableDeleteLatestReport) ? '<br /><button class="mt-5 button-delete" part="button">Delete</button>' : '') + '</div>';
|
|
10314
|
+
const onlyCommentText = (comments[i].comment + "").replace(/ *\([^)]*\) */g, "").trim();
|
|
10315
|
+
try {
|
|
10316
|
+
const jsonComments = JSON.parse(onlyCommentText);
|
|
10317
|
+
if (Util.isInteger(jsonComments)) {
|
|
10318
|
+
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
10319
|
+
}
|
|
10320
|
+
else {
|
|
10321
|
+
//console.log('json comments', jsonComments);
|
|
10322
|
+
var htmlTable = '';
|
|
10323
|
+
for (var j = 0; j < Object.keys(jsonComments).length; j++) {
|
|
10324
|
+
htmlTable += '<div class="mb-20">';
|
|
10325
|
+
htmlTable += ('<div part="detail-head">' + Object.keys(jsonComments)[j] + '</div>');
|
|
10326
|
+
htmlTable += ('<sf-i-elastic-text text="' + jsonComments[Object.keys(jsonComments)[j]] + '" minLength="20"></sf-i-elastic-text>');
|
|
10327
|
+
htmlTable += '</div>';
|
|
10328
|
+
}
|
|
10329
|
+
html += '<div class="">' + htmlTable + '<small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
10330
|
+
}
|
|
10331
|
+
}
|
|
10332
|
+
catch (e) {
|
|
10333
|
+
//console.log('json comments exception', comments[i]);
|
|
10334
|
+
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
10335
|
+
}
|
|
10336
|
+
html += '</div>';
|
|
10337
|
+
}
|
|
10338
|
+
if (comments.length === 0) {
|
|
10339
|
+
html += '<div><strong>No comments yet!</strong></div>';
|
|
10340
|
+
}
|
|
10341
|
+
html += '</div>';
|
|
10342
|
+
html += '</div>';
|
|
10343
|
+
console.log('selected event', JSON.stringify(listEvent));
|
|
10344
|
+
this._SfDetailContainer.innerHTML = html;
|
|
10345
|
+
this._SfDetailContainer.style.display = 'block';
|
|
10346
|
+
let usermap = Util.getUsermap();
|
|
10347
|
+
let sfireporting = this._SfDetailContainer.querySelector('#detail-reporting');
|
|
10348
|
+
sfireporting.usermap = JSON.stringify(usermap);
|
|
10349
|
+
sfireporting.selectedItem = listEvent;
|
|
10350
|
+
sfireporting.editdisable = "true";
|
|
10351
|
+
setTimeout(() => {
|
|
10352
|
+
console.log('sfireporting', sfireporting._SfReportingContainer);
|
|
10353
|
+
sfireporting.loadMode();
|
|
10354
|
+
}, 500);
|
|
10355
|
+
sfireporting.addEventListener('valueChanged', () => {
|
|
10356
|
+
sfireporting.classList.remove('hide');
|
|
10357
|
+
this._SfDetailContainer.querySelector('#shimmer-container-agreements').classList.add('hide');
|
|
10358
|
+
});
|
|
10359
|
+
let reportingSchemaJson = "";
|
|
10360
|
+
let reportingSchemaValues = "";
|
|
10361
|
+
if (listEvent.reportformatschema != null) {
|
|
10362
|
+
reportingSchemaJson = listEvent.reportformatschema;
|
|
10363
|
+
reportingSchemaValues = listEvent.reportformatvalues;
|
|
10364
|
+
}
|
|
10365
|
+
else if (listEvent.customreporting != null) {
|
|
10366
|
+
reportingSchemaJson = listEvent.customreporting;
|
|
10367
|
+
}
|
|
10368
|
+
if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
|
|
10369
|
+
let reportingHtml = '<sf-i-reporting id="reporting-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" mode="edit" flow="reporting" name="Contract Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
|
|
10370
|
+
let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
|
|
10371
|
+
if (reportFormatContainer != null) {
|
|
10372
|
+
reportFormatContainer.innerHTML = reportingHtml;
|
|
10373
|
+
}
|
|
10374
|
+
}
|
|
10375
|
+
let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
|
|
10376
|
+
if (reportingSchemaJson != "" && reportingReporting != null) {
|
|
10377
|
+
reportingReporting.configjson = reportingSchemaJson;
|
|
10378
|
+
if (reportingSchemaValues != "")
|
|
10379
|
+
reportingReporting.prepopulateValJson = reportingSchemaValues;
|
|
10380
|
+
reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
|
|
10381
|
+
reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
|
|
10382
|
+
reportingReporting.flow = "reporting";
|
|
10383
|
+
setTimeout(() => {
|
|
10384
|
+
reportingReporting.loadMode();
|
|
10385
|
+
console.log('list-customreporting', reportingSchemaJson);
|
|
10386
|
+
console.log('list-customreporting1', reportingSchemaValues);
|
|
10387
|
+
console.log('list-customreporting2', reportingReporting.mode);
|
|
10388
|
+
}, 500);
|
|
10389
|
+
}
|
|
10390
|
+
(_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
|
|
10391
|
+
this._SfDetailContainer.innerHTML = '';
|
|
10392
|
+
this._SfDetailContainer.style.display = 'none';
|
|
10393
|
+
});
|
|
10394
|
+
(_b = this._SfDetailContainer.querySelector('.button-delete')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', async () => {
|
|
10395
|
+
// await this.fetchDeleteReview(listEvent["id"], mmddyyyy, entityId, locationId);
|
|
10396
|
+
// this.setSuccess('Deleted successfully!')
|
|
10397
|
+
// setTimeout(() => {
|
|
10398
|
+
// this.clearMessages()
|
|
10399
|
+
// }, 3000);
|
|
10400
|
+
// //console.log('deleted', resultDelete);
|
|
10401
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10402
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10403
|
+
// } else {
|
|
10404
|
+
// if(currentColumnButton != null) {
|
|
10405
|
+
// currentColumnButton.click();
|
|
10406
|
+
// }
|
|
10407
|
+
// }
|
|
10408
|
+
console.log('delete review clicked');
|
|
10409
|
+
var clickEvent = new MouseEvent("click", {
|
|
10410
|
+
"view": window,
|
|
10411
|
+
"bubbles": true,
|
|
10412
|
+
"cancelable": false
|
|
10413
|
+
});
|
|
10414
|
+
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10415
|
+
});
|
|
10416
|
+
(_c = this._SfDetailContainer.querySelector('#button-auto-approve')) === null || _c === void 0 ? void 0 : _c.addEventListener('click', async () => {
|
|
10417
|
+
if (this.selectedItemIds.length === 0) {
|
|
10418
|
+
console.log('audto approve single');
|
|
10419
|
+
}
|
|
10420
|
+
else {
|
|
10421
|
+
console.log('auto approve bulk');
|
|
10422
|
+
}
|
|
10423
|
+
//console.log('deleted', resultDelete);
|
|
10424
|
+
if (this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10425
|
+
this.processDateSelection(this._SfCustomContainer);
|
|
10426
|
+
}
|
|
10427
|
+
else {
|
|
10428
|
+
// if(currentColumnButton != null) {
|
|
10429
|
+
// currentColumnButton.click();
|
|
10430
|
+
// }
|
|
10431
|
+
}
|
|
10432
|
+
var clickEvent = new MouseEvent("click", {
|
|
10433
|
+
"view": window,
|
|
10434
|
+
"bubbles": true,
|
|
10435
|
+
"cancelable": false
|
|
10436
|
+
});
|
|
10437
|
+
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10438
|
+
});
|
|
10439
|
+
if (this.mode == "consumer" || this.mode == "next") {
|
|
10440
|
+
(_f = this._SfDetailContainer.querySelector('#button-uploader-submit-approve')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async (ev) => {
|
|
10441
|
+
var _a, _b, _c, _f, _g;
|
|
10442
|
+
let buttonClick = ev.target;
|
|
10443
|
+
buttonClick.innerHTML = "Saving...";
|
|
10444
|
+
const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
|
|
10445
|
+
const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
|
|
10446
|
+
let currStatus = this.getCompletenessStatus(listEvent);
|
|
10447
|
+
let newEvent = { ...listEvent };
|
|
10448
|
+
newEvent.comments = comments;
|
|
10449
|
+
newEvent.approved = approved;
|
|
10450
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
10451
|
+
if (currStatus == newStatus) {
|
|
10452
|
+
buttonClick.innerHTML = "Save";
|
|
10453
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
10454
|
+
setTimeout(() => {
|
|
10455
|
+
this.clearMessages();
|
|
10456
|
+
}, 3000);
|
|
10457
|
+
return;
|
|
10458
|
+
}
|
|
10459
|
+
let reportformatvalues = "";
|
|
10460
|
+
let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
|
|
10461
|
+
console.log('renew reporting', reportingReporting);
|
|
10462
|
+
if (reportingReporting != null) {
|
|
10463
|
+
reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
|
|
10464
|
+
}
|
|
10465
|
+
var clickEvent = new MouseEvent("click", {
|
|
10466
|
+
"view": window,
|
|
10467
|
+
"bubbles": true,
|
|
10468
|
+
"cancelable": false
|
|
10469
|
+
});
|
|
10470
|
+
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10471
|
+
// await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
|
|
10472
|
+
let flagBulk = false;
|
|
10473
|
+
if (this.selectedItemIds.length <= 1) {
|
|
10474
|
+
console.log('mmddyyyy', mmddyyyy);
|
|
10475
|
+
if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, (_b = listEvent.module) !== null && _b !== void 0 ? _b : "events")) {
|
|
10476
|
+
if (approved) {
|
|
10477
|
+
await this.renewContract(listEvent, reportformatvalues);
|
|
10478
|
+
}
|
|
10479
|
+
else {
|
|
10480
|
+
console.log('renew reporting', reportformatvalues);
|
|
10481
|
+
}
|
|
10482
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10483
|
+
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10484
|
+
this.events[mmdd][p].approved = approved;
|
|
10485
|
+
this.events[mmdd][p].terminated = (_c = (JSON.parse(reportformatvalues).terminated)) !== null && _c !== void 0 ? _c : false;
|
|
10486
|
+
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
10487
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
10488
|
+
}
|
|
10489
|
+
}
|
|
10490
|
+
if (this.recentlyReported[mmdd] == null) {
|
|
10491
|
+
this.recentlyReported[mmdd] = [];
|
|
10492
|
+
}
|
|
10493
|
+
this.recentlyReported[mmdd].push(listEvent);
|
|
10494
|
+
console.log('review single');
|
|
10495
|
+
}
|
|
10496
|
+
}
|
|
10497
|
+
else {
|
|
10498
|
+
let bulkBodyReview = [];
|
|
10499
|
+
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
10500
|
+
const selectedId = this.selectedItemIds[k];
|
|
10501
|
+
//console.log('selectedid', selectedId);
|
|
10502
|
+
entityId = selectedId.split('-')[7].replace(/_/g, '-');
|
|
10503
|
+
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10504
|
+
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10505
|
+
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10506
|
+
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
10507
|
+
bulkBodyReview.push({
|
|
10508
|
+
"mmddyyyy": mmddyyyy,
|
|
10509
|
+
"projectid": this.projectId,
|
|
10510
|
+
"type": "review",
|
|
10511
|
+
"eventid": eventId,
|
|
10512
|
+
"comments": comments,
|
|
10513
|
+
"approved": approved,
|
|
10514
|
+
"entityid": entityId,
|
|
10515
|
+
"locationid": locationId,
|
|
10516
|
+
"username": this.userName,
|
|
10517
|
+
"userid": this.userProfileId,
|
|
10518
|
+
"userrole": this.myRole,
|
|
10519
|
+
"year": this.calendarStartYYYY,
|
|
10520
|
+
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "events"
|
|
10521
|
+
});
|
|
10522
|
+
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
10523
|
+
// this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
|
|
10524
|
+
// await this.sleep(2000);
|
|
10525
|
+
// this.clearMessages();
|
|
10526
|
+
}
|
|
10527
|
+
await this.uploadReviewsBulk(bulkBodyReview);
|
|
10528
|
+
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
10529
|
+
const selectedId = this.selectedItemIds[k];
|
|
10530
|
+
//console.log('selectedid', selectedId);
|
|
10531
|
+
entityId = selectedId.split('-')[7].replace(/_/g, '-');
|
|
10532
|
+
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10533
|
+
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10534
|
+
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10535
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
10536
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10537
|
+
if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10538
|
+
this.events[mmdd][p].isbulk = true;
|
|
10539
|
+
flagBulk = true;
|
|
10540
|
+
if (this.recentlyReported[mmdd] == null) {
|
|
10541
|
+
this.recentlyReported[mmdd] = [];
|
|
10542
|
+
}
|
|
10543
|
+
this.recentlyReported[mmdd].push(this.events[mmdd][p]);
|
|
10544
|
+
}
|
|
10545
|
+
}
|
|
10546
|
+
}
|
|
10547
|
+
console.log('review bulk');
|
|
10548
|
+
}
|
|
10549
|
+
if (this.mode == "next") {
|
|
10550
|
+
// this.fetchNext(this.nextPage)
|
|
10551
|
+
this.renderRoleTabsNext(this.nextPage);
|
|
10552
|
+
}
|
|
10553
|
+
else {
|
|
10554
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10555
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10556
|
+
// } else
|
|
10557
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
10558
|
+
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
10559
|
+
this.processFindSelection(this._SfFindContainer, searchString);
|
|
10560
|
+
}
|
|
10561
|
+
else {
|
|
10562
|
+
if (this.selectedItemIds.length > 0) {
|
|
10563
|
+
await this.fetchBulkReportingData();
|
|
10564
|
+
}
|
|
10565
|
+
this.renderAppropriateStream(this.sdate, this.edate, true, flagBulk);
|
|
10566
|
+
var clickEvent = new MouseEvent("click", {
|
|
10567
|
+
"view": window,
|
|
10568
|
+
"bubbles": true,
|
|
10569
|
+
"cancelable": false
|
|
10570
|
+
});
|
|
10571
|
+
(_g = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _g === void 0 ? void 0 : _g.dispatchEvent(clickEvent);
|
|
10572
|
+
// if(currentColumnButton != null) {
|
|
10573
|
+
// currentColumnButton.click();
|
|
10574
|
+
// }
|
|
10575
|
+
}
|
|
10576
|
+
}
|
|
10577
|
+
});
|
|
10578
|
+
(_g = this._SfDetailContainer.querySelector('#button-uploader-submit-audit')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async (ev) => {
|
|
10579
|
+
var _a, _b;
|
|
10580
|
+
let buttonClick = ev.target;
|
|
10581
|
+
buttonClick.innerHTML = "Saving...";
|
|
10582
|
+
const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
|
|
10583
|
+
const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
|
|
10584
|
+
let currStatus = this.getCompletenessStatus(listEvent);
|
|
10585
|
+
let newEvent = { ...listEvent };
|
|
10586
|
+
newEvent.comments = comments;
|
|
10587
|
+
newEvent.approved = approved;
|
|
10588
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
10589
|
+
if (currStatus == newStatus) {
|
|
10590
|
+
buttonClick.innerHTML = "Save";
|
|
10591
|
+
this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
|
|
10592
|
+
setTimeout(() => {
|
|
10593
|
+
this.clearMessages();
|
|
10594
|
+
}, 3000);
|
|
10595
|
+
return;
|
|
10596
|
+
}
|
|
10597
|
+
if (comments.trim().length === 0) {
|
|
10598
|
+
buttonClick.innerHTML = "Save";
|
|
10599
|
+
this.setError('Comments cannot be blank!');
|
|
10600
|
+
setTimeout(() => {
|
|
10601
|
+
this.clearMessages();
|
|
10602
|
+
}, 3000);
|
|
10603
|
+
}
|
|
10604
|
+
else {
|
|
10605
|
+
let flagBulk = false;
|
|
10606
|
+
if (this.selectedItemIds.length <= 1) {
|
|
10607
|
+
if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, (_a = listEvent.module) !== null && _a !== void 0 ? _a : "events")) {
|
|
10608
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10609
|
+
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10610
|
+
this.events[mmdd][p].approved = approved;
|
|
10611
|
+
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
10612
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
10613
|
+
}
|
|
10614
|
+
}
|
|
10615
|
+
if (this.recentlyReported[mmdd] == null) {
|
|
10616
|
+
this.recentlyReported[mmdd] = [];
|
|
10617
|
+
}
|
|
10618
|
+
this.recentlyReported[mmdd].push(listEvent);
|
|
10619
|
+
}
|
|
10620
|
+
console.log('uploadaudit single');
|
|
10621
|
+
}
|
|
10622
|
+
else {
|
|
10623
|
+
let bulkBodyAudit = [];
|
|
10624
|
+
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
10625
|
+
const selectedId = this.selectedItemIds[k];
|
|
10626
|
+
//console.log('selectedid', selectedId);
|
|
10627
|
+
entityId = selectedId.split('-')[7].replace(/_/g, '-');
|
|
10628
|
+
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10629
|
+
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10630
|
+
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10631
|
+
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
10632
|
+
bulkBodyAudit.push({
|
|
10633
|
+
"mmddyyyy": mmddyyyy,
|
|
10634
|
+
"projectid": this.projectId,
|
|
10635
|
+
"type": "audit",
|
|
10636
|
+
"eventid": eventId,
|
|
10637
|
+
"comments": comments,
|
|
10638
|
+
"approved": approved,
|
|
10639
|
+
"entityid": entityId,
|
|
10640
|
+
"locationid": locationId,
|
|
10641
|
+
"username": this.userName,
|
|
10642
|
+
"userid": this.userProfileId,
|
|
10643
|
+
"userrole": this.myRole,
|
|
10644
|
+
"year": this.calendarStartYYYY,
|
|
10645
|
+
"module": (_b = listEvent.module) !== null && _b !== void 0 ? _b : "events"
|
|
10646
|
+
});
|
|
10647
|
+
// await this.uploadAudit(entityId, locationId, mmddyyyy, eventId, comments, approved);
|
|
10648
|
+
}
|
|
10649
|
+
await this.uploadAuditsBulk(bulkBodyAudit);
|
|
10650
|
+
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
10651
|
+
const selectedId = this.selectedItemIds[k];
|
|
10652
|
+
//console.log('selectedid', selectedId);
|
|
10653
|
+
let entityId = selectedId.split('-')[7].replace(/_/g, '-');
|
|
10654
|
+
let locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10655
|
+
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10656
|
+
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10657
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
10658
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10659
|
+
if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10660
|
+
this.events[mmdd][p].isbulk = true;
|
|
10661
|
+
flagBulk = true;
|
|
10662
|
+
if (this.recentlyReported[mmdd] == null) {
|
|
10663
|
+
this.recentlyReported[mmdd] = [];
|
|
10664
|
+
}
|
|
10665
|
+
this.recentlyReported[mmdd].push(this.events[mmdd][p]);
|
|
10666
|
+
}
|
|
10667
|
+
}
|
|
10668
|
+
}
|
|
10669
|
+
console.log('uploadAudit bulk');
|
|
10670
|
+
}
|
|
10671
|
+
var clickEvent = new MouseEvent("click", {
|
|
10672
|
+
"view": window,
|
|
10673
|
+
"bubbles": true,
|
|
10674
|
+
"cancelable": false
|
|
10675
|
+
});
|
|
10676
|
+
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10677
|
+
if (this.mode == "next") {
|
|
10678
|
+
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
10679
|
+
}
|
|
10680
|
+
else {
|
|
10681
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10682
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10683
|
+
// } else
|
|
10684
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
10685
|
+
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
10686
|
+
this.processFindSelection(this._SfFindContainer, searchString);
|
|
10687
|
+
}
|
|
10688
|
+
else {
|
|
10689
|
+
if (this.selectedItemIds.length > 0) {
|
|
10690
|
+
await this.fetchBulkReportingData();
|
|
10691
|
+
}
|
|
10692
|
+
this.renderAppropriateStream(this.sdate, this.edate, true, flagBulk);
|
|
10693
|
+
// if(currentColumnButton != null) {
|
|
10694
|
+
// currentColumnButton.click();
|
|
10695
|
+
// }
|
|
10696
|
+
}
|
|
10697
|
+
}
|
|
10698
|
+
}
|
|
10699
|
+
});
|
|
10700
|
+
if (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
10701
|
+
if (approved) {
|
|
10702
|
+
if (this._SfDetailContainer.querySelector('#button-uploader-submit-report') != null) {
|
|
10703
|
+
this._SfDetailContainer.querySelector('#button-uploader-submit-report').style.visibility = 'hidden';
|
|
10704
|
+
}
|
|
10705
|
+
}
|
|
10706
|
+
else {
|
|
10707
|
+
if (this._SfDetailContainer.querySelector('#button-uploader-submit-report') != null) {
|
|
10708
|
+
this._SfDetailContainer.querySelector('#button-uploader-submit-report').style.visibility = 'visible';
|
|
10709
|
+
(_h = this._SfDetailContainer.querySelector('#button-uploader-submit-report')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async (ev) => {
|
|
10710
|
+
var _a, _b, _c, _f;
|
|
10711
|
+
let buttonClick = ev.target;
|
|
10712
|
+
buttonClick.innerHTML = "Saving...";
|
|
10713
|
+
const reportercomments = this._SfDetailContainer.querySelector('#input-reporter-comments').value;
|
|
10714
|
+
//console.log('reporter comments 1', reportercomments);
|
|
10715
|
+
// const reporterdoc = ((((this._SfDetailContainer as HTMLDivElement).querySelector('#input-reporter-doc') as HTMLInputElement) != null) && ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-reporter-doc') as HTMLInputElement).value.length > 0) ? (new Date(((this._SfDetailContainer as HTMLDivElement).querySelector('#input-reporter-doc') as HTMLInputElement).value).getTime() + "") : "";
|
|
10716
|
+
const reporterdoc = new Date().getTime() + "";
|
|
10717
|
+
let docs = [];
|
|
10718
|
+
//console.log('reporter comments 2', reportercomments);
|
|
10719
|
+
// if(docsOptional.length === 0) {
|
|
10720
|
+
// docs = (this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.selectedValues();
|
|
10721
|
+
// }
|
|
10722
|
+
//console.log('docs', docs);
|
|
10723
|
+
let reportformatvalues = "";
|
|
10724
|
+
let reportformatschema = "";
|
|
10725
|
+
if (listEvent.customreporting != null) {
|
|
10726
|
+
let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
|
|
10727
|
+
console.log('reportformatvalues', JSON.stringify(reportingReporting.selectedValues()));
|
|
10728
|
+
reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
|
|
10729
|
+
reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
|
|
10730
|
+
}
|
|
10731
|
+
let percentage = "100";
|
|
10732
|
+
if (this._SfDetailContainer.querySelector('#input-reporter-percentage') != null) {
|
|
10733
|
+
percentage = this._SfDetailContainer.querySelector('#input-reporter-percentage').value;
|
|
10734
|
+
}
|
|
10735
|
+
// if (Number.isNaN(parseInt(percentage)) || parseInt(percentage) < 0 || parseInt(percentage) > 100) {
|
|
10736
|
+
// //console.log('reporter comments 3', reportercomments);
|
|
10737
|
+
// buttonClick.innerHTML = "Save"
|
|
10738
|
+
// this.setError('Invalid Percentage!');
|
|
10739
|
+
// setTimeout(() => {
|
|
10740
|
+
// this.clearMessages();
|
|
10741
|
+
// }, 3000);
|
|
10742
|
+
// } else {
|
|
10743
|
+
// if (docs.length === 0 && docsOptional.length === 0) {
|
|
10744
|
+
// //console.log('reporter comments 3', reportercomments);
|
|
10745
|
+
// buttonClick.innerHTML = "Save"
|
|
10746
|
+
// this.setError('No documents uploaded!');
|
|
10747
|
+
// setTimeout(() => {
|
|
10748
|
+
// this.clearMessages();
|
|
10749
|
+
// }, 3000);
|
|
10750
|
+
// } else {
|
|
10751
|
+
// //console.log('reporterdoc', reporterdoc);
|
|
10752
|
+
// if (reporterdoc.length === 0) {
|
|
10753
|
+
// buttonClick.innerHTML = "Save"
|
|
10754
|
+
// this.setError('Date of completion not selected!');
|
|
10755
|
+
// setTimeout(() => {
|
|
10756
|
+
// this.clearMessages();
|
|
10757
|
+
// }, 3000);
|
|
10758
|
+
// } else if (parseInt(reporterdoc) > new Date().getTime()) {
|
|
10759
|
+
// buttonClick.innerHTML = "Save"
|
|
10760
|
+
// this.setError('Date of completion cannot be in future!');
|
|
10761
|
+
// setTimeout(() => {
|
|
10762
|
+
// this.clearMessages();
|
|
10763
|
+
// }, 3000);
|
|
10764
|
+
// } else {
|
|
10765
|
+
//console.log('makerscheckers 1', reportercomments);
|
|
10766
|
+
if (reportercomments.trim().length === 0) {
|
|
10767
|
+
buttonClick.innerHTML = "Save";
|
|
10768
|
+
this.setError('Comments cannot be blank!');
|
|
10769
|
+
setTimeout(() => {
|
|
10770
|
+
this.clearMessages();
|
|
10771
|
+
}, 3000);
|
|
10772
|
+
}
|
|
10773
|
+
else {
|
|
10774
|
+
var clickEvent = new MouseEvent("click", {
|
|
10775
|
+
"view": window,
|
|
10776
|
+
"bubbles": true,
|
|
10777
|
+
"cancelable": false
|
|
10778
|
+
});
|
|
10779
|
+
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10780
|
+
let flagBulk = false;
|
|
10781
|
+
if (this.selectedItemIds.length <= 1) {
|
|
10782
|
+
if (await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, listEvent.module, percentage, makercheckers)) {
|
|
10783
|
+
console.log('this.events', this.events);
|
|
10784
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10785
|
+
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10786
|
+
this.events[mmdd][p].documents = docs;
|
|
10787
|
+
this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
|
|
10788
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
10789
|
+
}
|
|
10790
|
+
}
|
|
10791
|
+
console.log('uploadReport single');
|
|
10792
|
+
if (makercheckers.length > 0) {
|
|
10793
|
+
// await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], "Auto approved", true, "notices");
|
|
10794
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10795
|
+
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10796
|
+
this.events[mmdd][p].approved = true;
|
|
10797
|
+
this.events[mmdd][p].terminated = (_c = (JSON.parse(reportformatvalues).terminated)) !== null && _c !== void 0 ? _c : false;
|
|
10798
|
+
// this.events[mmdd][p].documents = docs
|
|
10799
|
+
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
|
|
10800
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
10107
10801
|
}
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10802
|
+
}
|
|
10803
|
+
await this.renewContract(listEvent, reportformatvalues);
|
|
10804
|
+
console.log('upload report auto approve single');
|
|
10805
|
+
}
|
|
10806
|
+
if (this.recentlyReported[mmdd] == null) {
|
|
10807
|
+
this.recentlyReported[mmdd] = [];
|
|
10808
|
+
}
|
|
10809
|
+
this.recentlyReported[mmdd].push(listEvent);
|
|
10810
|
+
}
|
|
10811
|
+
}
|
|
10812
|
+
else {
|
|
10813
|
+
let bulkBody = [];
|
|
10814
|
+
let bulkBodyReview = [];
|
|
10815
|
+
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
10816
|
+
const selectedId = this.selectedItemIds[k];
|
|
10817
|
+
//console.log('selectedid', selectedId);
|
|
10818
|
+
const makercheckersL = selectedId.split('-')[5];
|
|
10819
|
+
entityId = selectedId.split('-')[7].replace(/_/g, '-');
|
|
10820
|
+
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10821
|
+
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10822
|
+
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10823
|
+
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
10824
|
+
// await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
|
|
10825
|
+
// if(parseInt(makercheckersL) > 0) {
|
|
10826
|
+
// bulkBodyReview.push({
|
|
10827
|
+
// "mmddyyyy": mmddyyyy,
|
|
10828
|
+
// "projectid": this.projectId,
|
|
10829
|
+
// "type": "report",
|
|
10830
|
+
// "eventid": eventId,
|
|
10831
|
+
// "comments": reportercomments,
|
|
10832
|
+
// "dateofcompletion": reporterdoc,
|
|
10833
|
+
// "percentage": percentage,
|
|
10834
|
+
// "entityid": entityId,
|
|
10835
|
+
// "locationid": locationId,
|
|
10836
|
+
// "event": null,
|
|
10837
|
+
// "docs": JSON.stringify(docs),
|
|
10838
|
+
// "approved": true,
|
|
10839
|
+
// "username": this.userName,
|
|
10840
|
+
// "reportformatvalues": reportformatvalues,
|
|
10841
|
+
// "reportformatschema": reportformatschema,
|
|
10842
|
+
// "userid": this.userProfileId,
|
|
10843
|
+
// "userrole": this.myRole,
|
|
10844
|
+
// "year": this.calendarStartYYYY,
|
|
10845
|
+
// "module": listEvent.module ?? "events"
|
|
10846
|
+
// } )
|
|
10847
|
+
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
10848
|
+
// }else{
|
|
10849
|
+
bulkBody.push({
|
|
10850
|
+
"mmddyyyy": mmddyyyy,
|
|
10851
|
+
"projectid": this.projectId,
|
|
10852
|
+
"type": "report",
|
|
10853
|
+
"eventid": eventId,
|
|
10854
|
+
"comments": reportercomments,
|
|
10855
|
+
"dateofcompletion": reporterdoc,
|
|
10856
|
+
"percentage": percentage,
|
|
10857
|
+
"entityid": entityId,
|
|
10858
|
+
"locationid": locationId,
|
|
10859
|
+
"event": null,
|
|
10860
|
+
"docs": JSON.stringify(docs),
|
|
10861
|
+
"username": this.userName,
|
|
10862
|
+
"reportformatvalues": reportformatvalues,
|
|
10863
|
+
"reportformatschema": reportformatschema,
|
|
10864
|
+
"userid": this.userProfileId,
|
|
10865
|
+
"userrole": this.myRole,
|
|
10866
|
+
"year": this.calendarStartYYYY,
|
|
10867
|
+
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "events",
|
|
10868
|
+
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
10869
|
+
});
|
|
10870
|
+
// }
|
|
10871
|
+
// this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
|
|
10872
|
+
// await this.sleep(2000);
|
|
10873
|
+
// this.clearMessages();
|
|
10874
|
+
}
|
|
10875
|
+
// await this.uploadReportsBulk(bulkBody);
|
|
10876
|
+
// await this.fetchBulkReportingData();
|
|
10877
|
+
if (bulkBody.length > 0) {
|
|
10878
|
+
await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
|
|
10879
|
+
}
|
|
10880
|
+
// if(bulkBodyReview.length > 0){
|
|
10881
|
+
// await this.uploadReportsReviewsBulk(bulkBodyReview)
|
|
10882
|
+
// }
|
|
10883
|
+
await this.fetchBulkReportingData();
|
|
10884
|
+
console.log('uploadReport bulk');
|
|
10885
|
+
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
10886
|
+
const selectedId = this.selectedItemIds[k];
|
|
10887
|
+
//console.log('selectedid', selectedId);
|
|
10888
|
+
let entityId = selectedId.split('-')[7].replace(/_/g, '-');
|
|
10889
|
+
let locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10890
|
+
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10891
|
+
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10892
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
10893
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10894
|
+
if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10895
|
+
this.events[mmdd][p].isbulk = true;
|
|
10896
|
+
flagBulk = true;
|
|
10897
|
+
if (this.recentlyReported[mmdd] == null) {
|
|
10898
|
+
this.recentlyReported[mmdd] = [];
|
|
10116
10899
|
}
|
|
10900
|
+
this.recentlyReported[mmdd].push(this.events[mmdd][p]);
|
|
10117
10901
|
}
|
|
10118
10902
|
}
|
|
10119
10903
|
}
|
|
10120
10904
|
}
|
|
10905
|
+
if (this.mode == "next") {
|
|
10906
|
+
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
10907
|
+
}
|
|
10908
|
+
else {
|
|
10909
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10910
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10911
|
+
// } else
|
|
10912
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
10913
|
+
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
10914
|
+
this.processFindSelection(this._SfFindContainer, searchString);
|
|
10915
|
+
}
|
|
10916
|
+
else {
|
|
10917
|
+
if (this.selectedItemIds.length > 0) {
|
|
10918
|
+
await this.fetchBulkReportingData();
|
|
10919
|
+
}
|
|
10920
|
+
this.renderAppropriateStream(this.sdate, this.edate, true, flagBulk);
|
|
10921
|
+
// if(currentColumnButton != null) {
|
|
10922
|
+
// currentColumnButton.click();
|
|
10923
|
+
// }
|
|
10924
|
+
}
|
|
10925
|
+
}
|
|
10121
10926
|
}
|
|
10927
|
+
// }
|
|
10928
|
+
// }
|
|
10929
|
+
// }
|
|
10122
10930
|
});
|
|
10123
10931
|
}
|
|
10124
10932
|
}
|
|
@@ -10202,20 +11010,20 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10202
11010
|
}
|
|
10203
11011
|
}
|
|
10204
11012
|
};
|
|
10205
|
-
this.
|
|
11013
|
+
this.fetchLicenseDetails = async (listEvent, mmddyyyy) => {
|
|
10206
11014
|
let entityId = listEvent.entityid;
|
|
10207
11015
|
let locationId = listEvent.locationid;
|
|
10208
|
-
let url = "https://" + this.
|
|
10209
|
-
|
|
11016
|
+
let url = "https://" + this.apiIdLicenses + "/getallobjectdetails";
|
|
11017
|
+
console.log('fetch license details url', url);
|
|
10210
11018
|
let urlBody = { projectid: this.projectId, objectid: listEvent.id, entityid: entityId, locationid: locationId, userprofileid: this.userProfileId, role: this.myRole, year: this.calendarStartYYYY, mmddyyyy: mmddyyyy };
|
|
10211
|
-
|
|
11019
|
+
console.log('fetch license details urlbody', urlBody);
|
|
10212
11020
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
10213
11021
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
10214
11022
|
this._SfLoader.innerHTML = '';
|
|
10215
11023
|
if (xhr.status == 200) {
|
|
10216
11024
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
10217
11025
|
console.log('jsonRespose agreement details', jsonRespose);
|
|
10218
|
-
this.
|
|
11026
|
+
this.renderLicenseDetails(jsonRespose.object, mmddyyyy);
|
|
10219
11027
|
}
|
|
10220
11028
|
else {
|
|
10221
11029
|
if (xhr.status == 401) {
|
|
@@ -10228,9 +11036,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10228
11036
|
}
|
|
10229
11037
|
}
|
|
10230
11038
|
};
|
|
10231
|
-
this.
|
|
11039
|
+
this.renewLicense = async (listEvent, reportformatvalues) => {
|
|
10232
11040
|
var _a;
|
|
10233
|
-
let url = "https://" + this.
|
|
11041
|
+
let url = "https://" + this.apiIdLicenses + "/reopen";
|
|
10234
11042
|
console.log('renewing', reportformatvalues);
|
|
10235
11043
|
//console.log('fetch calendar url', url);
|
|
10236
11044
|
let urlBody = { projectid: this.projectId, objectid: listEvent.id, newvalues: reportformatvalues == "" ? null : JSON.parse(reportformatvalues), published: true, terminated: ((_a = JSON.parse(reportformatvalues).terminated) !== null && _a !== void 0 ? _a : false) };
|
|
@@ -10253,7 +11061,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10253
11061
|
}
|
|
10254
11062
|
}
|
|
10255
11063
|
};
|
|
10256
|
-
this.
|
|
11064
|
+
this.renderLicenseDetails = async (listEvent, mmddyyyy) => {
|
|
10257
11065
|
var _a, _b, _c, _f, _g, _h;
|
|
10258
11066
|
// await this.fetchAgreementDetails(listEvent, mmddyyyy);
|
|
10259
11067
|
// return;
|
|
@@ -10270,7 +11078,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10270
11078
|
html += `
|
|
10271
11079
|
<div part="compliance-detail-title" class="d-flex justify-between">
|
|
10272
11080
|
<button part="button-icon" class="material-icons invisible">close</button>
|
|
10273
|
-
<h3 part="results-title" class="m-0">
|
|
11081
|
+
<h3 part="results-title" class="m-0">License Details</h3>
|
|
10274
11082
|
<button id="button-detail-close" part="button-icon" class="material-icons">close</button>
|
|
10275
11083
|
</div>
|
|
10276
11084
|
`;
|
|
@@ -10278,7 +11086,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10278
11086
|
<div class="box-large" id="shimmer-container-agreements" part="shimmer-container-agreements">
|
|
10279
11087
|
</div>
|
|
10280
11088
|
`;
|
|
10281
|
-
html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="
|
|
11089
|
+
html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="License Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdLicenses + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
|
|
10282
11090
|
html += '<div part="reporting-view-container">';
|
|
10283
11091
|
html += this.renderReporting(listEvent, mmddyyyy);
|
|
10284
11092
|
html += "</div>";
|
|
@@ -10329,6 +11137,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10329
11137
|
sfireporting.editdisable = "true";
|
|
10330
11138
|
setTimeout(() => {
|
|
10331
11139
|
console.log('sfireporting', sfireporting._SfReportingContainer);
|
|
11140
|
+
console.log('sfireporting', sfireporting.selectedItem);
|
|
10332
11141
|
sfireporting.loadMode();
|
|
10333
11142
|
}, 500);
|
|
10334
11143
|
sfireporting.addEventListener('valueChanged', () => {
|
|
@@ -10345,7 +11154,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10345
11154
|
reportingSchemaJson = listEvent.customreporting;
|
|
10346
11155
|
}
|
|
10347
11156
|
if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
|
|
10348
|
-
let reportingHtml = '<sf-i-reporting id="reporting-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" mode="edit" flow="reporting" name="
|
|
11157
|
+
let reportingHtml = '<sf-i-reporting id="reporting-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" mode="edit" flow="reporting" name="License Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
|
|
10349
11158
|
let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
|
|
10350
11159
|
if (reportFormatContainer != null) {
|
|
10351
11160
|
reportFormatContainer.innerHTML = reportingHtml;
|
|
@@ -10453,7 +11262,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10453
11262
|
console.log('mmddyyyy', mmddyyyy);
|
|
10454
11263
|
if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, (_b = listEvent.module) !== null && _b !== void 0 ? _b : "events")) {
|
|
10455
11264
|
if (approved) {
|
|
10456
|
-
await this.
|
|
11265
|
+
await this.renewLicense(listEvent, reportformatvalues);
|
|
10457
11266
|
}
|
|
10458
11267
|
else {
|
|
10459
11268
|
console.log('renew reporting', reportformatvalues);
|
|
@@ -10779,7 +11588,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10779
11588
|
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
10780
11589
|
}
|
|
10781
11590
|
}
|
|
10782
|
-
await this.
|
|
11591
|
+
await this.renewLicense(listEvent, reportformatvalues);
|
|
10783
11592
|
console.log('upload report auto approve single');
|
|
10784
11593
|
}
|
|
10785
11594
|
if (this.recentlyReported[mmdd] == null) {
|
|
@@ -10989,20 +11798,20 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10989
11798
|
}
|
|
10990
11799
|
}
|
|
10991
11800
|
};
|
|
10992
|
-
this.
|
|
11801
|
+
this.fetchRCMResourceDetails = async (listEvent, mmddyyyy) => {
|
|
10993
11802
|
let entityId = listEvent.entityid;
|
|
10994
11803
|
let locationId = listEvent.locationid;
|
|
10995
|
-
let url = "https://" + this.
|
|
10996
|
-
console.log('fetch
|
|
11804
|
+
let url = "https://" + this.apiIdRCMResources + "/getallobjectdetails";
|
|
11805
|
+
console.log('fetch rcm resource details url', url);
|
|
10997
11806
|
let urlBody = { projectid: this.projectId, objectid: listEvent.id, entityid: entityId, locationid: locationId, userprofileid: this.userProfileId, role: this.myRole, year: this.calendarStartYYYY, mmddyyyy: mmddyyyy };
|
|
10998
|
-
console.log('fetch
|
|
11807
|
+
console.log('fetch rcm resource details urlbody', urlBody);
|
|
10999
11808
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
11000
11809
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
11001
11810
|
this._SfLoader.innerHTML = '';
|
|
11002
11811
|
if (xhr.status == 200) {
|
|
11003
11812
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
11004
11813
|
console.log('jsonRespose agreement details', jsonRespose);
|
|
11005
|
-
this.
|
|
11814
|
+
this.renderRCMResourceDetails(jsonRespose.object, mmddyyyy);
|
|
11006
11815
|
}
|
|
11007
11816
|
else {
|
|
11008
11817
|
if (xhr.status == 401) {
|
|
@@ -11015,13 +11824,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11015
11824
|
}
|
|
11016
11825
|
}
|
|
11017
11826
|
};
|
|
11018
|
-
this.
|
|
11827
|
+
this.renewRCMResource = async (listEvent, reportformatvalues) => {
|
|
11019
11828
|
var _a;
|
|
11020
|
-
let url = "https://" + this.
|
|
11829
|
+
let url = "https://" + this.apiIdRCMResources + "/reopen";
|
|
11021
11830
|
console.log('renewing', reportformatvalues);
|
|
11022
11831
|
//console.log('fetch calendar url', url);
|
|
11023
11832
|
let urlBody = { projectid: this.projectId, objectid: listEvent.id, newvalues: reportformatvalues == "" ? null : JSON.parse(reportformatvalues), published: true, terminated: ((_a = JSON.parse(reportformatvalues).terminated) !== null && _a !== void 0 ? _a : false) };
|
|
11024
|
-
|
|
11833
|
+
console.log('reopen body', url, urlBody);
|
|
11025
11834
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
11026
11835
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
11027
11836
|
this._SfLoader.innerHTML = '';
|
|
@@ -11040,7 +11849,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11040
11849
|
}
|
|
11041
11850
|
}
|
|
11042
11851
|
};
|
|
11043
|
-
this.
|
|
11852
|
+
this.renderRCMResourceDetails = async (listEvent, mmddyyyy) => {
|
|
11044
11853
|
var _a, _b, _c, _f, _g, _h;
|
|
11045
11854
|
// await this.fetchAgreementDetails(listEvent, mmddyyyy);
|
|
11046
11855
|
// return;
|
|
@@ -11057,7 +11866,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11057
11866
|
html += `
|
|
11058
11867
|
<div part="compliance-detail-title" class="d-flex justify-between">
|
|
11059
11868
|
<button part="button-icon" class="material-icons invisible">close</button>
|
|
11060
|
-
<h3 part="results-title" class="m-0">
|
|
11869
|
+
<h3 part="results-title" class="m-0">RCM Resource Details</h3>
|
|
11061
11870
|
<button id="button-detail-close" part="button-icon" class="material-icons">close</button>
|
|
11062
11871
|
</div>
|
|
11063
11872
|
`;
|
|
@@ -11065,7 +11874,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11065
11874
|
<div class="box-large" id="shimmer-container-agreements" part="shimmer-container-agreements">
|
|
11066
11875
|
</div>
|
|
11067
11876
|
`;
|
|
11068
|
-
html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="
|
|
11877
|
+
html += '<sf-i-reporting id="detail-reporting" class="hide" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="RCM Resource Details" apiiduploader="1peg5170d3" apiid="' + this.apiIdRCMResources + '" mode="admin" flow="details" projectid="' + this.projectId + '" projectname="' + this.projectName + '" editdisable="true" formviewclass="flex-wrap"></sf-i-reporting>';
|
|
11069
11878
|
html += '<div part="reporting-view-container">';
|
|
11070
11879
|
html += this.renderReporting(listEvent, mmddyyyy);
|
|
11071
11880
|
html += "</div>";
|
|
@@ -11133,7 +11942,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11133
11942
|
reportingSchemaJson = listEvent.customreporting;
|
|
11134
11943
|
}
|
|
11135
11944
|
if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
|
|
11136
|
-
let reportingHtml = '<sf-i-reporting id="reporting-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" mode="edit" flow="reporting" name="
|
|
11945
|
+
let reportingHtml = '<sf-i-reporting id="reporting-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" mode="edit" flow="reporting" name="RCM Resource Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
|
|
11137
11946
|
let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
|
|
11138
11947
|
if (reportFormatContainer != null) {
|
|
11139
11948
|
reportFormatContainer.innerHTML = reportingHtml;
|
|
@@ -11241,7 +12050,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11241
12050
|
console.log('mmddyyyy', mmddyyyy);
|
|
11242
12051
|
if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, (_b = listEvent.module) !== null && _b !== void 0 ? _b : "events")) {
|
|
11243
12052
|
if (approved) {
|
|
11244
|
-
await this.
|
|
12053
|
+
await this.renewRCMResource(listEvent, reportformatvalues);
|
|
11245
12054
|
}
|
|
11246
12055
|
else {
|
|
11247
12056
|
console.log('renew reporting', reportformatvalues);
|
|
@@ -11567,7 +12376,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11567
12376
|
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
11568
12377
|
}
|
|
11569
12378
|
}
|
|
11570
|
-
await this.
|
|
12379
|
+
await this.renewRCMResource(listEvent, reportformatvalues);
|
|
11571
12380
|
console.log('upload report auto approve single');
|
|
11572
12381
|
}
|
|
11573
12382
|
if (this.recentlyReported[mmdd] == null) {
|
|
@@ -12156,6 +12965,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12156
12965
|
// for(let attachmentUploader of attachmentUploaders){
|
|
12157
12966
|
// attachmentUploader.loadMode();
|
|
12158
12967
|
// }
|
|
12968
|
+
let ddmmyyyy = mmddyyyy.split('/')[1] + '/' + mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[2];
|
|
12969
|
+
let emailcontent = `<table border="0" cellspacing="0" style="color:#666666;border-radius:5px;border:solid 1px #efefef;width:100%; margin-top:20px"><tbody><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Compliance ID</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.id}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Country</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.countryname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Entity</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.entityname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Location</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.locationname}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%;font-weight:bold">Statute</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#fbfbfb;font-size:110%">${event.statute}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Subcategory</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${event.subcategory}</td></tr><tr><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%;font-weight:bold">Due Date</td><td style="padding:10px;padding-top:10px;padding-bottom:10px;vertical-align:top;background-color:#f5f5f5;font-size:110%">${ddmmyyyy}</td></tr></tbody></table>`;
|
|
12970
|
+
this._SfUploader[0].querySelector('#uploader').emailcontent = emailcontent;
|
|
12159
12971
|
(_b = this._SfDetailContainer.querySelector('.button-delete')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', async () => {
|
|
12160
12972
|
await this.fetchDeleteReview(event["id"], mmddyyyy, entityId, locationId);
|
|
12161
12973
|
this.setSuccess('Deleted successfully!');
|
|
@@ -16425,6 +17237,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16425
17237
|
else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
16426
17238
|
await this.fetchAndRenderLicenses(this.sdate, this.edate, "", "no");
|
|
16427
17239
|
}
|
|
17240
|
+
else if (this.selectedFeatures.indexOf('rcmresources') >= 0) {
|
|
17241
|
+
await this.fetchAndRenderRCMResources(this.sdate, this.edate, "", "no");
|
|
17242
|
+
}
|
|
16428
17243
|
// await this.fetchAndYearlyRenderUserCalendar_2(this.sdate, this.edate, "", "no");
|
|
16429
17244
|
}
|
|
16430
17245
|
const radioCsv = container.querySelector('#radio-csv');
|
|
@@ -20619,6 +21434,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20619
21434
|
else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
20620
21435
|
this.fetchAndRenderLicenses(startDate, endDate, searchString, list, month, year);
|
|
20621
21436
|
}
|
|
21437
|
+
else if (this.selectedFeatures.indexOf('rcmresources') >= 0) {
|
|
21438
|
+
this.fetchAndRenderRCMResources(startDate, endDate, searchString, list, month, year);
|
|
21439
|
+
}
|
|
20622
21440
|
};
|
|
20623
21441
|
this.fetchAndYearlyRenderUserCalendar_2 = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00", year = this.calendarStartYYYY) => {
|
|
20624
21442
|
let path = "", view = "";
|
|
@@ -20933,6 +21751,70 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20933
21751
|
}
|
|
20934
21752
|
}
|
|
20935
21753
|
};
|
|
21754
|
+
this.fetchAndRenderRCMResources = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00", year = this.calendarStartYYYY) => {
|
|
21755
|
+
let path = "", view = "";
|
|
21756
|
+
this.sdate = startDate;
|
|
21757
|
+
this.edate = endDate;
|
|
21758
|
+
if (this.tagId != null && this.tagId != "") {
|
|
21759
|
+
view = "tag";
|
|
21760
|
+
}
|
|
21761
|
+
else if (this.countryId != null && this.countryId != "") {
|
|
21762
|
+
view = "country";
|
|
21763
|
+
}
|
|
21764
|
+
else if (this.locationId != null && this.locationId != "") {
|
|
21765
|
+
view = "location";
|
|
21766
|
+
}
|
|
21767
|
+
else {
|
|
21768
|
+
view = "entity";
|
|
21769
|
+
}
|
|
21770
|
+
path = "getallcountryobjects";
|
|
21771
|
+
let sDate = "";
|
|
21772
|
+
let eDate = "";
|
|
21773
|
+
//console.log('currenttab', this.getCurrentTab());
|
|
21774
|
+
if (this.getCurrentTab() == this.TAB_YEAR) {
|
|
21775
|
+
sDate = "03/31/" + this.calendarStartYYYY;
|
|
21776
|
+
eDate = "04/01/" + (parseInt(this.calendarStartYYYY) + 1);
|
|
21777
|
+
}
|
|
21778
|
+
else {
|
|
21779
|
+
sDate = startDate;
|
|
21780
|
+
eDate = endDate;
|
|
21781
|
+
}
|
|
21782
|
+
let url = "https://" + this.apiIdRCMResources + "/" + path;
|
|
21783
|
+
//console.log('fetch calendar url', url);
|
|
21784
|
+
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": view, "year": year, "list": list, "month": month };
|
|
21785
|
+
if (searchString.length > 0) {
|
|
21786
|
+
urlBody["searchstring"] = searchString;
|
|
21787
|
+
}
|
|
21788
|
+
//console.log('urlbody', urlBody);
|
|
21789
|
+
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
21790
|
+
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
21791
|
+
this._SfLoader.innerHTML = '';
|
|
21792
|
+
if (xhr.status == 200) {
|
|
21793
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
21794
|
+
console.log('jsonRespose', jsonRespose);
|
|
21795
|
+
let rcmresources = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
21796
|
+
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
21797
|
+
this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
|
|
21798
|
+
this.events = rcmresources;
|
|
21799
|
+
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
21800
|
+
console.log('rcmresources', rcmresources);
|
|
21801
|
+
}
|
|
21802
|
+
else {
|
|
21803
|
+
if (xhr.status == 401) {
|
|
21804
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
21805
|
+
this.dispatchEvent(changeEvent);
|
|
21806
|
+
}
|
|
21807
|
+
if (xhr.status === 404) {
|
|
21808
|
+
this.showChosenProject();
|
|
21809
|
+
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
21810
|
+
this.renderChosenProject();
|
|
21811
|
+
}
|
|
21812
|
+
else {
|
|
21813
|
+
const jsonRespose = JSON.parse(xhr.responseText);
|
|
21814
|
+
this.setError(jsonRespose.error);
|
|
21815
|
+
}
|
|
21816
|
+
}
|
|
21817
|
+
};
|
|
20936
21818
|
this.fetchStatistics = async (startDate = "", endDate = "", filtercriteria, filterid, subfiltercriteria, subfilterid) => {
|
|
20937
21819
|
var _a;
|
|
20938
21820
|
let path = "";
|
|
@@ -20963,6 +21845,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20963
21845
|
else if (this.selectedFeatures.indexOf('licenses') >= 0) {
|
|
20964
21846
|
url = "https://" + this.apiIdLicenses + "/" + path;
|
|
20965
21847
|
}
|
|
21848
|
+
else if (this.selectedFeatures.indexOf('rcmresource') >= 0) {
|
|
21849
|
+
url = "https://" + this.apiIdRCMResources + "/" + path;
|
|
21850
|
+
}
|
|
20966
21851
|
//console.log('fetch calendar url', url);
|
|
20967
21852
|
let urlBody = { "projectid": this.projectId, "userid": this.userProfileId, "role": this.myRole, "sdate": sDate, "edate": eDate, "filtercriteria": filtercriteria, "subfiltercriteria": subfiltercriteria, "subfilterid": subfilterid };
|
|
20968
21853
|
if (filtercriteria == 'function') {
|
|
@@ -24109,6 +24994,9 @@ __decorate([
|
|
|
24109
24994
|
__decorate([
|
|
24110
24995
|
property()
|
|
24111
24996
|
], SfIEvents.prototype, "apiIdLicenses", void 0);
|
|
24997
|
+
__decorate([
|
|
24998
|
+
property()
|
|
24999
|
+
], SfIEvents.prototype, "apiIdRCMResources", void 0);
|
|
24112
25000
|
__decorate([
|
|
24113
25001
|
property()
|
|
24114
25002
|
], SfIEvents.prototype, "apiMethodList", void 0);
|