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
995d811f
Commit
995d811f
authored
Jul 12, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1.1.0' into feature/1.1.0_34413
parents
5c58b0f4
db684b42
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
80 additions
and
30 deletions
+80
-30
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
+0
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MOperationGroupMaster.java
+6
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/ROperationGroupMasterOperation.java
+6
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/ApertureMasterDataLogic.java
+6
-17
ABVJE_Launcher_Android/AndroidManifest.xml
+4
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
+13
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionOperationTaskCode.java
+10
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionOperationTaskIcon.java
+10
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionOperationTaskPin.java
+10
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+15
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ZoomRelativeLayout.java
+0
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
View file @
995d811f
...
...
@@ -542,7 +542,6 @@ public class AcmsClient implements AcmsClientResponseListener {
HttpMultipartList
.
add
(
new
HttpMultipart
(
ABookKeys
.
TASK_HOT_SPOT_INFO
,
taskReportDto
.
taskHotSpotInfo
));
HttpMultipartList
.
add
(
new
HttpMultipart
(
ABookKeys
.
TASK_REPORT_INFO
,
taskReportDto
.
jsonData
));
HttpMultipartList
.
add
(
new
HttpMultipart
(
ABookKeys
.
ATTACHED_CHANGE_FLAG
,
taskReportDto
.
attachedFileSendFlg
?
"1"
:
"0"
));
HttpMultipartList
.
add
(
new
HttpMultipart
(
ABookKeys
.
ROUTINE_TASK_FLAG
,
reportType
==
Constant
.
ReportType
.
RoutineTask
?
"1"
:
"0"
));
HttpMultipartList
.
add
(
new
HttpMultipart
(
ABookKeys
.
UPDATE_HOTSPOT_ONLY_FLAG
,
hotspotChangeFlg
?
"1"
:
"0"
));
// 定期点検用
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MOperationGroupMaster.java
View file @
995d811f
...
...
@@ -4,6 +4,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
import
jp.agentec.abook.abv.bl.data.DatabaseVersions
;
import
jp.agentec.adf.util.StringUtil
;
/**
...
...
@@ -43,7 +44,11 @@ public class MOperationGroupMaster extends SQLiteTableScript {
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
if
(
oldVersion
<
DatabaseVersions
.
Ver1_1_0
)
{
ddl
.
addAll
(
getCreateScript
(
newVersion
));
}
return
ddl
;
}
@Override
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/ROperationGroupMasterOperation.java
View file @
995d811f
...
...
@@ -4,6 +4,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
import
jp.agentec.abook.abv.bl.data.DatabaseVersions
;
/**
* Created by leej on 2019/06/25.
...
...
@@ -35,7 +36,11 @@ public class ROperationGroupMasterOperation extends SQLiteTableScript {
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
if
(
oldVersion
<
DatabaseVersions
.
Ver1_1_0
)
{
ddl
.
addAll
(
getCreateScript
(
newVersion
));
}
return
ddl
;
}
@Override
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/ApertureMasterDataLogic.java
View file @
995d811f
...
...
@@ -38,31 +38,20 @@ public class ApertureMasterDataLogic extends AbstractLogic {
//端末機の日付
String
lastFetchDateString
=
cache
.
getTempApertureMasterDataFetchDate
();
GetApertureMasterDataParameters
param
=
new
GetApertureMasterDataParameters
(
cache
.
getMemberInfo
().
sid
,
lastFetchDateString
);
//サーバーから絞り検索マスタデータを取得
GetApertureMasterDataParameters
param
=
new
GetApertureMasterDataParameters
(
cache
.
getMemberInfo
().
sid
,
lastFetchDateString
);
ApertureMasterDataJSON
masterDataJson
=
AcmsClient
.
getInstance
(
cache
.
getUrlPath
(),
networkAdapter
).
getApertureMasterData
(
param
);
//サーバーデータの日付
String
lastEditDateString
=
masterDataJson
.
lastEditDate
;
if
(
lastFetchDateString
==
null
){
//最初のマスタデータダウンロードの場合
//サーバから取得した情報がある場合、端末に保存
if
(
lastEditDateString
!=
null
)
{
//サーバーから取得した日付をキャッシュメモリに保存
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
if
(
masterDataJson
.
apertureData
!=
null
&&
masterDataJson
.
apertureData
.
keys
().
hasNext
())
{
createApertureMasterDataJson
(
masterDataJson
.
apertureData
);
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
}
}
else
if
(
lastEditDateString
!=
null
){
//マスタデータがある場合、サーバーから修正事項があるセットだけ上書きする
Date
lastFetchDate
=
DateTimeUtil
.
toDate
(
lastFetchDateString
,
"UTC"
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
);
Date
lastEditDate
=
DateTimeUtil
.
toDate
(
lastEditDateString
,
"UTC"
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
);
if
(
lastEditDate
!=
null
&&
lastEditDate
.
after
(
lastFetchDate
))
{
if
(
masterDataJson
.
apertureData
!=
null
&&
masterDataJson
.
apertureData
.
keys
().
hasNext
())
{
createApertureMasterDataJson
(
masterDataJson
.
apertureData
);
// updateApertureMasterDataJson(masterDataJson.apertureData);
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
}
// updateApertureMasterDataJson(masterDataJson.apertureData);
}
}
}
catch
(
Exception
e
)
{
...
...
ABVJE_Launcher_Android/AndroidManifest.xml
View file @
995d811f
...
...
@@ -193,7 +193,10 @@
android:hardwareAccelerated=
"false"
android:configChanges=
"keyboardHidden"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
/>
<activity
android:name=
"jp.agentec.abook.abv.ui.common.activity.ShowPushMessageDailogActivity"
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
>
<activity
android:name=
"jp.agentec.abook.abv.ui.common.activity.ShowPushMessageDailogActivity"
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
android:configChanges=
"orientation|screenSize"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
</intent-filter>
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
View file @
995d811f
...
...
@@ -259,9 +259,22 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
strParam
+=
"viewer.exportcommand=true#"
;
strParam
+=
"toolbar.etc=false#"
;
strParam
+=
"eform.inputeventcommand=true#"
;
strParam
+=
"eform.imagepicker_camera_show_choose_button=true#"
;
return
strParam
;
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
if
(
mOzReportViewer
!=
null
)
{
//requestCode: 呼び出されたActivityに対する識別コード
//resultCode: ユーザーの操作の結果コード
//data: ギャラリーで選択したイメージ情報のIntent
mOzReportViewer
.
onActivityResult
(
this
,
requestCode
,
resultCode
,
data
);
}
}
private
boolean
openViewer
(
String
param
)
{
if
(!(
mIsSkiaLoad
&&
mIsViewerLoad
))
{
if
(!
loadLibrary
())
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionOperationTaskCode.java
View file @
995d811f
package
jp
.
agentec
.
abook
.
abv
.
ui
.
viewer
.
view
;
import
android.content.Context
;
import
android.graphics.Canvas
;
import
android.graphics.Color
;
import
android.graphics.Typeface
;
import
android.text.TextUtils
;
...
...
@@ -62,4 +63,13 @@ public class ActionOperationTaskCode extends TextView {
this
.
startAnimation
(
animation
);
this
.
isAnimated
=
true
;
}
@Override
protected
void
dispatchDraw
(
Canvas
canvas
)
{
// アニメーション開始時、viewを描く
if
(
this
.
isAnimated
)
{
invalidate
();
}
super
.
dispatchDraw
(
canvas
);
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionOperationTaskIcon.java
View file @
995d811f
package
jp
.
agentec
.
abook
.
abv
.
ui
.
viewer
.
view
;
import
android.content.Context
;
import
android.graphics.Canvas
;
import
android.graphics.Color
;
import
android.view.animation.AlphaAnimation
;
import
android.view.animation.Animation
;
...
...
@@ -46,4 +47,13 @@ public class ActionOperationTaskIcon extends ImageView {
this
.
startAnimation
(
animation
);
this
.
isAnimated
=
true
;
}
@Override
protected
void
dispatchDraw
(
Canvas
canvas
)
{
// アニメーション開始時、viewを描く
if
(
this
.
isAnimated
)
{
invalidate
();
}
super
.
dispatchDraw
(
canvas
);
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionOperationTaskPin.java
View file @
995d811f
package
jp
.
agentec
.
abook
.
abv
.
ui
.
viewer
.
view
;
import
android.content.Context
;
import
android.graphics.Canvas
;
import
android.graphics.Color
;
import
android.graphics.Typeface
;
import
android.text.TextUtils
;
...
...
@@ -58,4 +59,13 @@ public class ActionOperationTaskPin extends ImageView {
this
.
startAnimation
(
animation
);
this
.
isAnimated
=
true
;
}
@Override
protected
void
dispatchDraw
(
Canvas
canvas
)
{
// アニメーション開始時、viewを描く
if
(
this
.
isAnimated
)
{
invalidate
();
}
super
.
dispatchDraw
(
canvas
);
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
995d811f
...
...
@@ -52,7 +52,7 @@ public class OperationTaskLayout extends RelativeLayout {
private
static
final
int
CODE_WIDTH
=
46
;
private
static
final
int
CODE_HEIGHT
=
26
;
public
static
final
int
HALF_WIDTH
=
34
0
;
public
static
final
int
HALF_WIDTH
=
40
0
;
public
static
final
int
COLOR_ORANGE
=
Color
.
rgb
(
255
,
119
,
0
);
public
static
final
int
COLOR_BLUE
=
Color
.
rgb
(
27
,
27
,
210
);
...
...
@@ -99,7 +99,14 @@ public class OperationTaskLayout extends RelativeLayout {
mWebView
.
loadUrl
(
linkUrl
);
RelativeLayout
.
LayoutParams
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PARENT
);
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PARENT
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PARENT
);
}
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_TOP
);
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_RIGHT
);
addView
(
mWebView
,
params
);
...
...
@@ -283,12 +290,12 @@ public class OperationTaskLayout extends RelativeLayout {
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
int
screenWidth
=
displayMetrics
.
widthPixels
;
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_RIGHT
);
}
...
...
@@ -340,12 +347,12 @@ public class OperationTaskLayout extends RelativeLayout {
public
void
setTaskFormPosition
(
float
screenX
,
boolean
isNormalSize
)
{
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
int
screenWidth
=
displayMetrics
.
widthPixels
;
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
if
(
screenX
<
screenWidth
/
2
)
{
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_RIGHT
);
...
...
@@ -360,14 +367,14 @@ public class OperationTaskLayout extends RelativeLayout {
public
void
setTaskFormPosition
(
String
taskKey
,
boolean
isNormalSize
)
{
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
setLayoutParams
(
params
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
if
(!
StringUtil
.
isNullOrEmpty
(
taskKey
))
{
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskKey
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ZoomRelativeLayout.java
View file @
995d811f
...
...
@@ -184,7 +184,6 @@ public class ZoomRelativeLayout extends RelativeLayout {
canvas
.
concat
(
imgMatrix
);
}
super
.
dispatchDraw
(
canvas
);
invalidate
();
canvas
.
restore
();
}
...
...
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