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
0c669d6c
Commit
0c669d6c
authored
Jul 06, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使わないメソッド削除
parent
9a530a5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
196 deletions
+70
-196
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
+4
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+66
-193
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationGroupMasterListHelper.java
+0
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
View file @
0c669d6c
...
...
@@ -947,7 +947,10 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
// プッシュメッセージで未読がなければ、下辺ツールバーのコミュニケーションボタンのバッジを外す
List
<
PushMessageDto
>
checkPushMessageList
=
mPushMessageListAdapter
.
getItems
();
if
(!
checkUnReadCommunication
(
checkPushMessageList
))
{
communicationButton
.
setImageResource
(
R
.
drawable
.
ic_communication_menu
);
//OperationListActivityのwebview化のためnullチェック(OperationListActivityのナビゲーションはWebview内に含んでいる)
if
(
communicationButton
!=
null
)
{
communicationButton
.
setImageResource
(
R
.
drawable
.
ic_communication_menu
);
}
}
}
});
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
0c669d6c
...
...
@@ -5,18 +5,11 @@ import android.app.Dialog;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.res.Configuration
;
import
android.database.Cursor
;
import
android.graphics.Bitmap
;
import
android.graphics.BitmapFactory
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.os.Environment
;
import
android.provider.MediaStore
;
import
android.util.Log
;
import
android.view.Gravity
;
import
android.view.KeyEvent
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.Window
;
import
android.webkit.JavascriptInterface
;
import
android.webkit.WebSettings
;
...
...
@@ -26,9 +19,7 @@ import android.widget.AdapterView;
import
android.widget.ArrayAdapter
;
import
android.widget.DatePicker
;
import
android.widget.EditText
;
import
android.widget.FrameLayout
;
import
android.widget.GridView
;
import
android.widget.ImageButton
;
import
android.widget.ListView
;
import
android.widget.RadioGroup
;
import
android.widget.TextView
;
...
...
@@ -120,7 +111,6 @@ import jp.agentec.adf.util.StringUtil;
/**
* Created by leej on 2018/08/17
*/
public
class
OperationListActivity
extends
ABVUIActivity
{
private
static
final
String
TAG
=
"OperationListActivity"
;
...
...
@@ -129,16 +119,6 @@ public class OperationListActivity extends ABVUIActivity {
private
final
String
OPERATION_LIST_PAGE
=
"file:///android_asset/check/app/index.html?"
;
private
JsInf
jsInf
=
new
JsInf
();
private
ImageButton
mViewModeButton
;
// パンネル・リスト表示ボタン
private
ImageButton
mSearchButton
;
// 検索ボタン
private
ImageButton
mCommonContentButton
;
// 共通資料ボタン
private
ImageButton
mOperationBatchSyncButton
;
// カテゴリの一括同期ボタン
private
ImageButton
mCategoryLocationButton
;
// カテゴリ選択ボタン
private
ImageButton
mQuickReportPrintButton
;
// 簡易帳票印刷ボタン
private
TextView
mOperationTitle
;
// 一覧のタイトル
// 検索画面の条件(文字列)
public
String
mSearchWord
;
// 検索画面の値(作業名)
public
String
mStartDateStr
;
// 検索画面の値(作業開始日)
...
...
@@ -177,27 +157,6 @@ public class OperationListActivity extends ABVUIActivity {
private
static
final
int
SUB_DIVICE_IMAGE_LIST_ACTIVITY
=
1001
;
private
Long
mSelectedOperationId
;
// ビューの作成
private
class
ReloadHandler
implements
Runnable
{
@Override
public
void
run
()
{
View
child
=
mListHelper
.
getOperationView
();
ViewGroup
parent
=
(
ViewGroup
)
child
.
getParent
();
if
(
parent
!=
null
)
{
parent
.
removeView
(
child
);
}
FrameLayout
vg
=
(
FrameLayout
)
findViewById
(
R
.
id
.
operation_list_layout
);
vg
.
removeAllViews
();
vg
.
addView
(
child
);
// ツールバーのビューモードイメージ変更
if
(
getABVUIDataCache
().
getViewMode
()
==
AppDefType
.
ViewMode
.
PANEL
)
{
mViewModeButton
.
setImageResource
(
R
.
drawable
.
ic_display_list
);
}
else
{
mViewModeButton
.
setImageResource
(
R
.
drawable
.
ic_display_pannel
);
}
closeProgressPopup
();
}
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
...
...
@@ -234,11 +193,11 @@ public class OperationListActivity extends ABVUIActivity {
mCheckWebView
.
postUrl
(
OPERATION_LIST_PAGE
+
StringUtil
.
join
(
"&"
,
paramList
),
null
);
mListHelper
=
getListHelper
();
updateNeedSyncRoutineOperation
();
mOperationGroupMasterServiceOperationFlg
=
ABVDataCache
.
getInstance
().
serviceOption
.
isOperationGroupMaster
();
//
// サービスオプション(作業種別使用)をセット
//
mOperationGroupMasterServiceOperationFlg = ABVDataCache.getInstance().serviceOption.isOperationGroupMaster();
// サービスオプション(作業種別使用)をセット
mOperationGroupMasterServiceOperationFlg
=
ABVDataCache
.
getInstance
().
serviceOption
.
isOperationGroupMaster
();
//TODO Control print button in Webview
// if (ABVDataCache.getInstance().serviceOption.isUnableIOReport()) {
// // 簡易帳票印刷ボタン
// mQuickReportPrintButton.setOnClickListener(new View.OnClickListener() {
...
...
@@ -277,63 +236,64 @@ public class OperationListActivity extends ABVUIActivity {
// showBatchSyncDialog();
// }
// });
//
//
// if (!StringUtil.isNullOrEmpty(getIntent().getStringExtra(AppDefType.PushMessageKey.operationId))) {
// final long operationId = Long.parseLong(getIntent().getStringExtra(AppDefType.PushMessageKey.operationId));
// String message = getIntent().getStringExtra(AppDefType.PushMessageKey.message);
// if (operationId > 0) {
// final ABookAlertDialog alertDialog = AlertDialogUtil.createAlertDialog(this, getRString(R.string.app_name), message);
// // リソースパターンの適用
// alertDialog.setPositiveButton(PatternStringUtil.patternToInt(getApplicationContext(), R.string.work_report, getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)),
// new DialogInterface.OnClickListener() {
// @Override
// public void onClick(DialogInterface dialog, int whichButton) {
// if (contentRefresher.isRefreshing()) {
// // リソースパターンの適用
// ErrorMessage.showErrorMessageToast(OperationListActivity.this, PatternStringUtil.patternToInt(getApplicationContext(),
// R.string.msg_routineTask_report_disable_refreshing,
// getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)));
// } else if(ActivityHandlingHelper.getInstance().isMeetingConnected()) {
// // リソースパターンの適用
// ErrorMessage.showErrorMessageToast(OperationListActivity.this, PatternStringUtil.patternToInt(getApplicationContext(),
// R.string.msg_routineTask_report_disable_meeting_room,
// getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)));
// } else if (isShowingBatchSync()) {
// // 一括同期中は移動しない
// ErrorMessage.showErrorMessageToast(OperationListActivity.this, getString(R.string.msg_batch_sync_move_operation_view));
// } else {
// OperationDto operationDto = mOperationLogic.getOperation(operationId);
//
// if (operationDto == null) {
// // リソースパターンの適用
// ErrorMessage.showErrorMessageToast(OperationListActivity.this, PatternStringUtil.patternToInt(getApplicationContext(),
// R.string.msg_routineTask_report_disable_no_operation,
// getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)));
// } else if (operationDto.needSyncFlg) {
// // リソースパターンの適用
// ErrorMessage.showErrorMessageToast(OperationListActivity.this, PatternStringUtil.patternToInt(getApplicationContext(),
// R.string.msg_routineTask_report_disable_not_updated,
// getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)));
// } else {
// startTaskDirectionOrReportView(operationDto);
// }
// }
//
// dialog.dismiss();
// }
// });
//
// alertDialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
// @Override
// public void onClick(DialogInterface dialog, int whichButton) {
// dialog.dismiss();
// }
// });
//
// alertDialog.show();
// }
// }
if
(!
StringUtil
.
isNullOrEmpty
(
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
operationId
)))
{
final
long
operationId
=
Long
.
parseLong
(
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
operationId
));
String
message
=
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
message
);
if
(
operationId
>
0
)
{
final
ABookAlertDialog
alertDialog
=
AlertDialogUtil
.
createAlertDialog
(
this
,
getRString
(
R
.
string
.
app_name
),
message
);
// リソースパターンの適用
alertDialog
.
setPositiveButton
(
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
work_report
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)),
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
whichButton
)
{
if
(
contentRefresher
.
isRefreshing
())
{
// リソースパターンの適用
ErrorMessage
.
showErrorMessageToast
(
OperationListActivity
.
this
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
msg_routineTask_report_disable_refreshing
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
else
if
(
ActivityHandlingHelper
.
getInstance
().
isMeetingConnected
())
{
// リソースパターンの適用
ErrorMessage
.
showErrorMessageToast
(
OperationListActivity
.
this
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
msg_routineTask_report_disable_meeting_room
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
else
if
(
isShowingBatchSync
())
{
// 一括同期中は移動しない
ErrorMessage
.
showErrorMessageToast
(
OperationListActivity
.
this
,
getString
(
R
.
string
.
msg_batch_sync_move_operation_view
));
}
else
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
operationId
);
if
(
operationDto
==
null
)
{
// リソースパターンの適用
ErrorMessage
.
showErrorMessageToast
(
OperationListActivity
.
this
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
msg_routineTask_report_disable_no_operation
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
else
if
(
operationDto
.
needSyncFlg
)
{
// リソースパターンの適用
ErrorMessage
.
showErrorMessageToast
(
OperationListActivity
.
this
,
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
msg_routineTask_report_disable_not_updated
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
}
else
{
startTaskDirectionOrReportView
(
operationDto
);
}
}
dialog
.
dismiss
();
}
});
alertDialog
.
setNegativeButton
(
R
.
string
.
cancel
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
whichButton
)
{
dialog
.
dismiss
();
}
});
alertDialog
.
show
();
}
}
// // プッシュメッセージがある場合
// else if (!StringUtil.isNullOrEmpty(getIntent().getStringExtra(AppDefType.ChatPushMessageKey.roomName)) &&
// getIntent().getLongExtra(AppDefType.ChatPushMessageKey.roomId, '0') > 0) {
...
...
@@ -341,7 +301,6 @@ public class OperationListActivity extends ABVUIActivity {
// getIntent().getLongExtra(AppDefType.ChatPushMessageKey.roomId, '0'),
// getIntent().getStringExtra(AppDefType.ChatPushMessageKey.roomName));
// }
//
}
...
...
@@ -470,52 +429,6 @@ public class OperationListActivity extends ABVUIActivity {
startActivity
(
intent
,
NaviConsts
.
Right
);
}
// ツールバーの設定
private
void
configurationToolbarIcon
()
{
// バッチを付けるか判定して、イメージを設定
setCommunicationImageButton
();
// 作業種別表示・非表示
if
(
mOperationGroupMasterServiceOperationFlg
)
{
mCategoryLocationButton
.
setVisibility
(
View
.
VISIBLE
);
// アイコンの変更
if
(
getABVUIDataCache
().
getOperationGroupMasterMode
()
==
OperationLocationType
.
CATEGORY
)
{
setCategoryImage
(
true
);
mOperationTitle
.
setText
(
R
.
string
.
title_category
);
// 検索ワード削除
clearSearch
();
// 検索ボタンを無効にする
mSearchButton
.
setEnabled
(
false
);
// 一括同期ボタン表示
mOperationBatchSyncButton
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
// 全て
// 検索ボタンを活性化
mSearchButton
.
setEnabled
(
true
);
setCategoryImage
(
false
);
// 一括同期ボタン非表示
mOperationBatchSyncButton
.
setVisibility
(
View
.
GONE
);
mOperationTitle
.
setText
(
R
.
string
.
title_all_operation
);
}
}
else
{
mOperationTitle
.
setText
(
R
.
string
.
title_all_operation
);
// アイコン非表示
setCategoryImage
(
false
);
mCategoryLocationButton
.
setVisibility
(
View
.
GONE
);
// 一括同期ボタンを非表示
mOperationBatchSyncButton
.
setVisibility
(
View
.
GONE
);
// 検索ボタンを活性化
mSearchButton
.
setEnabled
(
true
);
}
// 検索済みの場合、タイトルを「検索結果」にする
if
(
isSearched
())
{
mOperationTitle
.
setText
(
R
.
string
.
search_result
);
}
}
// 検索ワードのクリア
private
void
clearSearch
()
{
mSearchWord
=
null
;
...
...
@@ -529,18 +442,13 @@ public class OperationListActivity extends ABVUIActivity {
return
!(
StringUtil
.
isNullOrEmpty
(
mSearchWord
)
&&
StringUtil
.
isNullOrEmpty
(
mStartDateStr
)
&&
StringUtil
.
isNullOrEmpty
(
mEndDateStr
));
}
// カテゴリのアイコンイメージ設定
private
void
setCategoryImage
(
boolean
isCategory
)
{
mCategoryLocationButton
.
setImageResource
(
isCategory
?
R
.
drawable
.
ic_category_on
:
R
.
drawable
.
ic_category_off
);
}
/**
* ビューを作り直す。
*/
public
void
setOperationListView
()
{
mListHelper
=
getListHelper
();
//setPagereLoad
//handler.post(new ReloadHandler());
screenRefresh
();
}
...
...
@@ -560,19 +468,13 @@ public class OperationListActivity extends ABVUIActivity {
// 絞り検索マスタデータ最新更新する時fetchDateをローカルに保存する。
setApertureMasterDataFetchDate
();
if
(
mOperationGroupMasterServiceOperationFlg
==
ABVDataCache
.
getInstance
().
serviceOption
.
isOperationGroupMaster
())
{
// サービスオプションが変わってない場合は、ビューは作らずにデータのみ更新
screenRefresh
();
}
else
{
if
(
mOperationGroupMasterServiceOperationFlg
!=
ABVDataCache
.
getInstance
().
serviceOption
.
isOperationGroupMaster
())
{
// 初期化
getABVUIDataCache
().
clearOperationGroupMaster
();
mOperationGroupMasterServiceOperationFlg
=
ABVDataCache
.
getInstance
().
serviceOption
.
isOperationGroupMaster
();
// 作業種別の選択画面を閉じる
closeOperationGroupMasterDialog
();
// ビューを作り直す
setOperationListView
();
}
screenRefresh
();
}
}
});
...
...
@@ -588,7 +490,7 @@ public class OperationListActivity extends ABVUIActivity {
@Override
public
void
onResume
()
{
showProgressPopup
();
//
showProgressPopup();
Logger
.
i
(
TAG
,
"onResume:start"
);
super
.
onResume
();
//アプリロック状態の場合、何もしない。
...
...
@@ -617,7 +519,7 @@ public class OperationListActivity extends ABVUIActivity {
public
void
run
()
{
try
{
createJsonForOperationList
(
getCacheDir
().
getAbsolutePath
());
closeProgressPopup
();
//
closeProgressPopup();
}
catch
(
Exception
e
)
{
Logger
.
d
(
"Update error"
);
}
...
...
@@ -1677,15 +1579,6 @@ public class OperationListActivity extends ABVUIActivity {
}
/**
* 作業種別選択画面を閉じる処理
*/
public
void
closeOperationGroupMasterDialog
()
{
if
(
mShowDialog
!=
null
&&
mShowDialog
.
isShowing
())
{
mShowDialog
.
dismiss
();
}
}
/**
* 絞り検索の日付を設定
*/
private
void
setApertureMasterDataFetchDate
()
{
...
...
@@ -1794,19 +1687,6 @@ public class OperationListActivity extends ABVUIActivity {
return
true
;
}
/**
* 一括同期の活性化・非活性化チェック
*/
public
void
checkBatchNeedSyncButton
(
Integer
operationGroupMasterId
)
{
if
(
mOperationDao
.
hasNeedSyncOperationByGroupMasterId
(
operationGroupMasterId
))
{
// 選択したカテゴリ一覧でneedSyncFlgがtrueの作業が存在すれば、活性化する
mOperationBatchSyncButton
.
setEnabled
(
true
);
}
else
{
// 一括同期ボタンを非活性化する
mOperationBatchSyncButton
.
setEnabled
(
false
);
}
}
@Override
public
void
onDestroy
()
{
Logger
.
d
(
TAG
,
"onDestroy"
);
...
...
@@ -1986,11 +1866,6 @@ public class OperationListActivity extends ABVUIActivity {
showProgressPopup
();
setOperationListView
();
}
/*if (getABVUIDataCache().getOperationGroupMasterMode() == OperationLocationType.CATEGORY) {
//作業種別モードの場合は、作業種別選択ダイアログ画面を表示
showOperationGroupMasterDialog(true);
}*/
}
/**
...
...
@@ -2012,14 +1887,12 @@ public class OperationListActivity extends ABVUIActivity {
public
void
screenRefresh
()
{
showProgressPopup
();
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
try
{
createJsonForOperationList
(
getCacheDir
().
getAbsolutePath
());
mCheckWebView
.
loadUrl
(
"javascript:CHK.initReportApp();"
);
closeProgressPopup
();
}
catch
(
Exception
e
)
{
Logger
.
d
(
"Update error"
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationGroupMasterListHelper.java
View file @
0c669d6c
...
...
@@ -68,11 +68,9 @@ public class OperationGroupMasterListHelper extends CategoryOperationListHelper<
// クリアフラグをfalseにセット
ABVEnvironment
.
getInstance
().
setOperationGroupMasterClearFlg
(
false
);
// 作業種別の選択画面を閉じる
mAppActivity
.
closeOperationGroupMasterDialog
();
}
OperationGroupMasterDto
peekOperationGroupMasterDto
=
stack
.
peek
();
mAppActivity
.
checkBatchNeedSyncButton
(
peekOperationGroupMasterDto
.
operationGroupMasterId
);
int
operationSortType
=
mAppActivity
.
getSortCondition
();
OperationSortingType
operationSortingType
=
OperationSortingType
.
parse
(
operationSortType
);
// 作業種別IDで紐づく作業リストを取得
...
...
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