123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCHT00300_건진데이터마이닝그룹관리
- * Summary : 건진데이터마이닝 그룹관리
- * Programmer : 최정환
- * Date Written : 2007.06.19
- * History : 2007.06.19
- * Remark : 데이터마이닝 그룹관리 참조
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>건진데이터마이닝 그룹관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <healexamdtmnlrglist>
- <healexamdtmnlrggrup>
- <healexamdtmnlrgtitl/>
- <healexamdtmnlrgcd/>
- </healexamdtmnlrggrup>
- </healexamdtmnlrglist>
- <healexamdtmnmdllist>
- <healexamdtmnmdlgrup>
- <healexamdtmnmdltitl/>
- <healexamdtmnmdlcd/>
- <healexamdtmnlrgcd/>
- </healexamdtmnmdlgrup>
- </healexamdtmnmdllist>
- <healexamdtmnsmllist>
- <healexamdtmnsmlgrup>
- <healexamdtmnsmltitl/>
- <healexamdtmnsmlcd/>
- <healexamdtmnlrgcd/>
- <healexamdtmnmdlcd/>
- </healexamdtmnsmlgrup>
- </healexamdtmnsmllist>
- </list>
- </main>
- <send>
- <healexamdtmnlrgcd/>
- <healexamdtmnlrglist/>
- <healexamdtmnmdlcd/>
- <healexamdtmnmdllist/>
- <healexamdtmnsmlcd/>
- <healexamdtmnsmllist/>
- </send>
- <temp>
- <healexamdtmnlrgcd/>
- </temp>
- </root>
- </instance>
- <submission id="TRCHT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/healexamdtmnlrglist"/>
- <submission id="TRCHT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/healexamdtmnmdllist"/>
- <submission id="TRCHT00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/healexamdtmnsmllist"/>
- <submission id="TXCHT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root"/>
- <submission id="TXCHT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXCHT00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/list/healexamdtmnlrglist/healexamdtmnlrggrup"); // 건진데이터마이닝 대그룹
- model.removenodeset("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup"); // 건진데이터마이닝 중그룹
- model.removenodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup"); // 건진데이터마이닝 소그룹
-
- submit("TRCHT00301");
- model.SetFocus("grd_healexamdtmnlrglist");
- grd_healexamdtmnlrglist.dispatch("onrowchanged"); // 선택된 행의 인덱스가 바뀌면 onrowchanged 이벤트 발생됨.
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 대그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClicklrg(grid){
- model.setValue("/root/send/healexamdtmnlrglist", grid.getUpdateData());
- if ( submit("TXCHT00301") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.removeNodeset("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup");
- model.removeNodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
- submit("TRCHT00301"); // 저장하면 DB에 반영된 내용을 가져옴
- model.refresh();
- }
- }
-
- // 중그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClickmdl(grid){
- model.setValue("/root/send/healexamdtmnmdllist", grid.getUpdateData());
- if ( submit("TXCHT00302") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.removeNodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
- submit("TRCHT00302");
- }
- }
-
- // 건진데이터마이닝 소그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClicksml(grid){
- model.setValue("/root/send/healexamdtmnsmllist", grid.getUpdateData());
- if ( submit("TXCHT00303") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRCHT00303");
- model.refresh();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="659" pageheight="460" style="border-color:#c7a3cf; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:630px; height:13px; ">건진데이터마이닝 그룹관리</caption>
- <group id="group1" scroll="auto" style="left:5px; top:13px; width:213px; height:420px; ">
- <button id="btn_add_healexamdtmnlrg" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_healexamdtmnlrglist");
- grd_healexamdtmnlrglist.addrow();
- grd_healexamdtmnlrglist.editCell(); // 입력대기상태
- ]]>
- </script>
- </button>
- <button id="btn_delete_healexamdtmnlrg" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_healexamdtmnlrglist.row;
- var healexamdtmnlrgcd = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgcd"));
-
- if (healexamdtmnlrgcd != "") {
- var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
- if(rtn == 6){
- deleteSelectedRows(grd_healexamdtmnlrglist, false);
- // grd_healexamdtmnlrglist.deleteRow(grd_healexamdtmnlrglist.row);
- }
- } else
- {
- messageBox("대분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_healexamdtmnlrg" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClicklrg(grd_healexamdtmnlrglist);
- ]]>
- </script>
- </button>
- <line id="line12" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
- <datagrid id="grd_healexamdtmnlrglist" nodeset="/root/main/list/healexamdtmnlrglist/healexamdtmnlrggrup" caption="대그룹 제목^대그룹코드" colwidth="191,0" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:0px; top:29px; width:213px; height:378px; ">
- <col ref="healexamdtmnlrgtitl" type="input"/>
- <col ref="healexamdtmnlrgcd" type="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 선택한 대그룹에 속한 중그룹을 가져온다.
- var row = grd_healexamdtmnlrglist.row;
- var healexamdtmnlrgcd = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgcd"));
- var healexamdtmnlrgnm = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgtitl"));
-
- if (healexamdtmnlrgnm != "" && row >0 ) {
- model.setValue("/root/send/healexamdtmnlrgcd", healexamdtmnlrgcd);
-
- model.removenodeset("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup");
- model.removenodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
- submit("TRCHT00302");
- } else {
- }
- grd_healexamdtmnlrglist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:223px; top:13px; width:213px; height:420px; ">
- <button id="btn_add_healexamdtmnmdl" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_healexamdtmnmdllist");
-
- var row = grd_healexamdtmnlrglist.row;
- var healexamdtmnlrgcd = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgcd"));
-
- if (healexamdtmnlrgcd != "") {
- grd_healexamdtmnmdllist.addrow();
- grd_healexamdtmnmdllist.editCell();
- model.setValue("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup["+grd_healexamdtmnmdllist.row+"]/healexamdtmnlrgcd",healexamdtmnlrgcd);
- } else {
- messageBox("대분류가 선택되지 ", "E007");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_delete_healexamdtmnmdl" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_healexamdtmnmdllist.row;
- var healexamdtmnmdlcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdlcd"));
-
- if (healexamdtmnmdlcd != "") {
- var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
- if(rtn == 6){
- deleteSelectedRows(grd_healexamdtmnmdllist, false);
- // grd_healexamdtmnmdllist.deleteRow(grd_healexamdtmnmdllist.row);
- }
- } else
- {
- messageBox("중분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_healexamdtmnmdl" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClickmdl(grd_healexamdtmnmdllist);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
- <datagrid id="grd_healexamdtmnmdllist" nodeset="/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup" caption="중그룹 제목^중그룹 코드^" colwidth="191,0,0" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:0px; top:29px; width:213px; height:378px; ">
- <col ref="healexamdtmnmdltitl" type="input"/>
- <col ref="healexamdtmnmdlcd" type="hidden"/>
- <col ref="healexamdtmnlrgcd"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 선택한 중그룹에 속한 소그룹을 가져온다.
- var row = grd_healexamdtmnmdllist.row;
- var healexamdtmnmdlcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdlcd"));
- var healexamdtmnlrgcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnlrgcd"));
- var healexamdtmnmdlnm = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdltitl"));
-
- if ( healexamdtmnmdlnm != "" ){
- model.setValue("/root/send/healexamdtmnmdlcd", healexamdtmnmdlcd);
- model.setValue("/root/send/healexamdtmnlrgcd", healexamdtmnlrgcd);
-
- model.removenodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
- submit("TRCHT00303");
- } else {
- }
- grd_healexamdtmnmdllist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group3" scroll="auto" style="left:441px; top:13px; width:213px; height:420px; ">
- <button id="btn_add_healexamdtmnsml" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_healexamdtmnsmllist");
-
- var row = grd_healexamdtmnmdllist.row;
- var healexamdtmnlrgcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnlrgcd"));
- var healexamdtmnmdlcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdlcd"));
-
- if (healexamdtmnmdlcd != "") {
- grd_healexamdtmnsmllist.addrow();
- grd_healexamdtmnsmllist.editCell();
- model.setValue("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup["+grd_healexamdtmnsmllist.row+"]/healexamdtmnlrgcd",healexamdtmnlrgcd);
- model.setValue("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup["+grd_healexamdtmnsmllist.row+"]/healexamdtmnmdlcd",healexamdtmnmdlcd);
- } else {
- messageBox("중분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_delete_healexamdtmnsml" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_healexamdtmnlrglist.deleteRow(grd_healexamdtmnlrglist.row, true);
-
- var row = grd_healexamdtmnsmllist.row;
- var healexamdtmnsmlcd = grd_healexamdtmnsmllist.valueMatrix( row, grd_healexamdtmnsmllist.colRef("healexamdtmnsmlcd"));
-
- if (healexamdtmnsmlcd != "") {
- var rtn = messageBox("소그룹을 ", "Q001");
- if(rtn == 6){
- deleteSelectedRows(grd_healexamdtmnsmllist, false);
- // grd_healexamdtmnsmllist.deleteRow(grd_healexamdtmnsmllist.row);
- }
- } else
- {
- messageBox("소분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_healexamdtmnsml" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClicksml(grd_healexamdtmnsmllist);
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
- <datagrid id="grd_healexamdtmnsmllist" nodeset="/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup" caption="소그룹 제목^소그룹코드^^" colwidth="191,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:29px; width:213px; height:378px; ">
- <col ref="healexamdtmnsmltitl" type="input"/>
- <col ref="healexamdtmnsmlcd" type="hidden"/>
- <col ref="healexamdtmnlrgcd"/>
- <col ref="healexamdtmnmdlcd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:420px; width:659px; height:27px; ">
- <button id="button8" class="btn4_letter2" style="left:598px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.fInitGrid();
- opener.javascript.fHealExamDtmnLrg();
- window.close();
- opener.activate();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|