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 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 @@
...
@@ -15,7 +15,9 @@
<h:form>
<h:form>
<p:poll
interval=
"1"
listener=
"#{incomingView.polledRead}"
onerror=
"location.reload();"
/>
<p:poll
interval=
"1"
listener=
"#{incomingView.polledRead}"
onerror=
"location.reload();"
/>
</h:form>
</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:panelGrid
id=
"cropper"
columns=
"3"
>
<h:panelGroup>
<h:panelGroup>
<user:edit
id=
"usereditor"
commitaction=
"#{incomingView.saveUser()}"
commitvalue=
"#{i18n['user.save']}"
camAlwaysOn=
"true"
/>
<user:edit
id=
"usereditor"
commitaction=
"#{incomingView.saveUser()}"
commitvalue=
"#{i18n['user.save']}"
camAlwaysOn=
"true"
/>
...
@@ -43,7 +45,7 @@
...
@@ -43,7 +45,7 @@
<h:outputText
rendered=
"#{empty incomingView.groupMemberships}"
value=
"#{i18n['placegroupview.noMemberships']}"
/>
<h:outputText
rendered=
"#{empty incomingView.groupMemberships}"
value=
"#{i18n['placegroupview.noMemberships']}"
/>
<h:form
rendered=
"#{!empty incomingView.groupMemberships}"
id=
"placelistform"
>
<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>
<p:column>
<f:facet
name=
"header"
>
<f:facet
name=
"header"
>
...
...
code/MoyaWeb/WebContent/resources/templates/blipview/css/style.css
View file @
d7b1cf1
...
@@ -285,4 +285,10 @@ label {
...
@@ -285,4 +285,10 @@ label {
#header_right
{
#header_right
{
text-align
:
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 @@
...
@@ -111,4 +111,8 @@
.paid
{
.paid
{
color
:
#006600
;
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
...
@@ -157,7 +157,7 @@ global.save = Save
httpsession.creationTime
=
Created
httpsession.creationTime
=
Created
incomingflow.giveplace
=
Merkitse annetuksi
incomingflow.giveplace
=
Merkitse annetuksi
lanEventPrivateProperty.defaultValue
=
Default value
lanEventPrivateProperty.defaultValue
=
Default value
lanEventPrivateProperty.editProperty
=
Edit property
lanEventPrivateProperty.editProperty
=
Edit property
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
View file @
d7b1cf1
...
@@ -408,12 +408,13 @@ imagefile.file = Imagefile
...
@@ -408,12 +408,13 @@ imagefile.file = Imagefile
importuser.file
=
File
importuser.file
=
File
importuser.template
=
Template
importuser.template
=
Template
incomingflow.barcode
=
Barcode
incomingflow.barcode
=
Barcode
incomingflow.giveplace
=
Mark given
incomingflow.changereader
=
Change Reader
incomingflow.multisearch
=
Multisearch
incomingflow.giveplace
=
Mark given
incomingflow.search
=
Search
incomingflow.multisearch
=
Multisearch
incomingflow.ungiveplace
=
Mark not given
incomingflow.search
=
Search
incomingflow.userdetails
=
User details
incomingflow.ungiveplace
=
Mark not given
incomingflow.userdetails
=
User details
infoview.back
=
Back
infoview.back
=
Back
infoview.computerplace
=
Computer places
infoview.computerplace
=
Computer places
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
View file @
d7b1cf1
...
@@ -417,12 +417,13 @@ imagefile.file = Kuvatiedosto
...
@@ -417,12 +417,13 @@ imagefile.file = Kuvatiedosto
importuser.file
=
Tiedosto
importuser.file
=
Tiedosto
importuser.template
=
Malli
importuser.template
=
Malli
incomingflow.barcode
=
Viivakoodi
incomingflow.barcode
=
Viivakoodi
incomingflow.giveplace
=
Merkitse annetuksi
incomingflow.changereader
=
Vaihda lukijaa
incomingflow.multisearch
=
Monihaku
incomingflow.giveplace
=
Merkitse annetuksi
incomingflow.search
=
Etsi
incomingflow.multisearch
=
Monihaku
incomingflow.ungiveplace
=
Ei olekkaan annettu
incomingflow.search
=
Etsi
incomingflow.userdetails
=
K
\u
00E4ytt
\u
00E4j
\u
00E4n tiedot
incomingflow.ungiveplace
=
Ei olekkaan annettu
incomingflow.userdetails
=
K
\u
00E4ytt
\u
00E4j
\u
00E4n tiedot
index.title
=
Etusivu
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 {
...
@@ -249,4 +249,12 @@ public class IncomingView extends GenericCDIView {
return
null
;
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;
...
@@ -5,12 +5,13 @@ import org.apache.http.HttpResponse;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.methods.HttpGet
;
import
org.apache.http.client.methods.HttpGet
;
import
org.apache.http.impl.client.DefaultHttpClient
;
import
org.apache.http.impl.client.DefaultHttpClient
;
import
android.annotation.SuppressLint
;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.StrictMode
;
import
android.view.Menu
;
import
android.view.Menu
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.Button
;
...
@@ -20,8 +21,14 @@ import android.widget.TextView;
...
@@ -20,8 +21,14 @@ import android.widget.TextView;
public
class
MainActivity
extends
Activity
{
public
class
MainActivity
extends
Activity
{
private
static
String
URL
=
"http://lantrek.moya.fi/MoyaWeb/shop/rfidListener.jsf"
;
private
static
String
URL
=
"http://lantrek.moya.fi/MoyaWeb/shop/rfidListener.jsf"
;
@SuppressLint
(
"NewApi"
)
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
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
);
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
setContentView
(
R
.
layout
.
activity_main
);
...
@@ -116,11 +123,13 @@ public class MainActivity extends Activity {
...
@@ -116,11 +123,13 @@ public class MainActivity extends Activity {
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
throw
new
RuntimeException
(
e
);
}
}
return
false
;
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