123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <rarescndupdt>
- <rarescnd>
- <pid/>
- <hngnm/>
- <fromdd/>
- <todd/>
- <splccd1/>
- <splccd/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastupdtdt/>
- <lastupdtrid/>
- <scndflag/>
- <rrgstno1/>
- <rrgstno2/>
- </rarescnd>
- </rarescndupdt>
- <rarescnd>
- <rarescndlist/>
- </rarescnd>
- </main>
- <send>
- <rrgstno1/>
- <rrgstno2/>
- <pid/>
- <data/>
- <data2/>
- </send>
- <hidden>
- <patinfo>
- <pid/>
- <rrgstno1/>
- <rrgstno2/>
- <hngnm/>
- </patinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- if (checkOpener()){ //팝업화면으로 사용될 때
- if (model.getValue("/root/send/pid") != "") {
- fSearch();
- model.refresh();
- }
- }
- model.refresh();
- model1.setFocus("ipt_pid");
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/patinfo"/>
- <submission id="TRPAO04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rarescnd"/>
- <submission id="TRPAO04602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TXPAC03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/tmp"/>
- <submission id="TXPAC03904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/tmp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
- submit("TRPAO04601");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="630" pageheight="360" guideline="1,605;2,402;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:605px; height:316px; ">
- <line id="line6" class="line_2" style="x1:0px; y1:87px; x2:605px; y2:87px; "/>
- <group id="group2" style="left:0px; top:0px; width:605px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:605px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:539px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/pid");
- var rrgstno1 = model.getValue("/root/send/rrgstno1");
- var rrgstno2 = model.getValue("/root/send/rrgstno2");
- if( pid == '' || pid == '-' ) {
- if( rrgstno1 == '' || rrgstno1== '-' ) {
- if( rrgstno2 == '' || rrgstno2 == '-' ) {
- messageBox("등록번호 또는 주민번호 입력 후 조회하십시오.", "I999", "");
- return false;
- }
- }
- }
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden");
- model.refresh();
- fSearch();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:524px; y1:7px; x2:524px; y2:29px; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:8px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_name" style="left:205px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
- <input id="input1" ref="/root/send/rrgstno1" class="input_search" maxlength="6" appearance="input" style="left:296px; top:8px; width:79px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/rrgstno2" class="input_search" maxlength="7" appearance="input" style="left:385px; top:8px; width:79px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" appearance="input" style="left:100px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:120px; width:182px; height:14px; ">차상위 / 희귀난치지원 내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:135px; x2:605px; y2:135px; "/>
- <datagrid id="grd_rarescnd" nodeset="/root/main/rarescnd/rarescndlist" caption="등록번호^성명^시작일자^종료일자^구분^명칭^최초등록일시^최초등록자^최종수정일시^최종수정자" colsep="^" colwidth="70, 58, 79, 77, 35, 109, 104, 71, 111, 71" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:140px; width:605px; height:174px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="splccd1" type="output" style="text-align:center; "/>
- <col disabled="true" ref="splccd" type="combo">
- <choices>
- <item>
- <label>차상위 1종(C)</label>
- <value>C</value>
- </item>
- <item>
- <label>차상위 2종(E)</label>
- <value>E</value>
- </item>
- <item>
- <label>차상위 2종 장애(F)</label>
- <value>F</value>
- </item>
- <item>
- <label>희귀난치지원(H)</label>
- <value>H</value>
- </item>
- </choices>
- </col>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="lastupdtrid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell() == true) {
- var srow = grd_rarescnd.row;
- if (srow <= 0 ) {
- srow = 1;
- }
- //alert(model.getValue("/root/main/rarescndlist["+ srow +"]/pid"));
- model.copyNode("/root/main/rarescndupdt/rarescnd", "/root/main/rarescnd/rarescndlist["+ srow +"]");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption32" class="cell_1" style="left:1px; top:65px; width:73px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_fromdd1" ref="/root/main/rarescndupdt/rarescnd/fromdd" class="input_default" navindex="7" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:268px; top:91px; width:90px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:1px; top:89px; width:73px; height:23px; vertical-align:middle; ">구 분</caption>
- <select1 id="cmb_building1" ref="/root/main/rarescndupdt/rarescnd/splccd" class="combo_search" navindex="5" appearance="minimal" style="left:76px; top:91px; width:113px; height:19px; ">
- <choices>
- <item>
- <label>차상위 1종(C)</label>
- <value>C</value>
- </item>
- <item>
- <label>차상위 2종(E)</label>
- <value>E</value>
- </item>
- <item>
- <label>차상위 2종 장애(F)</label>
- <value>F</value>
- </item>
- <item>
- <label>희귀난치지원(H)</label>
- <value>H</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="tit_2" style="left:5px; top:45px; width:200px; height:14px; ">차상위 / 희귀난치지원 대상자</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:605px; y2:60px; "/>
- <input id="input3" ref="/root/main/rarescndupdt/rarescnd/pid" class="input_default" navindex="1" imemode="disabled" style="left:76px; top:66px; width:113px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- var spid = input3.currentText;
- setInputNodeCurText();
- if (spid != "") {
- model.setValue("/root/send/pid", model.getValue("/root/main/rarescndupdt/rarescnd/pid"));
- submit("TRPAO04602");
- if (model.getValue("/root/hidden/patinfo/pid") == "") {
- messageBox("등록된 환자가 없습니다.", "I999", "");
- return false;
- }
- model.copynode("/root/main/rarescndupdt/rarescnd", "/root/hidden/patinfo");
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="cell_1" style="left:193px; top:65px; width:73px; height:23px; vertical-align:middle; ">성 명</caption>
- <input id="input4" ref="/root/main/rarescndupdt/rarescnd/hngnm" class="input_default" disabled="true" navindex="2" imemode="disabled" style="left:268px; top:66px; width:90px; height:19px; font-weight:bold; "/>
- <caption id="caption6" class="cell_1" style="left:193px; top:89px; width:73px; height:23px; vertical-align:middle; ">적용기간</caption>
- <input id="input6" ref="/root/main/rarescndupdt/rarescnd/todd" class="input_default" navindex="7" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:361px; top:91px; width:90px; height:19px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:112px; x2:605px; y2:112px; "/>
- <button id="button6" class="btn5_letter2" navindex="30" style="left:562px; top:40px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getValue("/root/main/rarescndupdt/rarescnd/pid") == "") {
- messageBox("등록번호가 입력되지 않았습니다.", "I999", "");
- return;
- }
- if (model.getValue("/root/main/rarescndupdt/rarescnd/hngnm") == "") {
- messageBox("성명이 입력되지 않았습니다.", "I999", "");
- return;
- }
- if (model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno1") == "" || model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno2") == "") {
- messageBox("주민번호가 입력되지 않았습니다.", "I999", "");
- return;
- }
- if (model.getValue("/root/main/rarescndupdt/rarescnd/splccd") == "") {
- messageBox("구분코드가 입력되지 않았습니다.", "I999", "");
- return;
- }
- if (model.getValue("/root/main/rarescndupdt/rarescnd/fromdd") == "" || model.getValue("/root/main/rarescndupdt/rarescnd/todd") == "") {
- messageBox("적용기간이 입력되지 않았습니다.", "I999", "");
- return;
- }
-
- //희귀난치
- if (model.getValue("/root/main/rarescndupdt/rarescnd/splccd") == "H") {
- model.removenode("/root/send/data");
- model.makeNode("/root/send/data");
- model.makeValue("/root/send/data/rrgstno1", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno1"));
- model.makeValue("/root/send/data/rrgstno2", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno2"));
- model.makeValue("/root/send/data/fromdd", model.getValue("/root/main/rarescndupdt/rarescnd/fromdd"));
- model.makeValue("/root/send/data/todd", model.getValue("/root/main/rarescndupdt/rarescnd/todd"));
- model.makeValue("/root/send/data/delflag", "N");
- if (submit("TXPAC03902") == true) {
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden");
- model.setValue("/root/send/rrgstno1", model.getValue("/root/send/data/rrgstno1"));
- model.setValue("/root/send/rrgstno2", model.getValue("/root/send/data/rrgstno2"));
- fSearch();
- model.refresh();
- }
-
- } else {
- model.removenode("/root/send/data1");
- model.makeNode("/root/send/data1");
- if (model.getValue("/root/main/rarescndupdt/rarescnd/splccd") == "C") {
- model.makeValue("/root/send/data1/scndflag", "1");
- } else {
- model.makeValue("/root/send/data1/scndflag", "2");
- }
- model.makeValue("/root/send/data1/rrgstno1", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno1"));
- model.makeValue("/root/send/data1/rrgstno2", model.getValue("/root/main/rarescndupdt/rarescnd/rrgstno2"));
- model.makeValue("/root/send/data1/fromdd", model.getValue("/root/main/rarescndupdt/rarescnd/fromdd"));
- model.makeValue("/root/send/data1/todd", model.getValue("/root/main/rarescndupdt/rarescnd/todd"));
- model.makeValue("/root/send/data1/splccd", model.getValue("/root/main/rarescndupdt/rarescnd/splccd"));
- model.makeValue("/root/send/data1/delflag", "N");
- if (submit("TXPAC03904") == true) {
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden");
- model.setValue("/root/send/rrgstno1", model.getValue("/root/send/data1/rrgstno1"));
- model.setValue("/root/send/rrgstno2", model.getValue("/root/send/data1/rrgstno2"));
- fSearch();
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:362px; top:64px; width:73px; height:23px; vertical-align:middle; ">주민번호</caption>
- <input id="input7" ref="/root/main/rarescndupdt/rarescnd/rrgstno1" class="input_default" disabled="true" navindex="3" imemode="disabled" style="left:437px; top:66px; width:80px; height:19px; font-weight:bold; "/>
- <input id="input8" ref="/root/main/rarescndupdt/rarescnd/rrgstno2" class="input_default" disabled="true" navindex="4" imemode="disabled" style="left:522px; top:66px; width:80px; height:19px; font-weight:bold; "/>
- <button id="button1" class="btn2_letter2" navindex="30" style="left:517px; top:40px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:605px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:549px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|