sf-i-events 1.0.816 → 1.0.818
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 +5 -5
- package/package.json +1 -1
- package/sf-i-events.d.ts +1 -1
- package/sf-i-events.js +263 -351
- package/src/sf-i-events.ts +239 -293
package/sf-i-events.js
CHANGED
|
@@ -3680,7 +3680,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3680
3680
|
else {
|
|
3681
3681
|
let flagBulk = false;
|
|
3682
3682
|
if (this.selectedItemIds.length == 0) {
|
|
3683
|
-
await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage);
|
|
3683
|
+
await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, event.makercheckers);
|
|
3684
3684
|
console.log('this.events', this.events);
|
|
3685
3685
|
if (this.mode != "next") {
|
|
3686
3686
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
@@ -3691,7 +3691,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3691
3691
|
}
|
|
3692
3692
|
}
|
|
3693
3693
|
if (event.makercheckers.length > 0) {
|
|
3694
|
-
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
3694
|
+
// await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
3695
3695
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
3696
3696
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
3697
3697
|
this.events[mmdd][p].approved = true;
|
|
@@ -3721,52 +3721,52 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3721
3721
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
3722
3722
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
3723
3723
|
// await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
|
|
3724
|
-
if
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
}
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
}
|
|
3724
|
+
// if(parseInt(makercheckersL) > 0) {
|
|
3725
|
+
// bulkBodyReview.push({
|
|
3726
|
+
// "mmddyyyy": mmddyyyy,
|
|
3727
|
+
// "projectid": this.projectId,
|
|
3728
|
+
// "type": "report",
|
|
3729
|
+
// "eventid": eventId,
|
|
3730
|
+
// "comments": reportercomments,
|
|
3731
|
+
// "dateofcompletion": reporterdoc,
|
|
3732
|
+
// "percentage": percentage,
|
|
3733
|
+
// "entityid": entityId,
|
|
3734
|
+
// "locationid": locationId,
|
|
3735
|
+
// "event": null,
|
|
3736
|
+
// "docs": JSON.stringify(docs),
|
|
3737
|
+
// "approved": true,
|
|
3738
|
+
// "username": this.userName,
|
|
3739
|
+
// "reportformatvalues": reportformatvalues,
|
|
3740
|
+
// "reportformatschema": reportformatschema,
|
|
3741
|
+
// "userid": this.userProfileId,
|
|
3742
|
+
// "userrole": this.myRole,
|
|
3743
|
+
// "year": this.calendarStartYYYY,
|
|
3744
|
+
// "module": event.isnotice != null ? "notices" : "events"
|
|
3745
|
+
// } )
|
|
3746
|
+
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
3747
|
+
// }else{
|
|
3748
|
+
bulkBody.push({
|
|
3749
|
+
"mmddyyyy": mmddyyyy,
|
|
3750
|
+
"projectid": this.projectId,
|
|
3751
|
+
"type": "report",
|
|
3752
|
+
"eventid": eventId,
|
|
3753
|
+
"comments": reportercomments,
|
|
3754
|
+
"dateofcompletion": reporterdoc,
|
|
3755
|
+
"percentage": percentage,
|
|
3756
|
+
"entityid": entityId,
|
|
3757
|
+
"locationid": locationId,
|
|
3758
|
+
"event": null,
|
|
3759
|
+
"docs": JSON.stringify(docs),
|
|
3760
|
+
"username": this.userName,
|
|
3761
|
+
"reportformatvalues": reportformatvalues,
|
|
3762
|
+
"reportformatschema": reportformatschema,
|
|
3763
|
+
"userid": this.userProfileId,
|
|
3764
|
+
"userrole": this.myRole,
|
|
3765
|
+
"year": this.calendarStartYYYY,
|
|
3766
|
+
"module": event.isnotice != null ? "notices" : "events",
|
|
3767
|
+
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
3768
|
+
});
|
|
3769
|
+
// }
|
|
3770
3770
|
// this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
|
|
3771
3771
|
// await this.sleep(2000);
|
|
3772
3772
|
// this.clearMessages();
|
|
@@ -3776,9 +3776,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3776
3776
|
if (bulkBody.length > 0) {
|
|
3777
3777
|
await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
|
|
3778
3778
|
}
|
|
3779
|
-
if
|
|
3780
|
-
|
|
3781
|
-
}
|
|
3779
|
+
// if(bulkBodyReview.length > 0){
|
|
3780
|
+
// await this.uploadReportsReviewsBulk(bulkBodyReview)
|
|
3781
|
+
// }
|
|
3782
3782
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
3783
3783
|
const selectedId = this.selectedItemIds[k];
|
|
3784
3784
|
//console.log('selectedid', selectedId);
|
|
@@ -9375,7 +9375,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9375
9375
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
9376
9376
|
let flagBulk = false;
|
|
9377
9377
|
if (this.selectedItemIds.length === 0) {
|
|
9378
|
-
await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage);
|
|
9378
|
+
await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage, makercheckers);
|
|
9379
9379
|
console.log('this.events', this.events);
|
|
9380
9380
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
9381
9381
|
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
@@ -9386,7 +9386,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9386
9386
|
}
|
|
9387
9387
|
console.log('uploadReport single');
|
|
9388
9388
|
if (makercheckers.length > 0) {
|
|
9389
|
-
await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], "Auto approved", true, "notices");
|
|
9389
|
+
// await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], "Auto approved", true, "notices");
|
|
9390
9390
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
9391
9391
|
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
9392
9392
|
this.events[mmdd][p].approved = true;
|
|
@@ -9415,52 +9415,52 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9415
9415
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
9416
9416
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
9417
9417
|
// await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
|
|
9418
|
-
if
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
}
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
}
|
|
9418
|
+
// if(parseInt(makercheckersL) > 0) {
|
|
9419
|
+
// bulkBodyReview.push({
|
|
9420
|
+
// "mmddyyyy": mmddyyyy,
|
|
9421
|
+
// "projectid": this.projectId,
|
|
9422
|
+
// "type": "report",
|
|
9423
|
+
// "eventid": eventId,
|
|
9424
|
+
// "comments": reportercomments,
|
|
9425
|
+
// "dateofcompletion": reporterdoc,
|
|
9426
|
+
// "percentage": percentage,
|
|
9427
|
+
// "entityid": entityId,
|
|
9428
|
+
// "locationid": locationId,
|
|
9429
|
+
// "event": null,
|
|
9430
|
+
// "docs": JSON.stringify(docs),
|
|
9431
|
+
// "approved": true,
|
|
9432
|
+
// "username": this.userName,
|
|
9433
|
+
// "reportformatvalues": reportformatvalues,
|
|
9434
|
+
// "reportformatschema": reportformatschema,
|
|
9435
|
+
// "userid": this.userProfileId,
|
|
9436
|
+
// "userrole": this.myRole,
|
|
9437
|
+
// "year": this.calendarStartYYYY,
|
|
9438
|
+
// "module": listEvent.isnotice != null ? "notices" : "events"
|
|
9439
|
+
// } )
|
|
9440
|
+
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
9441
|
+
// }else{
|
|
9442
|
+
bulkBody.push({
|
|
9443
|
+
"mmddyyyy": mmddyyyy,
|
|
9444
|
+
"projectid": this.projectId,
|
|
9445
|
+
"type": "report",
|
|
9446
|
+
"eventid": eventId,
|
|
9447
|
+
"comments": reportercomments,
|
|
9448
|
+
"dateofcompletion": reporterdoc,
|
|
9449
|
+
"percentage": percentage,
|
|
9450
|
+
"entityid": entityId,
|
|
9451
|
+
"locationid": locationId,
|
|
9452
|
+
"event": null,
|
|
9453
|
+
"docs": JSON.stringify(docs),
|
|
9454
|
+
"username": this.userName,
|
|
9455
|
+
"reportformatvalues": reportformatvalues,
|
|
9456
|
+
"reportformatschema": reportformatschema,
|
|
9457
|
+
"userid": this.userProfileId,
|
|
9458
|
+
"userrole": this.myRole,
|
|
9459
|
+
"year": this.calendarStartYYYY,
|
|
9460
|
+
"module": listEvent.isnotice != null ? "notices" : "events",
|
|
9461
|
+
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
9462
|
+
});
|
|
9463
|
+
// }
|
|
9464
9464
|
// this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
|
|
9465
9465
|
// await this.sleep(2000);
|
|
9466
9466
|
// this.clearMessages();
|
|
@@ -9470,9 +9470,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9470
9470
|
if (bulkBody.length > 0) {
|
|
9471
9471
|
await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
|
|
9472
9472
|
}
|
|
9473
|
-
if
|
|
9474
|
-
|
|
9475
|
-
}
|
|
9473
|
+
// if(bulkBodyReview.length > 0){
|
|
9474
|
+
// await this.uploadReportsReviewsBulk(bulkBodyReview)
|
|
9475
|
+
// }
|
|
9476
9476
|
await this.fetchBulkReportingData();
|
|
9477
9477
|
console.log('uploadReport bulk');
|
|
9478
9478
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
@@ -9645,7 +9645,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9645
9645
|
}
|
|
9646
9646
|
};
|
|
9647
9647
|
this.renderEventDetail = (event, mmddyyyy, currentColumnButton, eventsContainer) => {
|
|
9648
|
-
var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
9648
|
+
var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
9649
9649
|
console.log('event details', event, mmddyyyy, currentColumnButton == null ? "null currentColumnButton" : currentColumnButton.id);
|
|
9650
9650
|
let comments, docs, approved, /*dateOfCompletion,*/ makercheckers, docsOptional, documentType;
|
|
9651
9651
|
let entityId = "";
|
|
@@ -9869,196 +9869,29 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9869
9869
|
}
|
|
9870
9870
|
html += '</div>';
|
|
9871
9871
|
html += '</div>';
|
|
9872
|
+
html += '<div class="accordian-section section-feedback pl-20 pr-20" part="accordian-section">';
|
|
9873
|
+
html += '<div class="d-flex justify-between accordian-head head-feedback" part="accordian-head">';
|
|
9874
|
+
html += '<h3>Feedback</h3>';
|
|
9875
|
+
html += '<h3 class="head-indicator-feedback">+</h3>';
|
|
9876
|
+
html += '</div>';
|
|
9877
|
+
html += '<div class="d-flex flex-wrap accordian-body body-feedback hide" part="accordian-body">';
|
|
9878
|
+
html += '<div class="d-flex justify-end w-100 flex-wrap">';
|
|
9879
|
+
html += '<div class="d-flex w-100 mb-10">';
|
|
9880
|
+
html += '<div part="feedback-message">Do you wish to send us feedback about this compliance? Any doubts? Need guidance or more clarity? Drop us a feedback and we will revert soon.</div>';
|
|
9881
|
+
html += '</div>';
|
|
9882
|
+
html += '<div class="d-flex justify-end w-100 mb-10">';
|
|
9883
|
+
html += '<textarea part="input" id="feedback-message" class="w-100 mt-10 mb-10 hide" placeholder="Type your feedback message here..."></textarea>';
|
|
9884
|
+
html += '</div>';
|
|
9885
|
+
html += '<div class="d-flex w-100">';
|
|
9886
|
+
html += ('<button part="button-lg-short" id="button-feedback" class="d-flex justify-center align-center"><span class="material-symbols-outlined">comment</span><span> Send Feedback</span></button>');
|
|
9887
|
+
html += ('<button part="button-lg-short-secondary" id="button-feedback-cancel" class="hide d-flex justify-center align-center mr-10"><span class="material-symbols-outlined">close</span><span> Cancel</span></button>');
|
|
9888
|
+
html += ('<button part="button-lg-short" id="button-feedback-confirm" class="hide d-flex justify-center align-center"><span class="material-symbols-outlined">commentcheck</span><span> Submit Feedback</span></button>');
|
|
9889
|
+
html += '</div>';
|
|
9890
|
+
html += '</div>';
|
|
9891
|
+
html += '</div>';
|
|
9892
|
+
html += '</div>';
|
|
9872
9893
|
html += '</div>';
|
|
9873
|
-
// html += '<div class="d-flex m-20 flex-wrap">';
|
|
9874
|
-
// for(var k = 0; k < Object.keys(event).length; k++) {
|
|
9875
|
-
// if(!this.getEventPreviewFields().includes(Object.keys(event)[k])) {
|
|
9876
|
-
// if(!this.getEventHideFields().includes(Object.keys(event)[k])) {
|
|
9877
|
-
// html += '<div class="m-20">';
|
|
9878
|
-
// html += '<div part="detail-head"><strong>'+Object.keys(event)[k]+'</strong></div>'
|
|
9879
|
-
// //console.log(Object.keys(event)[k], event[Object.keys(event)[k]]);
|
|
9880
|
-
// if((event[Object.keys(event)[k]] + "").indexOf("[") >= 0) {
|
|
9881
|
-
// html += this.getEventTexts(Object.keys(event)[k], JSON.parse(event[Object.keys(event)[k]]), event);
|
|
9882
|
-
// } else {
|
|
9883
|
-
// html += '<sf-i-elastic-text text="'+(event[Object.keys(event)[k]] + "").replace(/"/g, "")+'" minLength="20"></sf-i-elastic-text>';
|
|
9884
|
-
// }
|
|
9885
|
-
// html += '</div>';
|
|
9886
|
-
// }
|
|
9887
|
-
// }
|
|
9888
|
-
// }
|
|
9889
9894
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
9890
|
-
//console.log('docs received', event['documents']);
|
|
9891
|
-
//console.log('docs received', comments);
|
|
9892
|
-
//console.log('docs received', approved);
|
|
9893
|
-
/* if(this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
9894
|
-
|
|
9895
|
-
if(comments.length > 0) {
|
|
9896
|
-
|
|
9897
|
-
html += '<div class="d-flex justify-between m-20">';
|
|
9898
|
-
html += '<h3 part="results-title" class="m-0"><br />Approve Compliance</h3>';
|
|
9899
|
-
html += '</div>';
|
|
9900
|
-
html += '<div class="m-20" part="report-container">';
|
|
9901
|
-
html += '<div class="d-flex justify-between align-center">'
|
|
9902
|
-
html += '<button class="invisible" part="button">Save</button>'
|
|
9903
|
-
html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>'
|
|
9904
|
-
html += '</div>'
|
|
9905
|
-
|
|
9906
|
-
if(this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0) {
|
|
9907
|
-
html += '<div class="m-20">';
|
|
9908
|
-
html += '<label part="input-label">Supporting Documents</label>';
|
|
9909
|
-
html += '<slot name="uploader"></slot>';
|
|
9910
|
-
html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>'
|
|
9911
|
-
html += '</div>';
|
|
9912
|
-
}
|
|
9913
|
-
|
|
9914
|
-
html += '<div class="d-flex m-20 flex-col">';
|
|
9915
|
-
html += '<label part="input-label">Approver Comments*</label>';
|
|
9916
|
-
html += '<input id="input-approver-comments" type="text" part="input" value=""/><br />';
|
|
9917
|
-
html += '<label part="input-label">Date of Completion*</label>';
|
|
9918
|
-
html += '<input id="input-approver-doc" part="input" type="date" value="'+(dateOfCompletion == "" ? dateOfCompletion : new Date(parseInt(dateOfCompletion)).toISOString().substring(0,10))+'" disabled/><br />';
|
|
9919
|
-
html += '<div>'
|
|
9920
|
-
html += '<label part="input-label">Approve?*</label><br />';
|
|
9921
|
-
html += '<div class="mt-5">'
|
|
9922
|
-
html += '<input id="input-approve-yes" name="radio-approved" type="radio"/> Yes';
|
|
9923
|
-
html += '<input id="input-approve-no" name="radio-approved" type="radio" checked/> No';
|
|
9924
|
-
html += '</div>'
|
|
9925
|
-
html += '</div>';
|
|
9926
|
-
html += '</div>';
|
|
9927
|
-
html += '</div>';
|
|
9928
|
-
|
|
9929
|
-
}
|
|
9930
|
-
|
|
9931
|
-
}
|
|
9932
|
-
|
|
9933
|
-
if(this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
9934
|
-
|
|
9935
|
-
html += '<div class="d-flex justify-between m-20">';
|
|
9936
|
-
html += '<h3 part="results-title" class="m-0"><br />Report Compliance</h3>';
|
|
9937
|
-
html += '</div>';
|
|
9938
|
-
|
|
9939
|
-
var showSubmissionSection = true;
|
|
9940
|
-
var showGoogleFormLink = false;
|
|
9941
|
-
|
|
9942
|
-
if(event['form'].length > 5) {
|
|
9943
|
-
|
|
9944
|
-
if(event['form'].indexOf('docs.google.com/forms') >= 0) {
|
|
9945
|
-
showSubmissionSection = false;
|
|
9946
|
-
if(!approved) {
|
|
9947
|
-
showGoogleFormLink = true;
|
|
9948
|
-
|
|
9949
|
-
}
|
|
9950
|
-
}
|
|
9951
|
-
|
|
9952
|
-
}
|
|
9953
|
-
|
|
9954
|
-
if(showGoogleFormLink) {
|
|
9955
|
-
html += ('<div part="detail-summary-form" class="mt-20 pl-20 pr-20"><button part="button" onclick="window.open(\'' + event['form'] + (this.projectId + '_' + entityId + '_' + locationId + '_' + event['id'] + '_' + mmddyyyy) + '\',\'_blank\')">Submit Via Link</button></div>');
|
|
9956
|
-
}
|
|
9957
|
-
|
|
9958
|
-
if(showSubmissionSection) {
|
|
9959
|
-
|
|
9960
|
-
html += '<div class="m-20" part="report-container">';
|
|
9961
|
-
html += '<div class="d-flex justify-between align-center">'
|
|
9962
|
-
html += '<button class="invisible" part="button">Save</button>'
|
|
9963
|
-
html += '<button id="button-uploader-submit-report" class="button-submit" part="button">Save</button>'
|
|
9964
|
-
html += '</div>'
|
|
9965
|
-
|
|
9966
|
-
html += '<div class="d-flex m-20 flex-col">';
|
|
9967
|
-
html += '<label part="input-label">Reporter Comments*</label>';
|
|
9968
|
-
html += '<input id="input-reporter-comments" type="text" part="input" value=""/><br />';
|
|
9969
|
-
html += '<label part="input-label">Date of Completion*</label>';
|
|
9970
|
-
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 />';
|
|
9971
|
-
// if(docsOptional.length === 0) {
|
|
9972
|
-
html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
|
|
9973
|
-
|
|
9974
|
-
if(event['uploadguidance'] != null && event['uploadguidance'].length > 0) {
|
|
9975
|
-
html += ('<div part="uploader-analysis-message">'+event['uploadguidance']+'</div>');
|
|
9976
|
-
}
|
|
9977
|
-
|
|
9978
|
-
html += '<slot name="uploader"></slot>';
|
|
9979
|
-
html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>'
|
|
9980
|
-
// }
|
|
9981
|
-
html += '<br />';
|
|
9982
|
-
if(event['reportformat'] != null && event['reportformat'].length > 0){
|
|
9983
|
-
html += '<div id="report-format-container"><div class="box"></div></div>'
|
|
9984
|
-
}
|
|
9985
|
-
html += '<br />';
|
|
9986
|
-
if(makercheckers.length > 0) {
|
|
9987
|
-
html += '<div part="td-head" class="td-head d-flex justify-center align-center"><span class="material-symbols-outlined">check_small</span><div> Auto-approve Enabled</div></div>';
|
|
9988
|
-
|
|
9989
|
-
if(completeness == "pending-approval" && this.enableDeleteLatestReport) {
|
|
9990
|
-
html += '<div part="td-head" class="td-head d-flex justify-center align-center"><button class="mt-5" part="button" id="button-auto-approve">Auto Approve</button></div>';
|
|
9991
|
-
}
|
|
9992
|
-
}
|
|
9993
|
-
html += '</div>';
|
|
9994
|
-
html += '</div>';
|
|
9995
|
-
|
|
9996
|
-
}
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
}
|
|
10002
|
-
|
|
10003
|
-
if(this.myRole == this.TAB_AUDITOR) {
|
|
10004
|
-
|
|
10005
|
-
html += '<div class="d-flex justify-between m-20">';
|
|
10006
|
-
html += '<h3 part="results-title" class="m-0"><br />Audit Compliance</h3>';
|
|
10007
|
-
html += '</div>';
|
|
10008
|
-
html += '<div class="m-20" part="report-container">';
|
|
10009
|
-
html += '<div class="d-flex justify-between align-center">'
|
|
10010
|
-
html += '<button class="invisible" part="button">Save</button>'
|
|
10011
|
-
html += '<button id="button-uploader-submit-audit" class="button-submit" part="button">Save</button>'
|
|
10012
|
-
html += '</div>'
|
|
10013
|
-
|
|
10014
|
-
html += '<div class="d-flex m-20 flex-col">';
|
|
10015
|
-
html += '<label part="input-label">Auditor Comments</label>';
|
|
10016
|
-
html += '<input id="input-auditor-comments" type="text" part="input" value=""/><br />';
|
|
10017
|
-
html += '<label part="input-label">Date of Completion</label>';
|
|
10018
|
-
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 />';
|
|
10019
|
-
html += '<div>'
|
|
10020
|
-
html += '<label part="input-label">Approve?</label><br />';
|
|
10021
|
-
html += '<div class="mt-5">'
|
|
10022
|
-
html += '<input id="input-approve-yes" name="radio-approved" type="radio" checked/> Yes';
|
|
10023
|
-
html += '<input id="input-approve-no" name="radio-approved" type="radio"/> No';
|
|
10024
|
-
html += '</div>'
|
|
10025
|
-
html += '</div>';
|
|
10026
|
-
html += '<br />';
|
|
10027
|
-
if(docs.length > 0) {
|
|
10028
|
-
html += '<label part="input-label">Supporting Documents</label>';
|
|
10029
|
-
html += '<slot name="uploader"></slot>';
|
|
10030
|
-
html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>'
|
|
10031
|
-
}
|
|
10032
|
-
html += '</div>';
|
|
10033
|
-
html += '</div>';
|
|
10034
|
-
|
|
10035
|
-
}
|
|
10036
|
-
|
|
10037
|
-
if(this.myRole == this.TAB_VIEWER) {
|
|
10038
|
-
|
|
10039
|
-
html += '<div class="d-flex justify-between m-20">';
|
|
10040
|
-
html += '<h3 part="results-title" class="m-0"><br />View Compliance</h3>';
|
|
10041
|
-
html += '</div>';
|
|
10042
|
-
html += '<div class="m-20" part="report-container">';
|
|
10043
|
-
|
|
10044
|
-
html += '<div class="d-flex m-20 flex-col">';
|
|
10045
|
-
html += '<div>'
|
|
10046
|
-
html += '<label part="input-label">Approve?</label><br />';
|
|
10047
|
-
html += '<div class="mt-5">'
|
|
10048
|
-
html += '<input id="input-approve-yes" name="radio-approved" type="radio" checked/> Yes';
|
|
10049
|
-
html += '<input id="input-approve-no" name="radio-approved" type="radio"/> No';
|
|
10050
|
-
html += '</div>'
|
|
10051
|
-
html += '</div>';
|
|
10052
|
-
html += '<br />';
|
|
10053
|
-
if(docs.length === 0) {
|
|
10054
|
-
html += '<label part="input-label">Supporting Documents</label>';
|
|
10055
|
-
html += '<slot name="uploader"></slot>';
|
|
10056
|
-
html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>'
|
|
10057
|
-
}
|
|
10058
|
-
html += '</div>';
|
|
10059
|
-
html += '</div>';
|
|
10060
|
-
|
|
10061
|
-
} */
|
|
10062
9895
|
html += '<div part="reporting-view-container">';
|
|
10063
9896
|
html += this.renderReporting(event, mmddyyyy);
|
|
10064
9897
|
html += "</div>";
|
|
@@ -10243,8 +10076,86 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10243
10076
|
this._SfDetailContainer.querySelector('.head-indicator-grc').innerHTML = '-';
|
|
10244
10077
|
}
|
|
10245
10078
|
});
|
|
10079
|
+
(_l = this._SfDetailContainer.querySelector('.head-feedback')) === null || _l === void 0 ? void 0 : _l.addEventListener('click', () => {
|
|
10080
|
+
if (this._SfDetailContainer.querySelector('.body-feedback').style.display == 'flex') {
|
|
10081
|
+
this._SfDetailContainer.querySelector('.body-feedback').style.display = 'none';
|
|
10082
|
+
this._SfDetailContainer.querySelector('.head-indicator-feedback').innerHTML = '+';
|
|
10083
|
+
}
|
|
10084
|
+
else {
|
|
10085
|
+
this._SfDetailContainer.querySelector('.body-feedback').style.display = 'flex';
|
|
10086
|
+
this._SfDetailContainer.querySelector('.head-indicator-feedback').innerHTML = '-';
|
|
10087
|
+
}
|
|
10088
|
+
});
|
|
10089
|
+
(_m = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _m === void 0 ? void 0 : _m.addEventListener('click', () => {
|
|
10090
|
+
this._SfDetailContainer.innerHTML = '';
|
|
10091
|
+
this._SfDetailContainer.style.display = 'none';
|
|
10092
|
+
});
|
|
10093
|
+
(_o = this._SfDetailContainer.querySelector('#button-feedback')) === null || _o === void 0 ? void 0 : _o.addEventListener('click', () => {
|
|
10094
|
+
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
10095
|
+
const buttonFeedback = this._SfDetailContainer.querySelector('#button-feedback');
|
|
10096
|
+
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
10097
|
+
const buttonConfirm = this._SfDetailContainer.querySelector('#button-feedback-confirm');
|
|
10098
|
+
console.log(buttonConfirm.classList);
|
|
10099
|
+
if (feedbackMessage.classList.contains('hide')) {
|
|
10100
|
+
feedbackMessage.classList.remove('hide');
|
|
10101
|
+
}
|
|
10102
|
+
if (buttonConfirm.classList.contains('hide')) {
|
|
10103
|
+
buttonConfirm.classList.remove('hide');
|
|
10104
|
+
}
|
|
10105
|
+
if (buttonCancel.classList.contains('hide')) {
|
|
10106
|
+
buttonCancel.classList.remove('hide');
|
|
10107
|
+
}
|
|
10108
|
+
if (!buttonFeedback.classList.contains('hide')) {
|
|
10109
|
+
buttonFeedback.classList.add('hide');
|
|
10110
|
+
}
|
|
10111
|
+
// const body = {
|
|
10112
|
+
// projectid: this.projectId,
|
|
10113
|
+
// complianceid: compliance.id
|
|
10114
|
+
// }
|
|
10115
|
+
// console.log(body);
|
|
10116
|
+
});
|
|
10117
|
+
(_p = this._SfDetailContainer.querySelector('#button-feedback-cancel')) === null || _p === void 0 ? void 0 : _p.addEventListener('click', () => {
|
|
10118
|
+
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
10119
|
+
const buttonFeedback = this._SfDetailContainer.querySelector('#button-feedback');
|
|
10120
|
+
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
10121
|
+
const buttonConfirm = this._SfDetailContainer.querySelector('#button-feedback-confirm');
|
|
10122
|
+
console.log(buttonConfirm.classList);
|
|
10123
|
+
if (!feedbackMessage.classList.contains('hide')) {
|
|
10124
|
+
feedbackMessage.classList.add('hide');
|
|
10125
|
+
}
|
|
10126
|
+
if (!buttonConfirm.classList.contains('hide')) {
|
|
10127
|
+
buttonConfirm.classList.add('hide');
|
|
10128
|
+
}
|
|
10129
|
+
if (!buttonCancel.classList.contains('hide')) {
|
|
10130
|
+
buttonCancel.classList.add('hide');
|
|
10131
|
+
}
|
|
10132
|
+
if (buttonFeedback.classList.contains('hide')) {
|
|
10133
|
+
buttonFeedback.classList.remove('hide');
|
|
10134
|
+
}
|
|
10135
|
+
});
|
|
10136
|
+
(_q = this._SfDetailContainer.querySelector('#button-feedback-confirm')) === null || _q === void 0 ? void 0 : _q.addEventListener('click', async () => {
|
|
10137
|
+
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
10138
|
+
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
10139
|
+
const buttonClose = this._SfDetailContainer.querySelector('#button-detail-close');
|
|
10140
|
+
console.log('sending feedback', event);
|
|
10141
|
+
if (feedbackMessage.value.length === 0) {
|
|
10142
|
+
feedbackMessage.setAttribute('style', 'border:solid 2px ' + this.COLOR_REJECTED + ' !important');
|
|
10143
|
+
}
|
|
10144
|
+
else {
|
|
10145
|
+
feedbackMessage.setAttribute('style', 'border:');
|
|
10146
|
+
this.uploadTriggerMyEvent(event.id + ";" + event.shortid, feedbackMessage.value, event.countries.join(",").replace(/ *\([^)]*\) */g, ""), event.entities.join(',').replace(/ *\([^)]*\) */g, ""), event.locations.join(',').replace(/ *\([^)]*\) */g, ""), event.statute[0], event.subcategory[0]);
|
|
10147
|
+
buttonCancel.click();
|
|
10148
|
+
buttonClose.click();
|
|
10149
|
+
}
|
|
10150
|
+
});
|
|
10151
|
+
(_r = this._SfDetailContainer.querySelector('#feedback-message')) === null || _r === void 0 ? void 0 : _r.addEventListener('keyup', (e) => {
|
|
10152
|
+
if (e.code == "Enter") {
|
|
10153
|
+
const buttonConfirm = this._SfDetailContainer.querySelector('#button-feedback-confirm');
|
|
10154
|
+
buttonConfirm.click();
|
|
10155
|
+
}
|
|
10156
|
+
});
|
|
10246
10157
|
if (this.mode == "consumer" || this.mode == "next") {
|
|
10247
|
-
(
|
|
10158
|
+
(_s = this._SfDetailContainer.querySelector('#button-uploader-submit-approve')) === null || _s === void 0 ? void 0 : _s.addEventListener('click', async (ev) => {
|
|
10248
10159
|
let buttonClick = ev.target;
|
|
10249
10160
|
buttonClick.innerHTML = "Saving...";
|
|
10250
10161
|
const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
|
|
@@ -10351,7 +10262,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10351
10262
|
}
|
|
10352
10263
|
}
|
|
10353
10264
|
});
|
|
10354
|
-
(
|
|
10265
|
+
(_t = this._SfDetailContainer.querySelector('#button-uploader-submit-audit')) === null || _t === void 0 ? void 0 : _t.addEventListener('click', async (ev) => {
|
|
10355
10266
|
let buttonClick = ev.target;
|
|
10356
10267
|
buttonClick.innerHTML = "Saving...";
|
|
10357
10268
|
const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
|
|
@@ -10465,7 +10376,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10465
10376
|
else {
|
|
10466
10377
|
if (this._SfDetailContainer.querySelector('#button-uploader-submit-report') != null) {
|
|
10467
10378
|
this._SfDetailContainer.querySelector('#button-uploader-submit-report').style.visibility = 'visible';
|
|
10468
|
-
(
|
|
10379
|
+
(_u = this._SfDetailContainer.querySelector('#button-uploader-submit-report')) === null || _u === void 0 ? void 0 : _u.addEventListener('click', async (ev) => {
|
|
10469
10380
|
var _a, _b;
|
|
10470
10381
|
let buttonClick = ev.target;
|
|
10471
10382
|
buttonClick.innerHTML = "Saving...";
|
|
@@ -10535,7 +10446,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10535
10446
|
//console.log('makerscheckers', makercheckers, reportercomments);
|
|
10536
10447
|
// console.log('reportformatvalues', reportformatvalues)
|
|
10537
10448
|
// console.log('reportformatschema',reportformatschema)
|
|
10538
|
-
await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage);
|
|
10449
|
+
await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, makercheckers);
|
|
10539
10450
|
console.log('this.events', this.events);
|
|
10540
10451
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10541
10452
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
@@ -10545,12 +10456,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10545
10456
|
}
|
|
10546
10457
|
}
|
|
10547
10458
|
if (makercheckers.length > 0) {
|
|
10548
|
-
await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
10459
|
+
// await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
10549
10460
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10550
10461
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
10551
10462
|
this.events[mmdd][p].approved = true;
|
|
10552
10463
|
// this.events[mmdd][p].documents = docs
|
|
10553
|
-
this.events[mmdd][p].comments.push({ 'author': '
|
|
10464
|
+
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
|
|
10554
10465
|
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
10555
10466
|
}
|
|
10556
10467
|
}
|
|
@@ -10592,52 +10503,52 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10592
10503
|
// "module": event.isnotice != null ? "notices" : "events"
|
|
10593
10504
|
// })
|
|
10594
10505
|
// await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
|
|
10595
|
-
if
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
}
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
}
|
|
10506
|
+
// if(parseInt(makercheckersL) > 0) {
|
|
10507
|
+
// bulkBodyReview.push({
|
|
10508
|
+
// "mmddyyyy": mmddyyyy,
|
|
10509
|
+
// "projectid": this.projectId,
|
|
10510
|
+
// "type": "report",
|
|
10511
|
+
// "eventid": eventId,
|
|
10512
|
+
// "comments": reportercomments,
|
|
10513
|
+
// "dateofcompletion": reporterdoc,
|
|
10514
|
+
// "percentage": percentage,
|
|
10515
|
+
// "entityid": entityId,
|
|
10516
|
+
// "locationid": locationId,
|
|
10517
|
+
// "event": null,
|
|
10518
|
+
// "docs": JSON.stringify(docs),
|
|
10519
|
+
// "approved": true,
|
|
10520
|
+
// "username": this.userName,
|
|
10521
|
+
// "reportformatvalues": reportformatvalues,
|
|
10522
|
+
// "reportformatschema": reportformatschema,
|
|
10523
|
+
// "userid": this.userProfileId,
|
|
10524
|
+
// "userrole": this.myRole,
|
|
10525
|
+
// "year": this.calendarStartYYYY,
|
|
10526
|
+
// "module": event.isnotice != null ? "notices" : "events"
|
|
10527
|
+
// } )
|
|
10528
|
+
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
10529
|
+
// }else{
|
|
10530
|
+
bulkBody.push({
|
|
10531
|
+
"mmddyyyy": mmddyyyy,
|
|
10532
|
+
"projectid": this.projectId,
|
|
10533
|
+
"type": "report",
|
|
10534
|
+
"eventid": eventId,
|
|
10535
|
+
"comments": reportercomments,
|
|
10536
|
+
"dateofcompletion": reporterdoc,
|
|
10537
|
+
"percentage": percentage,
|
|
10538
|
+
"entityid": entityId,
|
|
10539
|
+
"locationid": locationId,
|
|
10540
|
+
"event": null,
|
|
10541
|
+
"docs": JSON.stringify(docs),
|
|
10542
|
+
"username": this.userName,
|
|
10543
|
+
"reportformatvalues": reportformatvalues,
|
|
10544
|
+
"reportformatschema": reportformatschema,
|
|
10545
|
+
"userid": this.userProfileId,
|
|
10546
|
+
"userrole": this.myRole,
|
|
10547
|
+
"year": this.calendarStartYYYY,
|
|
10548
|
+
"module": event.isnotice != null ? "notices" : "events",
|
|
10549
|
+
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
10550
|
+
});
|
|
10551
|
+
// }
|
|
10641
10552
|
// this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
|
|
10642
10553
|
// await this.sleep(2000);
|
|
10643
10554
|
// this.clearMessages();
|
|
@@ -10646,9 +10557,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10646
10557
|
await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
|
|
10647
10558
|
}
|
|
10648
10559
|
// await this.fetchBulkReportingData();
|
|
10649
|
-
if
|
|
10650
|
-
|
|
10651
|
-
}
|
|
10560
|
+
// if(bulkBodyReview.length > 0){
|
|
10561
|
+
// await this.uploadReportsReviewsBulk(bulkBodyReview)
|
|
10562
|
+
// }
|
|
10652
10563
|
for (var k = 0; k < this.selectedItemIds.length; k++) {
|
|
10653
10564
|
const selectedId = this.selectedItemIds[k];
|
|
10654
10565
|
//console.log('selectedid', selectedId);
|
|
@@ -10780,7 +10691,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10780
10691
|
}
|
|
10781
10692
|
this.fetchStatuteDefinitionDetails(statuteName);
|
|
10782
10693
|
if (event['reportformat'] != null && event['reportformat'].length > 0) {
|
|
10783
|
-
this.fetchReportFormat(this._SfDetailContainer, reportformatName, (
|
|
10694
|
+
this.fetchReportFormat(this._SfDetailContainer, reportformatName, (_v = event['reportformatschema']) !== null && _v !== void 0 ? _v : "", (_w = event['reportformatvalues']) !== null && _w !== void 0 ? _w : "");
|
|
10784
10695
|
}
|
|
10785
10696
|
};
|
|
10786
10697
|
this.renderCalendar = () => {
|
|
@@ -17100,8 +17011,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17100
17011
|
}, 3000);
|
|
17101
17012
|
}
|
|
17102
17013
|
};
|
|
17103
|
-
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100") => {
|
|
17104
|
-
let url = "https://" + this.apiId + "/
|
|
17014
|
+
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100", makercheckers) => {
|
|
17015
|
+
let url = "https://" + this.apiId + "/uploadreport1";
|
|
17105
17016
|
let body = {
|
|
17106
17017
|
"mmddyyyy": mmddyyyy,
|
|
17107
17018
|
"projectid": this.projectId,
|
|
@@ -17120,7 +17031,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17120
17031
|
"userid": this.userProfileId,
|
|
17121
17032
|
"userrole": this.myRole,
|
|
17122
17033
|
"year": this.calendarStartYYYY,
|
|
17123
|
-
"module": module
|
|
17034
|
+
"module": module,
|
|
17035
|
+
"makercheckers": makercheckers
|
|
17124
17036
|
};
|
|
17125
17037
|
//console.log(body);
|
|
17126
17038
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
@@ -17150,7 +17062,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17150
17062
|
}
|
|
17151
17063
|
};
|
|
17152
17064
|
this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
|
|
17153
|
-
let url = "https://" + this.apiId + "/
|
|
17065
|
+
let url = "https://" + this.apiId + "/uploadreportsbulk1";
|
|
17154
17066
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17155
17067
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17156
17068
|
if (showSuccess) {
|