Skip to content

Commit

Permalink
Merge branch 'master' into issue#4674
Browse files Browse the repository at this point in the history
  • Loading branch information
DamithDeshan authored Apr 20, 2024
2 parents 073efa0 + 82388ea commit 0789a9a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/counter.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2
3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Developed using Java Enterprise Edition, the system offers both a web applicatio

## Current Version

Current Version: 3.0.0.20240420.2 (This line will be automatically updated to reflect the latest version)
Current Version: 3.0.0.20240420.3 (This line will be automatically updated to reflect the latest version)


## History
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ public void setDate(Date date) {
}

public void searchForBillSessions() {
//// // System.out.println("getFromDate() = " + getFromDate());
//// // System.out.println("getToDate() = " + getToDate());
//System.out.println("getFromDate() = " + getFromDate());
//System.out.println("getToDate() = " + getToDate());
//// // System.out.println("txtSearch = " + txtSearch);
//// // System.out.println("txtSearchRef = " + txtSearchRef);
if (getFromDate() == null && getToDate() == null
Expand Down Expand Up @@ -179,10 +179,12 @@ public void searchForBillSessions() {
m.put("class", BilledBill.class);

if (getFromDate() != null && getToDate() != null) {
System.out.println("getBillSessionFacade().findByJpql(sql, m, TemporalType.TIMESTAMP) = " + getBillSessionFacade().findByJpql(sql, m, TemporalType.TIMESTAMP));
searchedBillSessions = getBillSessionFacade().findByJpql(sql, m, TemporalType.TIMESTAMP);
} else {
searchedBillSessions = getBillSessionFacade().findByJpql(sql, m);
}
System.out.println("searchedBillSessions = " + searchedBillSessions);

}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0.20240420.2
3.0.0.20240420.3
14 changes: 8 additions & 6 deletions src/main/webapp/channel/manage_booking.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -655,20 +655,22 @@
</p:tab>


<p:tab title="Search">
<p:tab title="Search" rendered="false">

<p:calendar id="calFrom" value="#{channelSearchController.fromDate}" pattern="dd MMMM yyyy" >
<f:ajax event="dateSelect" execute="@this" render="bSessionSearch"/>
</p:calendar>
<p:calendar id="calTo" value="#{channelSearchController.toDate}" pattern="dd MMMM yyyy" >
<p:calendar class="mx-2" id="calTo" value="#{channelSearchController.toDate}" pattern="dd MMMM yyyy" >
<f:ajax event="dateSelect" execute="@this" render="bSessionSearch"/>
</p:calendar>

<p:inputText id="txtBsSearch" value="#{channelSearchController.txtSearch}" placeholder="ID" >
</p:inputText>

<p:commandButton id="btnBsSearch"
value="Search" action="#{channelSearchController.searchForBillSessions}"
<p:commandButton id="btnBsSearch"
class="ui-button-warning mx-2" icon="fas fa-search"
value="Search" action="#{channelSearchController.searchForBillSessions}"
ajax="false"
process="txtBsSearch calFrom calTo btnBsSearch"
update="bSessionSearch">

Expand All @@ -679,15 +681,15 @@
filteredValue="#{channelSearchController.filteredbillSessions}">


<p:column headerText="Booking Id" filterBy="#{bs.bill.bookingId}" filterMatchMode="contains">
<p:column headerText="Booking ID" filterBy="#{bs.bill.bookingId}" filterMatchMode="contains">
<h:commandLink action="channel_booking" actionListener="#{bookingController.resetToStartFromSpeciality}"> #{bs.bill.bookingId}
<f:setPropertyActionListener target="#{bookingController.speciality}" value="#{bs.serviceSession.staff.speciality}"/>
<f:setPropertyActionListener target="#{bookingController.staff}" value="#{bs.serviceSession.staff}"/>
<f:setPropertyActionListener target="#{bookingController.selectedServiceSession}" value="#{bs.serviceSession}"/>
<f:setPropertyActionListener target="#{bookingController.selectedBillSession}" value="#{bs}"/>
</h:commandLink>
</p:column>
<p:column headerText="Sepeciality" filterBy="#{bs.serviceSession.staff.speciality.name}" filterMatchMode="contains">
<p:column headerText="Speciality" filterBy="#{bs.serviceSession.staff.speciality.name}" filterMatchMode="contains">
<h:commandLink action="channel_booking" actionListener="#{bookingController.resetToStartFromSpeciality}">#{bs.serviceSession.staff.speciality.name}
<f:setPropertyActionListener target="#{bookingController.speciality}" value="#{bs.serviceSession.staff.speciality}"/>
<f:setPropertyActionListener target="#{bookingController.staff}" value="#{bs.serviceSession.staff}"/>
Expand Down

0 comments on commit 0789a9a

Please sign in to comment.