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
1cf43e09
Commit
1cf43e09
authored
Mar 19, 2021
by
onuma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
フィルター機能が使えなくなっていたのを直した。画面下ツールバーを共通レイアウト化。
parent
aa4ea1b4
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
204 additions
and
421 deletions
+204
-421
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
+92
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+3
-3
ABVJE_UI_Android/res/layout-large/ac_operation_list.xml
+1
-83
ABVJE_UI_Android/res/layout-large/ac_operation_related_content.xml
+1
-84
ABVJE_UI_Android/res/layout-normal/ac_operation_list.xml
+1
-83
ABVJE_UI_Android/res/layout-normal/ac_operation_related_content.xml
+2
-87
ABVJE_UI_Android/res/layout/list_dialog.xml
+2
-2
ABVJE_UI_Android/res/layout/operation_common_toolbar.xml
+88
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVUIActivity.java
+0
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
+0
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVListDialog.java
+0
-36
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ABookSettingActivity.java
+0
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+5
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/CategoryOperationListHelper.java
+1
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/HomeOperationListHelper.java
+7
-16
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
+1
-7
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
View file @
1cf43e09
...
...
@@ -236,6 +236,98 @@ public class OperationDao extends AbstractDao {
delete
(
"m_worker_group"
,
null
,
null
);
}
/**
* 作業一覧に表示する情報を取得(フィルターと検索キーワードで絞込)
* @param searchOperationName ホーム画面入力した検索キーワード
* @param searchStartDateStr 開始期間
* @param searchEndDateStr 終了期間
* @param reportTypeStr 点検 or 報告
* @return 該当する作業一覧
*/
public
List
<
OperationDto
>
getOperations
(
String
searchOperationName
,
String
searchStartDateStr
,
String
searchEndDateStr
,
String
reportTypeStr
)
{
String
sql
=
generateGetOperationQuery
(
searchOperationName
,
searchStartDateStr
,
searchEndDateStr
,
reportTypeStr
);
return
rawQueryGetDtoList
(
sql
,
null
,
OperationDto
.
class
);
}
/**
* SQL文を作成
* @param searchOperationName ホーム画面入力した検索キーワード
* @param searchStartDateStr 開始期間
* @param searchEndDateStr 終了期間
* @param reportTypeStr 点検 or 報告
* @return SQL文
*/
private
String
generateGetOperationQuery
(
String
searchOperationName
,
String
searchStartDateStr
,
String
searchEndDateStr
,
String
reportTypeStr
)
{
String
curDate
=
DateTimeUtil
.
toStringInTimeZone
(
new
Date
(),
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
,
"UTC"
);
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" SELECT top.operation_id, "
);
sql
.
append
(
" top.operation_name, "
);
sql
.
append
(
" top.operation_type, "
);
sql
.
append
(
" top.operation_descriptions, "
);
sql
.
append
(
" top.operation_start_date, "
);
sql
.
append
(
" top.operation_end_date, "
);
sql
.
append
(
" top.last_edit_date, "
);
sql
.
append
(
" top.edit_lock_flg, "
);
sql
.
append
(
" top.need_sync_flg, "
);
sql
.
append
(
" top.content_creating_flg, "
);
sql
.
append
(
" top.report_type, "
);
sql
.
append
(
" top.report_cycle, "
);
sql
.
append
(
" top.enable_report_update, "
);
sql
.
append
(
" top.enable_report_edit, "
);
sql
.
append
(
" top.enable_add_report, "
);
sql
.
append
(
" CASE "
);
sql
.
append
(
" WHEN report_type = 1 THEN ( "
);
sql
.
append
(
" SELECT strftime('%Y/%m/%d %H:%M', datetime(ttr.report_start_date, 'localtime')) || ' ~ ' || strftime('%Y/%m/%d %H:%M', datetime(ttr.report_end_date, 'localtime')) "
);
sql
.
append
(
" FROM t_task tt "
);
sql
.
append
(
" INNER JOIN t_task_report ttr "
);
sql
.
append
(
" ON tt.task_key = ttr.task_key "
);
sql
.
append
(
" AND tt.del_flg = 0 "
);
//sql.append(" AND datetime(ttr.report_start_date) <= datetime('" + curDate + "') ");
sql
.
append
(
" AND datetime(ttr.report_end_date) >= datetime('"
+
curDate
+
"') "
);
sql
.
append
(
" WHERE tt.operation_id = top.operation_id "
);
sql
.
append
(
" ORDER BY ttr.report_start_date ASC LIMIT 1 ) "
);
sql
.
append
(
" ELSE '' "
);
sql
.
append
(
" END AS report_period, "
);
sql
.
append
(
" CASE "
);
sql
.
append
(
" WHEN report_type = 1 THEN ( "
);
sql
.
append
(
" SELECT count(*) "
);
sql
.
append
(
" FROM t_task_report "
);
sql
.
append
(
" WHERE task_key = (SELECT task_key FROM t_task WHERE operation_id = top.operation_id LIMIT 1) ) "
);
sql
.
append
(
" ELSE 0 "
);
sql
.
append
(
" END AS report_count, "
);
sql
.
append
(
" rpc.content_id "
);
sql
.
append
(
" FROM t_operation AS top "
);
sql
.
append
(
" LEFT OUTER JOIN r_operation_content AS rpc "
);
sql
.
append
(
" ON top.operation_id = rpc.operation_id "
);
sql
.
append
(
" AND rpc.operation_content_flg = 1 "
);
sql
.
append
(
" WHERE top.operation_id IS NOT NULL "
);
if
(!
StringUtil
.
isNullOrEmpty
(
searchOperationName
))
{
sql
.
append
(
" AND top.operation_name GLOB "
+
"'*"
+
searchOperationName
+
"*'"
);
}
if
(!
StringUtil
.
isNullOrEmpty
(
searchStartDateStr
))
{
Date
startDate
=
DateTimeUtil
.
toDate
(
searchStartDateStr
,
"UTC"
,
DateTimeFormat
.
yyyyMMdd_hyphen
);
sql
.
append
(
" AND top.operation_end_date >= '"
+
DateTimeUtil
.
toString
(
startDate
,
DateTimeFormat
.
yyyyMMdd_hyphen
)
+
"'"
);
}
if
(!
StringUtil
.
isNullOrEmpty
(
searchEndDateStr
))
{
Date
endDate
=
DateTimeUtil
.
toDate
(
searchEndDateStr
,
"UTC"
,
DateTimeFormat
.
yyyyMMdd_hyphen
);
sql
.
append
(
" AND top.operation_start_date <= '"
+
DateTimeUtil
.
toString
(
endDate
,
DateTimeFormat
.
yyyyMMdd_hyphen
)
+
"'"
);
}
if
(
reportTypeStr
!=
null
)
{
sql
.
append
(
" AND top.report_type in ("
+
reportTypeStr
+
")"
);
}
sql
.
append
(
" ORDER BY top.operation_start_date DESC, top.operation_id DESC"
);
Logger
.
v
(
TAG
,
"sql=%s"
,
sql
);
return
sql
.
toString
();
}
public
boolean
updateContentCreatingFlg
(
long
operationId
,
boolean
contentCreatingFlg
)
{
OperationDto
dto
=
getOperation
(
operationId
);
if
(
dto
!=
null
)
{
...
...
@@ -421,8 +513,6 @@ public class OperationDao extends AbstractDao {
return
sql
.
toString
();
}
// ABookCheckでは、同名の関数があるが、引数の数がちがったのでコピーした
/**
* 引数の検索条件で作業情報リストを取得(作業一覧表示用)
* @param searchOperationName
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
1cf43e09
...
...
@@ -1168,9 +1168,9 @@ public class OperationLogic extends AbstractLogic {
* @param searchEndDateStr 終了期間
* @return 作業情報配列
*/
//
public List<OperationDto> getRefreshOperation(String searchWord, String searchStartDateStr, String searchEndDateStr, String reportTypeStr) {
//
return mOperationDao.getOperations(searchWord, searchStartDateStr, searchEndDateStr, reportTypeStr);
//
}
public
List
<
OperationDto
>
getRefreshOperation
(
String
searchWord
,
String
searchStartDateStr
,
String
searchEndDateStr
,
String
reportTypeStr
)
{
return
mOperationDao
.
getOperations
(
searchWord
,
searchStartDateStr
,
searchEndDateStr
,
reportTypeStr
);
}
/**
* 作業毎に情報更新ボタンを表示するため、NeedSyncFlgをセットする。
...
...
ABVJE_UI_Android/res/layout-large/ac_operation_list.xml
View file @
1cf43e09
...
...
@@ -81,87 +81,6 @@
android:layout_alignParentStart=
"true"
android:layout_weight=
"1"
></FrameLayout>
<LinearLayout
android:id=
"@+id/toolbar2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bottom_toolbar_border"
android:minHeight=
"50dp"
android:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_home"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_operation_home"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_common_content"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_common_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_communication_menu"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_communication_menu"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/print_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_print"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:scaleX=
"0.6"
android:scaleY=
"0.6"
android:src=
"@drawable/btn_operation_print"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_setting"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_operation_setting"
android:onClick=
"onClickSetting"
/>
</LinearLayout>
<include
layout=
"@layout/operation_common_toolbar"
android:id=
"@+id/toolbar2"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/res/layout-large/ac_operation_related_content.xml
View file @
1cf43e09
...
...
@@ -127,89 +127,7 @@
android:divider=
"@null"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/toolbar2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:background=
"@color/bottom_toolbar"
android:minHeight=
"50dp"
android:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginLeft=
"30dp"
android:layout_marginRight=
"30dp"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
>
<include
layout=
"@layout/operation_common_toolbar"
android:id=
"@+id/toolbar2"
/>
<ImageButton
android:id=
"@+id/btn_operation_home"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_operation_home"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_common_content"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_common_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_communication_menu"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_communication_menu"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/print_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_print"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:scaleX=
"0.6"
android:scaleY=
"0.6"
android:src=
"@drawable/btn_operation_print"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_setting"
style=
"@style/ToolBarIcon"
android:onClick=
"onClickSetting"
android:src=
"@drawable/ic_operation_setting"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/res/layout-normal/ac_operation_list.xml
View file @
1cf43e09
...
...
@@ -91,87 +91,6 @@
android:layout_alignParentStart=
"true"
android:layout_weight=
"1"
></FrameLayout>
<LinearLayout
android:id=
"@+id/toolbar2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bottom_toolbar_border"
android:minHeight=
"50dp"
android:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_home"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_operation_home"
/>
</LinearLayout>
<include
layout=
"@layout/operation_common_toolbar"
android:id=
"@+id/toolbar2"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_common_content"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_common_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_communication_menu"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_communication_menu"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/print_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_print"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:scaleX=
"0.6"
android:scaleY=
"0.6"
android:src=
"@drawable/btn_operation_print"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_setting"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_operation_setting"
android:onClick=
"onClickSetting"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/res/layout-normal/ac_operation_related_content.xml
View file @
1cf43e09
...
...
@@ -121,93 +121,7 @@
android:divider=
"@null"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/toolbar2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:background=
"@color/bottom_toolbar"
android:minHeight=
"50dp"
android:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_home"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/btn_operation_home"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_common_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/btn_common_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_communication_menu"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:background=
"@drawable/ic_communication_menu"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/print_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_print"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:background=
"@drawable/btn_operation_print"
android:scaleX=
"0.6"
android:scaleY=
"0.6"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_setting"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:background=
"@drawable/ic_operation_setting"
android:onClick=
"onClickSetting"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/operation_common_toolbar"
android:id=
"@+id/toolbar2"
/>
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/res/layout/list_dialog.xml
View file @
1cf43e09
...
...
@@ -9,7 +9,7 @@
<RelativeLayout
android:id=
"@+id/toolbar"
style=
"@style/DialogToolBarHolo"
>
<!-- ここからABook Checkからコピー コンパイルとおすために -->
<Button
android:id=
"@+id/popup_left_title"
style=
"@style/ButtonABookLight"
...
...
@@ -18,7 +18,7 @@
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:visibility=
"gone"
/>
<!-- ここまで-->
<TextView
android:id=
"@+id/popup_title"
style=
"@style/DialogToolBarTitle"
...
...
ABVJE_UI_Android/res/layout/operation_common_toolbar.xml
0 → 100644
View file @
1cf43e09
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
android:id=
"@+id/toolbar2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bottom_toolbar_border"
android:minHeight=
"50dp"
android:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_home"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_operation_home"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_common_content"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_common_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_communication_menu"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_communication_menu"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/print_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_print"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:scaleX=
"0.6"
android:scaleY=
"0.6"
android:src=
"@drawable/btn_operation_print"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_setting"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_operation_setting"
android:onClick=
"onClickSetting"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVUIActivity.java
View file @
1cf43e09
...
...
@@ -487,9 +487,6 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
// 設定画面表示
public
void
showSetting
()
{
Intent
intent
=
new
Intent
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
View file @
1cf43e09
...
...
@@ -12,9 +12,6 @@ public interface AppDefType {
int
LIST
=
1
;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
// 作業種別モードフラグ
interface
OperationLocationType
{
int
ALL
=
0
;
...
...
@@ -76,9 +73,6 @@ public interface AppDefType {
String
MASTER_DATA_FETCH_DATE
=
"masterDataFetchDate"
;
// マスタデータのFetchDate
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
String
OPERATION_GROUP_MASERT_MODE
=
"operation_group_master"
;
// 通常・作業種別モード(画面)
String
OPERATION_GROUP_MASERT_ID
=
"operation_group_master_id"
;
// 作業種別のID
String
OPERATION_SORT_CONDITION
=
"operation_sort_condition"
;
// 作業のソート
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVListDialog.java
View file @
1cf43e09
...
...
@@ -211,22 +211,8 @@ public class ABVListDialog extends Dialog {
((
BaseAdapter
)
mAdapter
).
notifyDataSetChanged
();
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
/** popup_left_title が足りないので
* list_dialog.xml に ダミーを追加してある
*
*/
public
void
setHeaderItemOnClickListener
(
String
itemName
,
View
.
OnClickListener
l
)
{
// Button itemButton = (Button) mRoot.findViewById(R.id.popup_title_left);
// if (itemButton != null) {
// itemButton.setVisibility(View.VISIBLE);
// itemButton.setText(itemName);
// itemButton.setOnClickListener(l);
// } else {
// 携帯の場合
LinearLayout
linearLayout
=
(
LinearLayout
)
mRoot
.
findViewById
(
R
.
id
.
header_item
);
linearLayout
.
setOnClickListener
(
l
);
...
...
@@ -234,30 +220,8 @@ public class ABVListDialog extends Dialog {
TextView
textView
=
(
TextView
)
mRoot
.
findViewById
(
R
.
id
.
header_title
);
String
suffixText
=
getContext
().
getResources
().
getString
(
R
.
string
.
to_back
);
textView
.
setText
(
String
.
format
(
suffixText
,
itemName
));
// }
}
// left_item が存在しないのと、関数の中身が全然ちがうので、ABookCheckから丸コピー
//
//
/**
public void setLeftItemOnClickListener(String itemName, View.OnClickListener l) {
// Button itemButton = (Button) mRoot.findViewById(R.id.popup_title_left);
// if (itemButton != null) {
// itemButton.setVisibility(View.VISIBLE);
// itemButton.setText(itemName);
// itemButton.setOnClickListener(l);
// } else {
// 携帯の場合
LinearLayout linearLayout = (LinearLayout) mRoot.findViewById(R.id.left_item);
linearLayout.setOnClickListener(l);
linearLayout.setVisibility(View.VISIBLE);
TextView textView = (TextView) mRoot.findViewById(R.id.header_title);
String suffixText = getContext().getResources().getString(R.string.to_back);
textView.setText(String.format(suffixText, itemName));
// }
}
*/
/**
* 左側の要素イベント
* @param itemName
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ABookSettingActivity.java
View file @
1cf43e09
...
...
@@ -77,9 +77,6 @@ public class ABookSettingActivity extends PreferenceActivity {
// ホーム画面へ戻る処理
private
void
backToHome
()
{
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
ABVUIActivity
activity
=
ActivityHandlingHelper
.
getInstance
().
getPreviousOfSettingActivity
();
// Chat
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
1cf43e09
...
...
@@ -120,6 +120,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
protected
ContentRefresher
contentRefresher
=
ContentRefresher
.
getInstance
();
// 設定画面の前に表示していたActivity
private
ABVUIActivity
previousOfSettingActivity
;
// Chat
private
ParentWebViewActivity
previousOfSettingActivity2
;
private
ActivityHandlingHelper
()
{
}
...
...
@@ -1697,13 +1702,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
}
return
context
;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
private
ABVUIActivity
previousOfSettingActivity
;
// Chat
private
ParentWebViewActivity
previousOfSettingActivity2
;
/**
* 設定画面から戻る用
* @return 設定画面へ遷移前の画面
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/CategoryOperationListHelper.java
View file @
1cf43e09
...
...
@@ -108,6 +108,7 @@ public abstract class CategoryOperationListHelper<StackObject> extends Operation
parent
.
removeView
(
mOperationListView
);
}
}
// 親クラス OperationListHelperのgetOperationView()をコールする
mOperationListView
=
super
.
getOperationView
();
LinearLayout
.
LayoutParams
lp
=
new
LinearLayout
.
LayoutParams
(
MP
,
1
);
lp
.
weight
=
1
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/HomeOperationListHelper.java
View file @
1cf43e09
...
...
@@ -4,8 +4,11 @@ import java.util.List;
import
jp.agentec.abook.abv.bl.acms.type.OperationSortingType
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
import
jp.agentec.abook.abv.ui.home.activity.OperationListActivity
;
import
static
jp
.
agentec
.
abook
.
abv
.
cl
.
util
.
PreferenceUtil
.
getUserPref
;
/**
* Created by leej on 2019/06/24.
*/
...
...
@@ -18,23 +21,10 @@ public class HomeOperationListHelper extends OperationListHelper {
super
(
activity
);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
// OperationLogicのgetRefreshOperationは、最後の引数がString なので、
/**
@Override
protected List<OperationDto> findOperationList() throws Exception {
int operationSortType = mAppActivity.getSortCondition();
OperationSortingType operationSortingType = OperationSortingType.parse(operationSortType);
return operationLogic.getRefreshOperation(mAppActivity.mSearchWord, mAppActivity.mStartDateStr, mAppActivity.mEndDateStr, operationSortingType);
}
*/
@Override
protected
List
<
OperationDto
>
findOperationList
()
throws
Exception
{
int
operationSortType
=
mAppActivity
.
getSortCondition
();
OperationSortingType
operationSortingType
=
OperationSortingType
.
parse
(
operationSortType
);
return
operationLogic
.
getRefreshOperation
(
mAppActivity
.
mSearchWord
,
mAppActivity
.
mStartDateStr
,
mAppActivity
.
mEndDateStr
,
operationSortingType
);
// 報告 or 定期点検
String
reportTypeStr
=
getUserPref
(
mAppActivity
,
AppDefType
.
UserPrefKey
.
OPERATION_REPORT_TYPES
,
null
);
return
operationLogic
.
getRefreshOperation
(
mAppActivity
.
mSearchWord
,
mAppActivity
.
mStartDateStr
,
mAppActivity
.
mEndDateStr
,
reportTypeStr
);
}
}
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
View file @
1cf43e09
...
...
@@ -64,10 +64,8 @@ public abstract class OperationListHelper {
private
List
<
OperationDto
>
filterOperationList
()
{
try
{
String
reportTypeStr
=
getUserPref
(
mAppActivity
,
AppDefType
.
UserPrefKey
.
OPERATION_REPORT_TYPES
,
null
);
// OperationGroupMasterListHelper か HomeOperationListHelper かどちらかのを実行
operationDtoList
=
findOperationList
();
//operationDtoList = operationLogic.getRefreshOperation(mAppActivity.mSearchWord, mAppActivity.mStartDateStr, mAppActivity.mEndDateStr, reportTypeStr);
for
(
OperationDto
operationDto
:
operationDtoList
)
{
// 該当する作業の最後に同期した日付を取得
...
...
@@ -275,10 +273,6 @@ public abstract class OperationListHelper {
return
operationDtoList
;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
// カテゴリ選択機能
///////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* 作業を検索してListを返す
*
...
...
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