SMPMC07200_임산부등록조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>Untitle</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <rcv>
  12. <ptbs>
  13. <ptbs_pid/>
  14. <ptbs_hngnm/>
  15. <ptbs_rrgstno1/>
  16. <ptbs_rrgstno2/>
  17. <ptbs_zipnm/>
  18. <ptbs_detladdr/>
  19. <ptbs_hometel/>
  20. <ptbs_mpphontel/>
  21. </ptbs>
  22. </rcv>
  23. <prgrgst>
  24. <prgrgstlist>
  25. <pid/>
  26. <hngnm/>
  27. <rrgstno/>
  28. <hometel/>
  29. <mpphontel/>
  30. <addr/>
  31. <rgstdd/>
  32. <ptnernm/>
  33. <partrtndt/>
  34. <prgweekcnt/>
  35. <prgadddaycnt/>
  36. </prgrgstlist>
  37. </prgrgst>
  38. </main>
  39. <send>
  40. <data1>
  41. <fromdd/>
  42. <todd/>
  43. <paoflag>O</paoflag>
  44. </data1>
  45. <data2>
  46. <pid/>
  47. <rgstdd/>
  48. <istatus/>
  49. </data2>
  50. </send>
  51. <hidden>
  52. <rcv>
  53. <savepat>
  54. <state/>
  55. </savepat>
  56. </rcv>
  57. </hidden>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. var curDate = getCurrentDate();
  63. model.setValue("/root/send/data1/fromdd",curDate);
  64. model.setValue("/root/send/data1/todd",curDate);
  65. model.setValue("/root/send/data2/rgstdd",curDate);
  66. model.refresh();
  67. ]]>
  68. </script>
  69. <submission id="TRPMC07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/prgrgst"/>
  70. <submission id="TRPMC00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/rcv"/>
  71. <submission id="TXPMC07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/rcv"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  77. <script type="javascript">
  78. <![CDATA[
  79. function fSearch(){
  80. submit("TRPMC07201");
  81. }
  82. function fOJBaseInfoRef()
  83. {
  84. model.resetInstanceNode("/root/main/rcv/ptbs");
  85. submit("TRPMC00902");
  86. model.refresh();
  87. }
  88. ]]>
  89. </script>
  90. </xhtml:head>
  91. <xhtml:body>
  92. <group id="group2" style="left:0px; top:20px; width:835px; height:40px; ">
  93. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:830px; height:35px; "/>
  94. <line id="line13" class="line_4" style="x1:425px; y1:5px; x2:425px; y2:27px; border-color:#ffe4bb; "/>
  95. <caption id="caption32" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회기간 :</caption>
  96. <caption id="caption1" style="left:225px; top:10px; width:12px; height:16px; vertical-align:middle; ">~</caption>
  97. <caption id="caption2" class="search_name" style="left:476px; top:9px; width:90px; height:17px; ">조회조건 :</caption>
  98. <select1 id="rdo_cond" ref="/root/send/data1/paoflag" overflow="visible" appearance="full" cellspacing="6" cols="2" rows="1" style="left:576px; top:9px; width:155px; height:15px; border-style:none; ">
  99. <choices>
  100. <item>
  101. <label>외래등록자</label>
  102. <value>O</value>
  103. </item>
  104. <item>
  105. <label>분만자</label>
  106. <value>P</value>
  107. </item>
  108. </choices>
  109. <script type="javascript" ev:event="xforms-value-changed">
  110. <![CDATA[
  111. if(rdo_cond.value =='O'){
  112. for(i=7;i<=10;i++){
  113. datagrid1.colHidden(i) = true;
  114. }
  115. datagrid1.colHidden(6) = false;
  116. }else if(rdo_cond.value =='P'){
  117. datagrid1.colHidden(6) = true;
  118. for(i=7;i<=10;i++){
  119. datagrid1.colHidden(i) = false;
  120. }
  121. }
  122. fSearch();
  123. ]]>
  124. </script>
  125. </select1>
  126. <input id="input2" ref="/root/send/data1/todd" class="input_search" inputtype="date" style="left:240px; top:7px; width:100px; height:19px; "/>
  127. <input id="input1" ref="/root/send/data1/fromdd" class="input_search" inputtype="date" style="left:120px; top:7px; width:100px; height:19px; "/>
  128. </group>
  129. <button id="btn_search" class="btn1_letter2" style="left:760px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  130. <caption>조회</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. fSearch();
  134. ]]>
  135. </script>
  136. </button>
  137. <line id="line1" class="line_1" style="x1:0px; y1:185px; x2:830px; y2:185px; "/>
  138. <caption id="caption3" class="tit_2" style="left:5px; top:170px; width:136px; height:13px; ">임산부 신규 등록자</caption>
  139. <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:706px; top:162px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  140. <caption>액셀저장</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. var fileName = window.fileDialog("save", ",", false, "임산부신규등록자", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  144. if (fileName != "")
  145. {
  146. var condnm = rdo_cond.label;
  147. datagrid1.saveExcel(fileName, condnm, false, false, "", "");
  148. }
  149. window.exec(fileName);
  150. ]]>
  151. </script>
  152. </button>
  153. <datagrid id="datagrid1" nodeset="/root/main/prgrgst/prgrgstlist" scroll="horizontal" caption="임산부성명^주민번호^전화번호^핸드폰번호^주소^등록일자^배우자성명^분만일시^분만주수(주/일)^분만주수(주/일)" colsep="^" colwidth="87, 128, 100, 134, 228, 100, 100, 100, 57, 52" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:190px; width:830px; height:425px; ">
  154. <col ref="hngnm"/>
  155. <col ref="rrgstno"/>
  156. <col ref="hometel"/>
  157. <col ref="mpphontel"/>
  158. <col ref="addr"/>
  159. <col ref="rgstdd" format="yyyy-mm-dd" style="left:697px; top:23px; width:100px; height:23px; "/>
  160. <col ref="ptnernm" style="left:777px; top:23px; width:100px; height:23px; "/>
  161. <col ref="partrtndt" format="yyyy-mm-dd"/>
  162. <col ref="prgweekcnt"/>
  163. <col ref="prgadddaycnt"/>
  164. <script type="javascript" ev:event="onclick">
  165. <![CDATA[
  166. var spid = model.getValue("/root/main/prgrgst/prgrgstlist["+datagrid1.row+"]/pid");
  167. var srgstdd = model.getValue("/root/main/prgrgst/prgrgstlist["+datagrid1.row+"]/rgstdd");
  168. model.setValue("/root/send/data2/pid",spid);
  169. model.setValue("/root/send/data2/rgstdd",srgstdd);
  170. // ipt_fromdd.refresh();
  171. fOJBaseInfoRef();
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <caption id="caption21" class="cell_1" style="left:0px; top:100px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
  176. <input id="ipt_pid" ref="/root/send/data2/pid" class="input_s_essential" navindex="1" maxlength="10" style="left:75px; top:102px; width:100px; height:19px; ">
  177. <script type="javascript" ev:event="onkeypress">
  178. <![CDATA[
  179. if (event.keyCode=='13') {
  180. model.setValue("/root/send/data2/pid", ipt_pid.currentText);
  181. fOJBaseInfoRef();
  182. }
  183. ]]>
  184. </script>
  185. </input>
  186. <caption id="caption23" class="cell_1" style="left:185px; top:100px; width:60px; height:23px; vertical-align:middle; ">성명</caption>
  187. <input id="ipt_hngnm" ref="/root/main/rcv/ptbs/ptbs_hngnm" class="output_fix" navindex="2" imemode="hangul" style="left:250px; top:102px; width:105px; height:19px; "/>
  188. <caption id="caption35" class="cell_1" style="left:360px; top:100px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
  189. <caption id="caption8" class="cell_1" style="left:0px; top:125px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
  190. <input id="opt_addr" ref="/root/main/rcv/ptbs/ptbs_zipnm" class="output_fix" style="left:74px; top:127px; width:271px; height:19px; "/>
  191. <caption id="caption20" class="cell_1" style="left:515px; top:125px; width:50px; height:23px; vertical-align:middle; ">연락처</caption>
  192. <caption id="caption4" class="cell_1" style="left:675px; top:125px; width:50px; height:23px; vertical-align:middle; ">휴대폰</caption>
  193. <input id="opt_hometel" ref="/root/main/rcv/ptbs/ptbs_hometel" class="output_fix" style="left:570px; top:127px; width:100px; height:19px; "/>
  194. <input id="opt_mpphontel" ref="/root/main/rcv/ptbs/ptbs_mpphontel" class="output_fix" style="left:730px; top:127px; width:101px; height:19px; "/>
  195. <input id="ipt_rrgstno1" ref="/root/main/rcv/ptbs/ptbs_rrgstno1" class="output_fix" navindex="3" style="left:465px; top:102px; width:80px; height:19px; "/>
  196. <input id="ipt_rrgstno2" ref="/root/main/rcv/ptbs/ptbs_rrgstno2" class="output_fix" navindex="4" style="left:556px; top:102px; width:85px; height:19px; "/>
  197. <caption id="caption5" class="cell_1" style="left:645px; top:100px; width:80px; height:23px; vertical-align:middle; ">등록일자</caption>
  198. <input id="ipt_fromdd" ref="/root/send/data2/rgstdd" inputtype="date" format="yyyy-mm-dd" style="left:730px; top:102px; width:100px; height:19px; "/>
  199. <line id="line3" class="line_2" style="x1:0px; y1:123px; x2:830px; y2:123px; "/>
  200. <line id="line5" class="line_2" style="x1:5px; y1:149px; x2:830px; y2:149px; "/>
  201. <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:830px; y2:95px; "/>
  202. <caption id="caption6" class="tit_2" style="left:0px; top:80px; width:126px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
  203. <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">임산부등록조회</caption>
  204. <button id="button1" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:690px; top:70px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  205. <caption>신규저장</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. var pid = model.getValue("/root/send/data2/pid");
  209. var rgstdd = model.getValue("/root/send/data2/rgstdd");
  210. var selpid = getNodesetCount("/root/main/rcv/ptbs");
  211. var selpid = model.getValue("/root/main/rcv/ptbs/ptbs_pid");
  212. var curDate = getCurrentDate();
  213. model.setValue("/root/send/data2/istatus","I"); // 상태: 저장
  214. if(selpid > 0 && pid!="" && rgstdd!="" && selpid==pid){
  215. // 임산부 등록관리 저장
  216. if(submit("TXPMC07201")){
  217. if(model.getValue("/root/hidden/rcv/savepat/state")!="Y"){ // Y : 저장된 데이터 없음 , N : 기존데이터 존재
  218. messageBox("자료가 존재합니다","E999","");
  219. }
  220. model.resetInstanceNode("/root/main/rcv/ptbs");
  221. model.resetInstanceNode("/root/send/data2");
  222. model.setValue("/root/send/data2/rgstdd",curDate);
  223. model.refresh();
  224. fSearch();
  225. }
  226. }
  227. else {
  228. messageBox("환자를 선택하세요!","E999","");
  229. }
  230. ]]>
  231. </script>
  232. </button>
  233. <button id="button10" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:775px; top:160px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  234. <caption>출력</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. if (datagrid1.valueMatrix( 1, 1) != "" ){
  238. exeReportPreview("RPPMC07200", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true", "", "");
  239. }
  240. ]]>
  241. </script>
  242. </button>
  243. <caption id="caption9" style="left:546px; top:102px; width:10px; height:20px; ">-</caption>
  244. <input id="input3" ref="/root/main/rcv/ptbs/ptbs_detladdr" class="output_fix" style="left:346px; top:127px; width:166px; height:19px; "/>
  245. <button id="button2" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:773px; top:70px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  246. <caption>삭제</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. var pid = model.getValue("/root/send/data2/pid");
  250. var rgstdd = model.getValue("/root/send/data2/rgstdd");
  251. var selpid = getNodesetCount("/root/main/rcv/ptbs");
  252. var selpid = model.getValue("/root/main/rcv/ptbs/ptbs_pid");
  253. var curDate = getCurrentDate();
  254. model.setValue("/root/send/data2/istatus","D"); // 상태: 삭제
  255. if(selpid > 0 && pid!="" && rgstdd!="" && selpid==pid){
  256. // 임산부 등록관리 저장
  257. if(submit("TXPMC07201")){
  258. if(model.getValue("/root/hidden/rcv/savepat/state")!="N"){ // Y : 저장된 데이터 없음 , N : 기존데이터 존재
  259. messageBox("저장된 자료가 없습니다.","E999","");
  260. }
  261. model.resetInstanceNode("/root/main/rcv/ptbs");
  262. model.resetInstanceNode("/root/send/data2");
  263. model.setValue("/root/send/data2/rgstdd",curDate);
  264. model.refresh();
  265. fSearch();
  266. }
  267. }
  268. else {
  269. messageBox("환자를 선택하세요!","E999","");
  270. }
  271. ]]>
  272. </script>
  273. </button>
  274. </xhtml:body>
  275. </xhtml:html>