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
36fb0eed
Commit
36fb0eed
authored
Jun 28, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
作業一覧対応
parent
1dd4363b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
17 deletions
+52
-17
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
+13
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+6
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+33
-12
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
View file @
36fb0eed
...
...
@@ -81,6 +81,19 @@ public class ABookKeys {
public
static
final
String
ATTACHED_CHANGE_FLAG
=
"attachedChangeFlag"
;
public
static
final
String
ROUTINE_TASK_FLAG
=
"routineTaskFlag"
;
public
static
final
String
UPDATE_HOTSPOT_ONLY_FLAG
=
"updateHotSpotOnlyFlag"
;
//Webviewから呼び出すApiキー
public
static
final
class
CMD_KEY
{
public
static
final
String
GO_SETTING
=
"goSetting"
;
public
static
final
String
GO_RELATION_CONTENT
=
"goRelationContent"
;
public
static
final
String
GO_PRINT_TARGET
=
"goPrintTarget"
;
public
static
final
String
GO_OPERATION
=
"goOperation"
;
public
static
final
String
GO_COMMUNICATION
=
"goCommunication"
;
public
static
final
String
GO_PANORAMA_EDIT
=
"goPanoramaEdit"
;
public
static
final
String
REFRESH_CONTENT
=
"refreshContent"
;
}
// #32782 指示者テーブル関連削除 start
// TODO change TASK_DIRECTIONS 削除が必要
// public static final String TASK_DIRECTIONS = "taskReport";
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
36fb0eed
...
...
@@ -1999,8 +1999,7 @@ public class OperationLogic extends AbstractLogic {
return
isSuccess
;
}
public
void
createOperationListJson
(
String
filePath
)
{
List
<
OperationDto
>
operationList
=
getRefreshOperation
(
null
,
null
,
null
,
null
);
public
String
createOperationListJson
(
List
<
OperationDto
>
operationList
,
String
filePath
)
{
JSONObject
operationListJsonObject
=
new
JSONObject
();
try
{
JSONArray
operationJsonArray
=
new
JSONArray
();
...
...
@@ -2011,7 +2010,7 @@ public class OperationLogic extends AbstractLogic {
operationJson
.
put
(
ABookKeys
.
OPERATION_DESCRIPTIONS
,
operationList
.
get
(
i
).
operationDescriptions
);
operationJson
.
put
(
ABookKeys
.
OPERATION_TYPE
,
operationList
.
get
(
i
).
operationType
);
operationJson
.
put
(
ABookKeys
.
OPERATION_START_DATE
,
DateTimeUtil
.
toString
(
operationList
.
get
(
i
).
operationStartDate
,
DateTimeFormat
.
yyyyMMdd_slash
));
operationJson
.
put
(
ABookKeys
.
OPERATION_END_DATE
,
DateTimeUtil
.
toString
(
operationList
.
get
(
i
).
operation
Start
Date
,
DateTimeFormat
.
yyyyMMdd_slash
));
operationJson
.
put
(
ABookKeys
.
OPERATION_END_DATE
,
DateTimeUtil
.
toString
(
operationList
.
get
(
i
).
operation
End
Date
,
DateTimeFormat
.
yyyyMMdd_slash
));
operationJson
.
put
(
ABookKeys
.
LAST_EDIT_DATE
,
operationList
.
get
(
i
).
lastEditDate
);
operationJson
.
put
(
ABookKeys
.
NEED_SYNC_FLG
,
operationList
.
get
(
i
).
needSyncFlg
);
operationJson
.
put
(
ABookKeys
.
REPORT_TYPE
,
operationList
.
get
(
i
).
reportType
);
...
...
@@ -2024,11 +2023,13 @@ public class OperationLogic extends AbstractLogic {
operationJsonArray
.
put
(
operationJson
);
}
operationListJsonObject
.
put
(
ABookKeys
.
OPERATION_LIST
,
operationJsonArray
);
FileUtil
.
createFile
(
filePath
+
"/operationList.json"
,
operationListJsonObject
.
toString
());
if
(!
StringUtil
.
isNullOrEmpty
(
filePath
))
{
FileUtil
.
createFile
(
filePath
+
"/operationList.json"
,
operationListJsonObject
.
toString
());
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
operationListJsonObject
.
toString
();
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
36fb0eed
...
...
@@ -350,25 +350,25 @@ public class OperationListActivity extends ABVUIActivity {
public
void
sendParam
(
String
param
)
{
JSONObject
jsonParam
=
new
JSONObject
(
param
);
OperationDto
operationDto
;
if
(
jsonParam
.
has
(
"cmd"
))
{
switch
(
jsonParam
.
getString
(
"cmd"
)){
case
"goSetting"
:
if
(
jsonParam
.
has
(
ABookKeys
.
CMD
))
{
switch
(
jsonParam
.
getString
(
ABookKeys
.
CMD
)){
case
ABookKeys
.
CMD_KEY
.
GO_SETTING
:
showSetting
();
break
;
case
"goRelationContent"
:
case
ABookKeys
.
CMD_KEY
.
GO_RELATION_CONTENT
:
showCommonContent
();
break
;
case
"goPrintTarget"
:
case
ABookKeys
.
CMD_KEY
.
GO_PRINT_TARGET
:
showPrintTargetSelect
();
break
;
case
"goOperation"
:
if
(!
jsonParam
.
has
(
"operationId"
))
{
case
ABookKeys
.
CMD_KEY
.
GO_OPERATION
:
if
(!
jsonParam
.
has
(
ABookKeys
.
OPERATION_ID
))
{
break
;
}
final
OperationDto
tempOperationDto
=
mOperationDao
.
getOperationJoinContent
(
jsonParam
.
getInt
(
"operationId"
));
final
OperationDto
tempOperationDto
=
mOperationDao
.
getOperationJoinContent
(
jsonParam
.
getInt
(
ABookKeys
.
OPERATION_ID
));
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -378,12 +378,12 @@ public class OperationListActivity extends ABVUIActivity {
openReportView
(
tempOperationDto
);
break
;
case
"goCommunication"
:
case
ABookKeys
.
CMD_KEY
.
GO_COMMUNICATION
:
showCommunicationMenuDialog
();
break
;
case
"goPanoramaEdit"
:
final
OperationDto
panoramaOperationDto
=
mOperationDao
.
getOperationJoinContent
(
jsonParam
.
getInt
(
"operationId"
));
case
ABookKeys
.
CMD_KEY
.
GO_PANORAMA_EDIT
:
final
OperationDto
panoramaOperationDto
=
mOperationDao
.
getOperationJoinContent
(
jsonParam
.
getInt
(
ABookKeys
.
OPERATION_ID
));
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -393,6 +393,15 @@ public class OperationListActivity extends ABVUIActivity {
startTaskDirectionOrReportView
(
panoramaOperationDto
);
break
;
case
ABookKeys
.
CMD_KEY
.
REFRESH_CONTENT
:
clearSearch
();
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
mCheckWebView
.
loadUrl
(
"javascript:location.reload();"
);
}
});
break
;
}
}
}
...
...
@@ -401,6 +410,16 @@ public class OperationListActivity extends ABVUIActivity {
public
String
getCachePath
()
{
return
getCacheDir
().
getAbsolutePath
();
}
@JavascriptInterface
public
String
searchOperationList
(
String
searchKeyword
,
String
searchStartDate
,
String
searchEndDate
)
{
mSearchWord
=
searchKeyword
;
mStartDateStr
=
searchStartDate
;
mEndDateStr
=
searchEndDate
;
List
<
OperationDto
>
operationList
=
mListHelper
.
filterOperationList
();
String
searchOperationListStr
=
mOperationLogic
.
createOperationListJson
(
operationList
,
null
);
return
searchOperationListStr
;
}
}
// 共通資料画面表示
...
...
@@ -1956,13 +1975,15 @@ public class OperationListActivity extends ABVUIActivity {
}
public
void
createJsonForOperationList
(
String
filePath
)
{
mOperationLogic
.
createOperationListJson
(
filePath
);
List
<
OperationDto
>
operationList
=
mListHelper
.
filterOperationList
();
mOperationLogic
.
createOperationListJson
(
operationList
,
filePath
);
mOperationGroupMasterLogic
.
createOperationGroupMasterListJson
(
filePath
);
mOperationGroupMasterLogic
.
createOperationGroupMasterRelationListJson
(
filePath
);
mPushMessageLogic
.
createOperationPushMessageListJson
(
filePath
);
}
public
void
screenRefresh
()
{
showProgressPopup
();
runOnUiThread
(
new
Runnable
()
{
@Override
...
...
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