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
b6d05e31
Commit
b6d05e31
authored
Jul 05, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#34190 作業種別毎に作業を絞り込み機能追加
parent
7d9a2696
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
38 deletions
+53
-38
ABVJE_UI_Android/res/layout/item_popup_list_item.xml
+37
-30
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+10
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/HierarchyOperationGroupListAdapter.java
+2
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationGroupMasterListHelper.java
+4
-7
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/view/BreadCrumbButton.java
+0
-1
No files found.
ABVJE_UI_Android/res/layout/item_popup_list_item.xml
View file @
b6d05e31
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
Relative
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
Linear
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/
Relative
Layout1"
android:id=
"@+id/
Linear
Layout1"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
@@ -15,34 +15,41 @@
...
@@ -15,34 +15,41 @@
android:paddingBottom=
"8dp"
android:paddingBottom=
"8dp"
android:src=
"@drawable/icon_folder_empty_on"
/>
android:src=
"@drawable/icon_folder_empty_on"
/>
<TextView
<LinearLayout
android:id=
"@+id/itemText"
android:layout_width=
"match_parent"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_centerVertical=
"true"
android:layout_toRightOf=
"@+id/imageView1"
android:text=
"@string/dummy_str"
android:textColor=
"@color/text_select"
android:textAppearance=
"?android:attr/textAppearanceMedium"
/>
<TextView
<TextView
android:id=
"@+id/itemCountText"
android:id=
"@+id/itemText"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_toRightOf=
"@+id/imageView1"
android:layout_alignParentRight=
"true"
android:layout_weight=
"1"
android:paddingRight=
"30dp"
android:ellipsize=
"end"
android:textSize=
"20sp"
/>
android:maxLines=
"1"
android:layout_gravity=
"center"
<ImageView
android:text=
"@string/dummy_str"
android:id=
"@+id/nextLevel"
android:textAppearance=
"?android:attr/textAppearanceMedium"
android:layout_width=
"wrap_content"
android:textColor=
"@color/text_select"
/>
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_alignParentRight=
"true"
android:src=
"@drawable/ic_navigation_next_item"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/itemCountText"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_toLeftOf=
"@+id/nextLevel"
android:layout_gravity=
"center"
android:textSize=
"20sp"
/>
<ImageView
android:id=
"@+id/nextLevel"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:src=
"@drawable/ic_navigation_next_item"
android:layout_gravity=
"center"
android:visibility=
"invisible"
/>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
b6d05e31
...
@@ -2030,6 +2030,8 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -2030,6 +2030,8 @@ public class OperationListActivity extends ABVUIActivity {
return
;
return
;
}
}
final
ABVListDialog
dialog
=
new
ABVListDialog
(
this
);
final
ABVListDialog
dialog
=
new
ABVListDialog
(
this
);
// 外側タップしてもダイアログ画面が閉じられないように設定
dialog
.
setCanceledOnTouchOutside
(
false
);
mShowDialog
=
dialog
;
mShowDialog
=
dialog
;
OperationGroupMasterListHelper
helper
=
(
OperationGroupMasterListHelper
)
mListHelper
;
OperationGroupMasterListHelper
helper
=
(
OperationGroupMasterListHelper
)
mListHelper
;
ArrayList
<
String
>
groupNames
=
new
ArrayList
<>();
ArrayList
<
String
>
groupNames
=
new
ArrayList
<>();
...
@@ -2039,6 +2041,14 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -2039,6 +2041,14 @@ public class OperationListActivity extends ABVUIActivity {
dialog
.
setTitle
(
helper
.
getPeekName
(),
R
.
drawable
.
ic_title_group_operation
);
dialog
.
setTitle
(
helper
.
getPeekName
(),
R
.
drawable
.
ic_title_group_operation
);
// 閉じるボタン
dialog
.
setRightItemOnClickListener
(
R
.
drawable
.
ic_operation_close
,
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
dialog
.
dismiss
();
}
});
// autoCloseがtrueの場合、下位階層が存在しなければreturnで以下の処理は行わない
// autoCloseがtrueの場合、下位階層が存在しなければreturnで以下の処理は行わない
if
(
autoClose
&&
operationGroupMasterDtoList
.
size
()
<
1
)
{
if
(
autoClose
&&
operationGroupMasterDtoList
.
size
()
<
1
)
{
return
;
return
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/HierarchyOperationGroupListAdapter.java
View file @
b6d05e31
...
@@ -64,6 +64,8 @@ public class HierarchyOperationGroupListAdapter extends BaseAdapter {
...
@@ -64,6 +64,8 @@ public class HierarchyOperationGroupListAdapter extends BaseAdapter {
// 子作業種別がある場合、「>」を表示
// 子作業種別がある場合、「>」を表示
if
(
mHaveChildFlags
[
position
])
{
if
(
mHaveChildFlags
[
position
])
{
holder
.
nextLevel
.
setVisibility
(
View
.
VISIBLE
);
holder
.
nextLevel
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
holder
.
nextLevel
.
setVisibility
(
View
.
INVISIBLE
);
}
}
// 作業数
// 作業数
holder
.
itemCount
.
setText
(
""
+
mOperationCounts
[
position
]);
holder
.
itemCount
.
setText
(
""
+
mOperationCounts
[
position
]);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationGroupMasterListHelper.java
View file @
b6d05e31
...
@@ -73,13 +73,6 @@ public class OperationGroupMasterListHelper extends HierarchyOperationListHelper
...
@@ -73,13 +73,6 @@ public class OperationGroupMasterListHelper extends HierarchyOperationListHelper
}
else
{
}
else
{
// 表示する作業種別が既に削除された場合、最上位階層に戻る(リセット)
// 表示する作業種別が既に削除された場合、最上位階層に戻る(リセット)
popList
(
breadCrumbList
.
size
()
-
1
,
false
);
popList
(
breadCrumbList
.
size
()
-
1
,
false
);
// 最上位階層のデータ取得(全体)
OperationGroupMasterDto
topLevelOperationGroupMasterDto
=
mOperationGroupMasterDao
.
getTopOperationGroupMaster
();
if
(
topLevelOperationGroupMasterDto
!=
null
)
{
operationGroupMasterId
=
topLevelOperationGroupMasterDto
.
operationGroupMasterId
;
// 最上位階層のoperationGroupMasterIdをセット
mAppActivity
.
setOperationGroupMasterId
(
operationGroupMasterId
);
}
ABVEnvironment
.
getInstance
().
setOperationGroupMasterClearFlg
(
false
);
ABVEnvironment
.
getInstance
().
setOperationGroupMasterClearFlg
(
false
);
// 作業種別の選択画面を閉じる
// 作業種別の選択画面を閉じる
mAppActivity
.
closeOperationGroupMasterDialog
();
mAppActivity
.
closeOperationGroupMasterDialog
();
...
@@ -100,6 +93,10 @@ public class OperationGroupMasterListHelper extends HierarchyOperationListHelper
...
@@ -100,6 +93,10 @@ public class OperationGroupMasterListHelper extends HierarchyOperationListHelper
// パンくずリスト削除
// パンくずリスト削除
removeBreadCrumbs
(
breadCrumbList
.
get
(
breadCrumbList
.
size
()
-
1
));
removeBreadCrumbs
(
breadCrumbList
.
get
(
breadCrumbList
.
size
()
-
1
));
}
}
// 移動した作業種別のIDセット
mAppActivity
.
setOperationGroupMasterId
(
stack
.
get
(
getStackSize
()
-
1
).
parentOperationGroupMasterId
);
breadCrumbList
.
get
(
breadCrumbList
.
size
()
-
1
);
if
(
isReload
)
{
if
(
isReload
)
{
// 作業一覧画面を更新する
// 作業一覧画面を更新する
refreshList
();
refreshList
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/view/BreadCrumbButton.java
View file @
b6d05e31
...
@@ -24,6 +24,5 @@ public class BreadCrumbButton extends Button {
...
@@ -24,6 +24,5 @@ public class BreadCrumbButton extends Button {
setPadding
(
10
,
0
,
40
,
0
);
setPadding
(
10
,
0
,
40
,
0
);
}
}
public
int
level
;
public
int
level
;
public
long
dtoId
;
public
String
name
;
public
String
name
;
}
}
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