Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
587431c
formatted the code
aperdec Sep 27, 2016
bb823cd
Merge pull request #50 from aperdec/feature/formatting
aperdec Sep 27, 2016
9989bfd
added category and status to deficiency
aperdec Sep 28, 2016
f583e8a
fixed column inaccuracy for add deficiency
aperdec Sep 28, 2016
56ebbf1
formatting changes
aperdec Sep 28, 2016
9609478
all of the view work order pages and methods have been added
aperdec Sep 29, 2016
c7d25f1
added tiles support
aperdec Sep 29, 2016
28daaaa
Merge pull request #60 from aperdec/feature/adding-deficiency-data
aperdec Sep 29, 2016
f33d355
Merge branch 'develop' into feature/view-work-order
aperdec Sep 29, 2016
ab7355d
updated to meet add deficiency updates
aperdec Sep 29, 2016
52330f1
Merge pull request #61 from aperdec/feature/view-work-order
aperdec Sep 29, 2016
6241fe0
fixed navigation issues
aperdec Sep 29, 2016
f97a205
Merge pull request #62 from aperdec/feature/view-work-order
aperdec Sep 29, 2016
ae40eb3
added deadline to add deficiency
aperdec Sep 29, 2016
aca5373
Merge pull request #63 from aperdec/feature/adding-deficiency-data
aperdec Sep 29, 2016
a8d05f2
fixed delete deficiency issue
aperdec Sep 29, 2016
b816369
Merge pull request #66 from aperdec/feature/delete-deficiency-fix
aperdec Sep 29, 2016
eec21e0
fixed delete deficiency issue on work order
aperdec Sep 29, 2016
141e4a5
Merge pull request #67 from aperdec/feature/delete-deficiency-fix
aperdec Sep 29, 2016
fa9afc8
Categories.java added with all categories and subs
kirk4 Sep 29, 2016
0260eaf
deficiency auto increments
aperdec Sep 29, 2016
f370219
Merge pull request #70 from aperdec/feature/deficiency-auto-increment
aperdec Sep 29, 2016
a417636
Merge branch 'develop' into DefandCategory
aperdec Sep 29, 2016
879226a
added subcategory and made refactors
aperdec Sep 29, 2016
8aae1dc
Changed wording
kirk4 Sep 29, 2016
c4b4e1c
Merge pull request #72 from aperdec/CategoryUpdated
aperdec Sep 29, 2016
2aa3962
saves img to database having issue with calling image back out of db
catpoehlman Sep 29, 2016
88625e5
fixed delete deficiency bug
aperdec Sep 29, 2016
de66ccb
Merge pull request #73 from aperdec/feature/delete-deficiency-fix
aperdec Sep 29, 2016
5f69988
Added condominiums
kirk4 Sep 29, 2016
36fa28b
added services class and moved code from home controller to controlle…
aperdec Sep 30, 2016
a5940fa
fixed database connection issues
aperdec Sep 30, 2016
1287b4e
Uploading and displaying img from database is now working -- displaying
catpoehlman Sep 30, 2016
706031a
added additional controller services mapping
aperdec Sep 30, 2016
3e9867f
Merge pull request #74 from aperdec/feature/deficiency-dategories
aperdec Sep 30, 2016
08b2a8e
added maven dependency
aperdec Sep 30, 2016
a16a29a
Merge branch 'develop' into FormObjectCompletion
aperdec Sep 30, 2016
4394403
moved methods to controller service
aperdec Sep 30, 2016
1c08cd9
Merge pull request #75 from aperdec/FormObjectCompletion
aperdec Sep 30, 2016
8cbe144
Merge branch 'develop' of C:\Users\Kirk\Desktop\2016 Term5\Sem2\intel…
kirk4 Sep 30, 2016
5aab9f2
Merge branch 'develop' into Kirk3
aperdec Sep 30, 2016
174fb74
moved home controller data to service class
aperdec Sep 30, 2016
077e110
Merge pull request #79 from aperdec/Kirk3
aperdec Sep 30, 2016
35701f7
added a toggle for deficiencies to toggle completed or not
aperdec Oct 4, 2016
93c552b
Merge pull request #84 from aperdec/feature/status-change
aperdec Oct 4, 2016
3154c68
work order home page added and ability to sort by builder or project …
aperdec Oct 4, 2016
5c8f79c
added builder pages to select deficiencies by builder
aperdec Oct 5, 2016
fb6d0ce
Merge branch 'develop' into feature/work-order-sorting
aperdec Oct 5, 2016
5c72330
changed builder references to construction personnel
aperdec Oct 5, 2016
ab6cb4e
added constructor to form
aperdec Oct 6, 2016
36cb755
Merge remote-tracking branch 'origin/develop' into develop
kirk4 Oct 6, 2016
dda65c5
added contractor flow through the web pages and made the contractor l…
aperdec Oct 6, 2016
db41d85
added the construction personnel deficiency list display page
aperdec Oct 6, 2016
610e66d
added back buttons
aperdec Oct 6, 2016
3565d0a
Merge pull request #85 from aperdec/feature/work-order-sorting
aperdec Oct 6, 2016
3d191f6
Form object totally works
catpoehlman Oct 6, 2016
7596b52
For Transport do not merge
Elviis Oct 6, 2016
8fc041b
added a sorting algorithm to deficiencies in the dao
aperdec Oct 6, 2016
81fccb3
online db
catpoehlman Oct 6, 2016
52a4d6d
Merge branch 'develop' into FormObjFillOutPDI
aperdec Oct 6, 2016
ea144f6
Merge pull request #86 from aperdec/FormObjFillOutPDI
aperdec Oct 6, 2016
d3f0ef8
Merge branch 'develop' into features/working-on-sorting-deficiencies
aperdec Oct 6, 2016
bcb66e0
added sorting to unit deficiencies and fixed it for all controller se…
aperdec Oct 6, 2016
e1101f1
one small thing wasnt working
aperdec Oct 6, 2016
7a42838
Merge pull request #87 from aperdec/features/working-on-sorting-defic…
aperdec Oct 6, 2016
1612e64
Merge remote-tracking branch 'origin/develop' into develop
kirk4 Oct 6, 2016
59bd0bd
Added help page
kirk4 Oct 6, 2016
4b7bb49
good to go
Elviis Oct 6, 2016
21457a8
formatted
aperdec Oct 6, 2016
c0d3632
more formatting
aperdec Oct 6, 2016
45229e1
more formatting
aperdec Oct 6, 2016
35739bd
more formatting
aperdec Oct 6, 2016
9f716f3
more formatting
aperdec Oct 6, 2016
530235d
Merge pull request #88 from aperdec/feature/help
aperdec Oct 6, 2016
aed71b8
Merge branch 'develop' into pdiReport2
aperdec Oct 6, 2016
b4b0503
Merge pull request #89 from aperdec/pdiReport2
aperdec Oct 6, 2016
0c23cd9
most CSS for enter PDI
catpoehlman Oct 6, 2016
929de60
Good to go
Elviis Oct 7, 2016
3b911d0
signoffpage changes
catpoehlman Oct 7, 2016
3c3be39
Merge pull request #90 from aperdec/pdiReport4
aperdec Oct 7, 2016
67116c5
Merge pull request #91 from aperdec/Styling1
aperdec Oct 7, 2016
5c3522c
added formatting to the deficiency lists in work order
aperdec Oct 7, 2016
0d834a0
Merge pull request #92 from aperdec/feature/formatting-deficiency-lists
aperdec Oct 7, 2016
5133878
sign off signtaure 2 working
aperdec Oct 7, 2016
b5fc169
Merge pull request #93 from aperdec/feature/formatting-deficiency-lists
aperdec Oct 7, 2016
9330674
fixed deficiency list header
aperdec Oct 7, 2016
eb8388c
Merge pull request #94 from aperdec/feature/formatting-changes
aperdec Oct 7, 2016
b0894cf
Added help page
kirk4 Oct 7, 2016
30e2928
Merge pull request #95 from aperdec/feture/new
aperdec Oct 7, 2016
b86bc8c
added some formatting to the help page
aperdec Oct 7, 2016
583f12a
Merge pull request #96 from aperdec/feature/formatting-changes
aperdec Oct 7, 2016
6a6c184
Good to go
Elviis Oct 7, 2016
969c687
styling
catpoehlman Oct 7, 2016
0326338
Merge pull request #98 from aperdec/StylingByCat1
aperdec Oct 7, 2016
4e7f1bb
Merge branch 'develop' into pdiReport5
aperdec Oct 7, 2016
351e6ee
Merge pull request #97 from aperdec/pdiReport5
aperdec Oct 7, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 33 additions & 15 deletions WebContent/WEB-INF/jsps/addDeficiency.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>
<title>Perds' Wiki</title>
<title>Add Deficiency: ${unit.homeEnrollmentNumber}</title>
</head>
<body>

