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 d7b1cf1d
authored
Feb 07, 2014
by
Tuukka Kivilahti
Committed by
Tuukka Kivilahti
Feb 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I hope these are needed
1 parent
25ac88ab
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
16 deletions
code/MoyaWeb/WebContent/admin/incoming/printCard.xhtml
code/MoyaWeb/WebContent/resources/templates/blipview/css/style.css
code/MoyaWeb/WebContent/resources/templates/custom_components.css
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n.properties
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
code/MoyaWeb/src/fi/codecrew/moya/web/flow/IncomingView.java
muutSoftat/AndroidBarcode/src/fi/codecrew/androidbarcode/MainActivity.java
code/MoyaWeb/WebContent/admin/incoming/printCard.xhtml
View file @
d7b1cf1
...
...
@@ -15,7 +15,9 @@
<h:form>
<p:poll
interval=
"1"
listener=
"#{incomingView.polledRead}"
onerror=
"location.reload();"
/>
</h:form>
<h1>
#{i18n['incomingflow.userdetails']} (RFID-lukija: #{incomingView.readerId})
</h1>
<h:form>
<h1>
#{i18n['incomingflow.userdetails']} (RFID-lukija: #{incomingView.readerId})
</h1><h:commandButton
action=
"#{incomingView.changeReader}"
value=
"#{i18n['incomingflow.changereader']}"
/>
</h:form>
<h:panelGrid
id=
"cropper"
columns=
"3"
>
<h:panelGroup>
<user:edit
id=
"usereditor"
commitaction=
"#{incomingView.saveUser()}"
commitvalue=
"#{i18n['user.save']}"
camAlwaysOn=
"true"
/>
...
...
@@ -43,7 +45,7 @@
<h:outputText
rendered=
"#{empty incomingView.groupMemberships}"
value=
"#{i18n['placegroupview.noMemberships']}"
/>
<h:form
rendered=
"#{!empty incomingView.groupMemberships}"
id=
"placelistform"
>
<p:dataTable
value=
"#{incomingView.groupMemberships}"
var=
"member"
>
<p:dataTable
value=
"#{incomingView.groupMemberships}"
var=
"member"
rowStyleClass=
"#{member.enteredEvent != null ? 'success':''}"
>
<p:column>
<f:facet
name=
"header"
>
...
...
code/MoyaWeb/WebContent/resources/templates/blipview/css/style.css
View file @
d7b1cf1
...
...
@@ -285,4 +285,10 @@ label {
#header_right
{
text-align
:
right
;
}
.success
{
color
:
#006600
;
}
\ No newline at end of file
code/MoyaWeb/WebContent/resources/templates/custom_components.css
View file @
d7b1cf1
...
...
@@ -111,4 +111,8 @@
.paid
{
color
:
#006600
;
}
.success
{
color
:
#006600
;
}
\ No newline at end of file
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n.properties
View file @
d7b1cf1
...
...
@@ -157,7 +157,7 @@ global.save = Save
httpsession.creationTime
=
Created
incomingflow.giveplace
=
Merkitse annetuksi
incomingflow.giveplace
=
Merkitse annetuksi
lanEventPrivateProperty.defaultValue
=
Default value
lanEventPrivateProperty.editProperty
=
Edit property
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
View file @
d7b1cf1
...
...
@@ -408,12 +408,13 @@ imagefile.file = Imagefile
importuser.file
=
File
importuser.template
=
Template
incomingflow.barcode
=
Barcode
incomingflow.giveplace
=
Mark given
incomingflow.multisearch
=
Multisearch
incomingflow.search
=
Search
incomingflow.ungiveplace
=
Mark not given
incomingflow.userdetails
=
User details
incomingflow.barcode
=
Barcode
incomingflow.changereader
=
Change Reader
incomingflow.giveplace
=
Mark given
incomingflow.multisearch
=
Multisearch
incomingflow.search
=
Search
incomingflow.ungiveplace
=
Mark not given
incomingflow.userdetails
=
User details
infoview.back
=
Back
infoview.computerplace
=
Computer places
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
View file @
d7b1cf1
...
...
@@ -417,12 +417,13 @@ imagefile.file = Kuvatiedosto
importuser.file
=
Tiedosto
importuser.template
=
Malli
incomingflow.barcode
=
Viivakoodi
incomingflow.giveplace
=
Merkitse annetuksi
incomingflow.multisearch
=
Monihaku
incomingflow.search
=
Etsi
incomingflow.ungiveplace
=
Ei olekkaan annettu
incomingflow.userdetails
=
K
\u
00E4ytt
\u
00E4j
\u
00E4n tiedot
incomingflow.barcode
=
Viivakoodi
incomingflow.changereader
=
Vaihda lukijaa
incomingflow.giveplace
=
Merkitse annetuksi
incomingflow.multisearch
=
Monihaku
incomingflow.search
=
Etsi
incomingflow.ungiveplace
=
Ei olekkaan annettu
incomingflow.userdetails
=
K
\u
00E4ytt
\u
00E4j
\u
00E4n tiedot
index.title
=
Etusivu
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/flow/IncomingView.java
View file @
d7b1cf1
...
...
@@ -249,4 +249,12 @@ public class IncomingView extends GenericCDIView {
return
null
;
}
public
void
changeReader
()
{
namecontainer
.
setReaderId
(
null
);
super
.
navihandler
.
redirectNavigation
(
"index.jsf"
);
}
}
muutSoftat/AndroidBarcode/src/fi/codecrew/androidbarcode/MainActivity.java
View file @
d7b1cf1
...
...
@@ -5,12 +5,13 @@ import org.apache.http.HttpResponse;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.methods.HttpGet
;
import
org.apache.http.impl.client.DefaultHttpClient
;
import
android.annotation.SuppressLint
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
import
android.os.Bundle
;
import
android.os.StrictMode
;
import
android.view.Menu
;
import
android.view.View
;
import
android.widget.Button
;
...
...
@@ -20,8 +21,14 @@ import android.widget.TextView;
public
class
MainActivity
extends
Activity
{
private
static
String
URL
=
"http://lantrek.moya.fi/MoyaWeb/shop/rfidListener.jsf"
;
@SuppressLint
(
"NewApi"
)
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
>
9
)
{
StrictMode
.
ThreadPolicy
policy
=
new
StrictMode
.
ThreadPolicy
.
Builder
().
permitAll
().
build
();
StrictMode
.
setThreadPolicy
(
policy
);
}
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
...
...
@@ -116,11 +123,13 @@ public class MainActivity extends Activity {
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
RuntimeException
(
e
);
}
return
false
;
}
}
...
...
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