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 a1396449
authored
Dec 17, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix my bills
1 parent
5437c64b
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 @
a139644
...
...
@@ -53,7 +53,7 @@ public class QueueBean implements QueueBeanLocal {
private
final
Map
<
Integer
,
MapQueue
>
mapqueues
;
private
int
defaultTimeoutMin
=
10
;
private
int
minimumSlotsInQueue
=
1
5
;
private
int
minimumSlotsInQueue
=
1
;
private
int
reservingSize
=
5
;
private
class
MapQueue
implements
MapQueueI
{
...
...
code/moya-web/WebContent/resources/cditools/bills/list.xhtml
View file @
a139644
...
...
@@ -40,7 +40,7 @@
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['bill.payer']}"
/>
</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}"
/>
</h:link>
<h:outputText
rendered=
"#{not billListView.canWriteBill}"
...
...
@@ -173,9 +173,6 @@
<
ui
:
repeat
var
=
"ac"
value
=
"#{billListView.paytrailAuthcodes}"
>
<
h
:
outputText
value
=
"authcodes['#{ac.key}'] ='#{ac.value}';"
/>
<
/ui:repeat
>
alert
(
"Parsed javascript"
);
</script>
</composite:implementation>
...
...
code/moya-web/WebContent/user/accountEvents.xhtml
View file @
a139644
...
...
@@ -63,7 +63,7 @@
</p:column>
<p:columnGroup
type=
"footer"
>
<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:row>
</p:columnGroup>
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/BillListView.java
View file @
a139644
...
...
@@ -97,8 +97,13 @@ public class BillListView extends GenericCDIView {
}
public
Object
[]
getPaytrailAuthcodes
()
{
Set
<
Entry
<
Integer
,
String
>>
ret
=
paytrailAuthcodes
.
entrySet
();
return
ret
.
toArray
();
Object
[]
retarr
=
null
;
if
(
paytrailAuthcodes
!=
null
)
{
Set
<
Entry
<
Integer
,
String
>>
ret
=
paytrailAuthcodes
.
entrySet
();
retarr
=
ret
.
toArray
();
}
return
retarr
;
}
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