Expand All @@ -41,19 +41,28 @@
<div class="form-group">
<label for="id" class="col-lg-1 control-label">Deficiency Number</label>
<div class="col-lg-10">
<input path="id" name="id" class="form-control" id="id" placeholder="Id" required="required" />
<input path="id" name="id" class="form-control" id="id" value="${deficiency.id}" readonly/>
</div>
</div>

<div class="form-group">
<label for="location" class="col-lg-2 control-label">Location</label>
<label for="deadline" class="col-lg-1 control-label">Deadline</label>
<div class="col-lg-10">
<input path="deadline" name="deadline" class="form-control" id="deadline" value="${unit.posessionDate}" readonly/>
</div>
</div>

<div class="form-group">
<label for="location" class="col-lg-1 control-label">Location</label>
<div class="col-lg-10">
<select name="location" class="form-control" id="location">
<option>Kitchen</option>
<option>Master Bedroom</option>
<option>Bedroom</option>
<option>Living Room</option>
<option>Dining Room</option>
<option>Hallway</option>
<option>Bedroom</option>
<option>Master Washroom</option>
<option>Washroom</option>
</select>
</div>
Expand All @@ -68,28 +77,37 @@
</div>

<div class="form-group">
<label for="constructionPersonnel" class="col-lg-2 control-label">Assign To</label>
<label for="constructionPersonnel" class="col-lg-1 control-label">Assign To</label>
<div class="col-lg-10">
<select class="form-control" id="constructionPersonnel" name="constructionPersonnel">
<option>Jane Smith</option>
<option>Joey Batts</option>
<option>Jackson Trig</option>
<option>Jeffeory Spindle</option>
<option>Jim Gerale</option>
<option>Joelle Done</option>
<c:forEach var="constructionPersonnel" items="${constructionPersonnelList}">
<option>${constructionPersonnel.name}</option>
</c:forEach>
</select>
</div>
</div>

