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
1129e37e
Commit
1129e37e
authored
Apr 27, 2020
by
CORP\sonam.kamble
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated comp
parent
3b787a20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
8 deletions
+38
-8
webitm-dashboard/ibase/dashboard/crm/ejb/Appointment.java
webitm-dashboard/ibase/dashboard/crm/ejb/Appointment.java
+38
-8
No files found.
webitm-dashboard/ibase/dashboard/crm/ejb/Appointment.java
View file @
1129e37e
...
@@ -467,7 +467,7 @@ public class Appointment
...
@@ -467,7 +467,7 @@ public class Appointment
}
}
}
}
SimpleDateFormat
format2
=
new
SimpleDateFormat
(
"dd-MMM-yy
"
);
SimpleDateFormat
format2
=
new
SimpleDateFormat
(
"DD-MOM-YY
"
);
frDate
=
output
.
parse
(
fromDateStr
);
frDate
=
output
.
parse
(
fromDateStr
);
toDate
=
output
.
parse
(
toDateStr
);
toDate
=
output
.
parse
(
toDateStr
);
System
.
out
.
println
(
format2
.
format
(
frDate
));
System
.
out
.
println
(
format2
.
format
(
frDate
));
...
@@ -596,7 +596,7 @@ public class Appointment
...
@@ -596,7 +596,7 @@ public class Appointment
}
}
}
}
SimpleDateFormat
format2
=
new
SimpleDateFormat
(
"dd-MMM-yy
"
);
SimpleDateFormat
format2
=
new
SimpleDateFormat
(
"DD-MON-YY
"
);
frDate
=
output
.
parse
(
fromDateStr
);
frDate
=
output
.
parse
(
fromDateStr
);
toDate
=
output
.
parse
(
toDateStr
);
toDate
=
output
.
parse
(
toDateStr
);
System
.
out
.
println
(
format2
.
format
(
frDate
));
System
.
out
.
println
(
format2
.
format
(
frDate
));
...
@@ -826,7 +826,7 @@ public class Appointment
...
@@ -826,7 +826,7 @@ public class Appointment
{
{
return
userString
;
return
userString
;
}
}
name
=
firstName
+
" "
+
lastName
;
boolean
isUserCreated
=
insertUser
(
mobNo
,
name
,
gender
,
emailId
,
"KOYE_HELP"
);
boolean
isUserCreated
=
insertUser
(
mobNo
,
name
,
gender
,
emailId
,
"KOYE_HELP"
);
try
try
{
{
...
@@ -1696,15 +1696,27 @@ public class Appointment
...
@@ -1696,15 +1696,27 @@ public class Appointment
qualification
=
jsonData
.
getString
(
"qualification"
);
qualification
=
jsonData
.
getString
(
"qualification"
);
state
=
jsonData
.
getString
(
"state"
);
state
=
jsonData
.
getString
(
"state"
);
pinCode
=
jsonData
.
getString
(
"pin"
);
pinCode
=
jsonData
.
getString
(
"pin"
);
Object
o
=
jsonData
.
get
(
"speciality"
);
org
.
json
.
JSONArray
speciltyArr
=
jsonData
.
getJSONArray
(
"speciality"
);
try
if
(
firstName
.
length
()
==
0
)
{
{
dateOfBirth
=
output
.
parse
(
dob
);
errString
=
genericUtility
.
getErrorString
(
"address"
,
"VMFIRSTNM"
,
mobNo
);
dtOfBirth
=
Timestamp
.
valueOf
(
String
.
valueOf
(
this
.
genericUtility
.
getValidDateString
(
dob
,
this
.
genericUtility
.
getApplDateFormat
(),
this
.
genericUtility
.
getDBDateFormat
()))
+
" 00:00:00.00"
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
return
jsonObject
.
toString
();
}
}
catch
(
Exception
e
)
if
(
lastName
.
length
()
==
0
)
{
{
errString
=
genericUtility
.
getErrorString
(
"dateOfBirth"
,
"VTBIRTH"
,
userId
);
errString
=
genericUtility
.
getErrorString
(
"address"
,
"VMLASTNM"
,
mobNo
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
return
jsonObject
.
toString
();
}
if
(
regNo
.
length
()
==
0
)
{
errString
=
genericUtility
.
getErrorString
(
"address"
,
"VTREGNO"
,
mobNo
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
return
jsonObject
.
toString
();
return
jsonObject
.
toString
();
}
}
...
@@ -1745,6 +1757,18 @@ public class Appointment
...
@@ -1745,6 +1757,18 @@ public class Appointment
}
}
}
}
try
{
dateOfBirth
=
output
.
parse
(
dob
);
dtOfBirth
=
Timestamp
.
valueOf
(
String
.
valueOf
(
this
.
genericUtility
.
getValidDateString
(
dob
,
this
.
genericUtility
.
getApplDateFormat
(),
this
.
genericUtility
.
getDBDateFormat
()))
+
" 00:00:00.00"
);
}
catch
(
Exception
e
)
{
errString
=
genericUtility
.
getErrorString
(
"dateOfBirth"
,
"VTBIRTH"
,
userId
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
return
jsonObject
.
toString
();
}
if
(
dob
.
length
()
==
0
)
if
(
dob
.
length
()
==
0
)
{
{
errString
=
genericUtility
.
getErrorString
(
"date_of_birth"
,
"VTBIRTH"
,
mobNo
);
errString
=
genericUtility
.
getErrorString
(
"date_of_birth"
,
"VTBIRTH"
,
mobNo
);
...
@@ -1763,6 +1787,12 @@ public class Appointment
...
@@ -1763,6 +1787,12 @@ public class Appointment
errString
=
genericUtility
.
getErrorString
(
"gender"
,
"VTGENDER"
,
mobNo
);
errString
=
genericUtility
.
getErrorString
(
"gender"
,
"VTGENDER"
,
mobNo
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
return
jsonObject
.
toString
();
return
jsonObject
.
toString
();
}
if
(
speciltyArr
.
length
()
==
0
)
{
errString
=
genericUtility
.
getErrorString
(
"specialty"
,
"NULLSPLCOD"
,
mobNo
);
jsonObject
=
this
.
convertXmlToJsonInError
(
errString
);
return
jsonObject
.
toString
();
}
}
if
(
address
.
length
()
==
0
)
if
(
address
.
length
()
==
0
)
...
...
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