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
a9297fa0
Commit
a9297fa0
authored
Mar 12, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32861 作業情報追加(Android)
レビュー対応
parent
72c27988
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
38 deletions
+54
-38
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+46
-26
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
+8
-12
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
a9297fa0
...
...
@@ -434,24 +434,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
public
void
finish
()
{
// ホームをリロードさせる
ActivityHandlingHelper
.
getInstance
().
setRequireHomeReload
(
true
);
// #32861 作業情報追加 start
// 押したボタンによってHTML側の処理を行う
if
(
this
instanceof
CheckOZDViewActivity
)
{
if
(
mButtonStatus
==
R
.
id
.
btn_close
)
{
ozdCancelProcess
();
// 閉じる
super
.
finish
();
}
else
if
(
mButtonStatus
==
R
.
id
.
btn_temp_save
)
{
ozdLocalSaveProcess
();
// 一時保存
}
else
if
(
mButtonStatus
==
R
.
id
.
btn_save
){
ozdSaveProcess
();
// 保存
super
.
finish
();
}
else
{
super
.
finish
();
// 作業一覧画面に遷移
}
}
else
{
super
.
finish
();
}
// #32861 作業情報追加 end
super
.
finish
();
Logger
.
d
(
TAG
,
"finish"
);
}
...
...
@@ -929,7 +912,9 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
public
Object
callback
(
Object
ret
)
{
final
boolean
isError
=
(
boolean
)
ret
;
closeProgressPopup
();
afterABookCheckApi
(
mCmd
,
mTaskKey
,
0
,
""
,
null
,
isOperationPdf
());
// #32861 作業情報追加 start
afterABookCheckApi
(
mCmd
,
mTaskKey
,
isNetWorkError
(
isError
),
""
,
null
,
isOperationPdf
());
// #32861 作業情報追加 end
return
null
;
}
};
...
...
@@ -1091,12 +1076,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
webViewLoadUrl
(
String
.
format
(
"javascript:%sCHK.afterABookCheckApi('%s', '%s', '%s', '%s')"
,
finalParent
,
cmd
,
taskKey
,
result
,
message
));
}
// #32861 作業情報追加 start
// 作業追加区分ありの場合
if
(
mAddReport
)
{
webViewLoadUrl
(
"javascript:CHK.cancelOzReport()"
);
// OZD画面日表示するため行う
}
else
{
goToMain
();
// 一覧画面に遷移
}
doneProcess
(
result
);
// HTML側の処理が終わった後の処理を行う
// #32861 作業情報追加 end
}
});
...
...
@@ -1204,7 +1184,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
@Override
public
void
run
()
{
// 実行Javascript - 保存
webViewLoadUrl
(
"javascript:CHK.saeOzReport()"
);
webViewLoadUrl
(
"javascript:CHK.sa
v
eOzReport()"
);
Logger
.
d
(
TAG
,
"ozdSaveProcess"
);
}
});
...
...
@@ -1238,5 +1218,45 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
public
void
goToMain
()
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
// 一覧画面に遷移
}
public
void
doProcess
()
{
// #32861 作業情報追加 start
// 押したボタンによってHTML側の処理を行う
if
(
this
instanceof
CheckOZDViewActivity
)
{
if
(
mButtonStatus
==
R
.
id
.
btn_close
)
{
super
.
finish
();
ozdCancelProcess
();
// 閉じる
}
else
if
(
mButtonStatus
==
R
.
id
.
btn_temp_save
)
{
ozdLocalSaveProcess
();
// 一時保存
}
else
if
(
mButtonStatus
==
R
.
id
.
btn_save
){
ozdSaveProcess
();
// 保存
doneProcess
(
1
);
}
}
// #32861 作業情報追加 end
}
public
void
doneProcess
(
int
isError
)
{
// 押したボタンによってHTML側の処理が終わった後の処理を行う
if
(
this
instanceof
CheckOZDViewActivity
)
{
if
(
mButtonStatus
==
R
.
id
.
btn_save
||
mButtonStatus
==
R
.
id
.
btn_close
){
// 作業追加区分ありの場合
if
(
mAddReport
)
{
super
.
finish
();
if
(
isError
==
0
)
ozdCancelProcess
();
// 通信成功の場合だけHTML側の処理を行う
}
else
{
goToMain
();
// 一覧画面に遷移
}
}
}
}
// ネットワークの非接続の場合の処理(OZ作業報告だけ)
protected
int
isNetWorkError
(
boolean
isError
)
{
if
(
this
instanceof
CheckOZDViewActivity
)
{
return
isError
?
0
:
1
;
}
return
0
;
}
// #32861 作業情報追加 end
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
View file @
a9297fa0
...
...
@@ -74,11 +74,6 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
private
String
mSaveOzdTempFileName
;
private
String
mSaveOzdFileName
;
// #32861 作業情報追加 start
private
boolean
mLocalSave
;
// 一時保存情報
private
boolean
mAadReport
;
// 作業追加区分
// #32861 作業情報追加 end
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
Logger
.
i
(
TAG
,
"onCreate"
);
...
...
@@ -120,7 +115,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
// 一時保存情報についてボタン表示:「0:false、一時保存ボタン非表示」「1:ture、一時保存ボタン表示」
mLocalSave
=
intent
.
getBooleanExtra
(
ABookKeys
.
LOCAL_SAVE
,
false
);
// 作業追加区分についてボタンを表示:「0:false、作業追加区分なし、作業一覧へボタン」「1:ture、作業追加区分あり、閉じるボタン」
mA
a
dReport
=
intent
.
getBooleanExtra
(
ABookKeys
.
ADD_REPORT
,
false
);
mA
d
dReport
=
intent
.
getBooleanExtra
(
ABookKeys
.
ADD_REPORT
,
false
);
final
Button
homeButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_operation_home
);
final
Button
closeButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_close
);
...
...
@@ -128,8 +123,8 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
final
Button
saveButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_save
);
// 一時ボタン表示可否判断
homeButton
.
setVisibility
(
mA
a
dReport
?
View
.
GONE
:
View
.
VISIBLE
);
closeButton
.
setVisibility
(
mA
a
dReport
?
View
.
VISIBLE
:
View
.
GONE
);
homeButton
.
setVisibility
(
mA
d
dReport
?
View
.
GONE
:
View
.
VISIBLE
);
closeButton
.
setVisibility
(
mA
d
dReport
?
View
.
VISIBLE
:
View
.
GONE
);
tempSaveButton
.
setVisibility
(
mLocalSave
?
View
.
VISIBLE
:
View
.
GONE
);
// 作業一覧へ戻るボタン
...
...
@@ -145,7 +140,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
@Override
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_close
;
// HTML側の分岐処理を行うため変数に値を渡す
finishActivity
();
// HTML側の処理を行う
doProcess
();
// HTML側の処理を行う
}
});
...
...
@@ -297,8 +292,8 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
// #32861 作業情報追加 start
if
(!
mA
a
dReport
)
{
goToMain
();
// 一覧画面に遷移
if
(!
mA
d
dReport
)
{
goToMain
();
// 一覧画面に遷移
}
else
{
finishActivity
();
// Ozd作業画面を閉じる
}
...
...
@@ -572,7 +567,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
return
;
}
}
finishActivity
();
// HTML側の処理を行う
doProcess
();
// HTML側の処理を行う
}
// #32861 作業情報追加 end
}
\ No newline at end of file
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