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
c76a851c
Commit
c76a851c
authored
Sep 02, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/1.4.100_develop' into 'features/1.4.100'
Features/1.4.100 develop See merge request
!214
parents
8ad7403d
78b8dc12
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
26 deletions
+34
-26
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/Constant.java
+7
-0
ABVJE_Launcher_Android/assets/check
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+26
-25
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/Constant.java
View file @
c76a851c
...
...
@@ -141,6 +141,13 @@ public class Constant {
int
ReportContinuous
=
3
;
// 連続作業
}
public
interface
operationType
{
int
LIST
=
0
;
int
DRAWING
=
1
;
int
CONTENT360
=
2
;
}
// 報告履歴管理
public
interface
EnableReportHistory
{
int
Invalid
=
0
;
// 無効
...
...
check
@
d67a57e9
Subproject commit
135a83eb1a5782ccaee8b3677942b07463e86f50
Subproject commit
d67a57e92c7b11b5fc0548445d8c60ffa7c82779
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
c76a851c
...
...
@@ -307,6 +307,11 @@ public class OperationListActivity extends ABVUIActivity {
mScanType
=
jsonParam
.
getInt
(
ABookKeys
.
SCAN_TYPE
);
}
final
OperationDto
tempOperationDto
=
mOperationDao
.
getOperationJoinContent
(
jsonParam
.
getInt
(
ABookKeys
.
OPERATION_ID
));
if
(
tempOperationDto
.
operationType
==
Constant
.
operationType
.
CONTENT360
&&
tempOperationDto
.
contentId
==
null
)
{
tempOperationDto
.
operationId
=
jsonParam
.
getLong
(
ABookKeys
.
OPERATION_ID
);
showPanoEntryDialog
(
tempOperationDto
);
}
else
{
if
(
tempOperationDto
.
needSyncFlg
)
{
mCallBack
=
new
Runnable
()
{
@Override
...
...
@@ -323,6 +328,7 @@ public class OperationListActivity extends ABVUIActivity {
}
else
{
openReportView
(
tempOperationDto
);
}
}
break
;
case
ABookKeys
.
CMD_KEY
.
GO_COMMUNICATION
:
...
...
@@ -331,6 +337,7 @@ public class OperationListActivity extends ABVUIActivity {
case
ABookKeys
.
CMD_KEY
.
GO_PANORAMA_EDIT
:
final
OperationDto
panoramaOperationDto
=
mOperationDao
.
getOperationJoinContent
(
jsonParam
.
getInt
(
ABookKeys
.
OPERATION_ID
));
if
(
panoramaOperationDto
.
contentId
!=
null
&&
panoramaOperationDto
.
contentId
!=
0
)
{
if
(
panoramaOperationDto
.
needSyncFlg
)
{
mCallBack
=
new
Runnable
()
{
@Override
...
...
@@ -347,6 +354,10 @@ public class OperationListActivity extends ABVUIActivity {
}
else
{
startPanoEdit
(
panoramaOperationDto
);
}
}
else
{
panoramaOperationDto
.
operationId
=
jsonParam
.
getLong
(
ABookKeys
.
OPERATION_ID
);
showPanoEntryDialog
(
panoramaOperationDto
);
}
break
;
case
ABookKeys
.
CMD_KEY
.
REFRESH_CONTENT
:
...
...
@@ -743,8 +754,8 @@ public class OperationListActivity extends ABVUIActivity {
}
public
void
startTaskDirectionOrReportView
(
OperationDto
operationDto
)
{
ContentDto
contentDto
=
contentDao
.
getContent
(
operationDto
.
contentId
);
try
{
ContentDto
contentDto
=
contentDao
.
getContent
(
operationDto
.
contentId
);
if
(
contentDto
!=
null
&&
contentDto
.
downloadedFlg
)
{
String
contentPath
;
if
(
operationDto
.
operationType
==
OperationType
.
LIST
)
{
...
...
@@ -1302,28 +1313,9 @@ public class OperationListActivity extends ABVUIActivity {
public
void
run
()
{
int
progress
=
progressDialogHorizontal
.
getProgress
();
progressDialogHorizontal
.
setProgress
(
progress
+
10
);
if
(
progress
>=
100
)
{
closeProgressPopup
();
//新着更新
final
Callback
progressCallback
=
new
Callback
()
{
@Override
public
Object
callback
(
Object
ret
)
{
final
int
progress
=
(
int
)
ret
;
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
if
((
progressDialogHorizontal
.
getProgress
()
+
progress
)
<
100
)
{
progressDialogHorizontal
.
setProgress
(
progressDialogHorizontal
.
getProgress
()
+
progress
);
}
else
{
progressDialogHorizontal
.
setProgress
(
100
);
}
}
});
return
null
;
}
};
if
(
progress
>=
30
)
{
try
{
dat
aRefresh
(
true
,
progressCallback
);
dat
eUpdate
(
);
}
catch
(
Exception
e
)
{
handler
.
post
(
new
Runnable
()
{
@Override
...
...
@@ -1333,10 +1325,10 @@ public class OperationListActivity extends ABVUIActivity {
});
}
}
else
{
handler
.
postDelayed
(
this
,
1
000
);
handler
.
postDelayed
(
this
,
4
000
);
}
}
},
1
000
);
},
2
000
);
}
}
...
...
@@ -1425,6 +1417,14 @@ public class OperationListActivity extends ABVUIActivity {
public
void
run
()
{
Logger
.
i
(
TAG
,
"[syncOperation] operationId=%s, contentId=%s"
,
operationDto
.
operationId
,
operationDto
.
contentId
);
// コンテンツダウンロード
if
(
operationDto
.
contentId
==
null
)
{
Logger
.
e
(
TAG
,
"contentDto is null !"
);
closeProgressPopup
();
if
(
mCallBack
!=
null
)
{
mCallBack
.
run
();
}
return
;
}
ContentDto
contentDto
=
contentDao
.
getContent
(
operationDto
.
contentId
);
if
(
contentDto
==
null
)
{
Logger
.
e
(
TAG
,
"contentDto is null !"
);
...
...
@@ -1994,13 +1994,14 @@ public class OperationListActivity extends ABVUIActivity {
}
public
void
dateUpdate
()
{
if
(!
isFinishing
()
&&
progressDialogHorizontal
!=
null
&&
!
progressDialogHorizontal
.
isShowing
())
{
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
showProgressView
(
getString
(
R
.
string
.
msg_common_processing
));
}
});
}
final
Callback
progressCallback
=
new
Callback
()
{
@Override
public
Object
callback
(
Object
ret
)
{
...
...
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