<div class="form-group">
<label for="category" class="col-lg-1 control-label">Category</label>
<div class="col-lg-10">
<select class="form-control" id="category" name="category">
<c:forEach var="category" items="${categories.categoryList}">
<option>${category.subCategoryName}</option>
</c:forEach>
</select>
</div>
</div>



<input type="hidden" name="homeEnrollmentNumber" value="${unit.homeEnrollmentNumber}"/>
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>

<input type="submit" value="Save Deficiency" class="btn btn-primary "
style="margin-left: 8.33333333333%" />
<input type="submit" value="Save Deficiency" class="btn btn-primary" style="margin-left: 8.33333333333%" />


<c:url value="/displayUnitDeficiencies/${unit.homeEnrollmentNumber}" var="displayUnitDeficiencies" />
<a href="${displayUnitDeficiencies}" class="pull-right btn btn-default">Back</a>
<c:url value="/displayUnitDeficiencies/${unit.homeEnrollmentNumber}" var="displayUnitDeficiencies" />
<a href="${displayUnitDeficiencies}" class="pull-right btn btn-default">Back</a>



Expand Down
141 changes: 61 additions & 80 deletions WebContent/WEB-INF/jsps/addSignOff.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script src="scripts/modernizr.custom.34982.js"></script>

<script src="scripts/signing.js"></script>
<script src="scripts/signatureCapture.js"></script>
<script src="../scripts/modernizr.custom.34982.js"></script>

<script src="../scripts/signing.js"></script>
<script src="../scripts/signatureCapture.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
Expand Down Expand Up @@ -40,110 +39,95 @@
#canvasContainer {
border: 1px solid grey;
border-radius: 5px;
background-color:white;
}
#smallJum{
background-color:#EDEEFF;
padding: 2%;
border-radius: 15px;
}
</style>
<title>SignOff Form</title>
</head>
<body>

<!-- <p style="font-size:160%;">aBode</p> -->



<div style="margin: 2%">

<c:url value="/register" var="url" />
<form name="form" method="post" action="${url}"
class="form-horizontal" onsubmit="return verify()">
<!-- May not need!!
<div class="form-group">

<label for="homeCivicAddress" class="col-lg-8 control-label">Vendor/Builder and Home Address Information</label>

<div class="col-lg-4">
<input path="homeCivicAddress" name="txtHomeCivicAddress"
class="form-control" id="homeCivicAddress" placeholder="Enter Home Enrollment Number"
required="required" type="text" />
</div>


</div>

<div class="form-group">
</div> -->


<fieldset>
<div id="smallJum">
<fieldset>
<c:url value="/addSignOff" var="url" />
<form name="form" method="post" action="${url}" class="form-horizontal" onsubmit="return verify()">

<legend>SignOff Form</legend>


<div class="form-group">
<p>I have inspected my new home and I agree that the descriptions of the items listed on this form are accurate.</p>
<p>I have inspected my new home and I agree that the descriptions of the items listed on
this form are accurate.</p>
</div>

<!-- -->
<!--entry row 1 -->

<div class="form-group">
<label for="date" class="col-lg-3 control-label">Date</label>

<div class="col-lg-2">
<input path="date" name="txtDate" class="form-control"
id="level" placeholder="" required="required" type="text" />
</div>
<input path="date" name="date" class="form-control" value="${form.date}"
id="date" placeholder="" required="required" type="text" />
</div>
</div>
<!--entry row 2 -->
<div class="form-group">

