SPMNF00210_약품번호조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <prcpfromdd/>
  12. <prcptodd/>
  13. <flag/>
  14. <patnm/>
  15. <nursnm/>
  16. <instcd/>
  17. <nursid/>
  18. </cond>
  19. <medinoinfo>
  20. <medinolist>
  21. <pid/>
  22. <hngnm/>
  23. <drugno/>
  24. <prcpdd/>
  25. <nursnm/>
  26. <output/>
  27. <dcflag/>
  28. </medinolist>
  29. </medinoinfo>
  30. <patinfo>
  31. <patinfolist/>
  32. </patinfo>
  33. </main>
  34. <send>
  35. <reqdata/>
  36. <savedata/>
  37. <medinoinfo>
  38. <medinolist>
  39. <pid/>
  40. <hngnm/>
  41. <drugno/>
  42. <prcpdd/>
  43. <nursnm/>
  44. <output/>
  45. </medinolist>
  46. </medinoinfo>
  47. </send>
  48. <hidden/>
  49. <init/>
  50. <item>
  51. <chargenurse>
  52. <nurselist>
  53. </nurselist>
  54. </chargenurse>
  55. </item>
  56. </root>
  57. </instance>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. //기관코드, 현재일자를 받아옴
  61. model.setValue("/root/main/cond/prcpfromdd",getCurrentDate());
  62. model.setValue("/root/main/cond/prcptodd",getCurrentDate());
  63. model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
  64. //기본으로 구분을 간호사별로 나타낸다
  65. caption7.visible= false;
  66. ipt_patnm.visible= false;
  67. caption1.visible= true;
  68. ipt_nursnm.visible= true;
  69. rdo_flag.select(0);
  70. // 그리드 초기화
  71. model.removeNodeset("/root/main/medinoinfo/medinolist");
  72. /*
  73. 추가요청사항 확인 후 진행예정임_20090104_SMY개발중
  74. //담당간호사 조회
  75. model.removeNodeset("/root/send/reqdata");
  76. model.makeNode("/root/send/reqdata");
  77. submit("TRMNF00106");
  78. */
  79. // 가정간호 의뢰처방조회
  80. model.removeNodeset("/root/send/reqdata");
  81. model.makeNode("/root/send/reqdata");
  82. model.copyNode("/root/send/reqdata","/root/main/cond");
  83. submit("TRMNF04901");
  84. model.refresh();
  85. ]]>
  86. </script>
  87. <submission id="TRMNF04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/medinoinfo"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  95. </xhtml:head>
  96. <xhtml:body pagewidth="800" pageheight="700" guideline="1,799;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  97. <group id="grp_tle" style="left:0px; top:0px; width:784px; height:13px; ">
  98. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">약품번호 조회</caption>
  99. </group>
  100. <group id="grp_biz" scroll="l" style="left:0px; top:13px; width:780px; height:637px; ">
  101. <group id="grp_sea" style="left:0px; top:10px; width:780px; height:65px; vertical-align:top; ">
  102. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:780px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  103. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:701px; top:21px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. if( !isRequiredControls("ipt_pid","ipt_fromdd") ){
  108. return;
  109. }
  110. model.copyNode("/root/send/reqdata","/root/main/cond");
  111. submit("TRMNF04901"); // 가정간호 의뢰처방조회
  112. model.refresh();
  113. ]]>
  114. </script>
  115. </button>
  116. <line id="line13" class="line_4" style="x1:680px; y1:20px; x2:680px; y2:42px; "/>
  117. <caption id="caption1" class="search_name" style="left:421px; top:36px; width:124px; height:17px; ">간 호 사 :</caption>
  118. <caption id="caption3" class="search_name" style="left:31px; top:37px; width:112px; height:17px; ">구 분 :</caption>
  119. <select1 id="rdo_flag" ref="/root/main/cond/flag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:130px; top:38px; width:140px; height:17px; font-weight:bold; border-style:none; ">
  120. <choices>
  121. <item>
  122. <label>간호사별</label>
  123. <value>1</value>
  124. </item>
  125. <item>
  126. <label>환자별</label>
  127. <value>2</value>
  128. </item>
  129. </choices>
  130. <script type="javascript" ev:event="xforms-value-changed">
  131. <![CDATA[
  132. // 가정간호구분에 따른 버튼 활성화
  133. var flag;
  134. flag = model.getValue("/root/main/cond/flag");
  135. if (flag == "1") {
  136. caption7.visible= false;
  137. ipt_patnm.visible= false;
  138. caption1.visible= true;
  139. ipt_nursnm.visible= true;
  140. btn_srch.visible = false;
  141. ipt_patnm.value= "";
  142. } else if (flag == "2") {
  143. caption7.visible= true;
  144. ipt_patnm.visible= true;
  145. caption1.visible= false;
  146. btn_srch.visible = true;
  147. ipt_nursnm.visible= false;
  148. ipt_nursnm.value= "";
  149. }
  150. model.removeNodeset("/root/main/medinoinfo/medinolist"); // 그리드 초기화
  151. btn_search.dispatch("DOMActivate");
  152. ]]>
  153. </script>
  154. </select1>
  155. <input id="ipt_nursnm" ref="/root/main/cond/nursnm" class="input_search" appearance="input" style="left:535px; top:35px; width:100px; height:19px; ">
  156. <script type="javascript" ev:event="onkeypress">
  157. <![CDATA[
  158. //조건을 적고 enter를 치면 바로 조회 버튼을 누르지 않고 조회
  159. inputEnterKey("btn_search", "DOMActivate");
  160. ]]>
  161. </script>
  162. <hint>
  163. <![CDATA[간호사명을 2자리이상 입력하세요.]]>
  164. </hint>
  165. </input>
  166. <caption id="caption7" class="search_name" style="left:421px; top:36px; width:110px; height:17px; ">환 자 :</caption>
  167. <input id="ipt_patnm" ref="/root/main/cond/patnm" class="input_search" appearance="input" style="left:535px; top:35px; width:100px; height:19px; ">
  168. <script type="javascript" ev:event="onkeypress">
  169. <![CDATA[
  170. //조건을 적고 enter를 치면 바로 조회 버튼을 누르지 않고 조회
  171. inputEnterKey("btn_search", "DOMActivate");
  172. ]]>
  173. </script>
  174. <hint>
  175. <![CDATA[환자명을 2자리이상 입력하세요.]]>
  176. </hint>
  177. </input>
  178. <caption id="cap_fromdd" class="search_name" style="left:35px; top:10px; width:89px; height:17px; ">처방일자 :</caption>
  179. <caption id="cap_todd" class="search_name" visibility="hidden" style="left:35px; top:10px; width:89px; height:17px; ">처방일자 :</caption>
  180. <input id="ipt_fromdd" ref="/root/main/cond/prcpfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:12px; width:100px; height:19px; "/>
  181. <input id="ipt_todd" ref="/root/main/cond/prcptodd" class="input_s_essential" inputtype="date" style="left:250px; top:12px; width:100px; height:19px; "/>
  182. <caption id="caption9" style="left:235px; top:15px; width:20px; height:20px; ">~</caption>
  183. <select1 id="combo7" ref="/root/main/cond/nursid" class="combo_search" visibility="hidden" appearance="minimal" style="left:320px; top:35px; width:100px; height:19px; ">
  184. <choices>
  185. <itemset nodeset="/root/item/chargenurse/nurselist">
  186. <label ref="usernm"/>
  187. <value ref="userid"/>
  188. </itemset>
  189. </choices>
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. btn_search.dispatch("DOMActivate");
  193. ]]>
  194. </script>
  195. </select1>
  196. </group>
  197. <datagrid id="grd_medinolist" nodeset="/root/main/medinoinfo/medinolist" class="datagrid1" autoresize="true" caption="구분^등록번호^환자명^약품번호^처방일자^간호사^출력" colsep="^" colwidth="49, 80, 110, 167, 150, 120, 57" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:105px; width:780px; height:530px; ">
  198. <col ref="dcflag"/>
  199. <col ref="pid"/>
  200. <col ref="hngnm"/>
  201. <col ref="drugno"/>
  202. <col ref="prcpdd" format="yyyy-mm-dd"/>
  203. <col ref="nursnm"/>
  204. <col ref="output" type="checkbox"/>
  205. </datagrid>
  206. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:780px; y2:100px; "/>
  207. <button id="btn_sel" class="btn2_letter4" navindex="7" style="left:559px; top:80px; width:64px; height:19px; ">
  208. <caption>전체선택</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. //조회된 로우 개수를 받아옴
  212. var rowcount = grd_medinolist.rows;
  213. for(var i = 1 ; i < rowcount ; i++){
  214. model.setValue("root/main/medinoinfo/medinolist["+ i +"]/output",'true');
  215. }
  216. model.refresh();
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="btn_desel" class="btn2_letter4" navindex="8" style="left:625px; top:80px; width:64px; height:19px; ">
  221. <caption>전체취소</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. //선택된 로우값을 받아옴
  225. var rowcount = grd_medinolist.rows;
  226. for(var i=1 ; i < rowcount ; i++){
  227. model.setValue("root/main/medinoinfo/medinolist["+ i +"]/output",'false');
  228. }
  229. model.refresh();
  230. ]]>
  231. </script>
  232. </button>
  233. <button id="btn_print" class="btn2_letter2" style="left:691px; top:80px; width:42px; height:19px; ">
  234. <caption>출력</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. var rows = grd_medinolist.rows- grd_medinolist.fixedRows;
  238. var count = 0;
  239. //parseInt(count);
  240. for(var i = 1 ; i <= rows ; i++){
  241. var check = model.getValue("/root/main/medinoinfo/medinolist[" + i + "]/output");
  242. if(check =="true"){
  243. count = count + 1;
  244. model.makeNode("/root/send/medinoinfo/medinolist[" + count + "]");
  245. model.copyNode("/root/send/medinoinfo/medinolist[" + count + "]","/root/main/medinoinfo/medinolist[" + i + "]");
  246. }
  247. }
  248. // //환자명, 간호사명이 빈값일 경우 출력이 가능하도록 '%%' 를 넣어줌
  249. // if(isNull(model.getValue("/root/main/cond/patnm"))){
  250. // model.setValue("/root/main/cond/patnm", '%%');
  251. // }
  252. // if(isNull(model.getValue("/root/main/cond/nursnm"))){
  253. // model.setValue("/root/main/cond/nursnm", '%%');
  254. // }
  255. //조건을 가지고 출력
  256. exeReportPreview("RPMNF04900","XMLSTR");
  257. model.removeNodeset("/root/send/medinoinfo");
  258. ]]>
  259. </script>
  260. </button>
  261. <button id="btn_srch" class="icon_search" style="left:639px; top:46px; width:16px; height:16px; ">
  262. <caption/>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. ipt_patnm.value = '';
  266. //원무팀의 환자명을 받아오는 팝업창을 띄운다.
  267. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  268. //input박스에 데이타를 받아온다.
  269. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  270. model.setValue("/root/main/cond/patnm", sHngnm);
  271. model.refresh();
  272. ]]>
  273. </script>
  274. </button>
  275. <button id="button3" class="btn2_letter2" style="left:735px; top:80px; width:42px; height:19px; ">
  276. <caption>닫기</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. window.close();
  280. ]]>
  281. </script>
  282. </button>
  283. </group>
  284. </xhtml:body>
  285. </xhtml:html>