SPPMC05200_간병인조회.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. <SiNursMngt>
  11. <getCarmList>
  12. <carecmntno/>
  13. <namecardno/>
  14. <hngnm/>
  15. <rrgstno/>
  16. <tel/>
  17. <mpphonno/>
  18. <spclmentfact/>
  19. <fstrgstdt/>
  20. <addr/>
  21. <lastupdtrid/>
  22. </getCarmList>
  23. </SiNursMngt>
  24. </main>
  25. <send>
  26. <reference1>1</reference1>
  27. <reference2/>
  28. <data1>
  29. <hngnm/>
  30. <namecardno/>
  31. <carecmntno/>
  32. </data1>
  33. </send>
  34. <init>
  35. </init>
  36. <hidden>
  37. <h_carm>
  38. <getCarmList>
  39. <carecmntno/>
  40. <namecardno/>
  41. <hngnm/>
  42. <rrgstno/>
  43. <tel/>
  44. <mpphonno/>
  45. <spclmentfact/>
  46. <fstrgstdt/>
  47. <addr/>
  48. <lastupdtrid/>
  49. </getCarmList>
  50. </h_carm>
  51. <uid>
  52. <myself/>
  53. <opener/>
  54. </uid>
  55. </hidden>
  56. </root>
  57. </instance>
  58. <submission id="TRPMC00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/h_carm/getCarmList"/>
  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" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. if ( checkOpener() ) {
  67. model.setValue("/root/send/reference1", "1");
  68. model.setValue("/root/send/reference2", model.getValue("/root/send/data1/hngnm"));
  69. btn_search.dispatch("DOMActivate");
  70. }
  71. ]]>
  72. </script>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="680" pageheight="320" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <group id="group3" scroll="auto" style="left:10px; top:0px; width:626px; height:275px; ">
  76. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:95px; height:14px; ">간병인조회</caption>
  77. <group id="group2" style="left:0px; top:25px; width:625px; height:35px; ">
  78. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:625px; height:35px; "/>
  79. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  80. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:560px; top:7px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. var referenceValue = cmb_reference.value;
  85. switch (referenceValue){
  86. case "1":
  87. model.setValue("/root/send/data1/hngnm", model.getValue("/root/send/reference2"));
  88. break;
  89. case "2":
  90. model.setValue("/root/send/data1/namecardno", model.getValue("/root/send/reference2"));
  91. break;
  92. case "3":
  93. model.setValue("/root/send/data1/carecmntno", model.getValue("/root/send/reference2"));
  94. break;
  95. }
  96. model.refresh();
  97. if( submit("TRPMC00805") ){
  98. model.resetInstanceNode("/root/send");
  99. model.setValue("/root/send/reference1", "1");
  100. cmb_reference.dispatch("xforms-select");
  101. copyNodesetType("/root/main/SiNursMngt/getCarmList", "/root/hidden/h_carm/getCarmList");
  102. }
  103. model.refresh();
  104. ]]>
  105. </script>
  106. </button>
  107. <line id="line13" class="line_4" style="x1:544px; y1:7px; x2:544px; y2:29px; border-color:#ffe4bb; "/>
  108. <select1 id="cmb_reference" ref="/root/send/reference1" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:119px; height:19px; ">
  109. <choices>
  110. <item>
  111. <label>간병인명</label>
  112. <value>1</value>
  113. </item>
  114. <item>
  115. <label>간병인 명찰번호</label>
  116. <value>2</value>
  117. </item>
  118. <item>
  119. <label>간병인단체</label>
  120. <value>3</value>
  121. </item>
  122. </choices>
  123. <script type="javascript" ev:event="xforms-select">
  124. <![CDATA[
  125. var referenceValue = cmb_reference.value;
  126. switch (referenceValue){
  127. case "1":
  128. cmb_carecmntno.visible= false;
  129. ipt_reference.visible = true;
  130. model.setFocus("ipt_reference");
  131. break;
  132. case "2":
  133. cmb_carecmntno.visible= false;
  134. ipt_reference.visible = true;
  135. model.setFocus("ipt_reference");
  136. break;
  137. case "3":
  138. cmb_carecmntno.visible= true;
  139. ipt_reference.visible = false;
  140. model.setFocus("cmb_carecmntno");
  141. break;
  142. }
  143. model.refresh();
  144. ]]>
  145. </script>
  146. </select1>
  147. <select1 id="cmb_carecmntno" ref="/root/send/reference2" class="combo_search" appearance="minimal" style="left:230px; top:8px; width:140px; height:19px; ">
  148. <choices>
  149. <itemset nodeset="/root/init/wardcd">
  150. <label ref="nm"/>
  151. <value ref="cd"/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <input id="ipt_reference" ref="/root/send/reference2" class="input_search" imemode="hangul" style="left:230px; top:8px; width:140px; height:19px; "/>
  156. </group>
  157. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:625px; y2:65px; "/>
  158. <datagrid id="grd_getCarmList" nodeset="/root/main/SiNursMngt/getCarmList" caption="단체번호^명찰번호^성명^주민번호^연락처^휴대폰^특기사항^최초등록일시^주소^최종수정자" colsep="^" colwidth="65, 70, 70, 100, 90, 90, 115, 0, 0, 0" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:70px; width:625px; height:200px; ">
  159. <col ref="carecmntno"/>
  160. <col ref="namecardno"/>
  161. <col ref="hngnm"/>
  162. <col ref="rrgstno" format="999999-9999999"/>
  163. <col ref="tel"/>
  164. <col ref="mpphonno"/>
  165. <col ref="spclmentfact"/>
  166. <col ref="fstrgstdt"/>
  167. <col ref="addr"/>
  168. <col ref="lastupdtid"/>
  169. <script type="javascript" ev:event="ondblclick">
  170. <![CDATA[
  171. if ( checkOpener() ) {
  172. row = grd_getCarmList.row;
  173. if( row > 0 ){
  174. if( getNodesetCount("/root/main/SiNursMngt/getCarmList") > 0 ){
  175. opener.model.copyNode("/root/hidden/h_carm/getCarmList", grd_getCarmList.getNode( row ));
  176. opener.model.makeNode("/root/main/popupendflag");
  177. opener.model.setValue("/root/main/popupendflag", "ok");
  178. opener.model.refresh();
  179. window.close();
  180. }
  181. }
  182. } else {
  183. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  184. }
  185. ]]>
  186. </script>
  187. </datagrid>
  188. </group>
  189. <group id="group1" style="left:10px; top:275px; width:625px; height:27px; ">
  190. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:507px; top:5px; width:56px; height:22px; ">
  191. <caption>확인</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. if ( checkOpener() ) {
  195. row = grd_getCarmList.row;
  196. if( row > 0 ){
  197. if( getNodesetCount("/root/main/SiNursMngt/getCarmList") > 0 ){
  198. opener.model.copyNode("/root/hidden/h_carm/getCarmList", grd_getCarmList.getNode( row ));
  199. opener.model.makeNode("/root/main/popupendflag");
  200. opener.model.setValue("/root/main/popupendflag", "ok");
  201. }
  202. }else {
  203. messageBox("행이 정확히 선택되지", "E007");
  204. }
  205. } else {
  206. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  207. }
  208. opener.model.refresh();
  209. window.close();
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:566px; top:5px; width:56px; height:22px; ">
  214. <caption>취소</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. opener.model.makeNode("/root/main/popupendflag");
  218. opener.model.setValue("/root/main/popupendflag", "cancel");
  219. window.close();
  220. ]]>
  221. </script>
  222. </button>
  223. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:625px; y2:0px; "/>
  224. </group>
  225. </xhtml:body>
  226. </xhtml:html>