Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 fce4b5f6
authored
Oct 21, 2010
by
Jani Huhtala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tyyliviilausta tapahtumaa varten
1 parent
bc1828ec
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
3 deletions
code/LanBortalDatabase/src/META-INF/persistence.xml
code/LanBortalDatabase/src/fi/insomnia/bortal/model/AccountEvent.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/BillLine.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Compo.java
code/LanBortalWeb/WebContent/layout/insomnia1/template.xhtml
code/LanBortalWeb/WebContent/resources/style/insomnia1/img/header.gif
code/LanBortalWeb/WebContent/resources/style/insomnia1/style.css
code/LanBortalDatabase/src/META-INF/persistence.xml
View file @
fce4b5f
...
...
@@ -5,6 +5,7 @@
<persistence-unit
name=
"BortalDb"
transaction-type=
"JTA"
>
<jta-data-source>
jdbc/bortal
</jta-data-source>
<properties>
<property
name=
"eclipselink.ddl-generation"
value=
"create-tables"
/>
<property
name=
"eclipselink.ddl-generation.output-mode"
value=
"both"
/>
<property
name=
"eclipselink.cache.size.default"
value=
"16384"
/>
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/AccountEvent.java
View file @
fce4b5f
...
...
@@ -28,6 +28,7 @@ import javax.persistence.TemporalType;
* Account event contains the money / credit traffic for the user. Each row
* references a Product entity.
*/
@Entity
@Table
(
name
=
"account_events"
)
@NamedQueries
({
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/BillLine.java
View file @
fce4b5f
...
...
@@ -25,6 +25,7 @@ import javax.persistence.Version;
*/
@Entity
@Table
(
name
=
"bill_lines"
)
@NamedQueries
({
@NamedQuery
(
name
=
"BillLine.findAll"
,
query
=
"SELECT b FROM BillLine b"
),
...
...
@@ -37,6 +38,8 @@ public class BillLine implements EventChildInterface {
private
static
final
BigDecimal
DEFAULT_VAT
=
BigDecimal
.
ZERO
;
@EmbeddedId
private
EventPk
id
;
/**
* Product name shown on the bill
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Compo.java
View file @
fce4b5f
...
...
@@ -38,6 +38,7 @@ import javax.persistence.Version;
@NamedQuery
(
name
=
"Compo.findBySubmitEnd"
,
query
=
"SELECT c FROM Compo c WHERE c.submitEnd = :submitEnd"
),
@NamedQuery
(
name
=
"Compo.findByHoldVoting"
,
query
=
"SELECT c FROM Compo c WHERE c.holdVoting = :holdVoting"
),
@NamedQuery
(
name
=
"Compo.findByDescription"
,
query
=
"SELECT c FROM Compo c WHERE c.description = :description"
)
})
public
class
Compo
implements
EventChildInterface
{
private
static
final
long
serialVersionUID
=
1L
;
@EmbeddedId
...
...
code/LanBortalWeb/WebContent/layout/insomnia1/template.xhtml
View file @
fce4b5f
...
...
@@ -22,9 +22,16 @@
<div
id=
"wrapper"
>
<div
id=
"navigation"
>
<img
id=
"head"
src=
"#{request.contextPath}/resources/style/insomnia1/img/header.gif"
alt=
"headerimage"
/>
<div
style=
"float: left"
>
<div
id=
"headerbox"
><tools:isLoggedIn>
#{sessionHandler.loginname}
</tools:isLoggedIn><tools:loginLogout
/></div>
<div>
</div>
<div
id=
"mainmenu"
>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'frontpage'?'a':''}"
>
<h:link
outcome=
"/index"
value=
"#{i18n['topmenu.frontpage']}"
/></div>
<tools:isLoggedIn>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'user'?'a':''}"
>
<h:link
outcome=
"/user/editself"
value=
"#{i18n['topmenu.usersPreferences']}"
/></div>
...
...
@@ -33,9 +40,10 @@
</tools:isLoggedIn>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'placemap'?'a':''}"
>
<h:link
outcome=
"/place/placemap"
value=
"#{i18n['topmenu.placemap']}"
/></div>
</div>
</div>
</div>
<div
id=
"content"
>
<div
id=
"cwrap"
>
...
...
code/LanBortalWeb/WebContent/resources/style/insomnia1/img/header.gif
View file @
fce4b5f
13.8 KB
|
W:
|
H:
4.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
code/LanBortalWeb/WebContent/resources/style/insomnia1/style.css
View file @
fce4b5f
...
...
@@ -74,6 +74,10 @@ body {
height
:
80px
;
}
#mainmenu
{
margin-left
:
10px
;
}
#content
{
width
:
100%
;
background-image
:
url('img/top.gif')
;
...
...
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