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
3c251a38
Commit
3c251a38
authored
Sep 04, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#34867 作業並び替え機能(韓国語修正・カテゴリ対応)
parent
5d60379c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
58 deletions
+20
-58
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/type/OperationSortingType.java
+6
-8
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
+2
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationGroupMasterLogic.java
+3
-2
ABVJE_UI_Android/res/values-ko/arrays.xml
+4
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
+0
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/HomeOperationListHelper.java
+1
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationGroupMasterListHelper.java
+4
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
+0
-30
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/type/OperationSortingType.java
View file @
3c251a38
...
...
@@ -36,27 +36,25 @@ public enum OperationSortingType {
OperationSortingType
sortingType
;
switch
(
operationSorting
)
{
case
0
:
case
0
:
// 作業名
sortingType
=
OperationSortingType
.
OperationName
;
break
;
case
1
:
case
1
:
// 作業期間が新しい順
sortingType
=
OperationSortingType
.
OperationStartDateDESC
;
break
;
case
2
:
case
2
:
// 作業時間が古い順
sortingType
=
OperationSortingType
.
OperationStartDateASC
;
break
;
case
3
:
case
3
:
// 報告タイプ
sortingType
=
OperationSortingType
.
OperationType
;
break
;
case
4
:
case
4
:
// 閲覧日が新しい順
sortingType
=
OperationSortingType
.
ReadingDate
;
break
;
default
:
default
:
// 作業名(デフォルト)
sortingType
=
OperationSortingType
.
OperationName
;
break
;
}
return
sortingType
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
View file @
3c251a38
...
...
@@ -266,8 +266,8 @@ public class OperationDao extends AbstractDao {
* @param operationGroupMasterId
* @return
*/
public
List
<
OperationDto
>
getOperationsByGroupMasterId
(
Integer
operationGroupMasterId
)
{
String
sql
=
generateGetOperationQuery
(
null
,
null
,
null
,
null
,
operationGroupMasterId
);
public
List
<
OperationDto
>
getOperationsByGroupMasterId
(
Integer
operationGroupMasterId
,
OperationSortingType
operationSortingType
)
{
String
sql
=
generateGetOperationQuery
(
null
,
null
,
null
,
operationSortingType
,
operationGroupMasterId
);
return
rawQueryGetDtoList
(
sql
,
null
,
OperationDto
.
class
);
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationGroupMasterLogic.java
View file @
3c251a38
...
...
@@ -8,6 +8,7 @@ import java.util.Map;
import
jp.agentec.abook.abv.bl.acms.client.AcmsClient
;
import
jp.agentec.abook.abv.bl.acms.client.json.OperationGroupMasterJSON
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.AcmsParameters
;
import
jp.agentec.abook.abv.bl.acms.type.OperationSortingType
;
import
jp.agentec.abook.abv.bl.common.ABVEnvironment
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException
;
...
...
@@ -165,7 +166,7 @@ public class OperationGroupMasterLogic extends AbstractLogic {
* @param operationGroupMasterId
* @return
*/
public
List
<
OperationDto
>
getOperationByOperationGroupMasterId
(
Integer
operationGroupMasterId
)
{
return
mOperationDao
.
getOperationsByGroupMasterId
(
operationGroupMasterId
);
public
List
<
OperationDto
>
getOperationByOperationGroupMasterId
(
Integer
operationGroupMasterId
,
OperationSortingType
operationSortingType
)
{
return
mOperationDao
.
getOperationsByGroupMasterId
(
operationGroupMasterId
,
operationSortingType
);
}
}
ABVJE_UI_Android/res/values-ko/arrays.xml
View file @
3c251a38
...
...
@@ -2,10 +2,10 @@
<resources>
<string-array
name=
"sort_names"
>
<item>
작업명(가나다
라
)
</item>
<item>
작업개시일 최신
순
</item>
<item>
작업개시일 오래된
순
</item>
<item>
작업명(가나다)
</item>
<item>
최신 작업
순
</item>
<item>
오래된 작업
순
</item>
<item>
보고타입
</item>
<item>
열람최신
순
</item>
<item>
최신 열람
순
</item>
</string-array>
</resources>
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
View file @
3c251a38
...
...
@@ -70,14 +70,6 @@ public interface AppDefType {
String
APERTURE_MASTER_DATA_FETCH_DATE
=
"apertureMasterDataFetchDate"
;
// 絞り検索マスタデータのFetchDate
}
interface
SortType
{
int
OPERATION_NAME
=
0
;
// 作業名
int
OPERATION_START_DATE_DESC
=
1
;
// 作業時間が新しい順
int
OPERATION_START_DATE_ASC
=
2
;
// 作業時間が古い順
int
OPERATION_TYPE
=
3
;
// 報告タイプ
int
READING_DATE
=
4
;
// 閲覧日が新しい順
}
interface
SubMenuType
{
int
CONTENT_DETAIL_OPEN
=
0
;
// コンテンツ詳細画面
int
CONTENT_OPEN
=
1
;
// コンテンツ閲覧
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/HomeOperationListHelper.java
View file @
3c251a38
...
...
@@ -28,8 +28,7 @@ public class HomeOperationListHelper extends OperationListHelper {
@Override
protected
List
<
OperationDto
>
findOperationList
()
throws
Exception
{
int
operationSortType
=
getUserPref
(
mAppActivity
,
AppDefType
.
UserPrefKey
.
OPERATION_SORT_CONDITION
,
0
);
OperationSortingType
operationSortingType
=
convertSortType
(
operationSortType
);
OperationSortingType
operationSortingType
=
OperationSortingType
.
parse
(
operationSortType
);
return
operationLogic
.
getRefreshOperation
(
mAppActivity
.
mSearchWord
,
mAppActivity
.
mStartDateStr
,
mAppActivity
.
mEndDateStr
,
operationSortingType
);
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationGroupMasterListHelper.java
View file @
3c251a38
package
jp
.
agentec
.
abook
.
abv
.
ui
.
home
.
helper
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.acms.type.OperationSortingType
;
import
jp.agentec.abook.abv.bl.common.ABVEnvironment
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.data.dao.AbstractDao
;
...
...
@@ -76,8 +76,10 @@ public class OperationGroupMasterListHelper extends HierarchyOperationListHelper
OperationGroupMasterDto
peekOperationGroupMasterDto
=
stack
.
peek
();
mAppActivity
.
checkBatchNeedSyncButton
(
peekOperationGroupMasterDto
.
operationGroupMasterId
);
int
operationSortType
=
getUserPref
(
mAppActivity
,
AppDefType
.
UserPrefKey
.
OPERATION_SORT_CONDITION
,
0
);
OperationSortingType
operationSortingType
=
OperationSortingType
.
parse
(
operationSortType
);
// 作業種別IDで紐づく作業リストを取得
return
mOperationGroupMasterLogic
.
getOperationByOperationGroupMasterId
(
peekOperationGroupMasterDto
.
operationGroupMasterId
);
return
mOperationGroupMasterLogic
.
getOperationByOperationGroupMasterId
(
peekOperationGroupMasterDto
.
operationGroupMasterId
,
operationSortingType
);
}
/**
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
View file @
3c251a38
...
...
@@ -11,7 +11,6 @@ import com.handmark.pulltorefresh.library.PullToRefreshListView;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.acms.type.OperationSortingType
;
import
jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
...
...
@@ -59,35 +58,6 @@ public abstract class OperationListHelper {
mPullToRefreshGridView
=
new
PullToRefreshGridView
(
activity
);
}
/**
* ソートタイプをOperationSortingTypeに変換する
* @param sortType
* @return operationSortingType {@link OperationSortingType}
*/
public
static
OperationSortingType
convertSortType
(
int
sortType
)
{
OperationSortingType
operationSortingType
;
switch
(
sortType
)
{
case
AppDefType
.
SortType
.
OPERATION_NAME
:
operationSortingType
=
OperationSortingType
.
OperationName
;
break
;
case
AppDefType
.
SortType
.
OPERATION_START_DATE_ASC
:
operationSortingType
=
OperationSortingType
.
OperationStartDateASC
;
break
;
case
AppDefType
.
SortType
.
OPERATION_START_DATE_DESC
:
operationSortingType
=
OperationSortingType
.
OperationStartDateDESC
;
break
;
case
AppDefType
.
SortType
.
OPERATION_TYPE
:
operationSortingType
=
OperationSortingType
.
OperationType
;
break
;
case
AppDefType
.
SortType
.
READING_DATE
:
operationSortingType
=
OperationSortingType
.
ReadingDate
;
break
;
default
:
operationSortingType
=
OperationSortingType
.
OperationName
;
break
;
}
return
operationSortingType
;
}
/**
* 作業を検索して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