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
44e8ef04
Commit
44e8ef04
authored
Apr 17, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ユーザのグループが追加した場合、全報告・回答タイプの同期ボタンを活性化にする処理追加
parent
5a80001a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
9 deletions
+44
-9
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
+26
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/GroupLogic.java
+4
-0
ABVJE_UI_Android/res/layout-normal/item_operation_list.xml
+8
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVUIActivity.java
+6
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
View file @
44e8ef04
...
@@ -4,6 +4,7 @@ import java.util.ArrayList;
...
@@ -4,6 +4,7 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.Constant
;
import
jp.agentec.abook.abv.bl.common.db.Cursor
;
import
jp.agentec.abook.abv.bl.common.db.Cursor
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
...
@@ -311,4 +312,28 @@ public class OperationDao extends AbstractDao {
...
@@ -311,4 +312,28 @@ public class OperationDao extends AbstractDao {
}
}
return
false
;
return
false
;
}
}
/**
* 引数の報告タイプのみリストで取得
* @param reportType
* @return
*/
public
List
<
OperationDto
>
getOperationByReportType
(
Integer
reportType
)
{
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" SELECT * "
);
sql
.
append
(
" FROM t_operation "
);
sql
.
append
(
" WHERE report_type = ?"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{
""
+
reportType
},
OperationDto
.
class
);
}
/**
* ユーザ情報でグループが変更した時のみ使用
* 報告・回答タイプを検索して、同期フラグをtrueに設定
*/
public
void
updateNeedSyncForReportReplyType
()
{
List
<
OperationDto
>
operationDtoList
=
getOperationByReportType
(
Constant
.
ReportType
.
ReportReply
);
for
(
OperationDto
operationDto
:
operationDtoList
)
{
updateNeedSyncFlg
(
operationDto
.
operationId
,
true
);
}
}
}
}
\ No newline at end of file
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/GroupLogic.java
View file @
44e8ef04
...
@@ -17,6 +17,7 @@ import jp.agentec.abook.abv.bl.data.dao.AbstractDao;
...
@@ -17,6 +17,7 @@ import jp.agentec.abook.abv.bl.data.dao.AbstractDao;
import
jp.agentec.abook.abv.bl.data.dao.ContentDao
;
import
jp.agentec.abook.abv.bl.data.dao.ContentDao
;
import
jp.agentec.abook.abv.bl.data.dao.ContentGroupDao
;
import
jp.agentec.abook.abv.bl.data.dao.ContentGroupDao
;
import
jp.agentec.abook.abv.bl.data.dao.GroupDao
;
import
jp.agentec.abook.abv.bl.data.dao.GroupDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationDao
;
import
jp.agentec.abook.abv.bl.dto.ContentDto
;
import
jp.agentec.abook.abv.bl.dto.ContentDto
;
import
jp.agentec.abook.abv.bl.dto.GroupDto
;
import
jp.agentec.abook.abv.bl.dto.GroupDto
;
import
jp.agentec.adf.util.StringUtil
;
import
jp.agentec.adf.util.StringUtil
;
...
@@ -25,6 +26,7 @@ public class GroupLogic extends AbstractLogic {
...
@@ -25,6 +26,7 @@ public class GroupLogic extends AbstractLogic {
private
static
final
java
.
lang
.
String
TAG
=
"GroupLogic"
;
private
static
final
java
.
lang
.
String
TAG
=
"GroupLogic"
;
private
GroupDao
groupDao
=
AbstractDao
.
getDao
(
GroupDao
.
class
);
private
GroupDao
groupDao
=
AbstractDao
.
getDao
(
GroupDao
.
class
);
private
ContentDao
contentDao
=
AbstractDao
.
getDao
(
ContentDao
.
class
);
private
ContentDao
contentDao
=
AbstractDao
.
getDao
(
ContentDao
.
class
);
private
OperationDao
mOperationDao
=
AbstractDao
.
getDao
(
OperationDao
.
class
);
public
Integer
[]
getServerUserGroupIds
(
String
sid
)
throws
NetworkDisconnectedException
,
ABVException
{
public
Integer
[]
getServerUserGroupIds
(
String
sid
)
throws
NetworkDisconnectedException
,
ABVException
{
AcmsParameters
param
=
new
AcmsParameters
(
sid
);
AcmsParameters
param
=
new
AcmsParameters
(
sid
);
...
@@ -103,6 +105,8 @@ public class GroupLogic extends AbstractLogic {
...
@@ -103,6 +105,8 @@ public class GroupLogic extends AbstractLogic {
}
}
}
}
}
}
// グループ変更があった場合、全ての報告・回答タイプの同期フラグをtrueに設定
mOperationDao
.
updateNeedSyncForReportReplyType
();
}
}
}
}
...
...
ABVJE_UI_Android/res/layout-normal/item_operation_list.xml
View file @
44e8ef04
...
@@ -18,19 +18,19 @@
...
@@ -18,19 +18,19 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"left"
android:gravity=
"left"
android:layout_marginRight=
"10dp"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageButton
<ImageButton
android:id=
"@+id/operation_type"
android:id=
"@+id/report_type"
android:layout_width=
"50dp"
android:layout_width=
"wrap_content"
android:layout_height=
"50dp"
android:layout_height=
"wrap_content"
/>
android:layout_marginRight=
"10dp"
/>
<ImageButton
<ImageButton
android:id=
"@+id/
report
_type"
android:id=
"@+id/
operation
_type"
android:layout_width=
"
50dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
50dp
"
android:layout_height=
"
wrap_content
"
android:layout_marginTop=
"10dp"
/>
android:layout_marginTop=
"10dp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVUIActivity.java
View file @
44e8ef04
...
@@ -400,7 +400,12 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
...
@@ -400,7 +400,12 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
// ヘッダーの新着更新処理を完了にさせる
// ヘッダーの新着更新処理を完了にさせる
if
(
refreshBaseView
!=
null
)
{
if
(
refreshBaseView
!=
null
)
{
refreshBaseView
.
onRefreshComplete
();
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
refreshBaseView
.
onRefreshComplete
();
}
});
}
}
// 自動ダウンロード対象がある場合、新着更新が完了したあとに開始するように修正(jang)
// 自動ダウンロード対象がある場合、新着更新が完了したあとに開始するように修正(jang)
...
...
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