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
e4fd4ca7
Commit
e4fd4ca7
authored
Feb 01, 2024
by
Owen Ryan Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added proc_time for bpo elements
parent
f39b8360
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
7 deletions
+21
-7
ElementListWidget.js
...ent/WebGde-Widgets/ElementListWidget/ElementListWidget.js
+8
-0
XML_Saver.js
...e/WebContent/WebGde-Widgets/Submit/XMLWriter/XML_Saver.js
+2
-2
submit.js
WebGde/WebContent/WebGde-Widgets/Submit/submit.js
+8
-2
DEV_SCHEMA2.json
.../WebContent/WebGde-Widgets/sample_schema/DEV_SCHEMA2.json
+3
-3
No files found.
WebGde/WebContent/WebGde-Widgets/ElementListWidget/ElementListWidget.js
View file @
e4fd4ca7
...
@@ -431,6 +431,14 @@ export class ElementListWidget {
...
@@ -431,6 +431,14 @@ export class ElementListWidget {
// Continue with the original logic
// Continue with the original logic
await
createWebGdeInterface
(
null
);
await
createWebGdeInterface
(
null
);
// Get current timestamp
const
currentTimeStamp
=
Date
.
now
();
const
currentDate
=
new
Date
(
currentTimeStamp
);
const
humanReadableTime
=
currentDate
.
toLocaleString
();
// Save to session storage
sessionStorage
.
setItem
(
"timeStart"
,
humanReadableTime
);
// Create and style a new container for the selected element's details
// Create and style a new container for the selected element's details
const
detailsContainer
=
document
.
createElement
(
'div'
);
const
detailsContainer
=
document
.
createElement
(
'div'
);
detailsContainer
.
classList
.
add
(
'encode-details-container'
);
detailsContainer
.
classList
.
add
(
'encode-details-container'
);
...
...
WebGde/WebContent/WebGde-Widgets/Submit/XMLWriter/XML_Saver.js
View file @
e4fd4ca7
...
@@ -153,7 +153,7 @@ async function createNonBPOXML(fields, metrics, doctype, section, fieldOrder){
...
@@ -153,7 +153,7 @@ async function createNonBPOXML(fields, metrics, doctype, section, fieldOrder){
"totalRec"
:
"0"
,
"totalRec"
:
"0"
,
"maxRec"
:
"1"
,
"maxRec"
:
"1"
,
"totalKeystroke"
:
metrics
[
0
],
"totalKeystroke"
:
metrics
[
0
],
"procTime"
:
""
,
"procTime"
:
sessionStorage
.
getItem
(
"timeStart"
)
+
"-"
+
sessionStorage
.
getItem
(
"timeEnd"
)
,
"procDuration"
:
metrics
[
1
],
"procDuration"
:
metrics
[
1
],
"eob"
:
""
,
"eob"
:
""
,
"exceptionRemark"
:
""
,
"exceptionRemark"
:
""
,
...
@@ -204,7 +204,7 @@ async function createBPOXML(fields, metrics, doctype, section, fieldOrder){
...
@@ -204,7 +204,7 @@ async function createBPOXML(fields, metrics, doctype, section, fieldOrder){
"totalRec"
:
"1"
,
"totalRec"
:
"1"
,
"maxRec"
:
"1"
,
"maxRec"
:
"1"
,
"totalKeystroke"
:
metrics
[
0
],
"totalKeystroke"
:
metrics
[
0
],
"procTime"
:
""
,
"procTime"
:
sessionStorage
.
getItem
(
"timeStart"
)
+
"-"
+
sessionStorage
.
getItem
(
"timeEnd"
)
,
"procDuration"
:
metrics
[
1
],
"procDuration"
:
metrics
[
1
],
"eob"
:
""
,
"eob"
:
""
,
"exceptionRemark"
:
""
,
"exceptionRemark"
:
""
,
...
...
WebGde/WebContent/WebGde-Widgets/Submit/submit.js
View file @
e4fd4ca7
...
@@ -4,7 +4,6 @@ import { checkValidValues, validateInput } from "../DataInputWidget/validateInpu
...
@@ -4,7 +4,6 @@ import { checkValidValues, validateInput } from "../DataInputWidget/validateInpu
import
{
goBackToElementListViewer
}
from
"../ElementListWidget/ElementListWidget.js"
;
import
{
goBackToElementListViewer
}
from
"../ElementListWidget/ElementListWidget.js"
;
import
{
uploadFile
}
from
"../FileUpload/fileUpload.js"
;
import
{
uploadFile
}
from
"../FileUpload/fileUpload.js"
;
import
{
createLoadingModal
,
removeLoadingModal
}
from
"../LoadingModal/LoadingModal.js"
;
import
{
createLoadingModal
,
removeLoadingModal
}
from
"../LoadingModal/LoadingModal.js"
;
import
{
global_end_time
,
saveMetrics
,
stopMetricCapture
,
setGlobalEndTime
,
interval
}
from
"../captureMetrics/captureMetrics.js"
;
import
{
IS_RETRIEVE_FROM_BPO
,
SHOW_ELEMENT_LIST_VIEWER
}
from
"../config.js"
;
import
{
IS_RETRIEVE_FROM_BPO
,
SHOW_ELEMENT_LIST_VIEWER
}
from
"../config.js"
;
import
{
createConfirmationModal
,
createErrorModal
,
createInfoModal
}
from
"../genericPopup/genericPopup.js"
;
import
{
createConfirmationModal
,
createErrorModal
,
createInfoModal
}
from
"../genericPopup/genericPopup.js"
;
import
{
DISPLAY_FIELD_OBJECT
}
from
"../globalVariable.js"
;
import
{
DISPLAY_FIELD_OBJECT
}
from
"../globalVariable.js"
;
...
@@ -15,7 +14,14 @@ import { GFS_ROOT_FOLDER, GFS_URL, PROJECT_CODE, TEMPORARY_FOLDER } from "./conf
...
@@ -15,7 +14,14 @@ import { GFS_ROOT_FOLDER, GFS_URL, PROJECT_CODE, TEMPORARY_FOLDER } from "./conf
export
const
submitForm
=
async
(
e
)
=>
{
export
const
submitForm
=
async
(
e
)
=>
{
try
{
try
{
setGlobalEndTime
(
new
Date
().
toLocaleString
());
// Get current timestamp
const
currentTimeStamp
=
Date
.
now
();
const
currentDate
=
new
Date
(
currentTimeStamp
);
const
humanReadableTime
=
currentDate
.
toLocaleString
();
// Save to session storage
sessionStorage
.
setItem
(
"timeEnd"
,
humanReadableTime
);
const
Form
=
document
.
getElementById
(
"fields"
);
const
Form
=
document
.
getElementById
(
"fields"
);
const
{
elements
}
=
Form
const
{
elements
}
=
Form
let
error
=
false
;
let
error
=
false
;
...
...
WebGde/WebContent/WebGde-Widgets/sample_schema/DEV_SCHEMA2.json
View file @
e4fd4ca7
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"collection"
:
"alphanumeric"
,
"collection"
:
"alphanumeric"
,
"mandatory"
:
false
"mandatory"
:
false
},
},
"readOnly"
:
tru
e
"readOnly"
:
fals
e
},
},
"evr_date"
:
{
"evr_date"
:
{
"fieldLabel"
:
"Date"
,
"fieldLabel"
:
"Date"
,
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
"collection"
:
"datepicker"
,
"collection"
:
"datepicker"
,
"mandatory"
:
false
"mandatory"
:
false
},
},
"readOnly"
:
tru
e
"readOnly"
:
fals
e
},
},
"email_address"
:
{
"email_address"
:
{
"fieldLabel"
:
"Email Address"
,
"fieldLabel"
:
"Email Address"
,
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
"collection"
:
"email"
,
"collection"
:
"email"
,
"mandatory"
:
false
"mandatory"
:
false
},
},
"readOnly"
:
tru
e
"readOnly"
:
fals
e
},
},
"material_recovery_facility"
:
{
"material_recovery_facility"
:
{
"fieldLabel"
:
"Material recovery Facility"
,
"fieldLabel"
:
"Material recovery Facility"
,
...
...
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