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
ac8c60d0
Commit
ac8c60d0
authored
Mar 12, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32861_作業情報追加(Android)
- レビュー対応
parent
93ba0dfc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
99 deletions
+64
-99
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
+2
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+19
-13
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+6
-32
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
+36
-48
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
View file @
ac8c60d0
...
@@ -42,10 +42,6 @@ public class ABookKeys {
...
@@ -42,10 +42,6 @@ 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"
;
...
@@ -122,7 +118,8 @@ public class ABookKeys {
...
@@ -122,7 +118,8 @@ public class ABookKeys {
public
static
final
String
OK
=
"OK"
;
public
static
final
String
OK
=
"OK"
;
// #32861 作業情報追加 start
// #32861 作業情報追加 start
public
static
final
String
REPORT_DRAFT
=
"
reportDraft
"
;
// 一時保存情報
public
static
final
String
REPORT_DRAFT
=
"
localSave
"
;
// 一時保存情報
public
static
final
String
ADD_REPORT
=
"addReport"
;
// 作業追加区分
public
static
final
String
ADD_REPORT
=
"addReport"
;
// 作業追加区分
public
static
final
String
CMD_LOCAL_SAVE_TASK_REPORT
=
"localSaveTaskReport"
;
// 一時保存
// #32861 作業情報追加 end
// #32861 作業情報追加 end
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
ac8c60d0
...
@@ -105,7 +105,7 @@ public class TaskReportDao extends AbstractDao {
...
@@ -105,7 +105,7 @@ public class TaskReportDao extends AbstractDao {
+
"attached_file_name=?, "
+
"attached_file_name=?, "
+
"local_attached_file_name=?, "
+
"local_attached_file_name=?, "
+
"attached_file_send_flg=?, "
+
"attached_file_send_flg=?, "
+
"data_send_flg=?
,
"
+
"data_send_flg=? "
// #32782 指示者テーブル関連削除 start
// #32782 指示者テーブル関連削除 start
// TODO append
// TODO append
// + "reporter_flag=? "
// + "reporter_flag=? "
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
ac8c60d0
...
@@ -133,8 +133,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -133,8 +133,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
// #32861 作業情報追加 start
// #32861 作業情報追加 start
public
int
mButtonStatus
;
// 保存ボタンチェック
public
int
mButtonStatus
;
// 保存ボタンチェック
protected
boolean
mLocalSave
TaskReport
;
// 一時保存情報
protected
boolean
mLocalSave
;
// 一時保存情報
protected
boolean
m
InsertTaskReport
;
// 作業追加区分
protected
boolean
m
AddReport
;
// 作業追加区分
// #32861 作業情報追加 end
// #32861 作業情報追加 end
@Override
@Override
...
@@ -435,6 +435,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -435,6 +435,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
// ホームをリロードさせる
// ホームをリロードさせる
ActivityHandlingHelper
.
getInstance
().
setRequireHomeReload
(
true
);
ActivityHandlingHelper
.
getInstance
().
setRequireHomeReload
(
true
);
// #32861 作業情報追加 start
// #32861 作業情報追加 start
// 押したボタンによってHTML側の処理を行う
if
(
this
instanceof
CheckOZDViewActivity
)
{
if
(
this
instanceof
CheckOZDViewActivity
)
{
if
(
mButtonStatus
==
R
.
id
.
btn_close
)
{
if
(
mButtonStatus
==
R
.
id
.
btn_close
)
{
ozdCancelProcess
();
// 閉じる
ozdCancelProcess
();
// 閉じる
...
@@ -956,18 +957,18 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -956,18 +957,18 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
true
,
true
,
mReportFileName
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
true
,
true
,
mReportFileName
);
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SHOW_REPORT_OZD
))
{
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SHOW_REPORT_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
false
,
taskReportId
,
reportStartDate
,
mReportFileName
);
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_PREVIEW_REPORT_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
// #32861 作業情報追加 start
// #32861 作業情報追加 start
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
REPORT_DRAFT
))
{
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
REPORT_DRAFT
))
{
mLocalSave
TaskReport
=
Integer
.
parseInt
(
abookCheckParam
.
get
(
ABookKeys
.
REPORT_DRAFT
))
>
0
?
true
:
false
;
mLocalSave
=
Integer
.
parseInt
(
abookCheckParam
.
get
(
ABookKeys
.
REPORT_DRAFT
))
>
0
?
true
:
false
;
}
}
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
ADD_REPORT
))
{
if
(
abookCheckParam
.
containsKey
(
ABookKeys
.
ADD_REPORT
))
{
m
InsertTask
Report
=
Integer
.
parseInt
(
abookCheckParam
.
get
(
ABookKeys
.
ADD_REPORT
))
>
0
?
true
:
false
;
m
Add
Report
=
Integer
.
parseInt
(
abookCheckParam
.
get
(
ABookKeys
.
ADD_REPORT
))
>
0
?
true
:
false
;
}
}
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
false
,
taskReportId
,
reportStartDate
,
mReportFileName
,
mLocalSave
TaskReport
,
mInsertTask
Report
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
false
,
taskReportId
,
reportStartDate
,
mReportFileName
,
mLocalSave
,
mAdd
Report
);
// #32861 作業情報追加 end
// #32861 作業情報追加 end
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_PREVIEW_REPORT_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
true
,
taskReportId
,
reportStartDate
,
mReportFileName
,
false
,
false
);
}
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
()
{
...
@@ -1091,10 +1092,10 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1091,10 +1092,10 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
}
// #32861 作業情報追加 start
// #32861 作業情報追加 start
// 作業追加区分ありの場合
// 作業追加区分ありの場合
if
(
m
InsertTask
Report
)
{
if
(
m
Add
Report
)
{
webViewLoadUrl
(
"javascript:CHK.cancelOzReport()"
);
webViewLoadUrl
(
"javascript:CHK.cancelOzReport()"
);
// OZD画面日表示するため行う
}
else
{
}
else
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
goToMain
();
// 一覧画面に遷移
}
}
// #32861 作業情報追加 end
// #32861 作業情報追加 end
}
}
...
@@ -1202,7 +1203,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1202,7 +1203,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
runOnUiThread
(
new
Runnable
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
// 実行Javascript -
閉じる
// 実行Javascript -
保存
webViewLoadUrl
(
"javascript:CHK.saeOzReport()"
);
webViewLoadUrl
(
"javascript:CHK.saeOzReport()"
);
Logger
.
d
(
TAG
,
"ozdSaveProcess"
);
Logger
.
d
(
TAG
,
"ozdSaveProcess"
);
}
}
...
@@ -1214,7 +1215,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1214,7 +1215,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
runOnUiThread
(
new
Runnable
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
// 実行Javascript -
閉じる
// 実行Javascript -
一時保存
webViewLoadUrl
(
"javascript:CHK.localSaveOzReport()"
);
webViewLoadUrl
(
"javascript:CHK.localSaveOzReport()"
);
Logger
.
d
(
TAG
,
"ozdLocalSaveProcess"
);
Logger
.
d
(
TAG
,
"ozdLocalSaveProcess"
);
}
}
...
@@ -1232,5 +1233,10 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1232,5 +1233,10 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
}
});
});
}
}
// 作業一覧画面に遷移
public
void
goToMain
()
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
// 一覧画面に遷移
}
// #32861 作業情報追加 end
// #32861 作業情報追加 end
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
ac8c60d0
...
@@ -1543,39 +1543,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -1543,39 +1543,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
* @param taskReportId
* @param taskReportId
* @param reportStartDate
* @param reportStartDate
* @param reportFileName
* @param reportFileName
*/
* @param localSave
public
void
startOZViewerActivity
(
Context
context
,
long
operationId
,
long
contentId
,
String
taskKey
,
boolean
isReadOnly
,
int
taskReportId
,
String
reportStartDate
,
String
reportFileName
)
{
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
);
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
* @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
)
{
// #32861 作業情報追加 start
public
void
startOZViewerActivity
(
Context
context
,
long
operationId
,
long
contentId
,
String
taskKey
,
boolean
isReadOnly
,
int
taskReportId
,
String
reportStartDate
,
String
reportFileName
,
boolean
localSave
,
boolean
addReport
)
{
reportStartDate
=
reportStartDate
.
replace
(
"T"
,
" "
);
reportStartDate
=
reportStartDate
.
replace
(
"T"
,
" "
);
String
strReportStartDate
=
DateTimeUtil
.
toString
(
DateTimeUtil
.
toDate
(
reportStartDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
),
DateTimeFormat
.
yyyyMMddHHmm_none
);
String
strReportStartDate
=
DateTimeUtil
.
toString
(
DateTimeUtil
.
toDate
(
reportStartDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
),
DateTimeFormat
.
yyyyMMddHHmm_none
);
...
@@ -1589,8 +1561,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -1589,8 +1561,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
intent
.
putExtra
(
ABookKeys
.
TASK_REPORT_ID
,
taskReportId
);
intent
.
putExtra
(
ABookKeys
.
TASK_REPORT_ID
,
taskReportId
);
intent
.
putExtra
(
ABookKeys
.
REPORT_START_DATE
,
strReportStartDate
);
intent
.
putExtra
(
ABookKeys
.
REPORT_START_DATE
,
strReportStartDate
);
intent
.
putExtra
(
ABookKeys
.
REPORT_FILE_NAME
,
reportFileName
);
intent
.
putExtra
(
ABookKeys
.
REPORT_FILE_NAME
,
reportFileName
);
intent
.
putExtra
(
ABookKeys
.
REPORT_DRAFT
,
reportDraft
);
// 一時保存情報
// #32861 作業情報追加 start
intent
.
putExtra
(
ABookKeys
.
REPORT_DRAFT
,
localSave
);
// 一時保存情報
intent
.
putExtra
(
ABookKeys
.
ADD_REPORT
,
addReport
);
// 作業追加区分
intent
.
putExtra
(
ABookKeys
.
ADD_REPORT
,
addReport
);
// 作業追加区分
// #32861 作業情報追加 end
context
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
View file @
ac8c60d0
...
@@ -75,7 +75,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -75,7 +75,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
private
String
mSaveOzdFileName
;
private
String
mSaveOzdFileName
;
// #32861 作業情報追加 start
// #32861 作業情報追加 start
private
boolean
m
ReportDraft
;
// 一時保存情報
private
boolean
m
LocalSave
;
// 一時保存情報
private
boolean
mAadReport
;
// 作業追加区分
private
boolean
mAadReport
;
// 作業追加区分
// #32861 作業情報追加 end
// #32861 作業情報追加 end
...
@@ -118,7 +118,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -118,7 +118,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
// #32861 作業情報追加 start
// #32861 作業情報追加 start
// OZ閲覧画面に表示するボタン表示の可否設定
// OZ閲覧画面に表示するボタン表示の可否設定
// 一時保存情報についてボタン表示:「0:false、一時保存ボタン非表示」「1:ture、一時保存ボタン表示」
// 一時保存情報についてボタン表示:「0:false、一時保存ボタン非表示」「1:ture、一時保存ボタン表示」
m
ReportDraft
=
intent
.
getBooleanExtra
(
ABookKeys
.
REPORT_DRAFT
,
false
);
m
LocalSave
=
intent
.
getBooleanExtra
(
ABookKeys
.
REPORT_DRAFT
,
false
);
// 作業追加区分についてボタンを表示:「0:false、作業追加区分なし、作業一覧へボタン」「1:ture、作業追加区分あり、閉じるボタン」
// 作業追加区分についてボタンを表示:「0:false、作業追加区分なし、作業一覧へボタン」「1:ture、作業追加区分あり、閉じるボタン」
mAadReport
=
intent
.
getBooleanExtra
(
ABookKeys
.
ADD_REPORT
,
false
);
mAadReport
=
intent
.
getBooleanExtra
(
ABookKeys
.
ADD_REPORT
,
false
);
...
@@ -130,13 +130,13 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -130,13 +130,13 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
// 一時ボタン表示可否判断
// 一時ボタン表示可否判断
homeButton
.
setVisibility
(
mAadReport
?
View
.
GONE
:
View
.
VISIBLE
);
homeButton
.
setVisibility
(
mAadReport
?
View
.
GONE
:
View
.
VISIBLE
);
closeButton
.
setVisibility
(
mAadReport
?
View
.
VISIBLE
:
View
.
GONE
);
closeButton
.
setVisibility
(
mAadReport
?
View
.
VISIBLE
:
View
.
GONE
);
tempSaveButton
.
setVisibility
(
m
ReportDraft
?
View
.
VISIBLE
:
View
.
GONE
);
tempSaveButton
.
setVisibility
(
m
LocalSave
?
View
.
VISIBLE
:
View
.
GONE
);
// 作業一覧へ戻るボタン
homeButton
.
setOnClickListener
(
new
OnClickListener
()
{
homeButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_operation_home
;
goToMain
();
// 作業一覧画面に遷移
goToMain
();
}
}
});
});
...
@@ -144,24 +144,25 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -144,24 +144,25 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
closeButton
.
setOnClickListener
(
new
OnClickListener
()
{
closeButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_close
;
mButtonStatus
=
R
.
id
.
btn_close
;
// HTML側の分岐処理を行うため変数に値を渡す
finishActivity
();
finishActivity
();
// HTML側の処理を行う
}
}
});
});
// 一時保存
// 一時保存
ボタン
tempSaveButton
.
setOnClickListener
(
new
OnClickListener
()
{
tempSaveButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_temp_save
;
mButtonStatus
=
R
.
id
.
btn_temp_save
;
// HTML側の分岐処理を行うため変数に値を渡す
showSaveConfirmAlert
(
R
.
string
.
temp_save
,
R
.
string
.
temp_save_info
);
showSaveConfirmAlert
(
R
.
string
.
temp_save
,
R
.
string
.
temp_save_info
);
}
}
});
});
// 保存ボタン
saveButton
.
setOnClickListener
(
new
OnClickListener
()
{
saveButton
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
mButtonStatus
=
R
.
id
.
btn_save
;
mButtonStatus
=
R
.
id
.
btn_save
;
// HTML側の分岐処理を行うため変数に値を渡す
showSaveConfirmAlert
(
R
.
string
.
save
,
R
.
string
.
save_info
);
showSaveConfirmAlert
(
R
.
string
.
save
,
R
.
string
.
save_info
);
}
}
});
});
...
@@ -185,42 +186,6 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -185,42 +186,6 @@ 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
();
...
@@ -584,8 +549,30 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
...
@@ -584,8 +549,30 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
}
}
// #32861 作業情報追加 start
// #32861 作業情報追加 start
private
void
goToMain
()
{
// アラート表示処理
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
// 一覧画面に遷移
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
)
{
tempSaved
();
// 一時保存処理
}
});
logoutAkert
.
setButton
(
DialogInterface
.
BUTTON_NEGATIVE
,
getResources
().
getString
(
R
.
string
.
cancel
),
(
DialogInterface
.
OnClickListener
)
null
);
showAlertDialog
(
logoutAkert
);
}
// 臨時保存の処理
private
void
tempSaved
()
{
if
(!
mReadOnlyFlg
)
{
//OZD臨時保存処理
if
(!
saveTempOzdFile
())
{
ABVToastUtil
.
showMakeText
(
mContext
,
R
.
string
.
msg_ozd_save_fail
,
Toast
.
LENGTH_LONG
);
return
;
}
}
finishActivity
();
// HTML側の処理を行う
}
}
// #32861 作業情報追加 end
// #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