Commit 9013b5bd by Takumi Imai

フォームからの画面遷移

parent 1f4f6660
...@@ -22,7 +22,6 @@ RF.init = function () { ...@@ -22,7 +22,6 @@ RF.init = function () {
RF.loadCommon = function () { RF.loadCommon = function () {
TEMPLATE.loadHeader('#includedHeader'); TEMPLATE.loadHeader('#includedHeader');
TEMPLATE.loadConfirmModal('#includedConfirmModal'); TEMPLATE.loadConfirmModal('#includedConfirmModal');
}; };
/** /**
...@@ -30,7 +29,7 @@ RF.loadCommon = function () { ...@@ -30,7 +29,7 @@ RF.loadCommon = function () {
*/ */
RF.initBreadcrumb = function () { RF.initBreadcrumb = function () {
if (sessionStorage.activeHomePage == CONSTANT.PAGE_TAB.DASHBOARD) { if (sessionStorage.activeHomePage == CONSTANT.PAGE_TAB.DASHBOARD) {
if (sessionStorage.getItem("pickUpType") == CONSTANT.PICK_UP_TYPE.CONTINOUS_WORK) { if (sessionStorage.getItem('pickUpType') == CONSTANT.PICK_UP_TYPE.CONTINOUS_WORK) {
navs = [ navs = [
{ {
titleLang: CONSTANT.PAGE_NAME.DASHBOARD, titleLang: CONSTANT.PAGE_NAME.DASHBOARD,
...@@ -41,10 +40,10 @@ RF.initBreadcrumb = function () { ...@@ -41,10 +40,10 @@ RF.initBreadcrumb = function () {
href: CONSTANT.URL_TREE_NAME.PICKUP_CONTINUOS, href: CONSTANT.URL_TREE_NAME.PICKUP_CONTINUOS,
}, },
{ {
titleLang: CONSTANT.PAGE_NAME.REPORT_FORM titleLang: CONSTANT.PAGE_NAME.REPORT_FORM,
}, },
] ];
} else if (sessionStorage.getItem("pickUpType") == CONSTANT.PICK_UP_TYPE.WARNING_REPORT) { } else if (sessionStorage.getItem('pickUpType') == CONSTANT.PICK_UP_TYPE.WARNING_REPORT) {
navs = [ navs = [
{ {
titleLang: CONSTANT.PAGE_NAME.DASHBOARD, titleLang: CONSTANT.PAGE_NAME.DASHBOARD,
...@@ -55,9 +54,9 @@ RF.initBreadcrumb = function () { ...@@ -55,9 +54,9 @@ RF.initBreadcrumb = function () {
href: CONSTANT.URL_TREE_NAME.PICKUP_WARNING, href: CONSTANT.URL_TREE_NAME.PICKUP_WARNING,
}, },
{ {
titleLang: CONSTANT.PAGE_NAME.REPORT_FORM titleLang: CONSTANT.PAGE_NAME.REPORT_FORM,
}, },
] ];
} else { } else {
navs = [ navs = [
{ {
...@@ -70,17 +69,17 @@ RF.initBreadcrumb = function () { ...@@ -70,17 +69,17 @@ RF.initBreadcrumb = function () {
}, },
{ {
titleLang: CONSTANT.PAGE_NAME.REPORT_LIST, titleLang: CONSTANT.PAGE_NAME.REPORT_LIST,
href: CONSTANT.URL_TREE_NAME.REPORT_LIST href: CONSTANT.URL_TREE_NAME.REPORT_LIST,
}, },
{ {
titleLang: CONSTANT.PAGE_NAME.REPORT_FORM titleLang: CONSTANT.PAGE_NAME.REPORT_FORM,
}, },
] ];
} }
} else { } else {
if (sessionStorage.getItem("pickUpType")) sessionStorage.removeItem("pickUpType"); if (sessionStorage.getItem('pickUpType')) sessionStorage.removeItem('pickUpType');
if ((addReportFlg) && addReportFlg == 1) { if (addReportFlg && addReportFlg == 1) {
navs = [ navs = [
{ {
titleLang: CONSTANT.PAGE_NAME.OPERATION_LIST, titleLang: CONSTANT.PAGE_NAME.OPERATION_LIST,
...@@ -88,12 +87,12 @@ RF.initBreadcrumb = function () { ...@@ -88,12 +87,12 @@ RF.initBreadcrumb = function () {
}, },
{ {
titleLang: CONSTANT.PAGE_NAME.REPORT_LIST, titleLang: CONSTANT.PAGE_NAME.REPORT_LIST,
href: CONSTANT.URL_TREE_NAME.REPORT_LIST href: CONSTANT.URL_TREE_NAME.REPORT_LIST,
}, },
{ {
titleLang: CONSTANT.PAGE_NAME.REPORT_FORM titleLang: CONSTANT.PAGE_NAME.REPORT_FORM,
}, },
] ];
} else { } else {
navs = [ navs = [
{ {
...@@ -101,13 +100,13 @@ RF.initBreadcrumb = function () { ...@@ -101,13 +100,13 @@ RF.initBreadcrumb = function () {
href: CONSTANT.URL_TREE_NAME.OPERATION_LIST, href: CONSTANT.URL_TREE_NAME.OPERATION_LIST,
}, },
{ {
titleLang: CONSTANT.PAGE_NAME.REPORT_FORM titleLang: CONSTANT.PAGE_NAME.REPORT_FORM,
}, },
] ];
} }
} }
TEMPLATE.loadMainNavsTitle('#includedMainTitle', CONSTANT.PAGE_NAME.REPORT_FORM, navs, null); TEMPLATE.loadMainNavsTitle('#includedMainTitle', CONSTANT.PAGE_NAME.REPORT_FORM, navs, null);
} };
/** /**
* iinit form view * iinit form view
...@@ -143,3 +142,22 @@ RF.initFormView = function () { ...@@ -143,3 +142,22 @@ RF.initFormView = function () {
COMMON.avwScreenMove('index.html'); COMMON.avwScreenMove('index.html');
} }
}; };
/**
* back page url
*/
RF.backPage = function () {
if (sessionStorage.activeHomePage == CONSTANT.PAGE_TAB.DASHBOARD) {
if (addReportFlg == 1) {
COMMON.avwScreenMove('reportList.html');
} else {
COMMON.avwScreenMove('pickup.html');
}
} else {
if (addReportFlg == 1) {
COMMON.avwScreenMove('reportList.html');
} else {
COMMON.avwScreenMove('index.html');
}
}
};
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