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
a64f797a
Commit
a64f797a
authored
Mar 13, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32926 作業報告画面改善(Android)
parent
4554093e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
8 deletions
+65
-8
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+47
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+9
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+9
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
a64f797a
...
@@ -1273,7 +1273,10 @@ public class OperationLogic extends AbstractLogic {
...
@@ -1273,7 +1273,10 @@ public class OperationLogic extends AbstractLogic {
public
void
createJsonForOpenABookCheckPano
(
Long
operationId
,
Long
contentId
,
String
contentPath
)
throws
IOException
{
public
void
createJsonForOpenABookCheckPano
(
Long
operationId
,
Long
contentId
,
String
contentPath
)
throws
IOException
{
try
{
try
{
createContentJson
(
operationId
,
contentId
,
contentPath
);
createContentJson
(
operationId
,
contentId
,
contentPath
);
createWorkerGroupJson
(
contentPath
);
// #32926 start
// 作業タイプ確認用のparameterを追加
createWorkerGroupJson
(
operationId
,
contentPath
);
// #32926 end
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
Logger
.
e
(
TAG
,
"createJsonForOpenABookCheckPano error : "
,
e
);
Logger
.
e
(
TAG
,
"createJsonForOpenABookCheckPano error : "
,
e
);
throw
e
;
throw
e
;
...
@@ -1299,13 +1302,18 @@ public class OperationLogic extends AbstractLogic {
...
@@ -1299,13 +1302,18 @@ public class OperationLogic extends AbstractLogic {
FileUtil
.
createFile
(
contentPath
+
"/content.json"
,
jsonObject
.
toString
());
FileUtil
.
createFile
(
contentPath
+
"/content.json"
,
jsonObject
.
toString
());
}
}
// #32926 start
// 現在作業タイプを確認用のparameter追加
/**
/**
* workerGroup.jsonファイル作成
* workerGroup.jsonファイル作成
*
*
* @param operationId
* @param contentPath
* @param contentPath
* @throws IOException
* @throws IOException
*/
*/
private
void
createWorkerGroupJson
(
String
contentPath
)
throws
IOException
{
// #32926 end
private
void
createWorkerGroupJson
(
Long
operationId
,
String
contentPath
)
throws
IOException
{
List
<
JSONObject
>
workerGroupJsonList
=
new
ArrayList
<
JSONObject
>();
List
<
JSONObject
>
workerGroupJsonList
=
new
ArrayList
<
JSONObject
>();
JSONObject
taskGroupJson
=
new
JSONObject
();
JSONObject
taskGroupJson
=
new
JSONObject
();
...
@@ -1317,7 +1325,22 @@ public class OperationLogic extends AbstractLogic {
...
@@ -1317,7 +1325,22 @@ public class OperationLogic extends AbstractLogic {
workerGroupJsonList
.
add
(
workerGroupJson
);
workerGroupJsonList
.
add
(
workerGroupJson
);
}
}
taskGroupJson
.
put
(
"taskGroup"
,
workerGroupJsonList
);
// #32926 start
// 作業タイプを確認してJSONファイルを作成する
int
operationType
=
mOperationDao
.
getOperation
(
operationId
).
operationReportType
;
// 作業タイプは報告と報告(Type3)の場合
if
(
operationType
==
Constant
.
OperationReportType
.
REPORT_TYPE
)
{
taskGroupJson
.
put
(
"taskGroup_0"
,
workerGroupJsonList
);
taskGroupJson
.
put
(
"taskGroup_1"
,
workerGroupJsonList
);
// 作業タイプは報告(Type1)の場合
}
else
if
(
operationType
==
Constant
.
OperationReportType
.
DEFAULT
)
{
taskGroupJson
.
put
(
"taskGroup_1"
,
workerGroupJsonList
);
// その以外の作業タイプの場合
}
else
{
taskGroupJson
.
put
(
"taskGroup"
,
workerGroupJsonList
);
}
Logger
.
d
(
TAG
,
"createWorkerGroupJson : "
+
taskGroupJson
.
toString
());
// #32926 end
FileUtil
.
createFile
(
contentPath
+
"/workerGroup.json"
,
taskGroupJson
.
toString
());
FileUtil
.
createFile
(
contentPath
+
"/workerGroup.json"
,
taskGroupJson
.
toString
());
}
}
...
@@ -1417,7 +1440,19 @@ public class OperationLogic extends AbstractLogic {
...
@@ -1417,7 +1440,19 @@ public class OperationLogic extends AbstractLogic {
taskReportJsonList
.
add
(
new
JSONObject
(
dto
.
jsonData
));
taskReportJsonList
.
add
(
new
JSONObject
(
dto
.
jsonData
));
}
}
}
}
taskReportJson
.
put
(
"taskReport"
,
taskReportJsonList
);
// #32926 start
int
operationType
=
mOperationDao
.
getOperation
(
operationId
).
operationReportType
;
// 現在の作業タイプは報告と報告(Type3)の場合
if
(
operationType
==
Constant
.
OperationReportType
.
REPORT_TYPE
)
{
taskReportJson
.
put
(
"taskReport_0"
,
taskReportJsonList
);
taskReportJson
.
put
(
"taskReport_1"
,
taskReportJsonList
);
}
else
if
(
operationType
==
Constant
.
OperationReportType
.
ROUTINE_TASK
)
{
taskReportJson
.
put
(
"taskReport"
,
taskReportJsonList
);
}
else
{
taskReportJson
.
put
(
"taskReport_1"
,
taskReportJsonList
);
}
// #32926 end
Logger
.
d
(
TAG
,
"createTaskReportJson : "
+
taskReportJson
.
toString
());
Logger
.
d
(
TAG
,
"createTaskReportJson : "
+
taskReportJson
.
toString
());
FileUtil
.
createFile
(
contentPath
+
"/"
+
ABookKeys
.
TASK_REPORT
+
".json"
,
taskReportJson
.
toString
());
FileUtil
.
createFile
(
contentPath
+
"/"
+
ABookKeys
.
TASK_REPORT
+
".json"
,
taskReportJson
.
toString
());
}
}
...
@@ -1442,8 +1477,14 @@ public class OperationLogic extends AbstractLogic {
...
@@ -1442,8 +1477,14 @@ public class OperationLogic extends AbstractLogic {
taskReportJsonList
.
add
(
taskReportJsonRow
);
taskReportJsonList
.
add
(
taskReportJsonRow
);
}
}
taskReportJsonRoot
.
put
(
"taskReport"
,
taskReportJsonList
);
// #32926 start
Logger
.
d
(
TAG
,
"createTaskReportJson : "
+
taskReportJsonRoot
.
toString
());
// 現在の作業タイプは報告と報告(Type3)の場合
if
(
mOperationDao
.
getOperation
(
operationId
).
operationReportType
==
Constant
.
OperationReportType
.
REPORT_TYPE
)
{
taskReportJsonRoot
.
put
(
"taskReport"
,
taskReportJsonList
);
}
else
{
taskReportJsonRoot
.
put
(
"taskReport"
,
taskReportJsonList
);
}
Logger
.
d
(
TAG
,
"createRoutineTaskReportJson : "
+
taskReportJsonRoot
.
toString
());
FileUtil
.
createFile
(
contentPath
+
"/"
+
ABookKeys
.
TASK_REPORT
+
".json"
,
taskReportJsonRoot
.
toString
());
FileUtil
.
createFile
(
contentPath
+
"/"
+
ABookKeys
.
TASK_REPORT
+
".json"
,
taskReportJsonRoot
.
toString
());
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
a64f797a
...
@@ -629,11 +629,20 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -629,11 +629,20 @@ public class OperationListActivity extends ABVUIActivity {
// サーバ作業後、対応必要
// サーバ作業後、対応必要
StringBuffer
path
=
new
StringBuffer
();
StringBuffer
path
=
new
StringBuffer
();
path
.
append
(
contentPath
);
path
.
append
(
contentPath
);
// #32926 start
// TODO change : view_mode -> delete , project_type -> content_type , full_screen_flg -> mobile_flg , project_report_type -> operation_type
path
.
append
(
"/index.html?app=android"
);
path
.
append
(
"/index.html?app=android"
);
path
.
append
(
"&view_mode="
+
mOperationAuthLevel
);
path
.
append
(
"&view_mode="
+
mOperationAuthLevel
);
path
.
append
(
"&project_type="
+
operationDto
.
operationType
);
path
.
append
(
"&project_type="
+
operationDto
.
operationType
);
path
.
append
(
"&full_screen_flg="
+
(
isNormalSize
()
?
"1"
:
"0"
));
path
.
append
(
"&full_screen_flg="
+
(
isNormalSize
()
?
"1"
:
"0"
));
path
.
append
(
"&project_report_type="
+
(
operationDto
.
operationReportType
==
Constant
.
OperationReportType
.
ROUTINE_TASK
?
"1"
:
"0"
));
path
.
append
(
"&project_report_type="
+
(
operationDto
.
operationReportType
==
Constant
.
OperationReportType
.
ROUTINE_TASK
?
"1"
:
"0"
));
// path.append("&content_type=" + operationDto.operationType);
// path.append("&mobile_flg=" + (isNormalSize() ? "1" : "0"));
// path.append("&operation_type=" + (operationDto.operationReportType == Constant.OperationReportType.ROUTINE_TASK ? "1" : "0"));
Logger
.
d
(
TAG
,
"path : "
+
path
);
// #32926 end
Intent
intent
=
new
Intent
();
Intent
intent
=
new
Intent
();
intent
.
putExtra
(
ABookKeys
.
CONTENT_ID
,
operationDto
.
contentId
);
intent
.
putExtra
(
ABookKeys
.
CONTENT_ID
,
operationDto
.
contentId
);
intent
.
putExtra
(
ABookKeys
.
OPERATION_ID
,
operationDto
.
operationId
);
intent
.
putExtra
(
ABookKeys
.
OPERATION_ID
,
operationDto
.
operationId
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
a64f797a
...
@@ -379,8 +379,15 @@ public class OperationTaskLayout extends RelativeLayout {
...
@@ -379,8 +379,15 @@ public class OperationTaskLayout extends RelativeLayout {
setLayoutParams
(
params
);
setLayoutParams
(
params
);
}
else
{
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
// #32926 start
// 作業報告画面を全画面に表示する
// int halfWidth = (int) (displayMetrics.density * OperationTaskLayout.HALF_WIDTH);
// params = createParam(halfWidth, ViewGroup.LayoutParams.WRAP_CONTENT);
int
screenWidth
=
displayMetrics
.
widthPixels
;
params
=
createParam
(
screenWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
// #32926 end
if
(!
StringUtil
.
isNullOrEmpty
(
taskKey
))
{
if
(!
StringUtil
.
isNullOrEmpty
(
taskKey
))
{
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskKey
);
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskKey
);
...
...
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