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
3a339c8a
Commit
3a339c8a
authored
Apr 01, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
バグ修正
parent
13df0a46
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
121 additions
and
67 deletions
+121
-67
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
+3
-4
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskDao.java
+10
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+22
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportSendDao.java
+14
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TTask.java
+1
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/TaskDto.java
+4
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+26
-3
ABVJE_Res_Default_Android/res/drawable-xhdpi/ic_delete.png
+0
-0
ABVJE_Res_Default_Android/res/drawable-xhdpi/ic_ozd_delete.png
+0
-0
ABVJE_UI_Android/res/layout/ac_ozd_webview.xml
+1
-1
ABVJE_UI_Android/res/layout/item_operation_panel.xml
+4
-7
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+0
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+4
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationPanelAdapter.java
+7
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
+2
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+0
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
+1
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OzdFileHelper.java
+4
-14
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
+9
-12
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+9
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
View file @
3a339c8a
...
...
@@ -136,7 +136,7 @@ public class ABVEnvironment {
// 作業報告レベル(taskReportLevel)によってディレクトリを追加する
public
static
final
String
TaskReportLevelDir
=
"/%s"
;
public
static
final
String
SavedOzFileFormat
=
OperationDirectionOrReportDirFormat
+
TaskReportLevelDir
;
public
static
final
String
RoutineTaskSavedOzFileFormat
=
OperationDirectionOrReportDirFormat
+
TaskReportLevelDir
+
"/%
d/%
s/%s"
;
public
static
final
String
RoutineTaskSavedOzFileFormat
=
OperationDirectionOrReportDirFormat
+
TaskReportLevelDir
+
"/%s/%s"
;
public
static
final
String
OperationTaskKeyReportSendDirFormat
=
OperationTaskKeyDirFormat
+
"/reportSend/%d"
;
public
static
final
String
OperationTaskKeyRoutineTaskReportDirFormat
=
OperationTaskKeyDirFormat
+
"/%d/%s/%s"
;
// #32926 作業報告画面改善 end
...
...
@@ -607,6 +607,7 @@ public class ABVEnvironment {
/**
* 保存されたOZファイルパス、定期点検用
* 例)root/files/ABook/operation/[operation_id]/[task_key]/{taskReportLevel}/{taskReportId}/{reportStartDate}
* @param operationId
* @param taskKey
* @param taskReportId
...
...
@@ -615,9 +616,7 @@ public class ABVEnvironment {
* @return
*/
public
String
getRoutineTaskSavedOzFilePath
(
long
operationId
,
String
taskKey
,
int
taskReportId
,
String
reportStartDate
,
String
fileName
,
String
taskReportLevel
)
{
// #32926 作業報告画面改善 start
return
String
.
format
(
RoutineTaskSavedOzFileFormat
,
rootDirectory
,
operationId
,
taskKey
,
taskReportLevel
,
"report"
,
taskReportId
,
reportStartDate
,
fileName
);
// #32926 作業報告画面改善 end
return
String
.
format
(
RoutineTaskSavedOzFileFormat
,
rootDirectory
,
operationId
,
taskKey
,
taskReportLevel
,
taskReportId
,
reportStartDate
,
fileName
);
}
/**
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskDao.java
View file @
3a339c8a
...
...
@@ -48,12 +48,15 @@ public class TaskDao extends AbstractDao {
if
(
column
!=
-
1
)
{
dto
.
delFlg
=
toBool
(
cursor
.
getInt
(
column
));
}
// #32926 作業報告画面改善 start
column
=
cursor
.
getColumnIndex
(
"task_has_Authority"
);
if
(
column
!=
-
1
)
{
dto
.
taskHasAuthority
=
toBool
(
cursor
.
getInt
(
column
));
}
// #32926 作業報告画面改善 end
column
=
cursor
.
getColumnIndex
(
"hotspot_changed_flg"
);
if
(
column
!=
-
1
)
{
dto
.
hotspotChangeFlg
=
toBool
(
cursor
.
getInt
(
column
));
}
return
dto
;
}
...
...
@@ -76,9 +79,10 @@ public class TaskDao extends AbstractDao {
+
"operation_id, "
+
"task_code, "
+
"task_status, "
+
"task_hotspot_info) "
+
"task_hotspot_info, "
+
"hotspot_changed_flg) "
+
"values "
+
"(?,?,?,?,?,?)"
,
+
"(?,?,?,?,?,?
,?
)"
,
dto
.
getInsertValues
());
}
...
...
@@ -90,7 +94,8 @@ public class TaskDao extends AbstractDao {
+
"task_code=?, "
+
"task_status=?, "
+
"task_hotspot_info=?, "
+
"del_flg=?"
+
"del_flg=?, "
+
"hotspot_changed_flg=?"
+
"where task_key=?"
,
dto
.
getUpdateValues
());
return
count
>
0
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
3a339c8a
...
...
@@ -210,6 +210,28 @@ public class TaskReportDao extends AbstractDao {
return
rawQueryGetDtoList
(
sb
.
toString
(),
new
String
[]{
""
+
operationId
},
TaskReportDto
.
class
);
}
/**
*
* @param operationId
* @param taskKey
* @return
*/
public
List
<
TaskReportDto
>
getUpdateTargetHotSpotTaskData
(
Long
operationId
,
String
taskKey
)
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
" select * "
);
sb
.
append
(
" from t_task_report ttr "
);
sb
.
append
(
" inner join "
);
sb
.
append
(
" t_task tt "
);
sb
.
append
(
" ON tt.task_key == ttr.task_key "
);
sb
.
append
(
" WHERE tt.hotspot_changed_flg = 1"
);
sb
.
append
(
" AND tt.task_report_level = 0"
);
sb
.
append
(
" AND tt.operation_id = ?"
);
if
(
taskKey
==
null
)
{
sb
.
append
(
" AND ttr.task_key = ?"
);
}
return
rawQueryGetDtoList
(
sb
.
toString
(),
new
String
[]{
""
+
operationId
},
TaskReportDto
.
class
);
}
/**
* 送信フラグがtrueのデータを取得
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportSendDao.java
View file @
3a339c8a
...
...
@@ -128,6 +128,20 @@ public class TaskReportSendDao extends AbstractDao {
return
rawQueryGetDtoList
(
sb
.
toString
(),
new
String
[]{
taskKey
},
TaskReportSendDto
.
class
);
}
/**
* 送信可能なデータが存在するかチェック
* @param taskKey
* @return
*/
public
boolean
isNotExistSendableData
(
String
taskKey
)
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
" select count(task_report_send_id) "
);
sb
.
append
(
" from t_task_report_send "
);
sb
.
append
(
" where task_key = ? "
);
sb
.
append
(
" order by task_report_send_id asc"
);
return
rawQueryGetInt
(
sb
.
toString
(),
new
String
[]{
taskKey
})
==
0
;
}
public
List
<
TaskReportSendDto
>
getSendableTaskReportSendData
(
String
taskKey
,
int
taskReportId
,
String
reportStartDate
)
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
" select * "
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TTask.java
View file @
3a339c8a
...
...
@@ -29,6 +29,7 @@ public class TTask extends SQLiteTableScript {
sql
.
append
(
" , task_status INTEGER "
);
sql
.
append
(
" , task_hotspot_info TEXT "
);
sql
.
append
(
" , del_flg BOOLEAN DEFAULT 0 "
);
sql
.
append
(
" , hotspot_changed_flg BOOLEAN DEFAULT 0 "
);
sql
.
append
(
" , PRIMARY KEY (task_key) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/TaskDto.java
View file @
3a339c8a
...
...
@@ -21,14 +21,16 @@ public class TaskDto extends AbstractDto {
public
boolean
taskHasAuthority
;
// タスク別の権限
public
boolean
hotspotChangeFlg
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]
{
taskKey
,
taskId
,
operationId
,
taskCode
,
taskStatus
,
taskHotSpotInfo
};
return
new
Object
[]
{
taskKey
,
taskId
,
operationId
,
taskCode
,
taskStatus
,
taskHotSpotInfo
,
hotspotChangeFlg
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]
{
taskId
,
operationId
,
taskCode
,
taskStatus
,
taskHotSpotInfo
,
delFlg
,
taskKey
};
return
new
Object
[]
{
taskId
,
operationId
,
taskCode
,
taskStatus
,
taskHotSpotInfo
,
delFlg
,
hotspotChangeFlg
,
taskKey
};
}
@Override
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
3a339c8a
...
...
@@ -694,11 +694,11 @@ public class OperationLogic extends AbstractLogic {
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskKey
);
// #32782 指示者テーブル関連削除 start
TaskReportDto
taskReportDto
=
mTaskReportDao
.
getTaskReport
(
taskKey
,
taskReportLevel
);
taskReportDto
.
dataSendFlg
=
true
;
JSONObject
hotSpot
=
new
JSONObject
(
taskDto
.
taskHotSpotInfo
);
hotSpot
.
put
(
"x"
,
newX
);
hotSpot
.
put
(
"y"
,
newY
);
taskDto
.
taskHotSpotInfo
=
hotSpot
.
toString
();
taskDto
.
hotspotChangeFlg
=
true
;
mTaskReportDao
.
update
(
taskReportDto
);
// #32782 指示者テーブル関連削除 end
mTaskDao
.
update
(
taskDto
);
...
...
@@ -1123,6 +1123,9 @@ public class OperationLogic extends AbstractLogic {
OperationDto
operationDto
=
mOperationDao
.
getOperation
(
operationId
);
List
<
TaskReportDto
>
taskReportDtoList
=
null
;
int
maxProgress
=
0
;
// 作業担当レベルが0且つ、t_task_report_sendテーブルのデータが存在しない場合、
// ホットスポット変更フラグがtrueであれば、t_task_report_sendデータを登録する
updateHotspotChanged
(
operationId
,
taskKey
);
if
(
taskKey
==
null
)
{
taskReportDtoList
=
mTaskReportDao
.
getSendableTaskData
(
operationId
);
maxProgress
=
40
;
...
...
@@ -1141,6 +1144,7 @@ public class OperationLogic extends AbstractLogic {
List
<
Integer
>
removeTaskReportSendIds
=
new
ArrayList
<
Integer
>();
for
(
TaskReportDto
taskReportDto
:
taskReportDtoList
)
{
List
<
TaskReportSendDto
>
taskReportSendDtoList
;
int
lastTaskReportSendId
;
if
(
operationDto
.
reportType
==
Constant
.
ReportType
.
RoutineTask
)
{
...
...
@@ -1331,6 +1335,25 @@ public class OperationLogic extends AbstractLogic {
}
/**
* ホットスポットのアップデートがあるが、sendテーブルに存在しない場合、登録
* @param operationId
* @param taskKey
* @throws IOException
*/
public
void
updateHotspotChanged
(
long
operationId
,
String
taskKey
)
throws
IOException
{
List
<
TaskReportDto
>
taskReportDtoList
=
mTaskReportDao
.
getUpdateTargetHotSpotTaskData
(
operationId
,
taskKey
);
for
(
TaskReportDto
taskReportDto
:
taskReportDtoList
)
{
if
(
mTaskReportSendDao
.
isNotExistSendableData
(
taskReportDto
.
taskKey
))
{
insertTaskReportSend
(
taskReportDto
.
taskKey
,
taskReportDto
.
taskReportId
,
DateTimeUtil
.
toString
(
taskReportDto
.
reportStartDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
),
new
JSONObject
(
taskReportDto
.
jsonData
),
false
);
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskReportDto
.
taskKey
);
taskDto
.
hotspotChangeFlg
=
false
;
mTaskDao
.
update
(
taskDto
);
}
}
}
/**
* 作業の添付ファイルのzip生成
* @param operationId
* @param taskKey
...
...
@@ -1512,11 +1535,11 @@ public class OperationLogic extends AbstractLogic {
* @param taskKey
* @param operationId
* @param hotSpotInfo
* @param taskStatus
*/
public
void
registTaskData
(
String
taskKey
,
Long
operationId
,
String
hotSpotInfo
,
Integer
taskStatus
,
JSONObject
taskJson
)
{
public
void
registTaskData
(
String
taskKey
,
Long
operationId
,
String
hotSpotInfo
,
JSONObject
taskJson
)
{
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskKey
);
String
taskCode
=
null
;
Integer
taskStatus
=
null
;
if
(
taskJson
!=
null
)
{
// 作業コード取得
Iterator
taskKeys
=
taskJson
.
keys
();
...
...
ABVJE_Res_Default_Android/res/drawable-xhdpi/ic_delete.png
View file @
3a339c8a
607 Bytes
|
W:
|
H:
488 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
ABVJE_Res_Default_Android/res/drawable-xhdpi/ic_ozd_delete.png
0 → 100644
View file @
3a339c8a
607 Bytes
ABVJE_UI_Android/res/layout/ac_ozd_webview.xml
View file @
3a339c8a
...
...
@@ -69,7 +69,7 @@
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"5dp"
android:background=
"@drawable/ic_delete"
/>
android:background=
"@drawable/ic_
ozd_
delete"
/>
<Button
android:id=
"@+id/btn_temp_save"
android:layout_width=
"30dp"
...
...
ABVJE_UI_Android/res/layout/item_operation_panel.xml
View file @
3a339c8a
...
...
@@ -76,7 +76,7 @@
<TextView
android:id=
"@+id/operation_name"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:ellipsize=
"end"
android:maxLines=
"2"
...
...
@@ -87,16 +87,14 @@
<TextView
android:id=
"@+id/operation_date"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5dp"
android:layout_weight=
"1"
android:ellipsize=
"end"
android:maxLines=
"
1
"
android:maxLines=
"
2
"
android:text=
"@string/dummy_date"
android:textColor=
"@color/operation_date"
android:textSize=
"
@dimen/operation_normal_text_size
"
/>
android:textSize=
"
16sp
"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
3a339c8a
...
...
@@ -983,12 +983,6 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SAVE_ATTACHED
))
{
mAttachedFileName
=
abookCheckParam
.
get
(
ABookKeys
.
FILE_NAME
);
getAttachedDataUrl
();
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SHOW_DIRECTION_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
false
,
true
,
mReportFileName
);
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_PREVIEW_DIRECTION_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
ActivityHandlingHelper
.
getInstance
().
startOZViewerActivity
(
this
,
mOperationId
,
getContentId
(),
mTaskKey
,
true
,
true
,
mReportFileName
);
}
else
if
(
mCmd
.
equals
(
ABookKeys
.
CMD_SHOW_REPORT_OZD
))
{
mReportFileName
=
abookCheckParam
.
get
(
ABookKeys
.
REPORT_FILE_NAME
);
// 作業報告画面改善
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
3a339c8a
...
...
@@ -316,6 +316,8 @@ public class OperationListActivity extends ABVUIActivity {
}
}
mAllOperationReportTypes
=
getOperationReportTypeList
(
true
);
// リスト更新
setOperationListView
();
}
// 共通資料画面表示
...
...
@@ -400,7 +402,7 @@ public class OperationListActivity extends ABVUIActivity {
public
void
onResume
()
{
Logger
.
i
(
TAG
,
"onResume:start"
);
super
.
onResume
();
setOperationListView
();
refreshOperationList
();
// 作業指示・報告からプロジェクト一覧へ戻った時の同期処理
final
long
operationId
=
getUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
-
1L
);
if
(
operationId
!=
-
1
)
{
...
...
@@ -807,7 +809,7 @@ public class OperationListActivity extends ABVUIActivity {
public
void
onClickShowHelpView
(
View
v
)
{
// if (mOperationAuthLevel == OperationAuthLevel.OPERATION_INSTRUCTOR) {
showHelpViewDialog
(
Constant
.
HelpViewType
.
OperationListDirector
);
//
showHelpViewDialog(Constant.HelpViewType.OperationListDirector);
// } else {
showHelpViewDialog
(
Constant
.
HelpViewType
.
OperationListReporter
);
// }
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationPanelAdapter.java
View file @
3a339c8a
...
...
@@ -16,6 +16,7 @@ import jp.agentec.abook.abv.bl.dto.OperationDto;
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
jp.agentec.abook.abv.ui.home.activity.OperationListActivity
;
import
jp.agentec.adf.util.DateTimeFormat
;
import
jp.agentec.adf.util.DateTimeUtil
;
import
jp.agentec.adf.util.StringUtil
;
...
...
@@ -30,8 +31,8 @@ public class OperationPanelAdapter extends AbstractOperationAdapter {
final
private
String
TAG
=
"OperationPanelAdapter"
;
private
Context
mContext
;
private
LayoutInflater
mInflater
;
private
final
int
padding
;
private
int
categoryId
;
private
boolean
mNormalSizeFlg
;
private
OperationPanelAdapter
.
OperationListPanelAdapterListener
mListener
;
...
...
@@ -50,7 +51,7 @@ public class OperationPanelAdapter extends AbstractOperationAdapter {
public
OperationPanelAdapter
(
Context
context
,
List
<
OperationDto
>
listItem
)
{
this
.
mContext
=
context
;
this
.
listItem
=
listItem
;
padding
=
(
int
)
(
4
f
*
mContext
.
getResources
().
getDisplayMetrics
().
density
+
0.5f
);
mNormalSizeFlg
=
((
OperationListActivity
)
context
).
isNormalSize
(
);
mInflater
=
(
LayoutInflater
)
mContext
.
getSystemService
(
mContext
.
LAYOUT_INFLATER_SERVICE
);
}
...
...
@@ -130,7 +131,10 @@ public class OperationPanelAdapter extends AbstractOperationAdapter {
R
.
string
.
msg_no_report_data
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
else
{
holder
.
tvDate
.
setText
(
mContext
.
getString
(
R
.
string
.
date_label_routineTask
)
+
" : "
+
operationDto
.
reportPeriod
);
// リソースパターンの適用
holder
.
tvDate
.
setText
(
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
date_label_routineTask
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))
+
" : "
+
(
mNormalSizeFlg
?
"\n"
:
""
)
+
operationDto
.
reportPeriod
);
}
}
else
{
// リソースパターンの適用
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
View file @
3a339c8a
...
...
@@ -225,6 +225,7 @@ public class ABookCheckWebViewHelper extends ABookHelper {
try
{
mOperationLogic
.
updateTaskHotspot
(
operationTaskDto
.
taskKey
,
operationTaskDto
.
pdfX
,
operationTaskDto
.
pdfY
,
Constant
.
TaskReportLevel
.
ReportType
);
mOperationLogic
.
createHopSpotJson
(
operationId
,
contentPath
);
}
catch
(
IOException
e
){
e
.
printStackTrace
();
}
...
...
@@ -325,14 +326,13 @@ public class ABookCheckWebViewHelper extends ABookHelper {
}
else
{
String
hotSpotInfo
=
param
.
containsKey
(
ABookKeys
.
HOT_SPOT
)
?
param
.
get
(
ABookKeys
.
HOT_SPOT
)
:
null
;
Integer
taskStatus
=
taskReportJson
.
has
(
ABookKeys
.
TASK_STATUS
)
?
taskReportJson
.
getInt
(
ABookKeys
.
TASK_STATUS
)
:
null
;
// 報告情報のjson取得後、登録・更新時に使用
JSONObject
taskJson
=
null
;
if
(
taskReportJson
.
has
(
"task"
))
{
taskJson
=
taskReportJson
.
getJSONObject
(
"task"
);
}
// task登録・更新処理
mOperationLogic
.
registTaskData
(
taskKey
,
operationId
,
hotSpotInfo
,
task
Status
,
task
Json
);
mOperationLogic
.
registTaskData
(
taskKey
,
operationId
,
hotSpotInfo
,
taskJson
);
TaskReportDto
taskReportDto
=
mOperationLogic
.
getTaskReport
(
taskKey
,
taskReportLevel
);
if
(
taskReportDto
!=
null
)
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
3a339c8a
...
...
@@ -1558,7 +1558,6 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
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
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
View file @
3a339c8a
...
...
@@ -143,8 +143,6 @@ public class OperationListHelper {
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
operationId
)
{
OperationDto
operationDto
=
(
OperationDto
)
parent
.
getAdapter
().
getItem
(
position
);
if
(
operationDto
.
contentId
!=
null
&&
operationDto
.
contentId
!=
0
)
{
//TODO テスト用のため、削除
ABVToastUtil
.
showMakeText
(
mAppActivity
,
"open operationId : "
+
operationId
,
Toast
.
LENGTH_LONG
);
// 作業画面
mAppActivity
.
openDirectionsOrReportView
(
operationDto
);
}
else
{
...
...
@@ -153,8 +151,7 @@ public class OperationListHelper {
mAppActivity
.
showPanoEntryDialog
(
operationDto
);
}
else
{
// 何もしない
//TODO テスト用のため、削除
ABVToastUtil
.
showMakeText
(
mAppActivity
,
"何もしない"
,
Toast
.
LENGTH_LONG
);
Logger
.
e
(
"not open target"
);
}
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OzdFileHelper.java
View file @
3a339c8a
...
...
@@ -85,18 +85,15 @@ public class OzdFileHelper {
// AcmsClient.getInstance(URL_PATH, ABVEnvironment.getInstance().networkAdapter).downloadOzdFile(parameters, outputFilePath);
}
public
static
final
String
getSaveOzFileName
(
boolean
directionFlg
,
String
reportFileName
)
{
public
static
final
String
getSaveOzFileName
(
String
reportFileName
)
{
if
(
reportFileName
!=
null
)
{
String
replacedFileName
=
replaceFileName
(
reportFileName
);
return
replacedFileName
;
}
if
(
directionFlg
)
{
return
DIRECTION_OZD_FILE_NAME
;
}
return
REPORT_OZD_FILE_NAME
;
}
public
static
final
String
getOzFilePath
(
long
operationId
,
long
contentId
,
String
taskKey
,
boolean
directionFlg
,
int
taskReportId
,
String
reportStartDate
,
String
reportFileName
,
int
taskReportLevel
)
{
public
static
final
String
getOzFilePath
(
long
operationId
,
long
contentId
,
String
taskKey
,
int
taskReportId
,
String
reportStartDate
,
String
reportFileName
,
int
taskReportLevel
)
{
String
ozdFileName
=
null
;
String
ozrFileName
=
null
;
...
...
@@ -104,15 +101,8 @@ public class OzdFileHelper {
ozdFileName
=
reportFileName
;
ozrFileName
=
reportFileName
;
}
else
{
// #32926 作業報告画面改善 start
if
(
taskReportLevel
==
0
)
{
ozdFileName
=
DIRECTION_OZD_FILE_NAME
;
ozrFileName
=
DIRECTION_OZR_FILE_NAME
;
}
else
{
ozdFileName
=
REPORT_OZD_FILE_NAME
;
ozrFileName
=
REPORT_OZR_FILE_NAME
;
}
// #32926 作業報告画面改善 end
ozdFileName
=
REPORT_OZD_FILE_NAME
;
ozrFileName
=
REPORT_OZR_FILE_NAME
;
}
String
ozFilePath
=
ABVEnvironment
.
getInstance
().
getTempFilePath
(
contentId
,
taskKey
,
ozdFileName
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
View file @
3a339c8a
...
...
@@ -73,7 +73,6 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
private
String
mReportStartDate
;
private
String
mReportFileName
;
private
boolean
mReadOnlyFlg
;
private
boolean
mDirectionFlg
;
private
String
mOzFilePath
;
private
String
mOzFileName
;
private
String
mSaveOzdTempFileName
;
...
...
@@ -98,7 +97,6 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
mOperationId
=
intent
.
getLongExtra
(
ABookKeys
.
OPERATION_ID
,
-
1
);
mTaskKey
=
intent
.
getStringExtra
(
ABookKeys
.
TASK_KEY
);
mReadOnlyFlg
=
intent
.
getBooleanExtra
(
ABookKeys
.
READ_ONLY_FLG
,
false
);
mDirectionFlg
=
intent
.
getBooleanExtra
(
ABookKeys
.
DIRECTION_FLG
,
false
);
mTaskReportId
=
intent
.
getIntExtra
(
ABookKeys
.
TASK_REPORT_ID
,
0
);
mReportStartDate
=
intent
.
getStringExtra
(
ABookKeys
.
REPORT_START_DATE
);
mReportFileName
=
intent
.
getStringExtra
(
ABookKeys
.
REPORT_FILE_NAME
);
...
...
@@ -110,16 +108,17 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
String
frontTitle
=
""
;
String
rearTitle
=
""
;
if
(
mDirectionFlg
)
{
// TODO リソース変更
// if (mDirectionFlg) {
// リソースパターンの適用
frontTitle
=
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
R
.
string
.
title_operation_direction_form
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
));
}
else
{
//
frontTitle = PatternStringUtil.patternToString(getApplicationContext(),
//
R.string.title_operation_direction_form,
//
getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0));
//
} else {
frontTitle
=
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
R
.
string
.
title_operation_report_form
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
));
}
//
}
if
(
mReadOnlyFlg
)
{
// リソースパターンの適用
...
...
@@ -218,9 +217,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
}
});
// #32926 作業報告画面改善 start
mOzFilePath
=
OzdFileHelper
.
getOzFilePath
(
mOperationId
,
contentId
,
mTaskKey
,
mDirectionFlg
,
mTaskReportId
,
mReportStartDate
,
mReportFileName
,
mTaskReportLevel
);
// #32926 作業報告画面改善 end
mOzFilePath
=
OzdFileHelper
.
getOzFilePath
(
mOperationId
,
contentId
,
mTaskKey
,
mTaskReportId
,
mReportStartDate
,
mReportFileName
,
mTaskReportLevel
);
Logger
.
i
(
TAG
,
"********mOzFilePath = %s"
+
mOzFilePath
);
if
(
mOzFilePath
==
null
)
{
...
...
@@ -230,7 +227,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
File
file
=
new
File
(
mOzFilePath
);
mOzFileName
=
file
.
getName
();
mSaveOzdFileName
=
OzdFileHelper
.
getSaveOzFileName
(
m
DirectionFlg
,
m
ReportFileName
);
mSaveOzdFileName
=
OzdFileHelper
.
getSaveOzFileName
(
mReportFileName
);
mSaveOzdTempFileName
=
FileUtil
.
getFilenameWithoutExt
(
mSaveOzdFileName
)
+
"_tmp.ozd"
;
if
(!
loadOzdDocument
(
file
))
{
ABVToastUtil
.
showMakeText
(
this
,
"OZD Load Fail"
,
Toast
.
LENGTH_LONG
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
3a339c8a
...
...
@@ -270,7 +270,15 @@ public class OperationTaskLayout extends RelativeLayout {
}
}
private
boolean
isTaskFinished
(
String
taskKey
)
{
/**
* 作業キーでステータスを取得
* @param taskKey
* @return
*/
public
boolean
isTaskFinished
(
String
taskKey
)
{
if
(
mTaskDao
.
getTaskByTaskKey
(
taskKey
)
==
null
)
{
return
false
;
}
return
mTaskDao
.
getTaskByTaskKey
(
taskKey
).
taskStatus
==
FINISHED_STATUS
;
}
...
...
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