Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 454f7c0e
authored
Oct 26, 2012
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of codecrew.fi:bortal
2 parents
45ed677c
ea6c8c39
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
137 additions
and
87 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/CardPrintBean.java
code/LanBortalWeb/WebContent/foodadmin/editTemplate.xhtml
code/LanBortalWeb/WebContent/foodadmin/listTemplates.xhtml
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
code/LanBortalWeb/WebContent/foodmanager/listOrders.xhtml
code/LanBortalWeb/WebContent/resources/cditools/user/edit.xhtml
code/LanBortalWeb/WebContent/resources/style/insomnia2/css/general.css
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/CardPrintBean.java
View file @
454f7c0
...
...
@@ -107,6 +107,9 @@ public class CardPrintBean implements CardPrintBeanLocal {
.
read
(
new
ByteArrayInputStream
(
user
.
getCurrentImage
()
.
getImageData
()));
if
(
faceBufferedImage
.
getWidth
()
>
1024
||
faceBufferedImage
.
getHeight
()
>
1024
)
{
throw
new
Exception
(
"Image dimensions too large, please take/upload smaller!"
);
}
int
originalWidth
=
faceBufferedImage
.
getWidth
();
int
originalHeight
=
faceBufferedImage
.
getHeight
();
...
...
code/LanBortalWeb/WebContent/foodadmin/editTemplate.xhtml
View file @
454f7c0
...
...
@@ -41,14 +41,14 @@
<h:commandButton
action=
"#{foodWaveView.saveTemplate()}"
value=
"#{i18n['foodwavetemplate.save']}"
/>
</h:panelGrid>
<h:selectOneMenu
value=
"#{foodWaveView.currentProduct}"
<
!-- <
h:selectOneMenu value="#{foodWaveView.currentProduct}"
converter="#{productConverter}">
<f:selectItems value="#{foodWaveView.products}" var="product"
itemLabel="#{product.name}"></f:selectItems>
</h:selectOneMenu>
<p:commandButton value="#{i18n['foodwavetemplate.addproduct']}"
actionListener="#{foodWaveView.addProductToTemplate}"
update=
"productTable"
/>
update="productTable" />
-->
<h:panelGrid
columns=
"4"
>
...
...
code/LanBortalWeb/WebContent/foodadmin/listTemplates.xhtml
View file @
454f7c0
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:products=
"http://java.sun.com/jsf/composite/cditools/products"
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:products=
"http://java.sun.com/jsf/composite/cditools/products"
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initTemplateList()}"
/>
<f:viewParam
name=
"id"
value=
"#{foodWaveView.templateId}"
/>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initTemplateList()}"
/>
</f:metadata>
<ui:define
name=
"title"
>
...
...
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
View file @
454f7c0
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:foodwave=
"http://java.sun.com/jsf/composite/cditools/foodwave"
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:foodwave=
"http://java.sun.com/jsf/composite/cditools/foodwave"
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
xmlns:p=
"http://primefaces.org/ui"
>
<h:body>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initFoodwaveManagerList}"
/>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initFoodwaveManagerList}"
/>
</f:metadata>
<ui:define
name=
"title"
>
<h1>
fixme
</h1>
<h1>
#{i18n['foodWave.list']}
</h1>
</ui:define>
<ui:define
name=
"content"
>
<h:dataTable
columnClasses=
"nowrap,numalign,numalign,nowrap,numalign"
styleClass=
"bordertable"
value=
"#{foodWaveView.foodWaves}"
var=
"foodwave"
>
<h:column
>
<p:dataTable
styleClass=
"bordertable"
value=
"#{foodWaveView.foodWaves}"
var=
"foodwave"
>
<p:column>
<f:facet
name=
"header"
>
<h:output
Label
id=
"name"
value=
"${i18n['foodWave.na
me']}"
/>
<h:output
Text
value=
"${i18n['foodWave.ti
me']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.name}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
<h:column>
<h:outputText
value=
"#{foodwave.time.time}"
>
<f:convertDateTime
pattern=
"hh:mm d/M/yy"
/>
</h:outputText>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.template.name']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.template.name}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
<h:column>
<h:outputText
value=
"#{foodwave.template.name}"
/>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:output
Text
value=
"${i18n['foodWave.orders
']}"
/>
<h:output
Label
id=
"name"
value=
"${i18n['foodWave.name
']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.accountEvents.size()}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
<h:column>
<h:outputText
value=
"#{foodwave.name}"
/>
</p:column>
<p:column
styleClass=
"text-center"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.
unconfirmedOrders
']}"
/>
<h:outputText
value=
"${i18n['foodWave.
paid
']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.billLines.size()}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
<h:column>
<h:outputText
value=
"#{foodwave.accountEvents.size()}"
/>
</p:column>
<p:column
styleClass=
"text-center"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.
totalReserved
']}"
/>
<h:outputText
value=
"${i18n['foodWave.
unconfirmedOrders
']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.reservedCount}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
<h:column>
<h:outputText
value=
"#{foodwave.billLines.size()}"
/>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.t
ime
']}"
/>
<h:outputText
value=
"${i18n['foodWave.t
otalReserved
']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.reservedCount}"
/>
/
<h:outputText
value=
"#{foodwave.maximumFoods}"
/>
</p:column>
<p:column>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{
foodwave.time.time
}"
>
value=
"#{
i18n['foodWave.show']
}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
</h:dataTable>
</p:column>
</p:dataTable>
</ui:define>
...
...
code/LanBortalWeb/WebContent/foodmanager/listOrders.xhtml
View file @
454f7c0
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:foodwave=
"http://java.sun.com/jsf/composite/cditools/foodwave"
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:foodwave=
"http://java.sun.com/jsf/composite/cditools/foodwave"
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
xmlns:p=
"http://primefaces.org/ui"
>
<h:body>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<f:metadata>
<f:viewParam
name=
"foodwaveid"
value=
"#{foodWaveView.foodWaveId}"
required=
"true"
/>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initFoodWaveOrderList}"
/>
<!-- <f:event type="preRenderView" listener="#{foodWaveView.initFoodwaveAccountEventList}" /> -->
<f:viewParam
name=
"foodwaveid"
value=
"#{foodWaveView.foodWaveId}"
required=
"true"
/>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initFoodWaveOrderList}"
/>
<!-- <f:event type="preRenderView" listener="#{foodWaveView.initFoodwaveAccountEventList}" /> -->
</f:metadata>
<ui:define
name=
"title"
>
...
...
@@ -16,62 +25,69 @@
</ui:define>
<ui:define
name=
"content"
>
<h1><h:outputLabel
id=
"name"
value=
"${i18n['foodWave.billLines']}"
/></h1>
<h:dataTable
columnClasses=
"nowrap,numalign,numalign,nowrap,numalign"
styleClass=
"bordertable"
value=
"#{foodWaveView.billLines}"
var=
"billLine"
>
<h:column
>
<h1>
<h:outputLabel
id=
"name"
value=
"${i18n['foodWave.billLines']}"
/>
</h1>
<p:dataTable
styleClass=
"bordertable"
value=
"#{foodWaveView.foodWaves.billLines}"
var=
"foodwave"
>
<p:column>
<f:facet
name=
"header"
>
<h:outputLabel
id=
"name"
value=
"${i18n['billLine.name']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{
billLine
.name}"
>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{
foodwave.billLines
.name}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['billLine.quanti
n
y']}"
/>
<h:outputText
value=
"${i18n['billLine.quanti
t
y']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.
template.name
}"
>
<f:param
name=
"foodwaveid"
value=
"#{food
WaveView.billLines.rowCount
}"
/>
value=
"#{foodwave.
billLines.rowCount
}"
>
<f:param
name=
"foodwaveid"
value=
"#{food
wave.id
}"
/>
</h:link>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['billLine.unitprice']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodWaveView.currentProduct.price}"
>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.currentProduct.price}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.unconfirmedOrders']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodWaveView.billLines.rowCount}"
>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.billLines.rowCount}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
<!--
<h:column>
</p:column>
<!--
<p:column>
<f:facet name="header">
<h:outputText value="${i18n['foodWave.totalReserved']}" />
</f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodWaveView.currentProduct.totalreserved}">
<f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link>
</
h
:column> -->
<
h
:column>
</
p
:column> -->
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.time']}"
/>
</f:facet>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{foodwave.
time.tim
e}"
>
value=
"#{foodwave.
billLin
e}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</h:column>
</h:dataTable>
</p:column>
</p:dataTable>
</ui:define>
...
...
code/LanBortalWeb/WebContent/resources/cditools/user/edit.xhtml
View file @
454f7c0
This diff is collapsed.
Click to expand it.
code/LanBortalWeb/WebContent/resources/style/insomnia2/css/general.css
View file @
454f7c0
...
...
@@ -17,3 +17,6 @@ display: none;
}
.text-center
{
text-align
:
center
;
}
\ No newline at end of file
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
View file @
454f7c0
...
...
@@ -182,10 +182,16 @@ eventorganiser.name = Eventorganiser
food
=
Food
foodWave.description
=
Description
foodWave.name
=
Name
foodWave.template.name
=
Name
foodWave.time
=
Time
foodWave.description
=
Description
foodWave.list
=
FoodWave Listing
foodWave.name
=
Foodwave
foodWave.orders
=
Amount of Orders
foodWave.paid
=
Paid
foodWave.show
=
Show
foodWave.template.name
=
Template
foodWave.time
=
Time
foodWave.totalReserved
=
Total
foodWave.unconfirmedOrders
=
Unconfirmed
foodshop.buyFromCounter
=
Pay at info
foodshop.buyFromInternet
=
Pay at Internet
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
View file @
454f7c0
...
...
@@ -180,10 +180,16 @@ eventorganiser.name = Tapahtumaj\u00E4rjest\u00E4j\u00E4
food
=
Ruoka
foodWave.description
=
Kuvaus
foodWave.name
=
Nimi
foodWave.template.name
=
Nimi
foodWave.time
=
Aika
foodWave.description
=
Kuvaus
foodWave.list
=
Ruokatilausten listaus
foodWave.name
=
Ruokatilaus
foodWave.orders
=
Tilausten M
\u
00E4
\u
00E4r
\u
00E4
foodWave.paid
=
Maksettuja
foodWave.show
=
N
\u
00E4yt
\u
00E4
foodWave.template.name
=
Template
foodWave.time
=
Aika
foodWave.totalReserved
=
Yhteens
\u
00E4
foodWave.unconfirmedOrders
=
Vahvistamattomia
foodshop.buyFromCounter
=
Maksa infossa
foodshop.buyFromInternet
=
Maksa Internetiss
\u
00E4
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
View file @
454f7c0
...
...
@@ -79,7 +79,8 @@ public class FoodWaveView extends GenericCDIView {
selectedFoodWave
.
setTime
(
c
);
foodWaveBean
.
createFoodWave
(
selectedFoodWave
);
// initFoodwaveManagerList();
initFoodwaveManagerList
();
return
"/foodmanager/listFoodwaves"
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment