Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
e2a1f542
Commit
e2a1f542
authored
Jul 21, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RFID関連修正
parent
0ecafb06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
+40
-4
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
+12
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+28
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
View file @
e2a1f542
...
...
@@ -208,4 +208,16 @@ public class ABookKeys {
public
static
final
String
PROCESS_LIST
=
"processList"
;
public
static
final
String
MAIL_TO_URL
=
"mailto"
;
public
static
class
SCAN_TYPE_VALUE
{
public
static
final
Integer
BARCODE
=
0
;
public
static
final
Integer
RFID
=
1
;
}
public
static
class
SCAN_TYPE_KEY
{
public
static
final
String
BARCODE
=
"BARCODE"
;
public
static
final
String
RFID
=
"RFID"
;
}
public
static
final
String
SCAN_TYPE
=
"scanType"
;
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
e2a1f542
...
...
@@ -160,6 +160,8 @@ public class OperationListActivity extends ABVUIActivity {
private
Long
mSelectedOperationId
;
private
Integer
mScanType
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
...
...
@@ -329,6 +331,9 @@ public class OperationListActivity extends ABVUIActivity {
if
(!
jsonParam
.
has
(
ABookKeys
.
OPERATION_ID
))
{
break
;
}
if
(
jsonParam
.
has
(
ABookKeys
.
SCAN_TYPE
))
{
mScanType
=
jsonParam
.
getInt
(
ABookKeys
.
SCAN_TYPE
);
}
final
OperationDto
tempOperationDto
=
mOperationDao
.
getOperationJoinContent
(
jsonParam
.
getInt
(
ABookKeys
.
OPERATION_ID
));
if
(
tempOperationDto
.
needSyncFlg
)
{
mCallBack
=
new
Runnable
()
{
...
...
@@ -398,7 +403,6 @@ public class OperationListActivity extends ABVUIActivity {
}
});
break
;
}
}
}
...
...
@@ -442,11 +446,21 @@ public class OperationListActivity extends ABVUIActivity {
public
int
getSortType
()
{
return
sortType
;
}
@JavascriptInterface
public
void
testScanResult
(
String
code
,
int
scanType
)
{
onScanned
(
code
,
scanType
);
}
}
//TODO Method called when code is scanned
public
void
onScanned
(
String
code
)
{
mCheckWebView
.
loadUrl
(
"javascript:CHK.scanResult("
+
code
+
");"
);
public
void
onScanned
(
final
String
code
,
final
int
scanType
)
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
mCheckWebView
.
loadUrl
(
"javascript:CHK.scanResult("
+
code
+
","
+
scanType
+
" );"
);
}
});
}
// 共通資料画面表示
...
...
@@ -770,7 +784,17 @@ public class OperationListActivity extends ABVUIActivity {
path
.
append
(
"/index.html?app=android"
);
path
.
append
(
"&report_type="
+
operationDto
.
reportType
);
// 作業報告タイプ : 0:報告 1:定期点検 2:報告(回答)
path
.
append
(
"&mobile_flg="
+
(
isNormalSize
()
?
"1"
:
"0"
));
// ScreenType
if
(
mScanType
!=
null
)
{
String
scanTypeKey
=
null
;
if
(
mScanType
.
equals
(
ABookKeys
.
SCAN_TYPE_VALUE
.
BARCODE
))
{
scanTypeKey
=
ABookKeys
.
SCAN_TYPE_KEY
.
BARCODE
;
}
else
if
(
mScanType
.
equals
(
ABookKeys
.
SCAN_TYPE_VALUE
.
RFID
))
{
scanTypeKey
=
ABookKeys
.
SCAN_TYPE_KEY
.
RFID
;
}
path
.
append
(
"&scanType="
+
scanTypeKey
);
path
.
append
(
"&scanDate="
+
DateTimeUtil
.
toString
(
new
Date
(),
"yyyy-MM-dd hh:mm:ss"
));
mScanType
=
null
;
}
Logger
.
d
(
TAG
,
"path : "
+
path
);
// #32926 作業報告画面改善 end
Intent
intent
=
new
Intent
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment