Skip to content

Commit

Permalink
update stock
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasankavikum committed Apr 16, 2022
1 parent a083d9f commit e2aa54c
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

87 changes: 87 additions & 0 deletions WebContent/WEB-INF/Query.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<Querys>

<query id="insert_employeedetails">
<![CDATA[
insert into employee_details(empFullName, empNIC, empGender, empEmail, empAge, empAddress, empContactNo, empCategory)
values (?, ?, ?, ?, ?, ?, ?, ?)
]]>
</query>

<query id="all_employeedetails">
<![CDATA[
select empId, empFullName, empNIC, empGender, empEmail, empAge, empAddress, empContactNo, empCategory
from employee_details
]]>
</query>

<query id="employeedetails_by_id">
<![CDATA[
select empid, empFullName, empNIC, empGender, empEmail, empAge, empAddress, empContactNo, empCategory
from employee_details
where empId = ?
]]>
</query>

<query id="remove_employeedetails">
<![CDATA[
delete from employee_details where empId = ?
]]>
</query>

<query id="update_employeedetails">
<![CDATA[
update employee_details as g
set g.empFullName = ?, g.empNIC = ?, g.empGender = ?, g.empEmail = ?,
g.empAge = ?, g.empAddress = ?, g.empContactNo = ?, g.empCategory = ?
where g.empId = ?
]]>
</query>


<query id="insert_vaccinedetails">
<![CDATA[
insert into vaccine_details(batch_number, vaccine_name, receive_date, country, expire_date, quantity)
values (?, ?, ?, ?, ?, ?)
]]>
</query>

<query id="all_vaccinedetails">
<![CDATA[
select vaccineNo, batch_number, vaccine_name, receive_date, country, expire_date, quantity
from vaccine_details
]]>
</query>

<query id="vaccinedetails_by_id">
<![CDATA[
select vaccineNo, batch_number, vaccine_name, receive, country, expire, quantity
from vaccine_details
where vaccineNo = ?
]]>
</query>

<query id="remove_vaccinedetails">
<![CDATA[
delete from vaccine_details where vaccineNo = ?
]]>
</query>

<query id="update_vaccinedetails">
<![CDATA[
update vaccine_details as g
set g.batch_number = ?, g.vaccine_name = ?, g.receive = ?, g.country = ?,
g.expire = ?, g.quantity = ?
where g.vaccineNo = ?
]]>
</query>

<query id="print_vaccinedetails">
<![CDATA[
select vaccineName, COUNT(*) as count
from vaccine_details
group by vaccineName
]]>
</query>

</Querys>
Binary file not shown.
7 changes: 7 additions & 0 deletions WebContent/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
<display-name>Red Cross Support Service</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

0 comments on commit e2aa54c

Please sign in to comment.