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
737a1a48
Commit
737a1a48
authored
Jan 19, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ロック関係の実装を変更する前にいったんコミット
parent
1bb6e002
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
14 deletions
+73
-14
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
+2
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
+70
-13
gradle.properties
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
View file @
737a1a48
...
...
@@ -37,6 +37,8 @@ public class ABookKeys {
public
static
final
String
CMD_LOCK_REPORT
=
"lockReport"
;
public
static
final
String
CMD_UNLOCK_REPORT
=
"unlockReport"
;
public
static
final
String
CMD_GET_REPORT_LIST
=
"getReportList"
;
public
static
final
String
CMD_GET_REPORT_STATUS_COUNT
=
"getReportStatusCount"
;
public
static
final
String
CMD_GO_REPORT_DETAIL
=
"goReportDetail"
;
public
static
final
String
GPS_TYPE
=
"gpsType"
;
public
static
final
String
STATUS_CODE
=
"statusCode"
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/DashboardActivity.java
View file @
737a1a48
...
...
@@ -27,12 +27,17 @@ import jp.agentec.abook.abv.bl.common.constant.ABookKeys;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.data.dao.AbstractDao
;
import
jp.agentec.abook.abv.bl.data.dao.ReportStatusDao
;
import
jp.agentec.abook.abv.bl.data.dao.TaskReportDao
;
import
jp.agentec.abook.abv.bl.dto.ReportStatusDto
;
import
jp.agentec.abook.abv.bl.logic.LockReportLogic
;
import
jp.agentec.abook.abv.bl.logic.UnlockReportLogic
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.ui.viewer.view.CheckFormWebview
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
common
.
constant
.
ABookCommConstants
.
DASHBOARD_URL
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
common
.
constant
.
ABookKeys
.
CMD_GET_REPORT_LIST
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
common
.
constant
.
ABookKeys
.
CMD_GET_REPORT_STATUS_COUNT
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
common
.
constant
.
ABookKeys
.
CMD_GO_REPORT_DETAIL
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
common
.
constant
.
ABookKeys
.
CMD_LOCK_REPORT
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
common
.
constant
.
ABookKeys
.
CMD_UNLOCK_REPORT
;
...
...
@@ -52,7 +57,7 @@ public class DashboardActivity extends OperationActivity {
@Override
public
void
onClick
(
View
v
)
{
Logger
.
d
(
TAG
,
"ReloadUrl"
);
webView
.
loadUrl
(
DASHBOARD_URL
+
"&reload=true"
);
webView
.
loadUrl
(
DASHBOARD_URL
);
}
});
...
...
@@ -210,20 +215,23 @@ public class DashboardActivity extends OperationActivity {
}
private
boolean
checkApiLoding
(
Uri
uri
)
{
Map
<
String
,
String
>
abookCheckP
aram
=
new
HashMap
<>();
Map
<
String
,
String
>
p
aram
=
new
HashMap
<>();
for
(
String
key
:
uri
.
getQueryParameterNames
())
{
abookCheckP
aram
.
put
(
key
,
uri
.
getQueryParameter
(
key
));
p
aram
.
put
(
key
,
uri
.
getQueryParameter
(
key
));
}
String
cmd
=
abookCheckP
aram
.
get
(
ABookKeys
.
CMD
);
String
cmd
=
p
aram
.
get
(
ABookKeys
.
CMD
);
if
(
cmd
==
null
)
{
return
false
;
}
switch
(
cmd
)
{
case
CMD_GET_REPORT_STATUS_COUNT:
{
return
getReportStatusCount
();
}
case
CMD_GET_REPORT_LIST:
{
try
{
String
reportStatusId
=
abookCheckP
aram
.
get
(
"reportStatusId"
);
String
reportStatusId
=
p
aram
.
get
(
"reportStatusId"
);
if
(
reportStatusId
!=
null
)
{
return
getReportList
(
Integer
.
parseInt
(
reportStatusId
));
}
else
{
...
...
@@ -234,16 +242,25 @@ public class DashboardActivity extends OperationActivity {
return
false
;
}
}
case
CMD_GO_REPORT_DETAIL:
{
break
;
}
case
CMD_LOCK_REPORT:
{
return
lockReport
();
return
lockReport
(
param
);
}
case
CMD_UNLOCK_REPORT:
{
return
unlockReport
();
return
unlockReport
(
param
);
}
}
return
false
;
}
private
boolean
getReportStatusCount
()
{
//todo
return
false
;
}
private
boolean
getReportList
(
int
reportStatusId
)
{
ReportStatusDao
dao
=
AbstractDao
.
getDao
(
ReportStatusDao
.
class
);
List
<
ReportStatusDto
>
reports
=
null
;
...
...
@@ -282,9 +299,8 @@ public class DashboardActivity extends OperationActivity {
}
if
(
reports
!=
null
)
{
JSONObject
param
=
makeReportTree
(
reportStatusId
,
reports
);
String
response
=
"javascript:CHK_Dashboard.reportListCallback("
+
reportStatusId
+
","
+
param
.
toString
()
+
")"
;
webView
.
loadUrl
(
response
);
return
true
;
}
else
{
return
false
;
...
...
@@ -342,13 +358,54 @@ public class DashboardActivity extends OperationActivity {
}
}
private
boolean
lockReport
()
{
private
boolean
goReportDetail
()
{
//todo
return
false
;
}
private
boolean
lockReport
(
Map
<
String
,
String
>
param
)
{
// LockReportLogic.Result r = LockReportLogic.newInstance().lock(param);
// ローカルDBに反映
// TaskReportDao dao = AbstractDao.getDao(TaskReportDao.class);
// dao.updateReportLock(
// mTaskKey,
// dateOrNull(param.get("reportStartDate")),
// r.getExtParam().getReportStatus(),
// r.getExtParam().getReportLockUserId(),
// r.getExtParam().getReportLockUserName(),
// r.getExtParam().getReportLockTime()
// );
// JSコールバック
// afterABookCheckApi(
// mCmd,
// mTaskKey,
// r.getResult(),
// r.getMessage(),
// r.getExtParam().json()
// );
return
true
;
}
private
boolean
unlockReport
()
{
//todo
private
boolean
unlockReport
(
Map
<
String
,
String
>
param
)
{
// UnlockReportLogic.Result r = UnlockReportLogic.newInstance().unlock(param);
// // ローカルDBに反映
// TaskReportDao dao = AbstractDao.getDao(TaskReportDao.class);
// dao.updateReportLock(
// mTaskKey,
// dateOrNull(param.get("reportStartDate")),
// r.getExtParam().getReportStatus(),
// null,
// null,
// null
// );
// // JSコールバック
// afterABookCheckApi(
// mCmd,
// mTaskKey,
// r.getResult(),
// r.getMessage(),
// r.getExtParam().json()
// );
return
true
;
}
}
gradle.properties
View file @
737a1a48
...
...
@@ -96,7 +96,7 @@ hope_page=http://www.sato.co.jp
contact_email
=
grp-atform_support@sato-global.com
#Log Settings
log_level
=
2
log_level
=
1
default_log_name
=
abvje
#エラーレポート/Exportログ送信方法 1:acms 2:平文メール(開発・テスト時のみ) 3:暗号化添付メール
error_report_flg
=
1
...
...
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