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
e1095d1a
Commit
e1095d1a
authored
Apr 02, 2020
by
CORP\sonam.kamble
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Appointment servlet for Koye
parent
f10ec447
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
666 additions
and
0 deletions
+666
-0
webitm-dashboard/ibase/dashboard/crm/ejb/Appointment.java
webitm-dashboard/ibase/dashboard/crm/ejb/Appointment.java
+599
-0
webitm-dashboard/ibase/dashboard/crm/servlet/AppointmentServlet.java
...board/ibase/dashboard/crm/servlet/AppointmentServlet.java
+67
-0
No files found.
webitm-dashboard/ibase/dashboard/crm/ejb/Appointment.java
0 → 100644
View file @
e1095d1a
This diff is collapsed.
Click to expand it.
webitm-dashboard/ibase/dashboard/crm/servlet/AppointmentServlet.java
0 → 100644
View file @
e1095d1a
package
ibase
.
dashboard
.
crm
.
servlet
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
javax.servlet.ServletException
;
import
javax.servlet.http.HttpServlet
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpSession
;
import
ibase.dashboard.crm.ejb.Appointment
;
import
ibase.utility.E12GenericUtility
;
import
ibase.utility.UserInfoBean
;
import
ibase.webitm.utility.ITMException
;
public
class
AppointmentServlet
extends
HttpServlet
{
private
static
final
long
serialVersionUID
=
1L
;
public
void
doGet
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
IOException
,
ServletException
{
doPost
(
request
,
response
);
}
public
void
doPost
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
IOException
,
ServletException
{
HttpSession
session
=
null
;
String
jsonObjData
=
null
;
OutputStream
outputStream
=
null
;
UserInfoBean
userInfo
=
null
;
Appointment
appointment
=
new
Appointment
();
try
{
response
.
setContentType
(
"application/xml"
);
session
=
request
.
getSession
(
true
);
userInfo
=
(
ibase
.
utility
.
UserInfoBean
)
session
.
getAttribute
(
"USER_INFO"
);
jsonObjData
=
appointment
.
getAppointmentData
(
userInfo
);
//System.out.println(" Final data set for AppointmentServlet Dashboard :: " + jsonObjData);
outputStream
=
response
.
getOutputStream
();
outputStream
.
write
(
jsonObjData
.
toString
().
getBytes
());
outputStream
.
flush
();
outputStream
.
close
();
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"Exception : AppointmentServlet :doPost(HttpServletRequest request, HttpServletResponse response) :"
+
e
);
try
{
throw
new
ITMException
(
e
);
}
catch
(
ITMException
e1
)
{
e1
.
printStackTrace
();
}
}
finally
{
if
(
appointment
!=
null
)
{
appointment
=
null
;
}
}
}
}
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