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
87d19e98
Commit
87d19e98
authored
Apr 02, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ホットスポット更新後、送信処理
作業一覧で期間の文字列を削除
parent
3a339c8a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
23 deletions
+24
-23
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+12
-3
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+7
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationListAdapter.java
+2
-9
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationPanelAdapter.java
+2
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+1
-0
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
87d19e98
...
...
@@ -211,7 +211,7 @@ public class TaskReportDao extends AbstractDao {
}
/**
*
*
ホットスポットが更新フラグがtrueのデータ取得
* @param operationId
* @param taskKey
* @return
...
...
@@ -224,14 +224,23 @@ public class TaskReportDao extends AbstractDao {
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_report_level = 0"
);
if
(
taskKey
!=
null
)
{
sb
.
append
(
" AND ttr.task_key = ?"
);
}
return
rawQueryGetDtoList
(
sb
.
toString
(),
new
String
[]{
""
+
operationId
},
TaskReportDto
.
class
);
}
/**
* ホットスポットが更新フラグがtrueのデータ存在チェック
* @param operationId
* @return
*/
public
boolean
isExistUpdateTargetHotSpotTaskData
(
Long
operationId
)
{
return
getUpdateTargetHotSpotTaskData
(
operationId
,
null
).
size
()
>
0
;
}
/**
* 送信フラグがtrueのデータを取得
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
87d19e98
...
...
@@ -1009,8 +1009,8 @@ public class OperationLogic extends AbstractLogic {
List
<
OperationDto
>
operationDtoList
;
operationDtoList
=
mOperationDao
.
getOperations
(
searchWord
,
searchStartDateStr
,
searchEndDateStr
,
reportTypeStr
);
for
(
OperationDto
operationDto
:
operationDtoList
)
{
// 作業送信フラグが存在する場合、needSyncFlgをtrueにセット
if
(
mTaskReportDao
.
isExistSendTaskData
(
operationDto
.
operationId
))
{
// 作業送信フラグが存在する場合
またはホットスポット更新フラグが存在する場合
、needSyncFlgをtrueにセット
if
(
mTaskReportDao
.
isExistSendTaskData
(
operationDto
.
operationId
)
||
mTaskReportDao
.
isExistUpdateTargetHotSpotTaskData
(
operationDto
.
operationId
)
)
{
mOperationDao
.
updateNeedSyncFlg
(
operationDto
.
operationId
,
true
);
}
}
...
...
@@ -1335,7 +1335,8 @@ public class OperationLogic extends AbstractLogic {
}
/**
* ホットスポットのアップデートがあるが、sendテーブルに存在しない場合、登録
* ホットスポットのアップデートがあるが、sendテーブルに存在しない場合、登録して
* t_task_reportのdata_send_flgをtrueにセットする
* @param operationId
* @param taskKey
* @throws IOException
...
...
@@ -1347,6 +1348,9 @@ public class OperationLogic extends AbstractLogic {
insertTaskReportSend
(
taskReportDto
.
taskKey
,
taskReportDto
.
taskReportId
,
DateTimeUtil
.
toString
(
taskReportDto
.
reportStartDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
),
new
JSONObject
(
taskReportDto
.
jsonData
),
false
);
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskReportDto
.
taskKey
);
taskReportDto
.
dataSendFlg
=
true
;
mTaskReportDao
.
update
(
taskReportDto
);
taskDto
.
hotspotChangeFlg
=
false
;
mTaskDao
.
update
(
taskDto
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationListAdapter.java
View file @
87d19e98
...
...
@@ -94,22 +94,15 @@ public class OperationListAdapter extends AbstractOperationAdapter {
if
(
StringUtil
.
isNullOrEmpty
(
operationDto
.
reportPeriod
))
{
// リソースパターンの適用
holder
.
tvDate
.
setText
(
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
date_label_routineTask
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))
+
" : "
+
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
msg_no_report_data
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
else
{
// リソースパターンの適用
holder
.
tvDate
.
setText
(
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
date_label_routineTask
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))
+
" : "
+
(
mNormalSizeFlg
?
"\n"
:
""
)
+
operationDto
.
reportPeriod
);
holder
.
tvDate
.
setText
(
operationDto
.
reportPeriod
);
}
}
else
{
// リソースパターンの適用
holder
.
tvDate
.
setText
(
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
date_label
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))
+
" : "
+
DateTimeUtil
.
toString
(
operationDto
.
operationStartDate
,
DateTimeFormat
.
yyyyMMdd_slash
)
+
" ~ "
+
DateTimeUtil
.
toString
(
operationDto
.
operationEndDate
,
DateTimeFormat
.
yyyyMMdd_slash
));
holder
.
tvDate
.
setText
(
DateTimeUtil
.
toString
(
operationDto
.
operationStartDate
,
DateTimeFormat
.
yyyyMMdd_slash
)
+
" ~ "
+
DateTimeUtil
.
toString
(
operationDto
.
operationEndDate
,
DateTimeFormat
.
yyyyMMdd_slash
));
}
// 同期ボタン表示・非表示
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationPanelAdapter.java
View file @
87d19e98
...
...
@@ -126,21 +126,15 @@ public class OperationPanelAdapter extends AbstractOperationAdapter {
if
(
StringUtil
.
isNullOrEmpty
(
operationDto
.
reportPeriod
))
{
// リソースパターンの適用
holder
.
tvDate
.
setText
(
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
date_label_routineTask
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))
+
" : "
+
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
msg_no_report_data
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
else
{
// リソースパターンの適用
holder
.
tvDate
.
setText
(
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
date_label_routineTask
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))
+
" : "
+
(
mNormalSizeFlg
?
"\n"
:
""
)
+
operationDto
.
reportPeriod
);
holder
.
tvDate
.
setText
(
operationDto
.
reportPeriod
);
}
}
else
{
// リソースパターンの適用
holder
.
tvDate
.
setText
(
PatternStringUtil
.
patternToString
(
mContext
,
R
.
string
.
date_label
,
getUserPref
(
mContext
,
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
))
+
" : "
+
DateTimeUtil
.
toString
(
operationDto
.
operationStartDate
,
DateTimeFormat
.
yyyyMMdd_slash
)
+
" ~ "
+
DateTimeUtil
.
toString
(
operationDto
.
operationEndDate
,
DateTimeFormat
.
yyyyMMdd_slash
));
holder
.
tvDate
.
setText
(
DateTimeUtil
.
toString
(
operationDto
.
operationStartDate
,
DateTimeFormat
.
yyyyMMdd_slash
)
+
" ~ "
+
DateTimeUtil
.
toString
(
operationDto
.
operationEndDate
,
DateTimeFormat
.
yyyyMMdd_slash
));
}
// 同期ボタン表示・非表示
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
87d19e98
...
...
@@ -5227,6 +5227,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
operationTaskLayout
.
setIconStatus
(
taskKey
,
true
);
operationTaskLayout
.
currentTaskDto
.
taskKey
=
taskKey
;
operationTaskLayout
.
currentTaskDto
.
taskCode
=
taskCode
;
operationTaskLayout
.
currentTaskDto
.
isFinished
=
operationTaskLayout
.
isTaskFinished
(
taskKey
);
operationTaskLayout
.
addOperationTaskIcon
(
operationTaskLayout
.
currentLayout
,
operationTaskLayout
.
currentTaskDto
);
//hideOperationTaskLayout();
}
else
{
...
...
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