SPLPJ02500_내시경소견입력.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. <prtlhislist>
  11. <item>
  12. <prcpdd/>
  13. <spcbarcdno/>
  14. <orddrid/>
  15. <prcpnm/>
  16. <reqno/>
  17. <formrecseq/>
  18. </item>
  19. </prtlhislist>
  20. </main>
  21. <send>
  22. <baseinfo>
  23. <prcphopefromdd/>
  24. <prcphopetodd/>
  25. <pid/>
  26. <prcpdd/>
  27. <execprcpuniqno/>
  28. <reqno/>
  29. </baseinfo>
  30. </send>
  31. <init>
  32. </init>
  33. <temp>
  34. </temp>
  35. <hidden/>
  36. </root>
  37. </instance>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. // 등록번호, formrecseq 를 받아서 처방을 조회 함
  45. if (checkOpener()) { //opener 검사
  46. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  47. if(param != "") { // opener parameter value가 있는 경우
  48. //parameter value를 이용하여 프로그램 수행
  49. condarray = param.split("▦");
  50. model.setValue("/root/send/baseinfo/pid" , condarray[0]);
  51. model.setValue("/root/send/baseinfo/prcpdd", condarray[1]);
  52. model.setValue("/root/send/baseinfo/execprcpuniqno", condarray[2]);
  53. }
  54. }
  55. model.setValue("/root/send/baseinfo/prcphopefromdd", getCurrentDate());
  56. model.setValue("/root/send/baseinfo/prcphopetodd", getCurrentDate() );
  57. ipt_prcphopefromdd.value = ipt_prcphopefromdd.value.toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD") ;
  58. fGetEScopeCmt();
  59. ]]>
  60. </script>
  61. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  62. <submission id="TRLPJ02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prtlhislist"/>
  63. <submission id="TXLPJ02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. /* @group : 내시경소견입력
  68. * @ver : 2009.07.21
  69. * @by : 박상환(평화이즈)
  70. * @-----------------------------------
  71. * @type : function
  72. * @access : public
  73. * @desc : 내시경소견입력 formrecseq 업데이트
  74. */
  75. function fExeEScopeCmt() {
  76. model.removeNodeset("/root/send/baseinfo/reqno");
  77. model.makeValue("/root/send/baseinfo/reqno", model.getValue("/root/main/prtlhislist/item[" + grd_list.row + "]/reqno"));
  78. if(submit("TXLPJ02501")) {
  79. messageBox("저장이 ", "I002");
  80. fGetEScopeCmt();
  81. }
  82. }
  83. /* @group : 내시경소견입력
  84. * @ver : 2009.07.21
  85. * @by : 박상환(평화이즈)
  86. * @-----------------------------------
  87. * @type : function
  88. * @access : public
  89. * @desc : 내시경소견관련 처방 조회
  90. */
  91. function fGetEScopeCmt() {
  92. if(submit("TRLPJ02501")) {
  93. var nodelist = instance1.selectNodes("/root/main/prtlhislist/item");
  94. for(var i = 0; i <= nodelist.length; i++){
  95. if(model.getValue("/root/main/prtlhislist/item[" + i + "]/formrecseq") == "0"){
  96. grd_list.cellstyle("background-color", i, 0, i, 5) = "#FFFFFF";
  97. }else {
  98. grd_list.cellstyle("background-color", i, 0, i, 5) = "#FFF500";
  99. }
  100. }
  101. }
  102. }
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body pagewidth="670" pageheight="430" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="grp_tle" style="left:0px; top:0px; width:645px; height:13px; ">
  108. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">내시경소견입력</caption>
  109. </group>
  110. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:645px; height:380px; ">
  111. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:200px; height:14px; ">처방목록</caption>
  112. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:642px; y2:70px; "/>
  113. <group id="grp_sea" style="left:0px; top:10px; width:643px; height:35px; vertical-align:top; ">
  114. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:642px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  115. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">처방일자 :</caption>
  116. <line id="line13" class="line_4" style="x1:555px; y1:7px; x2:555px; y2:29px; "/>
  117. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:575px; top:7px; width:56px; height:22px; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. fGetEScopeCmt();
  122. ]]>
  123. </script>
  124. </button>
  125. <input id="ipt_prcphopetodd" ref="/root/send/baseinfo/prcphopetodd" class="input_s_essential" inputtype="date" style="left:227px; top:9px; width:100px; height:19px; "/>
  126. <input id="ipt_prcphopefromdd" ref="/root/send/baseinfo/prcphopefromdd" class="input_s_essential" inputtype="date" style="left:107px; top:9px; width:100px; height:19px; "/>
  127. <caption id="caption9" class="search_n_b" style="left:211px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  128. <input id="ipt_pid" ref="/root/send/baseinfo/pid" class="input_s_essential" style="left:439px; top:8px; width:80px; height:19px; ">
  129. <script type="javascript" ev:event="onkeypress">
  130. <![CDATA[
  131. if (event.keyCode == '13') {
  132. inputEnterKey("btn_sea", "DOMActivate");
  133. }
  134. ]]>
  135. </script>
  136. </input>
  137. <caption id="caption42" class="search_name" style="left:350px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  138. </group>
  139. <datagrid id="grd_list" nodeset="/root/main/prtlhislist/item" caption="처방일자^바코드번호^진료의^처방명^reqno^formrecseq" colsep="^" colwidth="100, 140, 100, 279, 47, 130" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" navindex="5" style="left:0px; top:75px; width:640px; height:300px; text-align:center; ">
  140. <col ref="prcpdd" format="yyyy-mm-dd"/>
  141. <col ref="spcbarcdno"/>
  142. <col ref="orddrid"/>
  143. <col ref="prcpnm" format="yyyy-mm-dd" style="text-align:center; "/>
  144. <col ref="reqno" visibility="hidden"/>
  145. <col disabled="false" ref="formrecseq" visibility="hidden"/>
  146. <script type="javascript" ev:event="onaftersort">
  147. <![CDATA[
  148. grd_list.gridToInstance();
  149. ]]>
  150. </script>
  151. <script type="javascript" ev:event="ondblclick">
  152. <![CDATA[
  153. fExeEScopeCmt();
  154. ]]>
  155. </script>
  156. </datagrid>
  157. <input id="ipt_execprcpuniqno" ref="/root/send/baseinfo/execprcpuniqno" class="input_search" visibility="hidden" style="left:370px; top:45px; width:80px; height:19px; ">
  158. <script type="javascript" ev:event="onkeypress">
  159. <![CDATA[
  160. if (event.keyCode == '13') {
  161. inputEnterKey("btn_sea", "DOMActivate");
  162. }
  163. ]]>
  164. </script>
  165. </input>
  166. <input id="ipt_reqno" ref="/root/send/baseinfo/reqno" class="input_search" visibility="hidden" style="left:490px; top:45px; width:80px; height:19px; ">
  167. <script type="javascript" ev:event="onkeypress">
  168. <![CDATA[
  169. if (event.keyCode == '13') {
  170. inputEnterKey("btn_sea", "DOMActivate");
  171. }
  172. ]]>
  173. </script>
  174. </input>
  175. <input id="ipt_prcpdd" ref="/root/send/baseinfo/prcpdd" class="input_search" visibility="hidden" style="left:270px; top:45px; width:80px; height:19px; ">
  176. <script type="javascript" ev:event="onkeypress">
  177. <![CDATA[
  178. if (event.keyCode == '13') {
  179. inputEnterKey("btn_sea", "DOMActivate");
  180. }
  181. ]]>
  182. </script>
  183. </input>
  184. </group>
  185. <group id="grp_btn" scroll="auto" style="left:0px; top:393px; width:645px; height:27px; ">
  186. <button id="btn_confirm1" class="btn4_letter2" style="left:524px; top:2px; width:56px; height:22px; ">
  187. <caption>확인</caption>
  188. <script type="javascript" ev:event="onclick">
  189. <![CDATA[
  190. if(grd_list.row >= 1 ){
  191. fExeEScopeCmt();
  192. }else {
  193. messageBox("처방을 먼저 선택하세요","E999");
  194. }
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="btn_cancel1" class="btn4_letter2" style="left:584px; top:2px; width:56px; height:22px; ">
  199. <caption>취소</caption>
  200. <close ev:event="DOMActivate"/>
  201. </button>
  202. </group>
  203. </xhtml:body>
  204. </xhtml:html>