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
93ba0dfc
Commit
93ba0dfc
authored
Mar 12, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32861_作業情報追加(Android)
parent
d7d33ed0
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
291 additions
and
11 deletions
+291
-11
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
+9
-0
ABVJE_Res_Default_Android/res/values-ja/strings.xml
+7
-0
ABVJE_Res_Default_Android/res/values-ko/strings.xml
+7
-0
ABVJE_Res_Default_Android/res/values/strings.xml
+7
-0
ABVJE_UI_Android/res/layout/ac_ozd_webview.xml
+42
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+78
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
+7
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+35
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
+99
-8
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
View file @
93ba0dfc
...
@@ -42,6 +42,10 @@ public class ABookKeys {
...
@@ -42,6 +42,10 @@ public class ABookKeys {
public
static
final
String
CMD_SHOW_RELATED_CONTENT
=
"showRelatedContent"
;
public
static
final
String
CMD_SHOW_RELATED_CONTENT
=
"showRelatedContent"
;
public
static
final
String
CMD_PAGE_NUM
=
"pageNum"
;
public
static
final
String
CMD_PAGE_NUM
=
"pageNum"
;
// #32861 作業情報追加 start
public
static
final
String
CMD_LOCAL_SAVE_TASK_REPORT
=
"localSaveTaskReport"
;
// 一時保存
// #32861 作業情報追加 end
public
static
final
String
GPS_TYPE
=
"gpsType"
;
public
static
final
String
GPS_TYPE
=
"gpsType"
;
public
static
final
String
STATUS_CODE
=
"statusCode"
;
public
static
final
String
STATUS_CODE
=
"statusCode"
;
public
static
final
String
TASK_KEY
=
"taskKey"
;
public
static
final
String
TASK_KEY
=
"taskKey"
;
...
@@ -116,4 +120,9 @@ public class ABookKeys {
...
@@ -116,4 +120,9 @@ public class ABookKeys {
public
static
final
String
URI
=
"uri"
;
public
static
final
String
URI
=
"uri"
;
public
static
final
String
OK
=
"OK"
;
public
static
final
String
OK
=
"OK"
;
// #32861 作業情報追加 start
public
static
final
String
REPORT_DRAFT
=
"reportDraft"
;
// 一時保存情報
public
static
final
String
ADD_REPORT
=
"addReport"
;
// 作業追加区分
// #32861 作業情報追加 end
}
}
ABVJE_Res_Default_Android/res/values-ja/strings.xml
View file @
93ba0dfc
...
@@ -350,6 +350,13 @@
...
@@ -350,6 +350,13 @@
<string
name=
"content_share_text3"
>
\n上記のURLからダウンロードして下さい。\n
</string>
<string
name=
"content_share_text3"
>
\n上記のURLからダウンロードして下さい。\n
</string>
<string
name=
"content_share_password_hint"
>
半角英数字16文字以下
</string>
<string
name=
"content_share_password_hint"
>
半角英数字16文字以下
</string>
<!-- #32861 作業情報追加 start -->
<string
name=
"temp_save"
>
一時保存
</string>
<string
name=
"temp_save_info"
>
一時保存しますか?
</string>
<string
name=
"save_info"
>
保存してサーバへ送信しますか?
</string>
<string
name=
"msg_temp_save_result"
>
保存されました。
</string>
<!-- #32861 作業情報追加 end -->
<!-- Error Message -->
<!-- Error Message -->
<string
name=
"E000"
>
事業者IDを入力してください。
</string>
<string
name=
"E000"
>
事業者IDを入力してください。
</string>
<string
name=
"E001"
>
ログインIDを入力してください。
</string>
<string
name=
"E001"
>
ログインIDを入力してください。
</string>
...
...
ABVJE_Res_Default_Android/res/values-ko/strings.xml
View file @
93ba0dfc
...
@@ -350,6 +350,13 @@
...
@@ -350,6 +350,13 @@
<string
name=
"content_share_text3"
>
\n상기URL에서 다운로드해 주십시오.\n
</string>
<string
name=
"content_share_text3"
>
\n상기URL에서 다운로드해 주십시오.\n
</string>
<string
name=
"content_share_password_hint"
>
영숫자16자 이하
</string>
<string
name=
"content_share_password_hint"
>
영숫자16자 이하
</string>
<!-- #32861 作業情報追加 start -->
<string
name=
"temp_save"
>
임시저장
</string>
<string
name=
"temp_save_info"
>
임시저장 하시겠습니까?
</string>
<string
name=
"save_info"
>
저장하시고 서버로 송신하시겠습니까?
</string>
<string
name=
"msg_temp_save_result"
>
저장되었습니다.
</string>
<!-- #32861 作業情報追加 end -->
<!-- Error Message -->
<!-- Error Message -->
<string
name=
"E000"
>
어카운트패스 입력해 주십시오.
</string>
<string
name=
"E000"
>
어카운트패스 입력해 주십시오.
</string>
<string
name=
"E001"
>
로그인ID를 입력해 주십시오.
</string>
<string
name=
"E001"
>
로그인ID를 입력해 주십시오.
</string>
...
...
ABVJE_Res_Default_Android/res/values/strings.xml
View file @
93ba0dfc
...
@@ -350,6 +350,13 @@
...
@@ -350,6 +350,13 @@
<string
name=
"content_share_text3"
>
\nDownload a content from the URL above.\n
</string>
<string
name=
"content_share_text3"
>
\nDownload a content from the URL above.\n
</string>
<string
name=
"content_share_password_hint"
>
Alpha digit with one byte not exceed 16 characters
</string>
<string
name=
"content_share_password_hint"
>
Alpha digit with one byte not exceed 16 characters
</string>
<!-- #32861 作業情報追加 start -->
<string
name=
"temp_save"
>
Temporarily saved
</string>
<string
name=
"temp_save_info"
>
Do you want to temporarily save it?
</string>
<string
name=
"save_info"
>
Save it and send it to the server?
</string>
<string
name=
"msg_temp_save_result"
>
It has been saved.
</string>
<!-- #32861 作業情報追加 end -->
<!-- Error Message -->
<!-- Error Message -->
<string
name=
"E000"
>
Please enter company ID.
</string>
<string
name=
"E000"
>
Please enter company ID.
</string>
<string
name=
"E001"
>
Please enter your login ID.
</string>
<string
name=
"E001"
>
Please enter your login ID.
</string>
...
...
ABVJE_UI_Android/res/layout/ac_ozd_webview.xml
View file @
93ba0dfc
...
@@ -11,6 +11,35 @@
...
@@ -11,6 +11,35 @@
style=
"@style/OperationSearchToolBar"
style=
"@style/OperationSearchToolBar"
android:minHeight=
"50dp"
>
android:minHeight=
"50dp"
>
<!-- #32861 作業情報追加 start -->
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentEnd=
"true"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
>
<Button
android:id=
"@+id/btn_close"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"5dp"
android:background=
"@drawable/ic_operation_close"
/>
<Button
android:id=
"@+id/btn_operation_home"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"5dp"
android:background=
"@drawable/ic_operation_home"
/>
</LinearLayout>
<!-- #32861 作業情報追加 end -->
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -35,14 +64,25 @@
...
@@ -35,14 +64,25 @@
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
>
android:layout_centerVertical=
"true"
>
<!-- #32861 作業情報追加 start -->
<Button
<Button
android:id=
"@+id/btn_
clos
e"
android:id=
"@+id/btn_
temp_sav
e"
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"5dp"
android:layout_marginRight=
"5dp"
android:background=
"@drawable/ic_operation_close"
/>
android:background=
"@drawable/ic_download_off"
/>
<Button
android:id=
"@+id/btn_save"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"5dp"
android:background=
"@drawable/ic_download_on"
/>
<!-- #32861 作業情報追加 end -->
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
<FrameLayout
<FrameLayout
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
93ba0dfc
...
@@ -72,6 +72,7 @@ import jp.agentec.abook.abv.ui.common.view.ABVPopupListWindow;
...
@@ -72,6 +72,7 @@ import jp.agentec.abook.abv.ui.common.view.ABVPopupListWindow;
import
jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ABookPermissionHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ABookPermissionHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.viewer.activity.CheckOZDViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.NoPdfViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.NoPdfViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.foxitPdf.FoxitPdfCore
;
import
jp.agentec.abook.abv.ui.viewer.foxitPdf.FoxitPdfCore
;
...
@@ -130,6 +131,12 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -130,6 +131,12 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
public
boolean
isLinkedContent
;
public
boolean
isLinkedContent
;
public
int
pageNo
;
public
int
pageNo
;
// #32861 作業情報追加 start
public
int
mButtonStatus
;
// 保存ボタンチェック
protected
boolean
mLocalSaveTaskReport
;
// 一時保存情報
protected
boolean
mInsertTaskReport
;
// 作業追加区分
// #32861 作業情報追加 end
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
@@ -427,7 +434,23 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -427,7 +434,23 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
public
void
finish
()
{
public
void
finish
()
{
// ホームをリロードさせる
// ホームをリロードさせる
ActivityHandlingHelper
.
getInstance
().
setRequireHomeReload
(
true
);
ActivityHandlingHelper
.
getInstance
().
setRequireHomeReload
(
true
);
// #32861 作業情報追加 start
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
();
super
.
finish
();
}
// #32861 作業情報追加 end
Logger
.
d
(
TAG
,
"finish"
);
Logger
.
d
(
TAG
,
"finish"
);
}
}
...
@@ -936,7 +959,15 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -936,7 +959,15 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
false
,
taskReportId
,
reportStartDate
,
mReportFileName
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
false
,
taskReportId
,
reportStartDate
,
mReportFileName
);
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_PREVIEW_REPORT_OZD
))
{
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_PREVIEW_REPORT_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
true
,
taskReportId
,
reportStartDate
,
mReportFileName
);
// #32861 作業情報追加 start
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
REPORT_DRAFT
))
{
mLocalSaveTaskReport
=
Integer
.
parseInt
(
abookCheckParam
.
get
(
ABookKeys
.
REPORT_DRAFT
))
>
0
?
true
:
false
;
}
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
ADD_REPORT
))
{
mInsertTaskReport
=
Integer
.
parseInt
(
abookCheckParam
.
get
(
ABookKeys
.
ADD_REPORT
))
>
0
?
true
:
false
;
}
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
false
,
taskReportId
,
reportStartDate
,
mReportFileName
,
mLocalSaveTaskReport
,
mInsertTaskReport
);
// #32861 作業情報追加 end
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_CONTENT_EDIT_CLOSE
))
{
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_CONTENT_EDIT_CLOSE
))
{
showProgressPopup
();
showProgressPopup
();
handler
.
postDelayed
(
new
Runnable
()
{
handler
.
postDelayed
(
new
Runnable
()
{
...
@@ -1058,6 +1089,14 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1058,6 +1089,14 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
Logger
.
i
(
TAG
,
String
.
format
(
"javascript:%sCHK.afterABookCheckApi('%s', '%s', '%s', '%s')"
,
finalParent
,
cmd
,
taskKey
,
result
,
message
));
Logger
.
i
(
TAG
,
String
.
format
(
"javascript:%sCHK.afterABookCheckApi('%s', '%s', '%s', '%s')"
,
finalParent
,
cmd
,
taskKey
,
result
,
message
));
webViewLoadUrl
(
String
.
format
(
"javascript:%sCHK.afterABookCheckApi('%s', '%s', '%s', '%s')"
,
finalParent
,
cmd
,
taskKey
,
result
,
message
));
webViewLoadUrl
(
String
.
format
(
"javascript:%sCHK.afterABookCheckApi('%s', '%s', '%s', '%s')"
,
finalParent
,
cmd
,
taskKey
,
result
,
message
));
}
}
// #32861 作業情報追加 start
// 作業追加区分ありの場合
if
(
mInsertTaskReport
)
{
webViewLoadUrl
(
"javascript:CHK.cancelOzReport()"
);
}
else
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
}
// #32861 作業情報追加 end
}
}
});
});
}
}
...
@@ -1156,4 +1195,42 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1156,4 +1195,42 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
}
return
new
FoxitPdfCore
(
this
,
filepath
);
return
new
FoxitPdfCore
(
this
,
filepath
);
}
}
// #32861 作業情報追加 start
// 保存処理
public
void
ozdSaveProcess
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
// 実行Javascript - 閉じる
webViewLoadUrl
(
"javascript:CHK.saeOzReport()"
);
Logger
.
d
(
TAG
,
"ozdSaveProcess"
);
}
});
}
// 一時保存処理
public
void
ozdLocalSaveProcess
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
// 実行Javascript - 閉じる
webViewLoadUrl
(
"javascript:CHK.localSaveOzReport()"
);
Logger
.
d
(
TAG
,
"ozdLocalSaveProcess"
);
}
});
}
// 閉じる処理
public
void
ozdCancelProcess
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
// 実行Javascript - 閉じる
webViewLoadUrl
(
"javascript:CHK.cancelOzReport()"
);
Logger
.
d
(
TAG
,
"ozdCancelProcess"
);
}
});
}
// #32861 作業情報追加 end
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
View file @
93ba0dfc
...
@@ -191,6 +191,13 @@ public class ABookCheckWebViewHelper extends ABookHelper {
...
@@ -191,6 +191,13 @@ public class ABookCheckWebViewHelper extends ABookHelper {
insertOrUpdateTaskReport
(
taskKey
,
reportUpdateType
,
operationId
,
contentId
,
param
,
contentPath
,
false
,
routineTaskReportFlg
);
insertOrUpdateTaskReport
(
taskKey
,
reportUpdateType
,
operationId
,
contentId
,
param
,
contentPath
,
false
,
routineTaskReportFlg
);
sendTaskReportData
(
context
,
operationId
,
taskKey
,
reportUpdateType
);
sendTaskReportData
(
context
,
operationId
,
taskKey
,
reportUpdateType
);
break
;
break
;
// #32861 作業情報追加 start
// 一時保存処理
case
ABookKeys
.
CMD_LOCAL_SAVE_TASK_REPORT
:
insertOrUpdateTaskReport
(
taskKey
,
reportUpdateType
,
operationId
,
contentId
,
param
,
contentPath
,
false
,
routineTaskReportFlg
);
context
.
handleErrorMessageToast
(
R
.
string
.
msg_temp_save_result
);
break
;
// #32861 作業情報追加 end
case
ABookKeys
.
CMD_DELETE_TASK_REPORT
:
case
ABookKeys
.
CMD_DELETE_TASK_REPORT
:
int
taskReportId
=
0
;
int
taskReportId
=
0
;
String
reportStartDate
=
""
;
String
reportStartDate
=
""
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
93ba0dfc
...
@@ -1561,6 +1561,41 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -1561,6 +1561,41 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
context
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
}
}
// #32861 作業情報追加 start
/**
* OZD, OZRコンテンツを開く(レポートあり)
* @param context
* @param operationId
* @param contentId
* @param taskKey
* @param isReadOnly
* @param taskReportId
* @param reportStartDate
* @param reportFileName
* @param reportDraft
* @param addReport
*/
public
void
startOZViewerActivity
(
Context
context
,
long
operationId
,
long
contentId
,
String
taskKey
,
boolean
isReadOnly
,
int
taskReportId
,
String
reportStartDate
,
String
reportFileName
,
boolean
reportDraft
,
boolean
addReport
)
{
reportStartDate
=
reportStartDate
.
replace
(
"T"
,
" "
);
String
strReportStartDate
=
DateTimeUtil
.
toString
(
DateTimeUtil
.
toDate
(
reportStartDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
),
DateTimeFormat
.
yyyyMMddHHmm_none
);
Intent
intent
=
new
Intent
();
intent
.
setClass
(
context
,
CheckOZDViewActivity
.
class
);
intent
.
putExtra
(
ABookKeys
.
OPERATION_ID
,
operationId
);
intent
.
putExtra
(
ABookKeys
.
CONTENT_ID
,
contentId
);
intent
.
putExtra
(
ABookKeys
.
TASK_KEY
,
taskKey
);
intent
.
putExtra
(
ABookKeys
.
READ_ONLY_FLG
,
isReadOnly
);
intent
.
putExtra
(
ABookKeys
.
DIRECTION_FLG
,
false
);
intent
.
putExtra
(
ABookKeys
.
TASK_REPORT_ID
,
taskReportId
);
intent
.
putExtra
(
ABookKeys
.
REPORT_START_DATE
,
strReportStartDate
);
intent
.
putExtra
(
ABookKeys
.
REPORT_FILE_NAME
,
reportFileName
);
intent
.
putExtra
(
ABookKeys
.
REPORT_DRAFT
,
reportDraft
);
// 一時保存情報
intent
.
putExtra
(
ABookKeys
.
ADD_REPORT
,
addReport
);
// 作業追加区分
context
.
startActivity
(
intent
);
}
// #32861 作業情報追加 end
public
boolean
isMeetingConnected
()
{
public
boolean
isMeetingConnected
()
{
return
meetingManager
.
isConnected
();
return
meetingManager
.
isConnected
();
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
View file @
93ba0dfc
...
@@ -23,6 +23,7 @@ import jp.agentec.abook.abv.bl.common.constant.ABookKeys;
...
@@ -23,6 +23,7 @@ import jp.agentec.abook.abv.bl.common.constant.ABookKeys;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException
;
import
jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.home.helper.OzdFileHelper
;
import
jp.agentec.abook.abv.ui.home.helper.OzdFileHelper
;
import
jp.agentec.abook.abv.launcher.android.PDFFileProvider
;
import
jp.agentec.abook.abv.launcher.android.PDFFileProvider
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.launcher.android.R
;
...
@@ -73,6 +74,11 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -73,6 +74,11 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
private
String
mSaveOzdTempFileName
;
private
String
mSaveOzdTempFileName
;
private
String
mSaveOzdFileName
;
private
String
mSaveOzdFileName
;
// #32861 作業情報追加 start
private
boolean
mReportDraft
;
// 一時保存情報
private
boolean
mAadReport
;
// 作業追加区分
// #32861 作業情報追加 end
@Override
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
public
void
onCreate
(
Bundle
savedInstanceState
)
{
Logger
.
i
(
TAG
,
"onCreate"
);
Logger
.
i
(
TAG
,
"onCreate"
);
...
@@ -109,20 +115,57 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -109,20 +115,57 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
TextView
tvTitle
=
(
TextView
)
findViewById
(
R
.
id
.
tv_title
);
TextView
tvTitle
=
(
TextView
)
findViewById
(
R
.
id
.
tv_title
);
tvTitle
.
setText
(
frontTitle
+
rearTitle
);
tvTitle
.
setText
(
frontTitle
+
rearTitle
);
// #32861 作業情報追加 start
// OZ閲覧画面に表示するボタン表示の可否設定
// 一時保存情報についてボタン表示:「0:false、一時保存ボタン非表示」「1:ture、一時保存ボタン表示」
mReportDraft
=
intent
.
getBooleanExtra
(
ABookKeys
.
REPORT_DRAFT
,
false
);
// 作業追加区分についてボタンを表示:「0:false、作業追加区分なし、作業一覧へボタン」「1:ture、作業追加区分あり、閉じるボタン」
mAadReport
=
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
);
final
Button
closeButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_close
);
final
Button
tempSaveButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_temp_save
);
final
Button
saveButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_save
);
// 一時ボタン表示可否判断
homeButton
.
setVisibility
(
mAadReport
?
View
.
GONE
:
View
.
VISIBLE
);
closeButton
.
setVisibility
(
mAadReport
?
View
.
VISIBLE
:
View
.
GONE
);
tempSaveButton
.
setVisibility
(
mReportDraft
?
View
.
VISIBLE
:
View
.
GONE
);
homeButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_operation_home
;
goToMain
();
}
});
// 閉じるボタン
closeButton
.
setOnClickListener
(
new
OnClickListener
()
{
closeButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
if
(!
mReadOnlyFlg
)
{
mButtonStatus
=
R
.
id
.
btn_close
;
//OZD臨時保存処理
finishActivity
();
if
(!
saveTempOzdFile
())
{
ABVToastUtil
.
showMakeText
(
mContext
,
R
.
string
.
msg_ozd_save_fail
,
Toast
.
LENGTH_LONG
);
return
;
}
}
});
// 一時保存
tempSaveButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_temp_save
;
showSaveConfirmAlert
(
R
.
string
.
temp_save
,
R
.
string
.
temp_save_info
);
}
}
finishActivity
();
});
saveButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_save
;
showSaveConfirmAlert
(
R
.
string
.
save
,
R
.
string
.
save_info
);
}
}
});
});
// #32861 作業情報追加 end
mOzFilePath
=
OzdFileHelper
.
getOzFilePath
(
mOperationId
,
contentId
,
mTaskKey
,
mDirectionFlg
,
mTaskReportId
,
mReportStartDate
,
mReportFileName
);
mOzFilePath
=
OzdFileHelper
.
getOzFilePath
(
mOperationId
,
contentId
,
mTaskKey
,
mDirectionFlg
,
mTaskReportId
,
mReportStartDate
,
mReportFileName
);
...
@@ -142,6 +185,42 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -142,6 +185,42 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
}
}
}
}
// #32861 作業情報追加 start
// アラート表示処理
private
void
showSaveConfirmAlert
(
final
int
dialogTitle
,
int
dialogMessage
)
{
ABookAlertDialog
logoutAkert
=
AlertDialogUtil
.
createAlertDialog
(
this
,
dialogTitle
);
logoutAkert
.
setMessage
(
dialogMessage
);
logoutAkert
.
setButton
(
DialogInterface
.
BUTTON_POSITIVE
,
getResources
().
getString
(
R
.
string
.
confirm
),
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
// 一時保存処理
// if (dialogTitle == R.string.temp_save) {
// tempSaved();
// } else if (dialogTitle == R.string.save) {
// tempSaved();
// }
tempSaved
();
}
});
logoutAkert
.
setButton
(
DialogInterface
.
BUTTON_NEGATIVE
,
getResources
().
getString
(
R
.
string
.
cancel
),
(
DialogInterface
.
OnClickListener
)
null
);
showAlertDialog
(
logoutAkert
);
}
// #32861 作業情報追加 end
// #32861 作業情報追加 start
// 臨時保存の処理
private
void
tempSaved
()
{
if
(!
mReadOnlyFlg
)
{
//OZD臨時保存処理
if
(!
saveTempOzdFile
())
{
ABVToastUtil
.
showMakeText
(
mContext
,
R
.
string
.
msg_ozd_save_fail
,
Toast
.
LENGTH_LONG
);
return
;
}
}
finishActivity
();
}
// #32861 作業情報追加 end
private
boolean
loadOzdDocument
(
File
file
)
{
private
boolean
loadOzdDocument
(
File
file
)
{
if
(
mOzReportViewer
!=
null
)
{
if
(
mOzReportViewer
!=
null
)
{
mOzReportViewer
.
dispose
();
mOzReportViewer
.
dispose
();
...
@@ -252,8 +331,13 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -252,8 +331,13 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
@Override
@Override
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
finishActivity
();
// #32861 作業情報追加 start
if
(!
mAadReport
)
{
goToMain
();
// 一覧画面に遷移
}
else
{
finishActivity
();
// Ozd作業画面を閉じる
}
// #32861 作業情報追加 end
}
else
{
}
else
{
return
super
.
onKeyUp
(
keyCode
,
event
);
return
super
.
onKeyUp
(
keyCode
,
event
);
}
}
...
@@ -498,4 +582,10 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -498,4 +582,10 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
}
}
return
true
;
return
true
;
}
}
// #32861 作業情報追加 start
private
void
goToMain
()
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
// 一覧画面に遷移
}
// #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