<label for="purchasersName" class="col-lg-3 control-label">Purchaser's Name</label>
<label for="purchName" class="col-lg-3 control-label">Purchaser's Name</label>

<div class="col-lg-4">
<input path="purchasersName" name="txtPurchasersName" class="form-control" id="purchasersName"
placeholder="" required="required" type="text" />
<input path="purchName" name="txtPurchasersName" class="form-control" id="purchName"
placeholder="" value="${form.purchName}" required="required" type="text" />
</div>
</div>
<!--entry row 3 -->
<div class="form-group">
<label for="desName" class="col-lg-3 control-label">Designator's Name</label>

<label for="designatorsName" class="col-lg-3 control-label">Designator's * Name</label>

<div class="col-lg-2">
<input path="designatorsName" name="txtDesignatorsName"
class="form-control" id="designatorsName"
placeholder="" required="required" type="text" />
<div class="col-lg-4">
<input path="desName" name="desName" class="form-control" id="desName" value="${form.desName}"
placeholder="" type="text" />

</div>
</div>
<!-- row 4 -->
<input type="hidden" name="homeEnrollmentNumber" value="${form.homeEnrollmentNumber}"/>
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<div class="form-group">
<input type="submit" value="Save" class="pull-right btn btn-primary" />

<!-- end of row 2 start of row 3 -->

</div>
</form>
<div class="form-group">

<label for="purchasersSig" class="col-lg-3 control-label">Designator / Purchaser's Signature</label>
<label for="finalSig" class="col-lg-3 control-label">Designator / Purchaser's Signature</label>
<div class="col-lg-4">
<div id="canvasContainer" width="300px" >
<canvas id="signature" height="200px" />
</div>
</div>
<!--<div><button onclick="to_image()">Accept</button></div>-->
<div><button id="acc2" onclick="accept()">Accept</button></div>

<div><button id="acc2" onclick="accept()" class="btn btn-primary btn-sm">Accept</button></div>
<div id="acc1"></div>
<br><br>
<div><button onclick="clearSig()">Redo</button></div>

<!--
<div class="col-lg-4">
<input path="purchasersSig" name="txtPurchasersSig"
class="form-control" id="purchasersSig" placeholder=""
required="required" type="text" />
</div> -->
<div><button onclick="clearSig()" class="btn btn-default btn-sm">Redo</button></div>


</div>

<!-- end of row 3 start of row 4 -->
<div class="form-group">
<p>* Purchasers or owners who intend to designate someone to conduct the PDI in their place should ensure they
provide written authority to the vendor/builder authorizing the designate to sign this form on their behalf</p>
<br>
<!-- <p>I the homeowner, confirm that all repair work listed has been completed.</p> -->
</div>
</div>
</fieldset>
</div>
</div>
<!-- end text -->

<div>
<p>* Purchasers or owners who intend to designate someone to conduct the PDI in their place should ensure they
provide written authority to the vendor/builder authorizing the designate to sign this form on their behalf</p>
<br>
<!-- <p>I the homeowner, confirm that all repair work listed has been completed.</p> -->
</div>

<!-- end of row 5 start of row 6 -->
<!-- MAY NOT NEED
Expand All @@ -169,19 +153,17 @@

<!-- end of row 6 start of row 7 -->

<div class="form-group">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>

<div class="form-group">
<c:url value="/" var="home" />
<a href="${home}" class="pull-right btn btn-default">Finish</a>
<a href="${home}" class="pull-right btn btn-success" id="nextBtn">Finish</a>

</div>
</div>

<div class="form-group">


<input type="hidden" name="${_csrf.parameterName}"
value="${_csrf.token}" /> <input type="submit" value="Save"
class="pull-right btn btn-default" onclick="verify()"
/>
<c:url value="/displayUnitDeficiencies/${form.homeEnrollmentNumber}" var="displayUnitDeficiencies" />
<a href="${displayUnitDeficiencies}" class="pull-left btn btn-default" id="backBtn">Back</a>

</div>

Expand All @@ -190,8 +172,7 @@
<!-- end -->


</fieldset>
</form>


</div>

Expand Down
49 changes: 49 additions & 0 deletions WebContent/WEB-INF/jsps/displayBuildingProjects.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"
integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r"
crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>

<title>aBode</title>
</head>
<body>

<div style="margin: 2%">
<div class="list-group">
<c:forEach var="project" items="${projectList}">
<c:url value="/displayUnits/${project}" var="viewUrl" />
<a href="${viewUrl}" class="list-group-item"> ${project} </a>
</c:forEach>
</div>
</div>

<div style="padding: 0% 2%">

<c:url value="/workOrderHome" var="backUrl" />
<a href="${backUrl}" class="btn btn-default">Back</a>
</div>

</body>
</html>
Loading