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
4b5ea9a4
Commit
4b5ea9a4
authored
Apr 09, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
フィルタに選択されてるとアイコン変更
#33352 定期点検で、点検後修正不可状態で修正ができる
parent
add214e7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+3
-2
ABVJE_Res_Default_Android/res/drawable-xhdpi/ic_filter_selected.png
+0
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+16
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
4b5ea9a4
...
...
@@ -136,12 +136,13 @@ public class TaskReportDao extends AbstractDao {
sql
.
append
(
"report_end_date=?, "
);
sql
.
append
(
"enable_report=?, "
);
sql
.
append
(
"task_report_level=?, "
);
sql
.
append
(
"local_saved_flg=? "
);
sql
.
append
(
"local_saved_flg=?, "
);
sql
.
append
(
"task_report_info_id=? "
);
sql
.
append
(
"WHERE task_key=? AND task_report_level=?"
);
if
(
dto
.
reportStartDate
!=
null
)
{
sql
.
append
(
" AND datetime(report_start_date)=datetime(?)"
);
objects
=
new
Object
[]{
dto
.
jsonData
,
dto
.
attachedFileName
,
dto
.
localAttachedFileName
,
dto
.
attachedFileSendFlg
,
dto
.
dataSendFlg
,
dto
.
reportEndDate
,
dto
.
enableReport
,
dto
.
taskReportLevel
,
dto
.
localSavedFlg
,
dto
.
taskKey
,
dto
.
taskReportLevel
,
dto
.
reportStartDate
};
dto
.
reportEndDate
,
dto
.
enableReport
,
dto
.
taskReportLevel
,
dto
.
localSavedFlg
,
dto
.
task
ReportInfoId
,
dto
.
task
Key
,
dto
.
taskReportLevel
,
dto
.
reportStartDate
};
}
else
{
objects
=
new
Object
[]{
dto
.
jsonData
,
dto
.
attachedFileName
,
dto
.
localAttachedFileName
,
dto
.
attachedFileSendFlg
,
dto
.
dataSendFlg
,
dto
.
reportEndDate
,
dto
.
enableReport
,
dto
.
taskReportLevel
,
dto
.
localSavedFlg
,
dto
.
taskKey
,
dto
.
taskReportLevel
};
...
...
ABVJE_Res_Default_Android/res/drawable-xhdpi/ic_filter_selected.png
0 → 100644
View file @
4b5ea9a4
647 Bytes
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
4b5ea9a4
...
...
@@ -357,7 +357,8 @@ public class OperationListActivity extends ABVUIActivity {
mCommonContentButton
.
setImageDrawable
(
getRDrawable
(
R
.
drawable
.
ic_common_content_off
));
mCommonContentButton
.
setEnabled
(
false
);
}
// フィルター選択判定
checkSelectedFilterType
();
}
/**
...
...
@@ -1890,4 +1891,18 @@ public class OperationListActivity extends ABVUIActivity {
Logger
.
d
(
TAG
,
"ABVEnvironment.getInstance().resourcePatternType : "
+
ABVEnvironment
.
getInstance
().
resourcePatternType
);
putUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
ABVEnvironment
.
getInstance
().
resourcePatternType
);
}
/**
* フィルターの選択があるか判定して、画像を変更
*/
private
void
checkSelectedFilterType
()
{
List
<
Integer
>
defaultTypeList
=
getOperationReportTypeList
(
true
);
ArrayList
<
Integer
>
selectedOperationReportTypes
=
getOperationReportTypeList
(
false
);
ImageButton
imgBtn
=
(
ImageButton
)
findViewById
(
R
.
id
.
icon_filter
);
if
(
defaultTypeList
.
size
()
==
selectedOperationReportTypes
.
size
())
{
imgBtn
.
setImageDrawable
(
getRDrawable
(
R
.
drawable
.
ic_filter
));
}
else
{
imgBtn
.
setImageDrawable
(
getRDrawable
(
R
.
drawable
.
ic_filter_selected
));
}
}
}
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