diff --git a/WebContent/WEB-INF/view/partMng/structureList.jsp b/WebContent/WEB-INF/view/partMng/structureList.jsp index 888a1fa..d0eb797 100644 --- a/WebContent/WEB-INF/view/partMng/structureList.jsp +++ b/WebContent/WEB-INF/view/partMng/structureList.jsp @@ -199,8 +199,9 @@ var columns = [ formatter: fnc_subInfoValueFormatter, cellClick:function(e, cell){ var objId = fnc_checkNull(cell.getData().OBJID); - // 바로 팝업 열기 (팝업창 내부에서 경고 처리) - fn_openSetStructure(objId); + var STATUS = fnc_checkNull(cell.getData().STATUS); + var viewMode = (STATUS != 'N') ? 'Y' : 'N'; + fn_openSetStructure(objId, viewMode); } }, @@ -496,8 +497,10 @@ function fn_openSetBomCopy(product_code){ /** * 구조등록 팝업 */ -function fn_openSetStructure(objId){ - window.open("/partMng/setStructurePopupMainFS.do?objId="+objId, "", "width=1880, height=900, resizable=yes"); +function fn_openSetStructure(objId, viewMode){ + var url = "/partMng/setStructurePopupMainFS.do?objId="+objId; + if(viewMode == 'Y') url += "&viewMode=Y"; + window.open(url, "", "width=1880, height=900, resizable=yes"); } /** * 배포사유 입력 팝업 diff --git a/WebContent/WEB-INF/view/partMng/structurePopupCenter.jsp b/WebContent/WEB-INF/view/partMng/structurePopupCenter.jsp index b3d943a..718e81c 100644 --- a/WebContent/WEB-INF/view/partMng/structurePopupCenter.jsp +++ b/WebContent/WEB-INF/view/partMng/structurePopupCenter.jsp @@ -323,7 +323,7 @@ $(function(){