|
@@ -404,7 +404,7 @@ $(() => {
|
|
|
});
|
|
|
|
|
|
// 시설물 정보를 읽어 온다.
|
|
|
- getData(commonUri + '/list', _managerData);
|
|
|
+ getData(commonUri, _managerData);
|
|
|
|
|
|
// 지도객체 생성
|
|
|
doMap();
|
|
@@ -521,20 +521,7 @@ $(() => {
|
|
|
onRowDblClick(e) {
|
|
|
_selectFcltNmbr = e.data.ixr_id;
|
|
|
selectFcltObject(_selectFcltNmbr);
|
|
|
- console.log(e.data);
|
|
|
- inputArr.map((item) => {
|
|
|
- if (item.select) {
|
|
|
- if ( nullChecker(e.data[item.column]) !== "") {
|
|
|
- item.box.setValue(e.data[item.column].toString());
|
|
|
- }
|
|
|
- else {
|
|
|
- item.box.setValue(null);
|
|
|
- }
|
|
|
- }
|
|
|
- else {
|
|
|
- item.box.setValue(e.data[item.column]);
|
|
|
- }
|
|
|
- });
|
|
|
+ boxPull(e.data);
|
|
|
|
|
|
btnArr.map((item) => {
|
|
|
item.box.option("disabled", item.dbdsb);
|
|
@@ -681,10 +668,10 @@ function saveEvent(type) {
|
|
|
});
|
|
|
|
|
|
const ixrIdVal = updateData.ixr_id;
|
|
|
- let result = postInsertUpdate("/api/scrs/tb_sc_ixr_mngm/" + ixrIdVal, updateData);
|
|
|
+ let result = postInsertUpdate(commonUri + "/" + ixrIdVal, updateData);
|
|
|
if (result > 0) {
|
|
|
insResultMsg(pageMsg);
|
|
|
- _managerData = refresh(_managerTable, _managerData, commonUri + '/list');
|
|
|
+ _managerData = refresh(_managerTable, _managerData, commonUri);
|
|
|
_managerTable.clearSelection();
|
|
|
_managerTable.refresh().done(function () {
|
|
|
_managerTable.selectRows(ixrIdVal, true).done(()=>{
|
|
@@ -705,13 +692,13 @@ function delEvent(){
|
|
|
+ ixrIdVal
|
|
|
+ "<br>선택하신 " + pageMsg + " 정보를 삭제하시겠습니까?").done((yes)=>{
|
|
|
if (yes === true) {
|
|
|
- const result = deleteData('/api/scrs/tb_sc_ixr_mngm', ixrIdVal);
|
|
|
+ const result = deleteData(commonUri, ixrIdVal);
|
|
|
if (result > 0) {
|
|
|
delResultMsg(pageMsg);
|
|
|
boxInit();
|
|
|
buttonReset("add", "unSelected");
|
|
|
_managerTable.option("focusedRowKey", null);
|
|
|
- _managerData = refresh(_managerTable, _managerData, commonUri + '/list');
|
|
|
+ _managerData = refresh(_managerTable, _managerData, commonUri);
|
|
|
deleteFcltObject(ixrIdVal);
|
|
|
}
|
|
|
}
|
|
@@ -737,10 +724,22 @@ function addEvent() {
|
|
|
_modalText.focus();
|
|
|
}
|
|
|
|
|
|
-function boxPull() {
|
|
|
- let selectedRow = _managerTable.getSelectedRowsData()[0];
|
|
|
+function boxPull(selectedRow) {
|
|
|
+ if (!selectedRow) {
|
|
|
+ selectedRow = _managerTable.getSelectedRowsData()[0];
|
|
|
+ }
|
|
|
inputArr.map((item) => {
|
|
|
- item.box.setValue(selectedRow[item.column]);
|
|
|
+ if (item.select) {
|
|
|
+ if ( nullChecker(selectedRow[item.column]) !== "") {
|
|
|
+ item.box.setValue(selectedRow[item.column].toString());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ item.box.setValue(null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ item.box.setValue(selectedRow[item.column]);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|