SMLBR00500_Irr처방관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : Irr처방관리.xrw
  4. * 설 명 : Irr처방관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.07.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>Irr처방관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <patinfo>
  20. <orddd/>
  21. <orddeptnm/>
  22. <orddrnm/>
  23. <ordgbn/>
  24. <orddeptcd/>
  25. <orddrid/>
  26. <pid/>
  27. <cretno/>
  28. </patinfo>
  29. <orderinfolist>
  30. <prcpcdlist>
  31. <chk/>
  32. <prcpcd/>
  33. <prcpnm/>
  34. <spccd/>
  35. </prcpcdlist>
  36. <rsltlist>
  37. <prcpdd/>
  38. <prcpcd/>
  39. <prcpnm/>
  40. <reptrslt/>
  41. </rsltlist>
  42. <toppatinfo>
  43. <pid/>
  44. <patnm/>
  45. <rrgstno1/>
  46. <rrgstno2/>
  47. <orddeptnm/>
  48. <orddd/>
  49. <sex/>
  50. <age/>
  51. </toppatinfo>
  52. </orderinfolist>
  53. </main>
  54. <send xmlns="">
  55. <patid/>
  56. <dbsend>
  57. <pid/>
  58. <orddd/>
  59. <orddrid/>
  60. <orddeptcd/>
  61. <cretno/>
  62. <data1/>
  63. </dbsend>
  64. </send>
  65. <init>
  66. </init>
  67. <hidden>
  68. <ref>
  69. <searchtext/>
  70. </ref>
  71. </hidden>
  72. </root>
  73. </instance>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" ev:event="xforms-ready">
  78. <![CDATA[
  79. fSetInit();
  80. ]]>
  81. </script>
  82. <submission id="TRLBR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfo"/>
  83. <submission id="TRLBR00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dbsend" replace="instance" resultref="/root/main/orderinfolist"/>
  84. <submission id="TXLBR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dbsend" replace="instance"/>
  85. </model>
  86. <script type="javascript">
  87. <![CDATA[
  88. function fSetInit(){
  89. }
  90. function fPidRef(){
  91. if(event.keyCode == "13"){
  92. if(event.target == "iptSearch"){
  93. model.setValue("/root/hidden/ref/searchtext",(iptSearch.currentText).toUpperCase());
  94. model.setValue("/root/send/patid", model.getValue("/root/hidden/ref/searchtext"));
  95. submit("TRLBR00501");
  96. iptSearch.selBegin = 0;
  97. iptSearch.selEnd = iptSearch.currentText.length;
  98. }
  99. }
  100. }
  101. function fClickResultList(){
  102. var grd_Row = grd_patinfo.row;
  103. model.setValue("/root/send/dbsend/orddd", model.getValue("/root/main/patinfo[" + grd_Row + "]/orddd"));
  104. model.setValue("/root/send/dbsend/orddeptcd", model.getValue("/root/main/patinfo[" + grd_Row + "]/orddeptcd"));
  105. model.setValue("/root/send/dbsend/orddrid", model.getValue("/root/main/patinfo[" + grd_Row + "]/orddrid"));
  106. model.setValue("/root/send/dbsend/pid", model.getValue("/root/main/patinfo[" + grd_Row + "]/pid"));
  107. model.setValue("/root/send/dbsend/cretno", model.getValue("/root/main/patinfo[" + grd_Row + "]/cretno"));
  108. submit("TRLBR00502");
  109. }
  110. function fInsRsltSave(){
  111. var prcpRows = grd_prcpcdlist.rows;
  112. var saveflag = "N";
  113. for(var iRow = 1 ; iRow < prcpRows ; iRow++){
  114. if(model.getValue("/root/main/orderinfolist/prcpcdlist["+ iRow +"]/chk") == "true"){
  115. grd_prcpcdlist.rowStatus(iRow) = 2;
  116. saveflag = "Y";
  117. }else{
  118. grd_prcpcdlist.rowStatus(iRow) = 0;
  119. }
  120. }
  121. if(saveflag == "N"){
  122. alert("저장할 처방이 없습니다.");
  123. return;
  124. }
  125. model.setValue("/root/send/dbsend/data1", grd_prcpcdlist.getUpdateData());
  126. submit("TXLBR00501");
  127. fClickResultList();
  128. }
  129. ]]>
  130. </script>
  131. </xhtml:head>
  132. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  133. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  134. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:435px; y2:70px; "/>
  135. <group id="group1" style="left:0px; top:10px; width:435px; height:35px; font-weight:bold; ">
  136. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:435px; height:35px; "/>
  137. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  138. <input id="iptSearch" ref="/root/hidden/ref/searchtext" style="left:110px; top:8px; width:110px; height:19px; ">
  139. <script type="javascript" ev:event="onkeypress">
  140. <![CDATA[
  141. fPidRef();
  142. ]]>
  143. </script>
  144. </input>
  145. </group>
  146. <caption id="caption3" class="tit_2" style="left:0px; top:55px; width:134px; height:13px; ">환자수진내역</caption>
  147. <datagrid id="grd_patinfo" nodeset="/root/main/patinfo" caption="진료일^진료과^진료의^진료구분^진료과코드^진료의ID" colsep="^" colwidth="100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:76px; width:435px; height:659px; ">
  148. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  149. <col ref="orddeptnm" style="text-align:center; "/>
  150. <col ref="orddrnm" style="text-align:center; "/>
  151. <col ref="ordgbn"/>
  152. <col ref="orddeptcd" visibility="hidden"/>
  153. <col ref="orddrid" visibility="hidden"/>
  154. <col ref="pid" visibility="hidden"/>
  155. <col ref="cretno" visibility="hidden"/>
  156. <script type="javascript" ev:event="onclick">
  157. <![CDATA[
  158. if(grd_patinfo.isCell(event.target) && grd_patinfo.row >= grd_patinfo.fixedRows ){
  159. fClickResultList();
  160. }
  161. ]]>
  162. </script>
  163. </datagrid>
  164. <input id="ipt_wbc" ref="/root/main/orderinfolist/toppatinfo/pid" class="input_default" disabled="true" navindex="2" appearance="input" style="left:525px; top:31px; width:120px; height:19px; "/>
  165. <caption id="caption4" class="cell_1" style="left:450px; top:55px; width:72px; height:23px; ">진 료 과</caption>
  166. <line id="line2" class="line_1" style="x1:450px; y1:25px; x2:1175px; y2:25px; "/>
  167. <input id="input2" ref="/root/main/orderinfolist/toppatinfo/patnm" class="input_default" disabled="true" navindex="2" appearance="input" style="left:725px; top:31px; width:120px; height:19px; "/>
  168. <caption id="cpt_wbc" class="cell_1" style="left:450px; top:30px; width:72px; height:23px; ">등록번호</caption>
  169. <input id="input4" ref="/root/main/orderinfolist/toppatinfo/orddeptnm" class="input_default" disabled="true" navindex="2" appearance="input" style="left:525px; top:56px; width:120px; height:19px; "/>
  170. <input id="input5" ref="/root/main/orderinfolist/toppatinfo/orddd" class="input_default" disabled="true" navindex="2" appearance="input" style="left:725px; top:56px; width:120px; height:19px; "/>
  171. <caption id="caption2" class="tit_2" style="left:450px; top:10px; width:100px; height:13px; ">환자정보</caption>
  172. <caption id="caption5" class="cell_1" style="left:650px; top:30px; width:72px; height:23px; ">성 명</caption>
  173. <caption id="caption7" class="cell_1" style="left:650px; top:55px; width:72px; height:23px; ">진 료 일</caption>
  174. <input id="input7" ref="/root/main/orderinfolist/toppatinfo/age" class="input_default" disabled="true" navindex="2" appearance="input" style="left:968px; top:56px; width:37px; height:19px; "/>
  175. <caption id="caption8" class="cell_1" style="left:850px; top:30px; width:72px; height:23px; ">주민번호</caption>
  176. <caption id="caption9" class="cell_1" style="left:850px; top:55px; width:72px; height:23px; ">성별/나이</caption>
  177. <input id="input3" ref="/root/main/orderinfolist/toppatinfo/rrgstno1" class="input_default" disabled="true" navindex="2" appearance="input" style="left:925px; top:31px; width:60px; height:19px; "/>
  178. <input id="input6" ref="/root/main/orderinfolist/toppatinfo/rrgstno2" class="input_default" disabled="true" navindex="2" appearance="input" style="left:987px; top:31px; width:70px; height:19px; "/>
  179. <input id="input8" ref="/root/main/orderinfolist/toppatinfo/sex" class="input_default" disabled="true" navindex="2" appearance="input" style="left:925px; top:56px; width:40px; height:19px; "/>
  180. <line id="line5" class="line_2" style="x1:450px; y1:53px; x2:1175px; y2:53px; "/>
  181. <line id="line6" class="line_2" style="x1:450px; y1:78px; x2:1175px; y2:78px; "/>
  182. <datagrid id="grd_prcpcdlist" nodeset="/root/main/orderinfolist/prcpcdlist" caption="^처방코드^처방명^검체코드^진료과코드^진료의ID" colsep="^" colwidth="30, 125, 340" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:450px; top:115px; width:725px; height:120px; ">
  183. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  184. <col ref="prcpcd"/>
  185. <col ref="prcpnm"/>
  186. <col ref="spccd" visibility="hidden"/>
  187. </datagrid>
  188. <caption id="caption10" class="tit_2" style="left:450px; top:95px; width:134px; height:13px; ">처방리스트</caption>
  189. <line id="line3" class="line_1" style="x1:450px; y1:110px; x2:1175px; y2:110px; "/>
  190. <caption id="caption11" class="tit_2" style="left:450px; top:245px; width:134px; height:14px; ">완료처방리스트</caption>
  191. <line id="line4" class="line_1" style="x1:450px; y1:260px; x2:1175px; y2:260px; "/>
  192. <datagrid id="grd_rsltlist" nodeset="/root/main/orderinfolist/rsltlist" caption="처방일자^처방코드^처방명^검사결과^진료구분^진료과코드^진료의ID" colsep="^" colwidth="100, 110, 300, 130" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:450px; top:265px; width:725px; height:470px; ">
  193. <col ref="prcpdd" format="yyyy-mm-dd"/>
  194. <col ref="prcpcd"/>
  195. <col ref="prcpnm"/>
  196. <col ref="reptrslt"/>
  197. </datagrid>
  198. </group>
  199. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  200. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">Irr 처방관리</caption>
  201. </group>
  202. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  203. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  204. <button id="btn_save" class="btn4_letter4" style="left:1112px; top:3px; width:80px; height:22px; ">
  205. <caption>처방저장</caption>
  206. <script type="javascript" ev:event="onclick">
  207. <![CDATA[
  208. fInsRsltSave();
  209. ]]>
  210. </script>
  211. </button>
  212. </group>
  213. </xhtml:body>
  214. </xhtml:html>