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
3a68b824
Commit
3a68b824
authored
Mar 29, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#33006 事業者毎のリソース多重化(Android)
- ErrorCodeのメッセージについてパターン化の修正
parent
4920ba2e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
30 deletions
+19
-30
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/constant/ErrorCode.java
+1
-21
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/constant/ErrorMessage.java
+0
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+18
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
+0
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/constant/ErrorCode.java
View file @
3a68b824
package
jp
.
agentec
.
abook
.
abv
.
ui
.
common
.
constant
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
import
jp.agentec.abook.abv.ui.common.util.PatternStringUtil
;
import
static
jp
.
agentec
.
abook
.
abv
.
cl
.
util
.
PreferenceUtil
.
getUserPref
;
import
static
org
.
chromium
.
base
.
ContextUtils
.
getApplicationContext
;
/**
* ユーザ認証を行ったりするときのエラーコードです。
...
...
@@ -108,21 +102,7 @@ public enum ErrorCode {
M006
(
R
.
string
.
M006
),
M007
(
R
.
string
.
M007
),
ERROR
(
R
.
string
.
ERROR
),
DOWNLOAD_CANCEL_ERROR
(
R
.
string
.
DOWNLOAD_CANCEL_ERROR
),
// リソースパターンの適用
P_E_ACMS_P001
(
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P001
,
getUserPref
(
getApplicationContext
(),
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))),
P_E_ACMS_P002
(
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P002
,
getUserPref
(
getApplicationContext
(),
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))),
P_E_ACMS_P003
(
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P003
,
getUserPref
(
getApplicationContext
(),
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))),
P_E_ACMS_P004
(
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P004
,
getUserPref
(
getApplicationContext
(),
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
DOWNLOAD_CANCEL_ERROR
(
R
.
string
.
DOWNLOAD_CANCEL_ERROR
);
public
final
int
resId
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/constant/ErrorMessage.java
View file @
3a68b824
...
...
@@ -150,10 +150,6 @@ public class ErrorMessage {
ErrorCode
.
S_E_ACMS_L010
,
ErrorCode
.
S_E_ACMS_L012
,
ErrorCode
.
E129
,
ErrorCode
.
P_E_ACMS_P001
,
ErrorCode
.
P_E_ACMS_P002
,
ErrorCode
.
P_E_ACMS_P003
,
ErrorCode
.
P_E_ACMS_P004
};
for
(
int
i
=
0
;
i
<
searchedArray
.
length
;
i
++)
{
if
(
searchedArray
[
i
].
name
().
equals
(
codeName
))
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
3a68b824
...
...
@@ -718,7 +718,9 @@ public class OperationListActivity extends ABVUIActivity {
// 報告送信
if
(
mOperationLogic
.
sendTaskReportSendData
(
operationId
,
progressCallback
))
{
// 作業報告タイプが定期点検且つ、P005のエラーの場合、以下のエラーをトーストメッセージで表示
handleErrorMessageToast
(
R
.
string
.
P005
);
handleErrorMessageToast
(
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P005
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
progressDialogHorizontal
.
setProgress
(
60
);
...
...
@@ -752,10 +754,15 @@ public class OperationListActivity extends ABVUIActivity {
//noinspection EnumSwitchStatementWhichMissesCases
switch
(
e
.
getCode
())
{
case
P_E_ACMS_P003:
showSimpleAlertDialog
(
R
.
string
.
app_name
,
R
.
string
.
P003
);
// リソースパターンを適用
showSimpleAlertDialog
(
R
.
string
.
app_name
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P003
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
break
;
case
P_E_ACMS_P004:
showSimpleAlertDialog
(
R
.
string
.
app_name
,
R
.
string
.
P004
);
showSimpleAlertDialog
(
R
.
string
.
app_name
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P004
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
break
;
case
S_E_ACMS_0500:
handleErrorMessageToast
(
ABVExceptionCode
.
S_E_ACMS_0500
);
...
...
@@ -1138,10 +1145,16 @@ public class OperationListActivity extends ABVUIActivity {
//noroutineion EnumSwitchStatementWhichMissesCases
switch
(
e
.
getCode
())
{
case
P_E_ACMS_P001:
showSimpleAlertDialog
(
R
.
string
.
app_name
,
R
.
string
.
P001
);
showSimpleAlertDialog
(
R
.
string
.
app_name
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P001
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
break
;
case
P_E_ACMS_P002:
showSimpleAlertDialog
(
R
.
string
.
app_name
,
R
.
string
.
P002
);
showSimpleAlertDialog
(
R
.
string
.
app_name
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
P002
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
break
;
case
S_E_ACMS_0500:
handleErrorMessageToast
(
ABVExceptionCode
.
S_E_ACMS_0500
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
View file @
3a68b824
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