Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 707c1741
authored
Dec 22, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'billist' into 'master'
Bill list fix Fix users bill list See merge request !180
2 parents
5437c64b
a1396449
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/QueueBean.java
code/moya-web/WebContent/resources/cditools/bills/list.xhtml
code/moya-web/WebContent/user/accountEvents.xhtml
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/BillListView.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/QueueBean.java
View file @
707c174
...
@@ -53,7 +53,7 @@ public class QueueBean implements QueueBeanLocal {
...
@@ -53,7 +53,7 @@ public class QueueBean implements QueueBeanLocal {
private
final
Map
<
Integer
,
MapQueue
>
mapqueues
;
private
final
Map
<
Integer
,
MapQueue
>
mapqueues
;
private
int
defaultTimeoutMin
=
10
;
private
int
defaultTimeoutMin
=
10
;
private
int
minimumSlotsInQueue
=
1
5
;
private
int
minimumSlotsInQueue
=
1
;
private
int
reservingSize
=
5
;
private
int
reservingSize
=
5
;
private
class
MapQueue
implements
MapQueueI
{
private
class
MapQueue
implements
MapQueueI
{
...
...
code/moya-web/WebContent/resources/cditools/bills/list.xhtml
View file @
707c174
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<f:facet
name=
"header"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['bill.payer']}"
/>
<h:outputText
value=
"#{i18n['bill.payer']}"
/>
</f:facet>
</f:facet>
<h:link
rendered=
"#{billListView.canWriteBill}"
outcome=
"/useradmin/edit"
value=
"#{bill.user.user.login}"
>
<h:link
rendered=
"#{billListView.canWriteBill}"
outcome=
"/useradmin/edit"
value=
"#{bill.user.user.login}
#{bill.addr1}
"
>
<f:param
name=
"userid"
value=
"#{bill.user.user.id}"
/>
<f:param
name=
"userid"
value=
"#{bill.user.user.id}"
/>
</h:link>
</h:link>
<h:outputText
rendered=
"#{not billListView.canWriteBill}"
<h:outputText
rendered=
"#{not billListView.canWriteBill}"
...
@@ -173,9 +173,6 @@
...
@@ -173,9 +173,6 @@
<
ui
:
repeat
var
=
"ac"
value
=
"#{billListView.paytrailAuthcodes}"
>
<
ui
:
repeat
var
=
"ac"
value
=
"#{billListView.paytrailAuthcodes}"
>
<
h
:
outputText
value
=
"authcodes['#{ac.key}'] ='#{ac.value}';"
/>
<
h
:
outputText
value
=
"authcodes['#{ac.key}'] ='#{ac.value}';"
/>
<
/ui:repeat
>
<
/ui:repeat
>
alert
(
"Parsed javascript"
);
</script>
</script>
</composite:implementation>
</composite:implementation>
...
...
code/moya-web/WebContent/user/accountEvents.xhtml
View file @
707c174
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</p:column>
</p:column>
<p:columnGroup
type=
"footer"
>
<p:columnGroup
type=
"footer"
>
<p:row>
<p:row>
<p:column
colspan=
"
3
"
style=
"text-align: right;"
footerText=
"#{i18n['user.accountBalance']}"
/>
<p:column
colspan=
"
5
"
style=
"text-align: right;"
footerText=
"#{i18n['user.accountBalance']}"
/>
<p:column
footerText=
"#{userView.user.accountBalance}"
style=
"text-align: left;"
/>
<p:column
footerText=
"#{userView.user.accountBalance}"
style=
"text-align: left;"
/>
</p:row>
</p:row>
</p:columnGroup>
</p:columnGroup>
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/BillListView.java
View file @
707c174
...
@@ -97,8 +97,13 @@ public class BillListView extends GenericCDIView {
...
@@ -97,8 +97,13 @@ public class BillListView extends GenericCDIView {
}
}
public
Object
[]
getPaytrailAuthcodes
()
{
public
Object
[]
getPaytrailAuthcodes
()
{
Set
<
Entry
<
Integer
,
String
>>
ret
=
paytrailAuthcodes
.
entrySet
();
Object
[]
retarr
=
null
;
return
ret
.
toArray
();
if
(
paytrailAuthcodes
!=
null
)
{
Set
<
Entry
<
Integer
,
String
>>
ret
=
paytrailAuthcodes
.
entrySet
();
retarr
=
ret
.
toArray
();
}
return
retarr
;
}
}
public
String
getAuthcodeForBill
(
Integer
id
)
{
public
String
getAuthcodeForBill
(
Integer
id
)
{
...
...
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