SPZCS00501_DurMessage.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>처방검토결과(전체)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <codeList/>
  11. </main>
  12. <send>
  13. <req>
  14. <pScope>01</pScope>
  15. </req>
  16. <screen>
  17. <pScnMode>0</pScnMode>
  18. <pInstCD>012</pInstCD>
  19. <pPrcpDD>20091012</pPrcpDD>
  20. <pPatientID>11502870</pPatientID>
  21. <pUserID>DEV504</pUserID>
  22. <pDiseaseCD/>
  23. <pDiseaseNM/>
  24. <pAlertDispYN>Y</pAlertDispYN>
  25. <pInptDT>20091012113543</pInptDT>
  26. <nonprgflag/>
  27. </screen>
  28. <prcpdd/>
  29. <reqDDIM>
  30. <pCodeType/>
  31. <pMonograpCd/>
  32. </reqDDIM>
  33. </send>
  34. <init/>
  35. <hidden/>
  36. <temp>
  37. </temp>
  38. <screenMessageList>
  39. <정상처리여부/>
  40. <메세지유무/>
  41. <patientInfoList>
  42. <patientid/>
  43. <gender/>
  44. <age/>
  45. <brthdd/>
  46. <diseasecd/>
  47. <diseasenm/>
  48. </patientInfoList>
  49. <drugInofList>
  50. <currentyn/>
  51. <prcpdd/>
  52. <deptnm/>
  53. <ordusernm/>
  54. <firstordusernm/>
  55. <orddrugcd/>
  56. <orddrugnm/>
  57. <dosageonceqty/>
  58. <dosagedaycount/>
  59. <execstartdate/>
  60. </drugInofList>
  61. <screenResultList>
  62. <modulenm/>
  63. <sldesc/>
  64. <orddrugnm/>
  65. <scnmessage/>
  66. <resncd/>
  67. <resnnm/>
  68. <resncnts/>
  69. <difguid/>
  70. <moduleid/>
  71. <monograpid/>
  72. <처방식별키1/>
  73. <처방식별키2/>
  74. <처방식별키3/>
  75. <처방식별키4/>
  76. </screenResultList>
  77. </screenMessageList>
  78. </root>
  79. </instance>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. /*
  83. 화면을 초기화 합니다.
  84. */
  85. fInitialize();
  86. model.makeValue("/root/send/screen/pScnMode","2");
  87. submit("TRZCS00301");
  88. var vloc = opener.model.getValue ( "/root/paminfo/list/roomcd" );
  89. var vpid = model.getValue("/root/screenMessageList/patientInfoList[1]/patientid");
  90. var vhngnm = model.getValue("/root/screenMessageList/patientInfoList[1]/hngnm");
  91. var vgender = model.getValue("/root/screenMessageList/patientInfoList[1]/gender");
  92. var vage = model.getValue("/root/screenMessageList/patientInfoList[1]/age");
  93. output1.value ="병실:"+vloc+", 등록번호:"+vpid+", 환자명:"+vhngnm+", 성별/나이:"+vgender+"/"+vage;
  94. var vdiseasecd = model.getValue("/root/screenMessageList/patientInfoList[1]/diseasecd");
  95. var diseasenm = model.getValue("/root/screenMessageList/patientInfoList[1]/diseasenm");
  96. output2.value = " "+vdiseasecd+" "+diseasenm;
  97. output2.refresh();
  98. datagrid1.mergecol(2)=false;
  99. datagrid1.mergecol(3)=false;
  100. datagrid1.mergecol(4)=false;
  101. datagrid1.mergecol(6)=false;
  102. datagrid1.mergecol(7)=false;
  103. datagrid1.mergecol(8)=false;
  104. datagrid1.mergecol(9)=false;
  105. datagrid1.mergecol(10)=false;
  106. datagrid1.mergecells="byrestriccol";
  107. datagrid1.refresh();
  108. datagrid1.select(1,1) = true;
  109. ]]>
  110. </script>
  111. <submission id="TRZCS09901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  112. <submission id="TRZCS00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/screen" resultref="/root/screenMessageList"/>
  113. <submission id="TXZCS00101"/>
  114. </model>
  115. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  116. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  117. <script type="javascript" src="../../../com/navigationweb/js/ZCN001.js"/>
  118. <script type="javascript">
  119. <![CDATA[
  120. /*
  121. 초기화 작업을 합니다.
  122. */
  123. function fInitialize(){
  124. /*
  125. model.removeNodeset("/root/screenMessageList");
  126. grd_resultlist.refresh();
  127. */
  128. }
  129. /*
  130. model.getValue(); 를 함수로 만들었습니다.
  131. param1 : node는 grid의 xPath입니다.
  132. param2 : row는 grid에서 선택한 row값입니다.
  133. param3 : element는 getvalue할 해당 element 명입니다.
  134. 해당 getvalue값을 return 해줍니다.
  135. return 하지 않으면 해당값을 가져올 수 없습니다.
  136. */
  137. function fGetValue(node, row, element) {
  138. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  139. return rtnValue;
  140. }
  141. ]]>
  142. </script>
  143. </xhtml:head>
  144. <xhtml:body pagewidth="1100" pageheight="745" guideline="2,296;1,1200;2,779;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  145. <output id="output1" style="left:6px; top:5px; width:454px; height:19px; font-weight:bold; "/>
  146. <output id="output2" style="left:557px; top:6px; width:349px; height:19px; border-color:#3366ff; border-width:1px; border-style:solid; "/>
  147. <caption id="caption4" class="cell_1" style="left:470px; top:6px; width:87px; height:18px; font-family:돋움; vertical-align:middle; ">진단정보</caption>
  148. <button id="button61" class="icon_search" style="left:535px; top:7px; width:16px; height:16px; ">
  149. <caption/>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. modal("SPZCS00601", "1","150", "150", "SPZCS00601", "/root/screenMessageList", "/root/screenMessageList");
  153. ]]>
  154. </script>
  155. </button>
  156. <!--
  157. <datagrid id="grd_resultlist" nodeset="/root/screenMessageList/patientInfoList" autoresize="true" caption="환자정보^환자정보^환자정보^환자정보^진단정보^진단정보|등록번호^성별^나이^생년월일^진단코드^진단명" colsep="^" colwidth="134, 76, 80, 128, 128, 508" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1075px; height:108px; ">
  158. <col ref="patientid" style="text-align:center; vertical-align:top; "/>
  159. <col ref="gender" style="text-align:center; vertical-align:top; "/>
  160. <col ref="age" style="text-align:center; vertical-align:top; "/>
  161. <col ref="brthdd" style="text-align:center; vertical-align:top; "/>
  162. <col ref="diseasecd"/>
  163. <col ref="diseasenm"/>
  164. </datagrid>
  165. -->
  166. <!-- <caption id="caption12" class="tit_2" style="left:5px; top:10px; width:70px; height:13px; ">환자정보</caption>
  167. <line id="line8" class="line_1" style="x1:5px; y1:25px; x2:1080px; y2:25px; "/>
  168. -->
  169. <datagrid id="datagrid2" nodeset="/root/screenMessageList/drugInofList" autoresize="true" caption="현처방^처방일^진료부서^주치의^처방의^약품코드^약품명^총용량^총용량^수량^수량^횟수^일수^투여시작일" colsep="^" colwidth="45, 75, 90, 50, 50, 90, 313, 45, 45, 40, 35, 40, 40, 85" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:515px; width:1075px; height:200px; ">
  170. <col ref="currentordflag" style="text-align:center; "/>
  171. <col ref="prcpdd" style="text-align:center; "/>
  172. <col ref="deptnm" style="text-align:center; "/>
  173. <col ref="ordusernm" style="text-align:center; "/>
  174. <col ref="firstordusernm" style="text-align:center; "/>
  175. <col ref="orddrugcd"/>
  176. <col ref="orddrugnm"/>
  177. <col ref="sumcntsvol" style="text-align:right; "/>
  178. <col ref="cntsunit" style="text-align:right; "/>
  179. <col ref="dosageoriginonceqty" style="text-align:right; "/>
  180. <col ref="dosageunit" style="text-align:right; "/>
  181. <col ref="dosageonedayfrq" style="text-align:right; "/>
  182. <col ref="dosagedaycount" style="text-align:right; "/>
  183. <col ref="execstartdate" style="text-align:center; "/>
  184. <script type="javascript" ev:event="ondblclick">
  185. <![CDATA[
  186. var selectedrow = (datagrid2.row );
  187. if(0 == selectedrow){return;}
  188. var param1 = model.getValue("/root/screenMessageList/drugInofList["+selectedrow+"]/orddrugcd");
  189. model.makeValue("/root/difParam/pYakpumCd", param1);
  190. window.load("../../../com/navigationweb/xrw/SMZCN00301_Opener.xrw","modal","","","/root/difParam","/root/resultParam");
  191. ]]>
  192. </script>
  193. </datagrid>
  194. <datagrid id="datagrid1" nodeset="/root/screenMessageList/screenResultList" autoresize="true" caption="모듈명^모듈맵핑코드^SEQ^등급^처방내용^결과내용^사유명^사유코드^기타사유^상세정보" colsep="^" colwidth="93, 0, 0, 91, 331, 442, 12, 0, 13, 62" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:55px; width:1075px; height:425px; ">
  195. <col ref="modulenm"/>
  196. <col ref="mappingid" visibility="hidden"/>
  197. <col ref="resnseqno" visibility="hidden"/>
  198. <col ref="sldesc"/>
  199. <col ref="orddrugnm"/>
  200. <col ref="scnmessage"/>
  201. <col ref="resnnm" visibility="hidden"/>
  202. <col ref="resncd" visibility="hidden"/>
  203. <col disabled="false" ref="resncnts" type="input" visibility="hidden" style="color:transparent; background-color:#f0f0f0; border-color:#ff0000; border-left-style:none; "/>
  204. <col editable="false" ref="monograpnm" type="inputbutton" style="text-align:right; "/>
  205. <script type="javascript" ev:event="onbuttonclick">
  206. <![CDATA[
  207. var rcnt = (datagrid1.row);
  208. var pMonograpCd = model.getValue("root/screenMessageList/screenResultList["+rcnt+"]/monograpid");
  209. var vModuleID = model.getValue("root/screenMessageList/screenResultList["+rcnt+"]/moduleid");
  210. if (pMonograpCd!=""){
  211. model.setValue("/root/send/reqDDIM/pMonograpCd",pMonograpCd);
  212. if (vModuleID=="I"){
  213. model.setValue("/root/send/reqDDIM/pCodeType", '14');
  214. modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
  215. }
  216. else if(vModuleID=="W"){
  217. model.setValue("/root/send/reqDDIM/pCodeType", '16');
  218. modal("../../referenceweb/xrw/SPZCR00201", "", "", "", "SPZCR00201","/root/send/reqDDIM","/root/send/reqDDIM");
  219. }
  220. }
  221. ]]>
  222. </script>
  223. </datagrid>
  224. <line id="line1" class="line_1" style="x1:5px; y1:511px; x2:1080px; y2:511px; "/>
  225. <caption id="caption1" class="tit_2" autoresize="true" style="left:5px; top:495px; width:1075px; height:13px; background-color:#ffffff; border-color:#ffffff; border-style:solid; ">약물복용정보 (약제를 더블 클릭 시 약품정보를 볼 수 있습니다.)</caption>
  226. <caption id="caption2" class="tit_2" style="left:5px; top:35px; width:70px; height:13px; ">검토결과</caption>
  227. <line id="line2" class="line_1" style="x1:5px; y1:50px; x2:1080px; y2:50px; "/>
  228. <button id="btn_save" class="btn4_letter2" style="left:1023px; top:718px; width:56px; height:22px; ">
  229. <caption>닫기</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. window.close();
  233. /* if ( submit("TXZCS00101") ) {
  234. datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  235. submit("TRZCS00101");
  236. } */
  237. ]]>
  238. </script>
  239. </button>
  240. <datagrid id="datagrid4" nodeset="/root/screenMessageList/screenRenList" visibility="hidden" autoresize="true" caption="모듈ID^처방코드^SEQ^사유^기타사유" colsep="^" colwidth="37, 72, 60, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:990px; top:90px; width:85px; height:65px; ">
  241. <col ref="mappingid"/>
  242. <col ref="orddrugcd"/>
  243. <col ref="resnseqno"/>
  244. <col ref="resncd"/>
  245. <col ref="resncnts"/>
  246. </datagrid>
  247. <button id="button1" class="btn4_letter2" style="left:1025px; top:2px; width:56px; height:22px; ">
  248. <caption>닫기</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. window.close();
  252. /* if ( submit("TXZCS00101") ) {
  253. datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  254. submit("TRZCS00101");
  255. } */
  256. ]]>
  257. </script>
  258. </button>
  259. </xhtml:body>
  260. </xhtml:html>