SPZTM00200_이전자료이관처리.xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>2006년 이전자료 이관처리</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <list/>
  12. <patinfo>
  13. <patinfolist/>
  14. </patinfo>
  15. <miglist>
  16. <m/>
  17. <pid/>
  18. <fromdd/>
  19. </miglist>
  20. </main>
  21. <send>
  22. <gridpid/>
  23. <cond>
  24. <pid/>
  25. <fstrgstdt/>
  26. <todd/>
  27. <fromdd/>
  28. </cond>
  29. <miglist>
  30. </miglist>
  31. <instcd>012</instcd>
  32. </send>
  33. <source>
  34. <autoflag/>
  35. </source>
  36. <isxlsload/>
  37. <result>
  38. <list>
  39. <name>
  40. <pid/>
  41. <hngnm/>
  42. <sexage/>
  43. <rrgstno/>
  44. <addr/>
  45. </name>
  46. </list>
  47. </result>
  48. </root>
  49. </instance>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. fInitialize();
  53. ]]>
  54. </script>
  55. <submission id="TRZTM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/miglist/list"/>
  56. <submission id="TRZTM00102" method="post" ref="/root/send" resultref="/root/result/list"/>
  57. <submission id="TXZTM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  58. <submission id="TXZTM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/miglist" resultref="/root/main/list"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript">
  64. <![CDATA[
  65. /** ----------------------------------------------------------------------
  66. *
  67. * 날짜 계산(기준일자를 기준으로 입력일자만큼 이후 날짜를 찾아오기)
  68. *
  69. * ----------------------------------------------------------------------
  70. **/
  71. function getDateAddc(inputday,addend){
  72. var backDate ="";
  73. var rt = 0;
  74. var yyyy = inputday.substring(0,4) +"";
  75. var mm = inputday.substring(4,6) +"";
  76. var dd = inputday.substring(6,8) +"";
  77. var startDate = new Date(yyyy,(eval(mm)-1),dd);
  78. startDate.setTime(startDate.getTime()+(86400000*addend));
  79. NowYear = startDate.getYear();// 년
  80. NowMonth = startDate.getMonth()+1;// 월
  81. NowDay = startDate.getDate(); // 일
  82. backDate += NowYear ; //년도
  83. if (NowMonth < 10 ) backDate += "0" + NowMonth ;
  84. else backDate += (startDate.getMonth() + 1);
  85. if (NowDay < 10 ) backDate += "0" + NowDay ;
  86. else backDate += (startDate.getDate());
  87. return backDate ;
  88. }
  89. function fInitialize(){
  90. button2.disabled = false;
  91. var today = getCurrentDate();
  92. model.setValue("/root/send/cond/pid", "");
  93. model.setValue("/root/send/cond/fstrgstdt", today);
  94. model.setValue("/root/send/cond/todd", getDateAddc(today, -1));
  95. model.setValue("/root/send/cond/fromdd", "20050101");
  96. model.removeNodeset("/root/main/miglist/list/pat");
  97. model.refresh();
  98. }
  99. function checkGridUpdate(grid)
  100. {
  101. var iData = grid.getUpdateDataXml("insert");
  102. var uData = grid.getUpdateDataXml("update");
  103. var dData = grid.getUpdateDataXml("delete");
  104. if (iData=="" && uData=="" && dData=="") return false;
  105. else return true;
  106. }
  107. function fGetMigList(){
  108. model.removeNodeset("/root/main/miglist/list/pat");
  109. model.refresh();
  110. submit("TRZTM00101");
  111. //button2.disabled = true;
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="900" pageheight="130" guideline="1,1195;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  117. <group id="group1" style="left:0px; top:0px; width:755px; height:13px; ">
  118. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">2006년 이전자료 이관처리</caption>
  119. </group>
  120. <group id="group6" style="left:0px; top:25px; width:879px; height:80px; vertical-align:top; ">
  121. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:874px; height:75px; "/>
  122. <line id="line18" class="line_4" style="x1:786px; y1:7px; x2:786px; y2:69px; border-left-style:solid; "/>
  123. <caption id="caption2" class="search_name" style="left:6px; top:8px; width:76px; height:17px; ">등록번호</caption>
  124. <input id="input2" ref="/root/send/cond/pid" class="input_search" style="left:85px; top:8px; width:100px; height:19px; ">
  125. <script type="javascript" ev:event="onkeypress">
  126. <![CDATA[
  127. if (event.keycode == 13)
  128. {
  129. input2.value = input2.currentText;
  130. model.setValue("/root/send/gridpid", input2.value);
  131. submit("TRZTM00102");
  132. model.refresh();
  133. if(model.getValue("/root/result/list/name/pid") == "0")
  134. {
  135. messageBox("환자 목록에", "I004");
  136. }
  137. model.refresh();
  138. }
  139. ]]>
  140. </script>
  141. </input>
  142. <button id="btn_pid" class="icon_search" navindex="-1" style="left:190px; top:10px; width:16px; height:16px; ">
  143. <caption/>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. //조회건수가 1건일 경우 팝업창을 바로 닫는다.
  147. model.setValue("/root/source/autoflag", "Y");
  148. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  149. model.setValue("/root/send/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  150. model.refresh();
  151. //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="button2" class="btn4_letter2" style="left:800px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  156. <caption>실행</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. if(model.getValue("/root/send/cond/pid") == "")
  160. {
  161. messageBox("등록번호를", "C001");
  162. return;
  163. }
  164. model.setValue("/root/main/miglist/m","i");
  165. model.setValue("/root/main/miglist/pid", model.getValue("/root/send/cond/pid"));
  166. model.setValue("/root/main/miglist/fromdd", model.getValue("/root/send/cond/fromdd"));
  167. var nodeList;
  168. nodeList = instance1.selectNodes("/root/main/miglist");
  169. var csv = getNodeListCSV(nodeList);
  170. model.setValue("/root/send/miglist", csv);
  171. if ( submit("TXZTM00101") ) {
  172. submit("TXZTM00102");
  173. fGetMigList();
  174. }
  175. ]]>
  176. </script>
  177. </button>
  178. <caption id="caption3" class="search_name" style="left:6px; top:38px; width:61px; height:17px; ">From</caption>
  179. <input id="input1" ref="/root/send/cond/fromdd" class="input_search" style="left:85px; top:38px; width:100px; height:19px; ">
  180. <script type="javascript" ev:event="onkeypress">
  181. <![CDATA[
  182. if (event.keycode == 13)
  183. {
  184. input2.value = input2.currentText;
  185. fGetMigList();
  186. }
  187. ]]>
  188. </script>
  189. </input>
  190. <output id="output1" ref="/root/result/list/name/hngnm" class="output_fix" style="left:220px; top:10px; width:75px; height:19px; "/>
  191. <output id="output2" ref="/root/result/list/name/sexage" class="output_fix" style="left:300px; top:10px; width:60px; height:19px; "/>
  192. <output id="output3" ref="/root/result/list/name/rrgstno" class="output_fix" style="left:365px; top:10px; width:105px; height:19px; "/>
  193. <output id="output4" ref="/root/result/list/name/addr" class="output_fix" style="left:475px; top:10px; width:295px; height:19px; "/>
  194. </group>
  195. </xhtml:body>
  196. </xhtml:html>