Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
32f89783
Commit
32f89783
authored
Apr 26, 2024
by
Owen Ryan Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schema updates. changed logic for completeness check for image fields.
parent
8b7ea4da
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
64 additions
and
18 deletions
+64
-18
captureImage.js
...bGde-Widgets/DataInputWidget/ImageCapture/captureImage.js
+4
-0
generateFields.js
...nt/NoBpo/WebGde-Widgets/DataInputWidget/generateFields.js
+1
-1
ElementListWidget.css
...po/WebGde-Widgets/ElementListWidget/ElementListWidget.css
+1
-1
ElementListWidget.js
...Bpo/WebGde-Widgets/ElementListWidget/ElementListWidget.js
+1
-1
submit.js
WebGde/WebContent/NoBpo/WebGde-Widgets/Submit/submit.js
+2
-2
config.js
WebGde/WebContent/NoBpo/WebGde-Widgets/config.js
+1
-3
REG-INP.json
...ebContent/NoBpo/WebGde-Widgets/sample_schema/REG-INP.json
+0
-0
pubkey.pem
WebGde/WebContent/WEB-INF/config/sso/pubkey.pem
+2
-2
captureImage.js
...bGde-Widgets/DataInputWidget/ImageCapture/captureImage.js
+4
-0
generateFields.js
...bContent/WebGde-Widgets/DataInputWidget/generateFields.js
+1
-1
ElementListWidget.css
...nt/WebGde-Widgets/ElementListWidget/ElementListWidget.css
+1
-1
ElementListWidget.js
...ent/WebGde-Widgets/ElementListWidget/ElementListWidget.js
+1
-1
config.js
WebGde/WebContent/WebGde-Widgets/config.js
+1
-4
OTS.json
WebGde/WebContent/WebGde-Widgets/sample_schema/OTS.json
+0
-0
REG-INP.json
WebGde/WebContent/WebGde-Widgets/sample_schema/REG-INP.json
+44
-1
No files found.
WebGde/WebContent/NoBpo/WebGde-Widgets/DataInputWidget/ImageCapture/captureImage.js
View file @
32f89783
import
{
createConfirmationModal
}
from
"../../genericPopup/genericPopup.js"
;
import
{
toggleSubmit
}
from
"../generateFields.js"
;
export
function
processCapture
(
key
,
imgFilename
,
imgFileSize
)
{
const
form
=
document
.
getElementById
(
'fields'
);
...
...
@@ -74,6 +75,8 @@ export function processCapture(key, imgFilename, imgFileSize) {
hiddenFileContentInput
.
value
=
img
.
src
;
// This will store the base64-encoded content of the file
hiddenFileContentInput
.
display
=
''
;
toggleSubmit
();
document
.
getElementById
(
`
${
key
}
_container`
).
style
.
display
=
'none'
;
function
deleteImage
(){
...
...
@@ -85,6 +88,7 @@ export function processCapture(key, imgFilename, imgFileSize) {
// Clear the hidden fields
hiddenFnameInput
.
remove
();
hiddenFileContentInput
.
remove
();
toggleSubmit
();
}
document
.
getElementById
(
`
${
key
}
_x`
).
addEventListener
(
'click'
,
()
=>
{
...
...
WebGde/WebContent/NoBpo/WebGde-Widgets/DataInputWidget/generateFields.js
View file @
32f89783
...
...
@@ -1851,7 +1851,7 @@ const handleInput = (event) => {
}
}
async function toggleSubmit(){
export
async function toggleSubmit(){
let submitButton = document.getElementById("submitButton");
let validateResponse = await validateForm();
if(validateResponse){
...
...
WebGde/WebContent/NoBpo/WebGde-Widgets/ElementListWidget/ElementListWidget.css
View file @
32f89783
...
...
@@ -271,7 +271,7 @@ body {
align-items
:
center
;
}
.line
{
.line
-pulltab
{
width
:
25%
;
height
:
7px
;
/* Adjust the thickness of the line as needed */
background-color
:
#E5E8EC
;
...
...
WebGde/WebContent/NoBpo/WebGde-Widgets/ElementListWidget/ElementListWidget.js
View file @
32f89783
...
...
@@ -525,7 +525,7 @@ export class ElementListWidget {
// Create a div for line of the pull tab
const
lineDiv
=
document
.
createElement
(
'div'
);
lineDiv
.
classList
.
add
(
'line'
);
lineDiv
.
classList
.
add
(
'line
-pulltab
'
);
// Append pulltab to container
pullTab
.
appendChild
(
lineDiv
);
...
...
WebGde/WebContent/NoBpo/WebGde-Widgets/Submit/submit.js
View file @
32f89783
...
...
@@ -4,7 +4,7 @@ import { checkValidValues, validateInput, validateReturnInput } from "../DataInp
import
{
goBackToElementListViewer
}
from
"../ElementListWidget/ElementListWidget.js"
;
import
{
uploadFile
}
from
"../FileUpload/fileUpload.js"
;
import
{
createLoadingModal
,
removeLoadingModal
}
from
"../LoadingModal/LoadingModal.js"
;
import
{
IS_RETRIEVE_FROM_BPO
,
SHOW_ELEMENT_LIST_VIEWER
,
USERID_FIELD
}
from
"../config.js"
;
import
{
IS_RETRIEVE_FROM_BPO
,
PROD_OUTPUT_UNIT
,
SHOW_ELEMENT_LIST_VIEWER
,
USERID_FIELD
}
from
"../config.js"
;
import
{
createConfirmationModal
,
createErrorModal
,
createInfoModal
}
from
"../genericPopup/genericPopup.js"
;
import
{
DISPLAY_FIELD_OBJECT
}
from
"../globalVariable.js"
;
import
{
Settings
}
from
"./XMLWriter/Global.js"
;
...
...
@@ -381,7 +381,7 @@ function validateMedia(key) {
export
async
function
completeToNextNode
(
elementId
)
{
let
requestJSON
=
{
"productionOutputUnits"
:
{
"KEYSTROKE"
:
{
[
PROD_OUTPUT_UNIT
]
:
{
"outputCount"
:
0
,
"errorCount"
:
0
}
...
...
WebGde/WebContent/NoBpo/WebGde-Widgets/config.js
View file @
32f89783
...
...
@@ -24,12 +24,10 @@ export const OUTPUT_FILE_EXTENSION = ".DTA"
//BPO CONFIG
export
const
IS_RETRIEVE_FROM_BPO
=
"N"
// export const BPO_URL = "http://35.171.20.94:8080/bpo-sqa/"
// export const CURRENT_NODE = "Web GDE"
export
let
BPO_URL
=
DOMAIN
+
"bpo/"
;
// export const CURRENT_NODE = "Web_GDE_DEV"
export
let
CURRENT_NODE
=
""
export
const
ENCODING_PASS
=
"PASS1"
export
const
PROD_OUTPUT_UNIT
=
"INSPECTION"
export
const
NEXT_NODE
=
"INSPECTED"
export
const
EXCEPTION_NODE
=
"CANCELLED"
export
const
SHOW_ELEMENT_LIST_VIEWER
=
"N"
...
...
WebGde/WebContent/NoBpo/WebGde-Widgets/sample_schema/REG-INP.json
0 → 100644
View file @
32f89783
This source diff could not be displayed because it is too large. You can
view the blob
instead.
WebGde/WebContent/WEB-INF/config/sso/pubkey.pem
View file @
32f89783
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA23REfMQ/vghZ1EyHa4cDtSSQdcOHcqXKg7U8JPhqIs+cBt4lKWDaGmroQVxcTjIDz53ZwmmVc9KKEvAwfWM2GEl8VUM9/GszkkDHgY3qEos/4ESO2tWb8Jk6RSPUVJeXRSEOPrjUlvcXust23PXh5rInzfNNowUEkiidVX1jxdvyJq3qHMVzlMpiyJi3X7Lnb20QrMGqxUyCfmewGzlzYeCG5Wk2SjVy9Yog6p3+lbJUBUYZU+/AAtVhtT4Rj4JHtunR5ZDyjNjQkrAYNIFWYlTfZDdWZb1HLAOzpIK27QUC7q9+DzgtirE1xY3h6NJryLUX89Q9MB+VsZQX/4Mb7QIDAQAB
\ No newline at end of file
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAijGUjaY12S9AfkZJ4tTiSqPIBdDxWLXfkAAsKCQKstPGvd3rkPKXS+LZJzQq1nnro7pAOk1fjiqWs2TnDxuyOuDhQatSlfPQavEgSjzAC876wSXbtP8OfhPZGs+DnYSKElIUPV+mokaok2BBhmWwXbTA02Gmq30qVjzmOxppwle9XvGD1wvFVy4GlNDoFHmg8dtg7VmbGLTXc+FYOUKnFSAfW8z0KyKK53A8XR1UssO4o9gLQGP0VX0m5Mrb3D/I+vaSXcAzzyv2WRIOa49AuPx+m8IJnRb/CdY7tM0wZcrRwjC02sQk0VHG9Fg9lOk9wXytaq8GLPoRq5f4zZsPvwIDAQAB
\ No newline at end of file
WebGde/WebContent/WebGde-Widgets/DataInputWidget/ImageCapture/captureImage.js
View file @
32f89783
import
{
createConfirmationModal
}
from
"../../genericPopup/genericPopup.js"
;
import
{
toggleSubmit
}
from
"../generateFields.js"
;
export
function
processCapture
(
key
,
imgFilename
,
imgFileSize
)
{
const
form
=
document
.
getElementById
(
'fields'
);
...
...
@@ -74,6 +75,8 @@ export function processCapture(key, imgFilename, imgFileSize) {
hiddenFileContentInput
.
value
=
img
.
src
;
// This will store the base64-encoded content of the file
hiddenFileContentInput
.
display
=
''
;
toggleSubmit
();
document
.
getElementById
(
`
${
key
}
_container`
).
style
.
display
=
'none'
;
function
deleteImage
(){
...
...
@@ -85,6 +88,7 @@ export function processCapture(key, imgFilename, imgFileSize) {
// Clear the hidden fields
hiddenFnameInput
.
remove
();
hiddenFileContentInput
.
remove
();
toggleSubmit
();
}
document
.
getElementById
(
`
${
key
}
_x`
).
addEventListener
(
'click'
,
()
=>
{
...
...
WebGde/WebContent/WebGde-Widgets/DataInputWidget/generateFields.js
View file @
32f89783
...
...
@@ -1851,7 +1851,7 @@ const handleInput = (event) => {
}
}
async function toggleSubmit(){
export
async function toggleSubmit(){
let submitButton = document.getElementById("submitButton");
let validateResponse = await validateForm();
if(validateResponse){
...
...
WebGde/WebContent/WebGde-Widgets/ElementListWidget/ElementListWidget.css
View file @
32f89783
...
...
@@ -271,7 +271,7 @@ body {
align-items
:
center
;
}
.line
{
.line
-pulltab
{
width
:
25%
;
height
:
7px
;
/* Adjust the thickness of the line as needed */
background-color
:
#E5E8EC
;
...
...
WebGde/WebContent/WebGde-Widgets/ElementListWidget/ElementListWidget.js
View file @
32f89783
...
...
@@ -525,7 +525,7 @@ export class ElementListWidget {
// Create a div for line of the pull tab
const
lineDiv
=
document
.
createElement
(
'div'
);
lineDiv
.
classList
.
add
(
'line'
);
lineDiv
.
classList
.
add
(
'line
-pulltab
'
);
// Append pulltab to container
pullTab
.
appendChild
(
lineDiv
);
...
...
WebGde/WebContent/WebGde-Widgets/config.js
View file @
32f89783
...
...
@@ -24,10 +24,7 @@ export const OUTPUT_FILE_EXTENSION = ".DTA"
//BPO CONFIG
export
const
IS_RETRIEVE_FROM_BPO
=
"Y"
// export const BPO_URL = "http://35.171.20.94:8080/bpo-sqa/"
// export const CURRENT_NODE = "Web GDE"
export
let
BPO_URL
=
DOMAIN
+
"bpo/"
;
// export const CURRENT_NODE = "Web_GDE_DEV"
export
let
CURRENT_NODE
=
""
export
const
ENCODING_PASS
=
"PASS1"
export
const
PROD_OUTPUT_UNIT
=
"INSPECTION"
...
...
@@ -37,7 +34,7 @@ export const SHOW_ELEMENT_LIST_VIEWER = "Y"
export
const
ADD_NEW_OPTION
=
"N"
export
const
DISPLAYED_DETAILS
=
"inspectionType|businessAddress"
//pipe-delimited
export
const
USERID_FIELD
=
"inspectorUsername"
export
const
ENABLE_PRINT
=
"
N
"
export
const
ENABLE_PRINT
=
"
Y
"
export
const
PDF_EXTENSION
=
".pdf"
export
const
JPG_EXTENSION
=
".jpg"
...
...
WebGde/WebContent/WebGde-Widgets/sample_schema/OTS
-nosection
.json
→
WebGde/WebContent/WebGde-Widgets/sample_schema/OTS.json
View file @
32f89783
File moved
WebGde/WebContent/WebGde-Widgets/sample_schema/REG-INP.json
View file @
32f89783
...
...
@@ -760,6 +760,12 @@
"mandatory"
:
false
}
},
"noise_nuisance_management"
:
{
"fieldLabel"
:
"Noise Nuisance Management"
,
"validation"
:
{
"collection"
:
"title"
}
},
"soundproofing"
:
{
"fieldLabel"
:
"Soundproofing"
,
"aka"
:
"field75"
,
...
...
@@ -770,6 +776,15 @@
"mandatory"
:
true
}
},
"potential_noise_source"
:
{
"fieldLabel"
:
"Potential Noise Source"
,
"aka"
:
"field178"
,
"validation"
:
{
"fieldLength"
:
20.0
,
"collection"
:
"alphanumeric"
,
"mandatory"
:
false
}
},
"permitting_requirements_header"
:
{
"fieldLabel"
:
"Permitting Requirements"
,
"validation"
:
{
...
...
@@ -860,9 +875,37 @@
"mandatory"
:
false
}
},
"certificate_of_exemption"
:
{
"fieldLabel"
:
"Certificate of Exemption"
,
"aka"
:
"field82"
,
"validation"
:
{
"fieldLength"
:
1.0
,
"collection"
:
"radiolist"
,
"items"
:
[
"Yes"
,
"No"
,
"Not Required"
],
"mandatory"
:
true
}
},
"certificate_of_exemption_issuance_date"
:
{
"fieldLabel"
:
"Certificate of Exemption Issuance Date"
,
"aka"
:
"field180"
,
"validation"
:
{
"fieldLength"
:
10.0
,
"collection"
:
"datepicker"
,
"mandatory"
:
false
}
},
"certificate_of_exemption_photo"
:
{
"fieldLabel"
:
"Capture Certificate of Exemption Photo"
,
"aka"
:
"field181"
,
"validation"
:
{
"fieldLength"
:
1.0
,
"collection"
:
"image-capture"
,
"mandatory"
:
false
}
},
"llda_discharge_permit"
:
{
"fieldLabel"
:
"LLDA Discharge Permit"
,
"aka"
:
"field
85
"
,
"aka"
:
"field
182
"
,
"validation"
:
{
"fieldLength"
:
1.0
,
"collection"
:
"radiolist"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment