Commit e703212b by Yujin Seo

#42180 作業一覧対応

parent ef965418
...@@ -120,6 +120,7 @@ CHK_L.init = function() { ...@@ -120,6 +120,7 @@ CHK_L.init = function() {
} }
}); });
CHK.createOperationListBySavedSortType();
CHK_L.sendAppCommand("finishInit"); CHK_L.sendAppCommand("finishInit");
} }
......
...@@ -138,6 +138,7 @@ CHK.apiCmd = { ...@@ -138,6 +138,7 @@ CHK.apiCmd = {
goPanoramaEdit: "goPanoramaEdit", //パノラマ作業資料編集 goPanoramaEdit: "goPanoramaEdit", //パノラマ作業資料編集
refreshContent: "refreshContent", //新着更新 refreshContent: "refreshContent", //新着更新
resetSearch: "resetSearch", //検索条件初期化 resetSearch: "resetSearch", //検索条件初期化
saveSortType: "saveSortType", //並び替え保存
editAttached: "editAttached", //添付ファイル編集 editAttached: "editAttached", //添付ファイル編集
saveAttached: "saveAttached", //添付ファイル保存 saveAttached: "saveAttached", //添付ファイル保存
insertReport: "insertTaskReport", //作業報告保存 insertReport: "insertTaskReport", //作業報告保存
...@@ -275,10 +276,15 @@ CHK.initCommon = function() { ...@@ -275,10 +276,15 @@ CHK.initCommon = function() {
CHK.isWindows = urlParam.app && urlParam.app == "windows"; // windowsアプリの対応追加 v1.1.0 CHK.isWindows = urlParam.app && urlParam.app == "windows"; // windowsアプリの対応追加 v1.1.0
CHK.isAndroid = urlParam.app && urlParam.app == "android"; CHK.isAndroid = urlParam.app && urlParam.app == "android";
CHK.isIOS = urlParam.app && urlParam.app == "ios"; CHK.isIOS = urlParam.app && urlParam.app == "ios";
CHK.sortIndex = urlParam.sortIndex;
// ウェブの場合、作業一覧の表示広さを変更 // ウェブの場合、作業一覧の表示広さを変更
if (CHK.isWeb) { if (CHK.isWeb) {
$("#checkList").addClass("web"); $("#checkList").addClass("web");
} }
// Windowsの場合、RFID未使用
if (CHK.isWindows) {
$("#rfidScanButton").parent().hide();
}
CHK.debug = urlParam.debug; CHK.debug = urlParam.debug;
CHK.isMobile = urlParam.mobile_flg && urlParam.mobile_flg == "1"; CHK.isMobile = urlParam.mobile_flg && urlParam.mobile_flg == "1";
if (CHK.isCms) { if (CHK.isCms) {
...@@ -2802,6 +2808,11 @@ CHK.createCategory = function(operationGroupMasterList) { ...@@ -2802,6 +2808,11 @@ CHK.createCategory = function(operationGroupMasterList) {
sortIndex = CHK_iOS.getSortType(); sortIndex = CHK_iOS.getSortType();
} else if (CHK.isAndroid) { } else if (CHK.isAndroid) {
sortIndex = android.getSortType(); sortIndex = android.getSortType();
} else if (CHK.isWindows) {
if (CHK.sortIndex !== undefined) {
console.log("CHK.sortIndex:" + CHK.sortIndex);
sortIndex = CHK.sortIndex;
}
} }
let sortType = document.getElementsByClassName("sort-type")[sortIndex]; let sortType = document.getElementsByClassName("sort-type")[sortIndex];
CHK.changeSortType(sortType); CHK.changeSortType(sortType);
...@@ -2828,6 +2839,11 @@ CHK.createOperationList = function(operationList, isSearched = false) { ...@@ -2828,6 +2839,11 @@ CHK.createOperationList = function(operationList, isSearched = false) {
webkit.messageHandlers.saveSortType.postMessage(sortType); webkit.messageHandlers.saveSortType.postMessage(sortType);
} else if (CHK.isAndroid) { } else if (CHK.isAndroid) {
android.setSortType(sortType); android.setSortType(sortType);
} else {
var param = {};
param.cmd = CHK.getCommand("saveSortType");
param.sortType = sortType;
CHK.sendABookCheckApi(param);
} }
} }
switch(sortType) { switch(sortType) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment