Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
business-java
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proteus
business-java
Commits
9f273f09
Commit
9f273f09
authored
Apr 06, 2020
by
CORP\sonam.kamble
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes done Koye
parent
55fb8239
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
18 deletions
+24
-18
webitm-dis/src/ibase/webitm/ejb/dis/PatientFamily.java
webitm-dis/src/ibase/webitm/ejb/dis/PatientFamily.java
+24
-18
No files found.
webitm-dis/src/ibase/webitm/ejb/dis/PatientFamily.java
View file @
9f273f09
...
...
@@ -23,7 +23,7 @@ import ibase.webitm.utility.TransIDGenerator;
public
class
PatientFamily
{
public
String
insertPatientFamilyData
(
String
data
,
UserInfoBean
userInfoBean
)
public
String
insertPatientFamilyData
(
JSONObject
data
,
UserInfoBean
userInfoBean
)
{
String
retstr
=
""
;
MasterStatefulRemote
masterStateful
=
null
;
...
...
@@ -34,11 +34,11 @@ public class PatientFamily
int
lineNo
=
0
;
String
fName
=
""
,
mName
=
""
,
lName
=
""
,
locCode
=
""
,
addr1
=
""
,
addr2
=
""
,
addr3
=
""
,
city
=
""
,
district
=
""
,
stanCode
=
""
,
stateCode
=
""
,
pin
=
""
,
district
=
""
,
stanCode
=
""
,
stateCode
=
""
,
pin
=
""
,
birthDate
=
""
,
countCode
=
""
,
tel1
=
""
,
tel2
=
""
,
tel3
=
""
,
mobileNo
=
""
,
status
=
""
,
sex
=
""
,
dob
=
""
,
serviceType
=
""
,
serviceNo
=
""
,
name
=
""
,
memberName
=
""
,
attachment
=
""
,
birthDate
=
""
,
gender
=
""
,
relation
=
""
,
familyMobileNo
=
""
,
birthDateStr
=
""
;
name
=
""
,
memberName
=
""
,
attachment
=
""
,
gender
=
""
,
relation
=
""
,
familyMobileNo
=
""
,
birthDateStr
=
""
,
attachmentDbValue
=
""
;
E12GenericUtility
genericUtility
=
new
E12GenericUtility
();
try
{
...
...
@@ -111,19 +111,20 @@ public class PatientFamily
pStmt
.
close
();
pStmt
=
null
;
}
JSONParser
parser
=
new
JSONParser
();
JSONObject
json
=
(
JSONObject
)
parser
.
parse
(
data
);
System
.
out
.
println
(
"##json object data"
+
json
);
memberName
=
(
String
)
json
.
get
(
"name"
);
gender
=
(
String
)
json
.
get
(
"gender"
);
birthDate
=
(
String
)
json
.
get
(
"dateOfBirth"
);
attachment
=
(
String
)
json
.
get
(
"attachment"
);
relation
=
(
String
)
json
.
get
(
"relation
"
);
familyMobileNo
=
(
String
)
json
.
get
(
"mobileNo
"
);
birthDateStr
=
sdfDBFormat
.
format
(
sdfAngularFormat
.
parse
(
birthDate
)
);
System
.
out
.
println
(
"birth date in the db format TESTING:"
+
birthDateStr
);
//
JSONParser parser = new JSONParser();
//
JSONObject json = (JSONObject) parser.parse(data);
System
.
out
.
println
(
"##json object data"
+
data
);
memberName
=
(
String
)
data
.
get
(
"name"
);
gender
=
(
String
)
data
.
get
(
"gender"
);
birthDate
=
(
String
)
data
.
get
(
"dateOfBirth"
);
System
.
out
.
println
(
"###birthDate:"
+
birthDate
);
attachment
=
(
String
)
data
.
get
(
"attachment
"
);
relation
=
(
String
)
data
.
get
(
"relation
"
);
familyMobileNo
=
(
String
)
data
.
get
(
"mobileNo"
);
System
.
out
.
println
(
"birth date in the db format TESTING:"
+
birthDateStr
);
AppConnectParm
appConnect
=
new
AppConnectParm
();
InitialContext
ctx
=
new
InitialContext
(
appConnect
.
getProperty
());
...
...
@@ -204,15 +205,20 @@ public class PatientFamily
*/
xmlString
.
append
(
"</Detail1>\r\n"
);
++
lineNo
;
if
(
attachment
.
trim
().
length
()
!=
0
)
{
attachmentDbValue
=
userId
+
lineNo
;
System
.
out
.
println
(
"attachmentDbValue:["
+
attachmentDbValue
);
}
xmlString
.
append
(
"<Detail2 dbID=\""
+
userId
+
lineNo
+
"\" domID=\"1\" objName=\"patient_family\" objContext=\"2\">"
);
xmlString
.
append
(
"<attribute pkNames=\"\" selected=\"Y\" updateFlag=\"A\" status=\"N\" />"
);
xmlString
.
append
(
"<patient_code><![CDATA["
+
userId
+
"]]></patient_code>"
);
xmlString
.
append
(
"<line_no><![CDATA["
+
lineNo
+
"]]></line_no>"
);
xmlString
.
append
(
"<member_name><![CDATA["
+
memberName
+
"]]></member_name>"
);
xmlString
.
append
(
"<birth_date><![CDATA["
+
birthDate
Str
+
"]]></birth_date>"
);
xmlString
.
append
(
"<birth_date><![CDATA["
+
birthDate
+
"]]></birth_date>"
);
xmlString
.
append
(
"<sex><![CDATA["
+
gender
+
"]]></sex>"
);
xmlString
.
append
(
"<relation><![CDATA["
+
relation
+
"]]></relation>"
);
xmlString
.
append
(
"<attachment><![CDATA["
+
attachment
+
"]]></attachment>"
);
xmlString
.
append
(
"<attachment><![CDATA["
+
attachment
DbValue
+
"]]></attachment>"
);
xmlString
.
append
(
"<mobile_no><![CDATA["
+
familyMobileNo
+
"]]></mobile_no>"
);
xmlString
.
append
(
"</Detail2>"
);
...
...
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