Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
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
Muhammad Usman
PERFORMA_REPLICA
Commits
435b6daa
Commit
435b6daa
authored
May 24, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added candidate multiref to TestInput
parent
0d6d079a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
211 additions
and
8 deletions
+211
-8
Candidate.xml
cmsWebApp/sql/Candidate.xml
+4
-0
Candidate.sql
cmsWebApp/sql/ms/Candidate.sql
+4
-1
Candidate.sql
cmsWebApp/sql/oracle/Candidate.sql
+4
-1
Candidate.sql
cmsWebApp/sql/postgres/Candidate.sql
+4
-1
BaseCandidate.java
cmsWebApp/src/performa/orm/BaseCandidate.java
+0
-0
BaseTestInput.java
cmsWebApp/src/performa/orm/BaseTestInput.java
+184
-0
Candidate.xml
cmsWebApp/src/performa/orm/Candidate.xml
+2
-0
CandidatePersistenceMgr.java
cmsWebApp/src/performa/orm/CandidatePersistenceMgr.java
+0
-0
TestInput.xml
cmsWebApp/src/performa/orm/TestInput.xml
+4
-0
testAnalysis.jsp
cmsWebApp/webroot/extensions/performa/testAnalysis.jsp
+5
-5
No files found.
cmsWebApp/sql/Candidate.xml
View file @
435b6daa
...
...
@@ -22,6 +22,9 @@
<column
name=
"location"
type=
"String"
nullable=
"true"
length=
"80"
/>
<column
name=
"contact_phone"
type=
"String"
nullable=
"true"
length=
"80"
/>
<column
name=
"email"
type=
"String"
nullable=
"true"
length=
"60"
/>
<column
name=
"test_input_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
</NODE>
<NODE
name=
"INDEX"
factory=
"Participant"
class=
"oneit.sql.transfer.DefineIndexOperation"
tableName=
"candidate"
indexName=
"idx_candidate_test_input_id"
isUnique=
"false"
><column
name=
"test_input_id"
/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
cmsWebApp/sql/ms/Candidate.sql
View file @
435b6daa
...
...
@@ -21,7 +21,8 @@ CREATE TABLE candidate (
date_taken
datetime
NULL
,
location
varchar
(
80
)
NULL
,
contact_phone
varchar
(
80
)
NULL
,
email
varchar
(
60
)
NULL
email
varchar
(
60
)
NULL
,
test_input_id
numeric
(
12
)
NULL
);
...
...
@@ -34,3 +35,5 @@ ALTER TABLE candidate ADD
CREATE
INDEX
idx_candidate_test_input_id
ON
candidate
(
test_input_id
);
cmsWebApp/sql/oracle/Candidate.sql
View file @
435b6daa
...
...
@@ -22,7 +22,8 @@ CREATE TABLE candidate (
date_taken
date
NULL
,
location
varchar2
(
80
)
NULL
,
contact_phone
varchar2
(
80
)
NULL
,
email
varchar2
(
60
)
NULL
email
varchar2
(
60
)
NULL
,
test_input_id
number
(
12
)
NULL
);
...
...
@@ -35,3 +36,5 @@ ALTER TABLE candidate ADD
CREATE
INDEX
idx_candidate_test_input_id
ON
candidate
(
test_input_id
);
cmsWebApp/sql/postgres/Candidate.sql
View file @
435b6daa
...
...
@@ -22,7 +22,8 @@ CREATE TABLE candidate (
date_taken
timestamp
NULL
,
location
varchar
(
80
)
NULL
,
contact_phone
varchar
(
80
)
NULL
,
email
varchar
(
60
)
NULL
email
varchar
(
60
)
NULL
,
test_input_id
numeric
(
12
)
NULL
);
...
...
@@ -35,3 +36,5 @@ ALTER TABLE candidate ADD
CREATE
INDEX
idx_candidate_test_input_id
ON
candidate
(
test_input_id
);
cmsWebApp/src/performa/orm/BaseCandidate.java
View file @
435b6daa
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/BaseTestInput.java
View file @
435b6daa
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Candidate.xml
View file @
435b6daa
...
...
@@ -21,6 +21,8 @@
<ATTRIB
name=
"Phone"
type=
"String"
dbcol=
"contact_phone"
length=
"80"
/>
<ATTRIB
name=
"Email"
type=
"String"
dbcol=
"email"
length=
"60"
/>
<SINGLEREFERENCE
name=
"TestInput"
type=
"TestInput"
dbcol=
"test_input_id"
backreferenceName=
"Candidates"
/>
</TABLE>
<SEARCH
type=
"All"
paramFilter=
"candidate.object_id is not null"
orderBy=
"candidate.object_id"
/>
...
...
cmsWebApp/src/performa/orm/CandidatePersistenceMgr.java
View file @
435b6daa
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/TestInput.xml
View file @
435b6daa
...
...
@@ -5,8 +5,12 @@
<IMPORT
value=
"oneit.servlets.orm.*"
/>
<MULTIPLEREFERENCE
name=
"Candidates"
type=
"Candidate"
backreferenceName=
"TestInput"
owner=
"true"
/>
<TABLE
name=
"it_does_not_matter"
tablePrefix=
"OBJECT"
polymorphic=
"FALSE"
>
<ATTRIB
name=
"CSV"
type=
"BinaryContent"
dbcol=
"xxxx"
binaryHandler=
"loggedin"
mandatory=
"true"
attribHelper=
"BLOBAttributeHelper"
attribHelperInstance=
"BLOBAttributeHelper.INSTANCE"
/>
</TABLE>
</BUSINESSCLASS>
...
...
cmsWebApp/webroot/extensions/performa/testAnalysis.jsp
View file @
435b6daa
...
...
@@ -8,13 +8,13 @@
ORMProcessState process = (ORMProcessState) ProcessDecorator.getDefaultProcess(request);
ObjectTransaction objTran = process.getTransaction ();
String module = "TestAnalysis";
Test
Analysis testAnalysis = (TestAnalysis
) process.getAttribute(module);
Test
Input testInput = (TestInput
) process.getAttribute(module);
if(test
Analysis
== null)
if(test
Input
== null)
{
test
Analysis = TestAnalysis.createTestAnalysis
(objTran);
test
Input = TestInput.createTestInput
(objTran);
process.setAttribute(module, test
Analysis
);
process.setAttribute(module, test
Input
);
%><%@include file="/saferedirect.jsp"%><%
}
...
...
@@ -31,7 +31,7 @@
<strong style="line-height: 30px">CSV : </strong>
</oneit:layout_label>
<oneit:layout_field width="1">
<oneit:ormInput obj="<%= test
Analysis %>" attributeName="<%= TestAnalysis.FIELD_CSV %>"
type="file" class="form-control" required="required" style="padding:4px;" accept=".csv"/>
<oneit:ormInput obj="<%= test
Input %>" attributeName="CSV"
type="file" class="form-control" required="required" style="padding:4px;" accept=".csv"/>
</oneit:layout_field>
<oneit:layout_field width="1">
<oneit:button value="Import CSV" name="importCSV" cssClass="btn btn-primary" requestAttribs='<%= CollectionUtils.EMPTY_MAP %>'/>
...
...
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