SPMMO09700_임신부관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>임신부정보</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <excpcls/>
  12. <pid/>
  13. <srchflag/>
  14. <genrdd/>
  15. <genrno/>
  16. <histno/>
  17. </cond>
  18. <patinfo>
  19. <patinfolist/>
  20. </patinfo>
  21. <list>
  22. <exptpatlist>
  23. <genrdd/>
  24. <genrno/>
  25. <instcd/>
  26. <excpcls/>
  27. <deptcd/>
  28. <deptnm/>
  29. <userid/>
  30. <usernm/>
  31. <pid/>
  32. <hngnm/>
  33. <fromdd/>
  34. <todd/>
  35. <histcd/>
  36. <histnm/>
  37. <histno/>
  38. <excpcd/>
  39. <excptext/>
  40. <fstrgstrdeptnm/>
  41. <fstrgstrid/>
  42. <fstrgstrusernm/>
  43. <fstrgstdt/>
  44. <lastupdtrdeptnm/>
  45. <lastupdtrid/>
  46. <lastupdtrusernm/>
  47. <lastupdtdt/>
  48. </exptpatlist>
  49. </list>
  50. <info>
  51. <exptpatinfo>
  52. <status/>
  53. <genrdd/>
  54. <genrno/>
  55. <instcd/>
  56. <excpcls/>
  57. <deptcd/>
  58. <deptnm/>
  59. <userid/>
  60. <usernm/>
  61. <pid/>
  62. <hngnm/>
  63. <fromdd/>
  64. <todd/>
  65. <histcd/>
  66. <histnm/>
  67. <histno/>
  68. <excpcd/>
  69. <excptext/>
  70. <fstrgstrdeptnm/>
  71. <fstrgstrid/>
  72. <fstrgstrusernm/>
  73. <fstrgstdt/>
  74. <fstrgstinfo/>
  75. <lastupdtrdeptnm/>
  76. <lastupdtrid/>
  77. <lastupdtrusernm/>
  78. <lastupdtdt/>
  79. <lastupdtinfo/>
  80. <duedate/>
  81. </exptpatinfo>
  82. </info>
  83. </main>
  84. <send>
  85. <reqdata/>
  86. <savedata/>
  87. </send>
  88. <hidden>
  89. </hidden>
  90. <init>
  91. <patinfo>
  92. <pid/>
  93. <hngnm/>
  94. </patinfo>
  95. <orddept/>
  96. <userlist1/>
  97. <userlist2/>
  98. <M0627/>
  99. </init>
  100. </root>
  101. </instance>
  102. <script type="javascript" ev:event="xforms-ready">
  103. <![CDATA[
  104. fInitialize();
  105. ]]>
  106. </script>
  107. <bind id="bind1" ref="/root/hidden/concpatinfo" calculate="&quot;now()+.&quot;"/>
  108. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  109. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  110. <submission id="TRMMO09502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  111. <submission id="TRMMO09702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/info"/>
  112. <submission id="TXMMO09501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/list"/>
  113. </model>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  117. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  118. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  119. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO09700.js"/>
  120. </xhtml:head>
  121. <xhtml:body pagewidth="390" pageheight="360" guideline="1,365;2,591;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  122. <group id="group_list" scroll="no" style="left:0px; top:210px; width:365px; height:140px; ">
  123. <caption id="caption24" class="tit_2" style="left:0px; top:1px; width:134px; height:13px; ">임신부 등록 리스트</caption>
  124. <select id="checkbox2" ref="/root/main/cond/srchflag" overflow="visible" appearance="full" style="left:235px; top:2px; width:130px; height:18px; border-style:none; ">
  125. <choices>
  126. <item>
  127. <label>삭제/변경포함 조회</label>
  128. <value>ALL</value>
  129. </item>
  130. </choices>
  131. <script type="javascript" ev:event="xforms-value-changed">
  132. <![CDATA[
  133. fSearch();
  134. ]]>
  135. </script>
  136. </select>
  137. <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:365px; y2:20px; "/>
  138. <datagrid id="grd_exptpatlist" nodeset="/root/main/list/exptpatlist" scroll="auto" caption="기관코드^등록일자^번호^이력^시작일^종료일^참고사항^상태" colsep="^" colwidth="0, 80, 30, 30, 80, 80, 0, 47" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:365px; height:113px; ">
  139. <col ref="instcd"/>
  140. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
  141. <col ref="genrno" style="text-align:center; "/>
  142. <col ref="histno" style="text-align:center; "/>
  143. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  144. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  145. <col ref="rmk"/>
  146. <col ref="histnm" style="text-align:center; "/>
  147. <script type="javascript" ev:event="ondblclick">
  148. <![CDATA[
  149. if(isDataCell()){
  150. fSelectExptPatInfo();
  151. }
  152. ]]>
  153. </script>
  154. </datagrid>
  155. </group>
  156. <group id="group_info" scroll="no" style="left:0px; top:5px; width:365px; height:175px; ">
  157. <caption id="caption12" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">임신부 정보</caption>
  158. <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:365px; y2:15px; "/>
  159. <caption id="caption15" class="cell_1" style="left:0px; top:20px; width:80px; height:23px; vertical-align:middle; ">등록번호</caption>
  160. <output id="out_pid" ref="/root/main/info/exptpatinfo/pid" class="output_fix" appearance="output" style="left:82px; top:21px; width:98px; height:19px; ">
  161. <script type="javascript" ev:event="onkeypress">
  162. <![CDATA[
  163. inputEnterKey ( "btn_patsrch", "DOMActivate" );
  164. ]]>
  165. </script>
  166. </output>
  167. <caption id="caption2" class="cell_1" style="left:185px; top:20px; width:80px; height:23px; vertical-align:middle; ">환자명</caption>
  168. <output id="opt_unitcd" ref="/root/main/info/exptpatinfo/hngnm" class="output_fix" appearance="output" style="left:267px; top:21px; width:98px; height:19px; "/>
  169. <caption id="caption9" class="cell_1" style="left:0px; top:68px; width:80px; height:23px; vertical-align:middle; ">시작일</caption>
  170. <input id="ipt_fromdd" ref="/root/main/info/exptpatinfo/fromdd" class="input_default" disabled="false" inputtype="date" style="left:82px; top:70px; width:98px; height:19px; "/>
  171. <caption id="caption6" class="cell_1" style="left:185px; top:68px; width:80px; height:23px; vertical-align:middle; ">종료일</caption>
  172. <input id="ipt_todd" ref="/root/main/info/exptpatinfo/todd" class="input_default" disabled="false" inputtype="date" style="left:267px; top:70px; width:98px; height:19px; "/>
  173. <caption id="caption5" class="cell_1" style="left:0px; top:128px; width:80px; height:23px; vertical-align:middle; ">등록정보</caption>
  174. <output id="output3" ref="/root/main/info/exptpatinfo/fstrgstinfo" class="output_fix" appearance="output" style="left:82px; top:130px; width:283px; height:19px; "/>
  175. <caption id="caption7" class="cell_1" style="left:0px; top:152px; width:80px; height:23px; vertical-align:middle; ">수정정보</caption>
  176. <output id="output5" ref="/root/main/info/exptpatinfo/lastupdtinfo" class="output_fix" appearance="output" style="left:82px; top:154px; width:283px; height:19px; "/>
  177. <caption id="caption21" class="cell_1" style="left:0px; top:92px; width:80px; height:35px; vertical-align:middle; ">참고사항</caption>
  178. <textarea id="textarea2" ref="/root/main/info/exptpatinfo/excptext" disabled="false" style="left:82px; top:92px; width:283px; height:35px; "/>
  179. <caption id="caption1" class="cell_1" style="left:0px; top:44px; width:80px; height:23px; vertical-align:middle; ">출산예정일</caption>
  180. <input id="input1" ref="/root/main/info/exptpatinfo/duedate" class="input_default" disabled="false" inputtype="date" style="left:82px; top:46px; width:98px; height:19px; ">
  181. <script type="javascript" ev:event="xforms-value-changed">
  182. <![CDATA[
  183. var duedate = model.getValue("/root/main/info/exptpatinfo/duedate");
  184. var sTodd = duedate .toDate("YYYYMMDD").getAddDate(14, "D").getDateFormat("YYYYMMDD");
  185. model.setValue("/root/main/info/exptpatinfo/todd", sTodd);
  186. model.refresh();
  187. ]]>
  188. </script>
  189. </input>
  190. <caption id="caption3" class="cell_1" style="left:185px; top:44px; width:80px; height:23px; vertical-align:middle; ">상태</caption>
  191. <output id="output1" ref="/root/main/info/exptpatinfo/histnm" class="output_fix" appearance="output" style="left:267px; top:46px; width:98px; height:19px; "/>
  192. </group>
  193. <button id="button3" class="btn4_letter4" style="left:108px; top:185px; width:80px; height:22px; ">
  194. <caption>신규작성</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. fNewRgst();
  198. ]]>
  199. </script>
  200. </button>
  201. <button id="button2" class="btn4_letter2" style="left:249px; top:185px; width:56px; height:22px; ">
  202. <caption>저장</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. var sHistCd = model.getValue(sEXPT_INFO_PATH + "/histcd");
  206. if(sHistCd != "O") {messageBox("변경 또는 삭제 상태의 정보는 수정 할 수 없습니다.", "C999"); return; }
  207. var sStatus = model.getValue(sEXPT_INFO_PATH + "/status");
  208. if(sStatus == "I"){ // 인서트
  209. if( "6" != messageBox("", "Q002")) { return; }
  210. } else if (sStatus == "U") {
  211. if( "6" != messageBox("", "Q012")) { return; }
  212. }
  213. fSaveExptPatInfo();
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="button4" class="btn4_letter2" style="left:192px; top:185px; width:56px; height:22px; ">
  218. <caption>삭제</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. var sHistCd = model.getValue(sEXPT_INFO_PATH + "/histcd");
  222. if(sHistCd != "O") {messageBox("변경 또는 삭제 상태의 정보는 수정 할 수 없습니다.", "C999"); return; }
  223. var sGenrNo = model.getValue(sEXPT_INFO_PATH + "/genrno");
  224. if(sGenrNo == ""){
  225. messageBox("삭제할 예외환자 정보가 선택 되지 않았습니다.", "I999");
  226. } else {
  227. if( "6" == messageBox("", "Q001")) {
  228. model.setValue(sEXPT_INFO_PATH + "/status", "D"); // 삭제
  229. model.setValue(sEXPT_INFO_PATH + "/histcd", "D"); // 삭제
  230. fSaveExptPatInfo();
  231. }
  232. }
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="button5" class="btn4_letter2" style="left:309px; top:185px; width:56px; height:22px; ">
  237. <caption>닫기</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. window.close();
  241. ]]>
  242. </script>
  243. </button>
  244. </xhtml:body>
  245. </xhtml:html>