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
c9b298e1
Commit
c9b298e1
authored
Jul 08, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#34190 作業種別毎に作業を絞り込み機能追加
parent
0e644a17
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
63 additions
and
58 deletions
+63
-58
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
+5
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/SceneEntryJSON.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/exception/ABVExceptionCode.java
+5
-1
ABVJE_Res_Default_Android/res/drawable/operation_location_segment_background.xml
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
+0
-26
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
+3
-25
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
+48
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
View file @
c9b298e1
...
@@ -636,6 +636,11 @@ public class AcmsClient implements AcmsClientResponseListener {
...
@@ -636,6 +636,11 @@ public class AcmsClient implements AcmsClientResponseListener {
HttpResponse
result
=
HttpRequestSender
.
post
(
apiUrl
,
new
HttpMultipart
[]{
part1
,
part2
,
part3
});
HttpResponse
result
=
HttpRequestSender
.
post
(
apiUrl
,
new
HttpMultipart
[]{
part1
,
part2
,
part3
});
SceneEntryJSON
json
=
new
SceneEntryJSON
(
result
.
httpResponseBody
);
SceneEntryJSON
json
=
new
SceneEntryJSON
(
result
.
httpResponseBody
);
if
(
json
.
httpStatus
!=
200
)
{
if
(
json
.
httpStatus
!=
200
)
{
if
(
json
.
errorMessage
!=
null
)
{
if
(
json
.
errorMessage
[
0
].
equals
(
"P007"
))
{
throw
new
AcmsException
(
ABVExceptionCode
.
P_E_ACMS_P007
,
json
);
}
}
throw
new
AcmsException
(
ABVExceptionCode
.
fromResponseCode
(
result
.
httpResponseCode
),
new
AcmsMessageJSON
(
result
.
httpResponseBody
));
throw
new
AcmsException
(
ABVExceptionCode
.
fromResponseCode
(
result
.
httpResponseCode
),
new
AcmsMessageJSON
(
result
.
httpResponseBody
));
}
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/SceneEntryJSON.java
View file @
c9b298e1
...
@@ -10,7 +10,7 @@ import jp.agentec.abook.abv.bl.common.exception.JSONValidationException;
...
@@ -10,7 +10,7 @@ import jp.agentec.abook.abv.bl.common.exception.JSONValidationException;
* Created by leej on 2018/10/26.
* Created by leej on 2018/10/26.
*/
*/
public
class
SceneEntryJSON
extends
Acms
Common
JSON
{
public
class
SceneEntryJSON
extends
Acms
Message
JSON
{
private
static
final
String
ResourceId
=
"resourceId"
;
private
static
final
String
ResourceId
=
"resourceId"
;
public
Integer
resourceId
;
public
Integer
resourceId
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/exception/ABVExceptionCode.java
View file @
c9b298e1
...
@@ -224,7 +224,11 @@ public enum ABVExceptionCode {
...
@@ -224,7 +224,11 @@ public enum ABVExceptionCode {
/**
/**
* 既に作業報告を行う権限がありません。
* 既に作業報告を行う権限がありません。
*/
*/
P_E_ACMS_P006
;
P_E_ACMS_P006
,
/**
* ロック中である場合
*/
P_E_ACMS_P007
;
/**
/**
* HTTPレスポンスコードから対応するコードを返す
* HTTPレスポンスコードから対応するコードを返す
...
...
ABVJE_Res_Default_Android/res/drawable/operation_location_segment_background.xml
View file @
c9b298e1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<item
<item
android:state_checked=
"true"
android:state_checked=
"true"
android:state_pressed=
"true"
android:state_pressed=
"true"
android:drawable=
"@drawable/operation_location_segment_o
ff
"
/>
android:drawable=
"@drawable/operation_location_segment_o
n
"
/>
<item
<item
android:state_checked=
"true"
android:state_checked=
"true"
android:drawable=
"@drawable/operation_location_segment_on"
/>
android:drawable=
"@drawable/operation_location_segment_on"
/>
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
View file @
c9b298e1
...
@@ -540,20 +540,8 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
...
@@ -540,20 +540,8 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
@Override
@Override
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
isLinkedContent
)
{
goToBack
();
}
else
{
finishActivity
();
}
}
else
{
return
super
.
onKeyUp
(
keyCode
,
event
);
return
super
.
onKeyUp
(
keyCode
,
event
);
}
}
return
false
;
}
@Override
@Override
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
...
@@ -561,20 +549,6 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
...
@@ -561,20 +549,6 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
}
}
@Override
@Override
protected
void
finishActivity
()
{
setResult
(
RESULT_OK
,
new
Intent
());
finish
();
if
(
objectId
==
-
1
)
{
// HTMLコンテンツの場合で、KeyUpではない場合、全コンテンツActivityを終了
if
(
isLinkedContent
)
{
ActivityHandlingHelper
.
getInstance
().
finishAllLinkContentViewActivity
();
}
else
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
}
}
}
@Override
public
void
onResume
()
{
public
void
onResume
()
{
Logger
.
i
(
TAG
,
"onResume"
);
Logger
.
i
(
TAG
,
"onResume"
);
super
.
onResume
();
super
.
onResume
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
View file @
c9b298e1
...
@@ -579,35 +579,13 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
...
@@ -579,35 +579,13 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
@Override
@Override
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
isLinkedContent
)
{
goToBack
();
}
else
{
finishActivity
();
}
}
else
{
return
super
.
onKeyUp
(
keyCode
,
event
);
return
super
.
onKeyUp
(
keyCode
,
event
);
}
}
return
false
;
}
@Override
@Override
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
return
super
.
onKeyDown
(
keyCode
,
event
);
return
super
.
onKeyDown
(
keyCode
,
event
);
}
}
@Override
protected
void
finishActivity
()
{
setResult
(
RESULT_OK
,
new
Intent
());
finish
();
if
(
isLinkedContent
)
{
ActivityHandlingHelper
.
getInstance
().
finishAllLinkContentViewActivity
();
}
else
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
}
}
@Override
@Override
public
void
onResume
()
{
public
void
onResume
()
{
...
@@ -622,13 +600,13 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
...
@@ -622,13 +600,13 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
protected
void
onStop
()
{
protected
void
onStop
()
{
super
.
onStop
();
super
.
onStop
();
webView
.
stopLoading
();
webView
.
stopLoading
();
if
(
objectLogId
!=
-
1
)
{
if
(
objectLogId
==
-
1
)
{
ContentLogUtil
.
getInstance
().
endObjectLog
(
getContentId
(),
objectLogId
);
}
else
{
if
(
lastPageStartDate
!=
null
)
{
// 360の場合
if
(
lastPageStartDate
!=
null
)
{
// 360の場合
ContentLogUtil
.
getInstance
().
endContentPageReadLog
(
contentId
,
lastPageNo
,
readingLogId
);
ContentLogUtil
.
getInstance
().
endContentPageReadLog
(
contentId
,
lastPageNo
,
readingLogId
);
AbstractLogic
.
getLogic
(
ContentReadingLogLogic
.
class
).
endContentReadLog
(
contentId
);
AbstractLogic
.
getLogic
(
ContentReadingLogLogic
.
class
).
endContentReadLog
(
contentId
);
}
}
}
else
{
ContentLogUtil
.
getInstance
().
endObjectLog
(
getContentId
(),
objectLogId
);
}
}
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
View file @
c9b298e1
...
@@ -3,7 +3,9 @@ package jp.agentec.abook.abv.ui.viewer.activity;
...
@@ -3,7 +3,9 @@ package jp.agentec.abook.abv.ui.viewer.activity;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.DialogInterface
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.view.KeyEvent
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.Button
;
import
android.widget.ImageButton
;
import
android.widget.ImageButton
;
...
@@ -22,6 +24,8 @@ import jp.agentec.abook.abv.bl.common.Callback;
...
@@ -22,6 +24,8 @@ import jp.agentec.abook.abv.bl.common.Callback;
import
jp.agentec.abook.abv.bl.common.CommonExecutor
;
import
jp.agentec.abook.abv.bl.common.CommonExecutor
;
import
jp.agentec.abook.abv.bl.common.Constant
;
import
jp.agentec.abook.abv.bl.common.Constant
;
import
jp.agentec.abook.abv.bl.common.constant.ABookKeys
;
import
jp.agentec.abook.abv.bl.common.constant.ABookKeys
;
import
jp.agentec.abook.abv.bl.common.exception.ABVExceptionCode
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
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.AbstractDao
;
import
jp.agentec.abook.abv.bl.data.dao.ContentDao
;
import
jp.agentec.abook.abv.bl.data.dao.ContentDao
;
...
@@ -240,6 +244,37 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
...
@@ -240,6 +244,37 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
}
}
@Override
@Override
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
mXWalkOpenType
!=
Constant
.
XWalkOpenType
.
PANO_EDIT
&&
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
isLinkedContent
)
{
goToBack
();
}
else
{
finishActivity
();
}
}
else
{
return
super
.
onKeyUp
(
keyCode
,
event
);
}
return
false
;
}
@Override
protected
void
finishActivity
()
{
setResult
(
RESULT_OK
,
new
Intent
());
finish
();
if
(
objectId
==
-
1
)
{
// HTMLコンテンツの場合で、KeyUpではない場合、全コンテンツActivityを終了
if
(
isLinkedContent
)
{
ActivityHandlingHelper
.
getInstance
().
finishAllLinkContentViewActivity
();
}
else
{
ActivityHandlingHelper
.
getInstance
().
finishAllContentViewActivity
();
}
}
}
@Override
protected
void
onDestroy
()
{
protected
void
onDestroy
()
{
Logger
.
d
(
TAG
,
"onDestroy"
);
Logger
.
d
(
TAG
,
"onDestroy"
);
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
TASK_REPORT
)
{
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
TASK_REPORT
)
{
...
@@ -319,10 +354,10 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
...
@@ -319,10 +354,10 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
}
}
});
});
}
}
}
catch
(
Exception
e
)
{
}
catch
(
AcmsException
ex
)
{
Logger
.
e
(
TAG
,
e
);
Logger
.
e
(
TAG
,
e
x
);
// ロック中である場合以下のエラーメッセージで判定
if
(
ex
.
getCode
()
==
ABVExceptionCode
.
P_E_ACMS_P007
)
{
if
(
e
.
getMessage
().
equals
(
"P007"
))
{
// シーン追加時、ロック状態である場合
runOnUiThread
(
new
Runnable
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
...
@@ -339,6 +374,15 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
...
@@ -339,6 +374,15 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
}
}
});
});
}
}
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
e
);
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
closeProgressPopup
();
showFailedSceneApiDialog
();
}
});
}
finally
{
}
finally
{
//アプリ内のファイルのみ削除(Galleryファイルは削除しない)
//アプリ内のファイルのみ削除(Galleryファイルは削除しない)
if
(
mLocalFile
!=
null
&&
mLocalFile
.
getPath
().
contains
(
getPackageName
()))
{
if
(
mLocalFile
!=
null
&&
mLocalFile
.
getPath
().
contains
(
getPackageName
()))
{
...
...
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