Index: arms/html/pdService/content-container.html
===================================================================
diff -u -r2aa923e3578da192fc618c0e4fd14a9f54e383db -rf4d2237d490801c9ed9c4ba1110ccf20037ecd5a
--- arms/html/pdService/content-container.html (.../content-container.html) (revision 2aa923e3578da192fc618c0e4fd14a9f54e383db)
+++ arms/html/pdService/content-container.html (.../content-container.html) (revision f4d2237d490801c9ed9c4ba1110ccf20037ecd5a)
@@ -397,7 +397,7 @@
@@ -471,12 +471,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -519,12 +519,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -1134,12 +1134,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
Index: arms/js/pdService.js
===================================================================
diff -u -r2aa923e3578da192fc618c0e4fd14a9f54e383db -rf4d2237d490801c9ed9c4ba1110ccf20037ecd5a
--- arms/js/pdService.js (.../pdService.js) (revision 2aa923e3578da192fc618c0e4fd14a9f54e383db)
+++ arms/js/pdService.js (.../pdService.js) (revision f4d2237d490801c9ed9c4ba1110ccf20037ecd5a)
@@ -141,10 +141,18 @@
drawio();
- drawdb();
+ // drawdb();
// 스크립트 실행 로직을 이곳에 추가합니다.
- var 라따적용_클래스이름_배열 = ['.ladda-new-pdservice', 'ladda-new-pdservice-detail', '.ladda-delete-pdservice', ' ladda-delete-pdservice-detail'];
+ var 라따적용_클래스이름_배열 = [
+ '.ladda-new-pdservice',
+ '.ladda-edit-pdservice',
+ '.ladda-delete-pdservice',
+ '.ladda-new-pdservice-detail',
+ '.ladda-delete-pdservice-detail',
+ '.ladda-edit-pdservice-detail',
+ ];
+
laddaBtnSetting(라따적용_클래스이름_배열);
})
@@ -222,40 +230,40 @@
});
}
-function drawdb() {
- $("#btn_modal_product_detail_add_drawdb, #btn_product_detail_edit_drawdb, #btn_modal_product_detail_edit_drawdb, #btn_product_detail_view_drawdb").on("click", function () {
- const uuidManager = new UUIDManager();
- console.log(uuidManager.getUUID());
- if (this.id === 'btn_modal_product_detail_add_drawdb') {
- if(selectId == "" || selectId == undefined){
- jError("제품(서비스)을 선택해 주세요.");
- return false;
- }
- window.open('/reference/drawdb?id='+uuidManager.getUUID()+ '&mode=create', '_blank');
- } else if (this.id === 'btn_product_detail_edit_drawdb') {
- if(selectedDetailId == "" || selectedDetailId == undefined){
- jError("제품(서비스) 산출물을 선택해 주세요.");
- return false;
- }
- window.open('/reference/drawdb/?id=' + selectedDetailId + '&mode=update', '_blank');
- } else if (this.id === 'btn_modal_product_detail_edit_drawdb') {
- if(selectedDetailId == "" || selectedDetailId == undefined){
- jError("제품(서비스) 산출물을 선택해 주세요.");
- return false;
- }
- window.open('/reference/drawdb/?id=' + selectedDetailId + '&mode=update', '_blank');
- } else if (this.id === 'btn_product_detail_view_drawdb') {
- if(selectedDetailId == "" || selectedDetailId == undefined){
- jError("제품(서비스) 산출물을 선택해 주세요.");
- return false;
- }
- window.open('/reference/drawdb/?id=' + selectedDetailId + '&mode=view', '_blank');
- } else {
- jError("drawdb was clicked but id is not matched");
- return false;
- }
- });
-}
+// function drawdb() {
+// $("#btn_modal_product_detail_add_drawdb, #btn_product_detail_edit_drawdb, #btn_modal_product_detail_edit_drawdb, #btn_product_detail_view_drawdb").on("click", function () {
+// const uuidManager = new UUIDManager();
+// console.log(uuidManager.getUUID());
+// if (this.id === 'btn_modal_product_detail_add_drawdb') {
+// if(selectId == "" || selectId == undefined){
+// jError("제품(서비스)을 선택해 주세요.");
+// return false;
+// }
+// window.open('/reference/drawdb/editor?id='+uuidManager.getUUID()+ '&mode=create', '_blank');
+// } else if (this.id === 'btn_product_detail_edit_drawdb') {
+// if(selectedDetailId == "" || selectedDetailId == undefined){
+// jError("제품(서비스) 산출물을 선택해 주세요.");
+// return false;
+// }
+// window.open('/reference/drawdb/editor?id=' + selectedDetailId + '&mode=update', '_blank');
+// } else if (this.id === 'btn_modal_product_detail_edit_drawdb') {
+// if(selectedDetailId == "" || selectedDetailId == undefined){
+// jError("제품(서비스) 산출물을 선택해 주세요.");
+// return false;
+// }
+// window.open('/reference/drawdb/editor?id=' + selectedDetailId + '&mode=update', '_blank');
+// } else if (this.id === 'btn_product_detail_view_drawdb') {
+// if(selectedDetailId == "" || selectedDetailId == undefined){
+// jError("제품(서비스) 산출물을 선택해 주세요.");
+// return false;
+// }
+// window.open('/reference/drawdb/editor?id=' + selectedDetailId + '&mode=view', '_blank');
+// } else {
+// jError("drawdb was clicked but id is not matched");
+// return false;
+// }
+// });
+// }
window.onload = function() {
localStorage.removeItem('UUID');
@@ -971,11 +979,11 @@
requestParams.c_drawio_contents = drawioXML;
}
- var drawdbXML = localStorage.getItem("drawdb-" + uuid);
- console.log("product_detail_save_btn_click :: drawdbXML → ", drawdbXML);
- if(drawdbXML !== null) {
- requestParams.c_drawdb_contents = drawdbXML;
- }
+ // var drawdbXML = localStorage.getItem("drawdb-" + uuid);
+ // console.log("product_detail_save_btn_click :: drawdbXML → ", drawdbXML);
+ // if(drawdbXML !== null) {
+ // requestParams.c_drawdb_contents = drawdbXML;
+ // }
$.ajax({
url: "/auth-user/api/arms/pdServiceDetail/addNode.do/" + selectId,
@@ -990,7 +998,7 @@
pdServiceDataTableClick(selectId);
productServiceDetailDataLoad(selectId);
localStorage.removeItem("drawio-" + uuid);
- localStorage.removeItem("drawdb-" + uuid);
+ // localStorage.removeItem("drawdb-" + uuid);
uuidManager.removeUUID();
removeDrawIOConfig();
}
@@ -1156,11 +1164,11 @@
requestParams.c_drawio_contents = drawioXML;
}
- var drawdbXML = localStorage.getItem("drawdb-" + selectedDetailId);
- console.log("product_detail_update_btn_click :: btn_modal_product_detail_edit_submit :: drawdbXML → ", drawdbXML);
- if(drawdbXML !== null) {
- requestParams.c_drawdb_contents = drawdbXML;
- }
+ // var drawdbXML = localStorage.getItem("drawdb-" + selectedDetailId);
+ // console.log("product_detail_update_btn_click :: btn_modal_product_detail_edit_submit :: drawdbXML → ", drawdbXML);
+ // if(drawdbXML !== null) {
+ // requestParams.c_drawdb_contents = drawdbXML;
+ // }
$.ajax({
url: "/auth-user/api/arms/pdServiceDetail/updateNode.do",
@@ -1177,7 +1185,7 @@
}, 500);
}, 300);
localStorage.removeItem("drawio-" + tempSelectDetailId);
- localStorage.removeItem("drawdb-" + tempSelectDetailId);
+ // localStorage.removeItem("drawdb-" + tempSelectDetailId);
removeDrawIOConfig();
jSuccess(detailName + "의 데이터가 변경되었습니다.");
}
@@ -1213,11 +1221,11 @@
requestParams.c_drawio_contents = drawioXML;
}
- var drawdbXML = localStorage.getItem("drawdb-" + selectedDetailId);
- console.log("btn_product_detail_edit_submit :: drawdbXML → ", drawdbXML);
- if(drawdbXML !== null) {
- requestParams.c_drawdb_contents = drawdbXML;
- }
+ // var drawdbXML = localStorage.getItem("drawdb-" + selectedDetailId);
+ // console.log("btn_product_detail_edit_submit :: drawdbXML → ", drawdbXML);
+ // if(drawdbXML !== null) {
+ // requestParams.c_drawdb_contents = drawdbXML;
+ // }
$.ajax({
url: "/auth-user/api/arms/pdServiceDetail/updateNode.do",
@@ -1233,7 +1241,7 @@
}, 500);
}, 300);
localStorage.removeItem("drawio-" + tempSelectDetailId);
- localStorage.removeItem("drawdb-" + tempSelectDetailId);
+ // localStorage.removeItem("drawdb-" + tempSelectDetailId);
removeDrawIOConfig();
jSuccess(detailName + "의 데이터가 변경되었습니다.");
}