123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?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>2006년 이전자료 이관처리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <miglist>
- <m/>
- <pid/>
- <fromdd/>
- </miglist>
- </main>
- <send>
- <gridpid/>
- <cond>
- <pid/>
- <fstrgstdt/>
- <todd/>
- <fromdd/>
- </cond>
- <miglist>
- </miglist>
- <instcd>012</instcd>
- </send>
- <source>
- <autoflag/>
- </source>
- <isxlsload/>
- <result>
- <list>
- <name>
- <pid/>
- <hngnm/>
- <sexage/>
- <rrgstno/>
- <addr/>
- </name>
- </list>
- </result>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRZTM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/miglist/list"/>
- <submission id="TRZTM00102" method="post" ref="/root/send" resultref="/root/result/list"/>
- <submission id="TXZTM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TXZTM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/miglist" resultref="/root/main/list"/>
- </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/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /** ----------------------------------------------------------------------
- *
- * 날짜 계산(기준일자를 기준으로 입력일자만큼 이후 날짜를 찾아오기)
- *
- * ----------------------------------------------------------------------
- **/
- function getDateAddc(inputday,addend){
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
- if (NowMonth < 10 ) backDate += "0" + NowMonth ;
- else backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 ) backDate += "0" + NowDay ;
- else backDate += (startDate.getDate());
-
- return backDate ;
- }
- function fInitialize(){
- button2.disabled = false;
- var today = getCurrentDate();
- model.setValue("/root/send/cond/pid", "");
- model.setValue("/root/send/cond/fstrgstdt", today);
- model.setValue("/root/send/cond/todd", getDateAddc(today, -1));
- model.setValue("/root/send/cond/fromdd", "20050101");
-
- model.removeNodeset("/root/main/miglist/list/pat");
- model.refresh();
- }
-
- function checkGridUpdate(grid)
- {
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
-
- if (iData=="" && uData=="" && dData=="") return false;
- else return true;
- }
-
-
- function fGetMigList(){
- model.removeNodeset("/root/main/miglist/list/pat");
- model.refresh();
- submit("TRZTM00101");
- //button2.disabled = true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="130" guideline="1,1195;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:755px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">2006년 이전자료 이관처리</caption>
- </group>
- <group id="group6" style="left:0px; top:25px; width:879px; height:80px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:874px; height:75px; "/>
- <line id="line18" class="line_4" style="x1:786px; y1:7px; x2:786px; y2:69px; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:8px; width:76px; height:17px; ">등록번호</caption>
- <input id="input2" ref="/root/send/cond/pid" class="input_search" style="left:85px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- input2.value = input2.currentText;
- model.setValue("/root/send/gridpid", input2.value);
-
- submit("TRZTM00102");
- model.refresh();
- if(model.getValue("/root/result/list/name/pid") == "0")
- {
- messageBox("환자 목록에", "I004");
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" navindex="-1" style="left:190px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회건수가 1건일 경우 팝업창을 바로 닫는다.
- model.setValue("/root/source/autoflag", "Y");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
- //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:800px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/send/cond/pid") == "")
- {
- messageBox("등록번호를", "C001");
- return;
- }
-
- model.setValue("/root/main/miglist/m","i");
- model.setValue("/root/main/miglist/pid", model.getValue("/root/send/cond/pid"));
- model.setValue("/root/main/miglist/fromdd", model.getValue("/root/send/cond/fromdd"));
-
- var nodeList;
- nodeList = instance1.selectNodes("/root/main/miglist");
- var csv = getNodeListCSV(nodeList);
- model.setValue("/root/send/miglist", csv);
-
- if ( submit("TXZTM00101") ) {
- submit("TXZTM00102");
- fGetMigList();
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:6px; top:38px; width:61px; height:17px; ">From</caption>
- <input id="input1" ref="/root/send/cond/fromdd" class="input_search" style="left:85px; top:38px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- input2.value = input2.currentText;
- fGetMigList();
- }
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/result/list/name/hngnm" class="output_fix" style="left:220px; top:10px; width:75px; height:19px; "/>
- <output id="output2" ref="/root/result/list/name/sexage" class="output_fix" style="left:300px; top:10px; width:60px; height:19px; "/>
- <output id="output3" ref="/root/result/list/name/rrgstno" class="output_fix" style="left:365px; top:10px; width:105px; height:19px; "/>
- <output id="output4" ref="/root/result/list/name/addr" class="output_fix" style="left:475px; top:10px; width:295px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|