SMMNF00700_가정간호대상자조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. </main>
  14. <send>
  15. <srchcond/>
  16. <pid/>
  17. <hngnm/>
  18. <rrgstno1/>
  19. <rrgstno2/>
  20. <acptdd/>
  21. </send>
  22. <init>
  23. <P0350list>
  24. </P0350list>
  25. <M0524list>
  26. </M0524list>
  27. <M0347list/>
  28. </init>
  29. <hidden>
  30. </hidden>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. // M0524- 가정, 방문 M0347 - 병원, 본당, 재택
  36. zbcfGetCodeList(new Array("P0350", "M0524", "M0347"), new Array("/root/init/P0350list", "/root/init/M0524list", "/root/init/M0347list"));
  37. //조회조건에서 '예약일시'를 제거한다.
  38. cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
  39. model.refresh();
  40. ]]>
  41. </script>
  42. <submission id="TRPAM00101" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/hidden/tmp"/>
  43. <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  44. <submission id="TRMNF00700" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/patinfo"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  50. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  51. <script type="javascript">
  52. <![CDATA[
  53. //입력값의 유효범위 체크
  54. function fInputValueCheck(){
  55. var cond = model.getValue("/root/send/srchcond");
  56. switch(cond){
  57. case '1':
  58. //환자등록번호 체크
  59. if(ipt_pid.currentText.length >= 1 ){
  60. model.setValue("/root/send/pid", ipt_pid.currentText);
  61. return (true);
  62. }else{
  63. messageBox("환자등록번호를 정확히", "C001");
  64. return (false);
  65. }
  66. break;
  67. case '2':
  68. //환자이름 체크
  69. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  70. if(ipt_hngnm.currentText.length >= 1 ){
  71. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  72. return (true);
  73. }else{
  74. messageBox("환자이름을 2자리 이상", "C001");
  75. return (false);
  76. }
  77. break;
  78. case '3':
  79. //환자 주민번호 체크
  80. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1 ){
  81. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  82. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  83. return (true);
  84. }else{
  85. messageBox("환자 주민번호를", "C001");
  86. return (false);
  87. }
  88. break;
  89. case '4':
  90. //환자이름 유효성 체크. 환자 주민번호 체크
  91. if(ipt_hngnm.currentText.length >= 1 || ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  92. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  93. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  94. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  95. }else{
  96. messageBox("환자이름 또는 주민번호를", "C001");
  97. return (false);
  98. }
  99. return( true );
  100. break;
  101. default :
  102. messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  103. model.setFocus("cmb_cond");
  104. return( false );
  105. break;
  106. }
  107. }
  108. //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  109. function fChangeSearchCondition( cond){
  110. switch(cond){
  111. case '1':
  112. model.makeNode("/root/send/pid");
  113. ipt_pid.attribute("visibility") = "visible";
  114. ipt_pid.attribute("left") = "219px";
  115. ipt_pid.attribute("top") = "8px";
  116. ipt_hngnm.attribute("visibility") = "hidden";
  117. ipt_rrgstno1.attribute("visibility") = "hidden";
  118. ipt_rrgstno2.attribute("visibility") = "hidden";
  119. ipt_acptdd.attribute("visibility") = "hidden";
  120. model.setFocus("ipt_pid");
  121. break;
  122. case '2':
  123. model.makeNode("/root/send/hngnm");
  124. ipt_hngnm.attribute("visibility") = "visible";
  125. ipt_hngnm.attribute("left") = "219px";
  126. ipt_hngnm.attribute("top") = "8px";
  127. ipt_pid.attribute("visibility") = "hidden";
  128. ipt_rrgstno1.attribute("visibility") = "hidden";
  129. ipt_rrgstno2.attribute("visibility") = "hidden";
  130. ipt_acptdd.attribute("visibility") = "hidden";
  131. model.setFocus("ipt_hngnm");
  132. break;
  133. case '3':
  134. model.makeNode("/root/send/rrgstno1");
  135. model.makeNode("/root/send/rrgstno2");
  136. ipt_rrgstno1.attribute("visibility") = "visible";
  137. ipt_rrgstno2.attribute("visibility") = "visible";
  138. ipt_rrgstno1.attribute("left") = "219px";
  139. ipt_rrgstno1.attribute("top") = "8px";
  140. ipt_rrgstno2.attribute("left") = "307px";
  141. ipt_rrgstno2.attribute("top") = "8px";
  142. ipt_hngnm.attribute("visibility") = "hidden";
  143. ipt_pid.attribute("visibility") = "hidden";
  144. ipt_acptdd.attribute("visibility") = "hidden";
  145. model.setFocus("ipt_rrgstno1");
  146. break;
  147. case '4':
  148. //model.makeNode("/root/send/pid");
  149. model.makeNode("/root/send/hngnm");
  150. model.makeNode("/root/send/rrgstno1");
  151. model.makeNode("/root/send/rrgstno2");
  152. ipt_hngnm.attribute("visibility") = "visible";
  153. ipt_hngnm.attribute("left") = "219px";
  154. ipt_hngnm.attribute("top") = "8px";
  155. ipt_pid.attribute("visibility") = "hidden";
  156. ipt_rrgstno1.attribute("visibility") = "visible";
  157. ipt_rrgstno1.attribute("left") = "352px";
  158. ipt_rrgstno1.attribute("top") = "8px";
  159. ipt_rrgstno2.attribute("visibility") = "visible";
  160. ipt_rrgstno2.attribute("left") = "440px";
  161. ipt_rrgstno2.attribute("top") = "8px";
  162. ipt_acptdd.attribute("visibility") = "hidden";
  163. model.setFocus("ipt_hngnm");
  164. break;
  165. // case '5':
  166. // model.makeNode("/root/send/acptdd");
  167. //
  168. // ipt_acptdd.attribute("visibility") = "visible";
  169. // ipt_acptdd.attribute("left") = "219px";
  170. // ipt_acptdd.attribute("top") = "8px";
  171. // ipt_hngnm.attribute("visibility") = "hidden";
  172. // ipt_pid.attribute("visibility") = "hidden";
  173. // ipt_rrgstno1.attribute("visibility") = "hidden";
  174. // ipt_rrgstno2.attribute("visibility") = "hidden";
  175. //
  176. // //진료일 오늘 날짜 디폴트 세팅
  177. // model.makeNode("/root/send/acptdd");
  178. // model.setValue("/root/send/acptdd", getCurrentDate() );
  179. // model.setFocus("ipt_acptdd");
  180. // break;
  181. default :
  182. //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  183. break;
  184. }
  185. }
  186. ]]>
  187. </script>
  188. </xhtml:head>
  189. <xhtml:body pagewidth="650" pageheight="350" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  190. <group id="group3" scroll="auto" style="left:0px; top:0px; width:630px; height:316px; ">
  191. <group id="group2" style="left:0px; top:0px; width:630 px; height:35px; ">
  192. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:629px; height:35px; "/>
  193. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  194. <button id="btn_search" navindex="6" class="btn1_letter2" style="left:555px; top:7px; width:56px; height:22px; ">
  195. <caption>조회</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. if( fInputValueCheck() ){
  199. if( submit("TRMNF00700") ){
  200. if( grd_patinfo.rows > 1 ){
  201. grd_patinfo.row = 1;
  202. model.setFocus("grd_patinfo");
  203. }else{
  204. fChangeSearchCondition( cmb_cond.value );
  205. }
  206. }
  207. }
  208. ]]>
  209. </script>
  210. </button>
  211. <line id="line13" class="line_4" style="x1:539px; y1:7px; x2:539px; y2:29px; border-color:#ffe4bb; "/>
  212. <input id="ipt_hngnm" ref="/root/send/hngnm" navindex="1" class="input_search" visibility="hidden" imemode="hangul" autonext="false" style="left:224px; top:8px; width:130px; height:19px; ">
  213. <script type="javascript" ev:event="onkeypress">
  214. <![CDATA[
  215. inputEnterKey("btn_search", "DOMActivate");
  216. ]]>
  217. </script>
  218. </input>
  219. <input id="ipt_rrgstno1" ref="/root/send/rrgstno1" navindex="2" class="input_search" visibility="hidden" format="999999" style="left:247px; top:8px; width:85px; height:19px; ">
  220. <script type="javascript" ev:event="onkeypress">
  221. <![CDATA[
  222. inputEnterKey("btn_search", "DOMActivate");
  223. ]]>
  224. </script>
  225. </input>
  226. <select1 id="cmb_cond" ref="/root/send/srchcond" navindex="10" class="combo_search" appearance="minimal" style="left:106px; top:8px; width:110px; height:19px; ">
  227. <choices>
  228. <itemset nodeset="/root/init/P0350list/P0350">
  229. <label ref="cdnm"/>
  230. <value ref="cdid"/>
  231. </itemset>
  232. </choices>
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. var cond = model.getValue("/root/send/srchcond");
  236. //model.refresh();
  237. fChangeSearchCondition( cond );
  238. ]]>
  239. </script>
  240. </select1>
  241. <input id="ipt_rrgstno2" ref="/root/send/rrgstno2" navindex="3" class="input_search" visibility="hidden" format="9999999" autonext="false" style="left:285px; top:8px; width:85px; height:19px; ">
  242. <script type="javascript" ev:event="onkeypress">
  243. <![CDATA[
  244. inputEnterKey("btn_search", "DOMActivate");
  245. ]]>
  246. </script>
  247. </input>
  248. <input id="ipt_pid" ref="/root/send/pid" navindex="4" class="input_search" visibility="hidden" autonext="false" style="left:325px; top:8px; width:130px; height:19px; ">
  249. <script type="javascript" ev:event="onkeypress">
  250. <![CDATA[
  251. inputEnterKey("btn_search", "DOMActivate");
  252. ]]>
  253. </script>
  254. </input>
  255. <input id="ipt_acptdd" ref="/root/send/acptdd" navindex="5" class="input_search" visibility="hidden" inputtype="date" autonext="false" style="left:390px; top:8px; width:130px; height:19px; ">
  256. <script type="javascript" ev:event="onkeypress">
  257. <![CDATA[
  258. inputEnterKey("btn_search", "DOMActivate");
  259. ]]>
  260. </script>
  261. </input>
  262. </group>
  263. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
  264. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:629px; y2:60px; "/>
  265. <datagrid id="grd_patinfo" nodeset="/root/main/patinfo/patinfolist" class="datagrid2" caption="등록번호^환자성명^주민등록번호^주민등록번호^S/A^구분^소속^본당명^담당간호사^사망시각^사망일자^사망시간^내원사유^동물여부^원외예외사유코드^재원여부^장애인여부^특이/문제환자^당일퇴원여부^참고사항^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^pidflag" colwidth="60, 65, 50, 50, 49, 72, 83, 100, 100" dataheight="23" defaultrows="2" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" colsep="^" navindex="7" style="left:0px; top:65px; width:630px; height:245px; ">
  266. <col ref="pid"/>
  267. <col ref="hngnm"/>
  268. <col ref="rrgstno1"/>
  269. <col ref="rrgstno2"/>
  270. <col ref="sex"/>
  271. <col ref="careflag" type="combo" disabled="true" style="text-align:center; ">
  272. <choices>
  273. <itemset nodeset="/root/init/M0524list/M0524">
  274. <label ref="cdnm"/>
  275. <value ref="cdid"/>
  276. </itemset>
  277. </choices>
  278. </col>
  279. <col ref="patflag" type="combo" disabled="true" style="text-align:center; ">
  280. <choices>
  281. <itemset nodeset="/root/init/M0347list/M0347">
  282. <label ref="cdnm"/>
  283. <value ref="cdid"/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. <col ref="churchnm" style="text-align:center; "/>
  288. <col ref="chrgnursnm" style="text-align:center; "/>
  289. <script type="javascript" ev:event="onkeypress">
  290. <![CDATA[
  291. if( event.keyCode == 13 ){
  292. btn_confirm.dispatch("DOMActivate");
  293. }
  294. ]]>
  295. </script>
  296. </datagrid>
  297. </group>
  298. <group id="group1" scroll="auto" style="left:0px; top:316px; width:630px; height:27px; ">
  299. <button id="btn_confirm" navindex="8" class="btn4_letter2" style="left:502px; top:5px; width:56px; height:22px; ">
  300. <caption>확인</caption>
  301. </button>
  302. <button id="btn_cancel" navindex="9" class="btn4_letter2" style="left:561px; top:5px; width:56px; height:22px; ">
  303. <caption>취소</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. window.close();
  307. ]]>
  308. </script>
  309. </button>
  310. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
  311. </group>
  312. </xhtml:body>
  313. </xhtml:html>