123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <cond>
- <refcls/>
- <supcdid/>
- </cond>
- <supcodeinfo>
- <supcodelist>
- <supcdid/>
- <suphngnm/>
- <supengnm/>
- <endyn/>
- </supcodelist>
- <temp>
- <maxid/>
- </temp>
- </supcodeinfo>
- <lowcodeinfo>
- <lowcodelist>
- <supcdid/>
- <cdid/>
- <hngnm/>
- <engnm/>
- <refseqno/>
- <lowcdid/>
- <endyn/>
- </lowcodelist>
- <temp>
- <maxid/>
- </temp>
- </lowcodeinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removenode("/root/main/supcodeinfo/supcodelist");
- model.removenode("/root/main/lowcodeinfo/lowcodelist");
- model.refresh();
- ]]>
- </script>
- <submission id="TRMNH04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/supcodeinfo"/>
- <submission id="TXMNH04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/supcodeinfo"/>
- <submission id="TRMNH04402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/lowcodeinfo"/>
- <submission id="TXMNH04402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lowcodeinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH04400.js"/>
- </xhtml:head>
- <xhtml:body guideline="2,295;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="group5" style="left:0px; top:0px; width:1195px; height:720px; ">
- <datagrid id="grd_supcodelist" nodeset="/root/main/supcodeinfo/supcodelist" allowbigselection="false" allowselection="false" autoresize="true" caption="코드군ID^코드군명^코드영문명^종료여부" colsep="^" colwidth="70, 110, 110, 70" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" navindex="7" style="left:0px; top:80px; width:415px; height:635px; ">
- <col ref="supcdid" maxlength="5" style="text-align:center; "/>
- <col ref="suphngnm" type="input" maxlength="50" style="text-align:center; "/>
- <col ref="supengnm" type="input" maxlength="50" style="text-align:center; "/>
- <col ref="endyn" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var refcls = model.getValue("/root/main/cond/refcls");
- if( refcls == "" ) {
- messageBox("분류를 ", "C002");
- }else {
- if( grd_supcodelist.col == 1 ) {
- model.setValue("/root/main/cond/supcdid", model.getValue("/root/main/supcodeinfo/supcodelist[" + grd_supcodelist.row + "]/supcdid"));
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRMNH04402");
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:0px; top:60px; width:131px; height:14px; ">코드군</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:415px; y2:75px; "/>
- <button id="button2" class="btn2_letter3" style="left:255px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var refcls = model.getValue("/root/main/cond/refcls");
- if( refcls == "" ) {
- messageBox("분류를 ", "C002");
- }else {
- grd_supcodelist.addRow();
- var maxid = model.getValue("/root/main/supcodeinfo/temp/maxid");
- model.setValue("/root/main/supcodeinfo/supcodelist[" + grd_supcodelist.row + "]/supcdid", maxid.getLeftPad(5, '0'));//다음 코드군ID 셋팅
- model.setValue("/root/main/supcodeinfo/temp/maxid", parseInt(maxid) + 1 );//다음 코드군ID로 변경
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter2" style="left:365px; top:55px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveSupCode();
- ]]>
- </script>
- </button>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:15px; width:1194px; height:35px; "/>
- <caption id="caption13" class="search_name" style="left:20px; top:24px; width:86px; height:17px; ">분류 :</caption>
- <select1 id="combo1" ref="/root/main/cond/refcls" appearance="minimal" style="left:88px; top:22px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>호스피스 공통</label>
- <value>C</value>
- </item>
- <item>
- <label>호스피스 후원회</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNH04401");
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="tit_1" style="left:0px; top:10px; width:160px; height:13px; ">회원정보 관리</caption>
- <button id="button1" class="btn2_letter3" style="left:1093px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowStatus = grd_lowcodelist.rowstatus(grd_lowcodelist.row);
- if( (rowStatus == "1")||(rowStatus == "3") ) {//INSERT 모드에서 삭제시 컬럼 삭제
- grd_lowcodelist.deleteRow(grd_lowcodelist.row);
- }else {
- grd_lowcodelist.rowstatus(grd_lowcodelist.row) = "4";
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_lowcodelist" nodeset="/root/main/lowcodeinfo/lowcodelist" allowbigselection="false" allowselection="false" caption="코드군ID^코드ID^코드명^코드영문명^조회순서^하위코드ID^종료여부" colsep="^" colwidth="75, 70, 175, 175, 65, 75, 80" dataheight="23" ellipsis="true" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" navindex="7" style="left:425px; top:80px; width:769px; height:635px; ">
- <col ref="supcdid" style="text-align:center; "/>
- <col ref="cdid" type="input" maxlength="2" style="text-align:center; "/>
- <col ref="hngnm" type="input" style="text-align:center; "/>
- <col ref="engnm" type="input" style="text-align:center; "/>
- <col ref="refseqno" type="input" style="text-align:center; "/>
- <col ref="lowcdid" type="input" style="text-align:center; "/>
- <col ref="endyn" type="input" style="text-align:center; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( grd_lowcodelist.col == 2 ) {
- var curid = model.getValue("/root/main/lowcodeinfo/lowcodelist[" + grd_lowcodelist.row + "]/cdid");
- model.setValue("/root/main/lowcodeinfo/lowcodelist[" + grd_lowcodelist.row + "]/cdid", curid.getLeftPad(2, '0'));
- }
- ]]>
- </script>
- </datagrid>
- <button id="button4" class="btn5_letter2" style="left:1148px; top:55px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveDetlCode();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:425px; top:60px; width:131px; height:13px; ">코드</caption>
- <line id="line2" class="line_1" style="x1:425px; y1:75px; x2:1194px; y2:75px; "/>
- <button id="button5" class="btn2_letter3" style="left:310px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowStatus = grd_supcodelist.rowstatus(grd_supcodelist.row);
- if( (rowStatus == "1")||(rowStatus == "3") ) {//INSERT 모드에서 삭제시 컬럼 삭제
- grd_supcodelist.deleteRow(grd_supcodelist.row);
- }else {
- grd_supcodelist.rowstatus(grd_supcodelist.row) = "4";
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:1038px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var supcdid = model.getValue("/root/main/cond/supcdid");
- if( supcdid == "" ) {
- messageBox("코드군을 ", "C002");
- }else {
- grd_lowcodelist.addRow();
- model.setValue("/root/main/lowcodeinfo/lowcodelist[" + grd_lowcodelist.row + "]/supcdid", model.getValue("/root/main/cond/supcdid"));
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/supcodeinfo");
- model.removenode("/root/main/lowcodeinfo");
- model.setValue("/root/main/cond/supcdid", "");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNH04401");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|