SMADB00900_신규프로토콜조회.xrw 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. <list>
  11. <item>
  12. <orddeptcd/>
  13. <sickclscd/>
  14. <sickclsnm/>
  15. <ioflag/>
  16. <prtlcd/>
  17. <prtlnm/>
  18. <drugprid/>
  19. <antimetprtlcd/>
  20. <antimetprtlnm/>
  21. <insuqualid/>
  22. <insuqualdt/>
  23. <ordqualid/>
  24. <ordqualdt/>
  25. <pharmqualid/>
  26. <pharmqualdt/>
  27. <remark/>
  28. </item>
  29. </list>
  30. <userinfo>
  31. <userjobflag/>
  32. </userinfo>
  33. <orddeptlist>
  34. <item>
  35. <orddeptcd/>
  36. <orddeptnm/>
  37. </item>
  38. </orddeptlist>
  39. </main>
  40. <send>
  41. <srchdata>
  42. <srchkind>C</srchkind>
  43. <userjpbflag/>
  44. <popsign/>
  45. </srchdata>
  46. <popdata>
  47. <orddeptcd/>
  48. </popdata>
  49. </send>
  50. <init/>
  51. <hidden/>
  52. </root>
  53. </instance>
  54. <submission id="TRADB00901" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/list"/>
  55. <submission id="TRADB00801" ref="/root/send/srchdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/orddeptlist"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. submit("TRADB00801");
  62. // 권한 관리 버트 없음.
  63. var jobkindcd = getUserInfo("jobkindcd"); // jobkindcd = 0330 / jobkindnm = 의사
  64. var jobkindnm = getUserInfo("jobkindnm");
  65. var dutplcecd = getUserInfo("dutplcecd"); // 근무지코드 = 4070300000 - 보험팀
  66. if(jobkindcd == "0330") { //의사일 경우
  67. model.setValue("/root/send/srchdata/userjpbflag","dr");
  68. }
  69. if(dutplcecd == "4070300000") { // 보험팀일경우
  70. model.setValue("/root/send/srchdata/userjpbflag","insu");
  71. }
  72. if( dutplcecd.substring(0,5) == "32421") { // 약제팀일경우 ( 32421~~~)
  73. model.setValue("/root/send/srchdata/userjpbflag","pharm");
  74. }
  75. // alert ("jobkindcd==>"+ jobkindcd);
  76. // alert ("dutplcecd==>"+ dutplcecd);
  77. // alert(model.getValue("/root/send/srchdata/userjpbflag"));
  78. var userjpbflag = model.getValue("/root/send/srchdata/userjpbflag")
  79. if ( userjpbflag =="dr" || userjpbflag =="insu" || userjpbflag=="pharm" ) {
  80. btn_sea.dispatch ("DOMActivate");
  81. }else{
  82. messageBox("해당 로그인ID 는 신규프로토콜 확인 작업을", "E001");
  83. }
  84. ]]>
  85. </script>
  86. </xhtml:head>
  87. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1194;1,1195;2,782;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  88. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  89. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:129px; height:14px; ">신규 프로토콜 조회</caption>
  90. </group>
  91. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  92. <datagrid id="datagrid2" nodeset="/root/new" caption="진료과 ^질병코드^질병명^프로토콜 코드^프로토콜명^약국승인^승인일^보험승인^승인일^진료승인^승인일" colwidth="78, 77, 130, 90, 220, 70, 100, 70, 100, 70, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" style="left:4px; top:80px; width:1190px; height:662px; ">
  93. <col ref="j"/>
  94. <col ref="code"/>
  95. <col ref="name"/>
  96. <col ref="code2"/>
  97. <col ref="pname"/>
  98. <col ref="ok"/>
  99. <col ref="date"/>
  100. <col ref="per"/>
  101. <col ref="bo"/>
  102. <col/>
  103. <col/>
  104. </datagrid>
  105. <group id="group2" style="left:0px; top:5px; width:1195px; height:40px; ">
  106. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  107. <line id="line13" style="x1:1115px; y1:10px; x2:1115px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  108. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:10px; width:56px; height:22px; ">
  109. <caption>조회</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. var userjpbflag = model.getValue("/root/send/srchdata/userjpbflag")
  113. if ( userjpbflag =="dr" || userjpbflag =="insu" || userjpbflag=="pharm" ) {
  114. submit("TRADB00901");
  115. }else{
  116. messageBox("해당 로그인ID 는 신규프로토콜 확인 작업을", "E001");
  117. }
  118. ]]>
  119. </script>
  120. </button>
  121. </group>
  122. <button id="button51" class="btn2_letter2" style="left:1151px; top:55px; width:42px; height:19px; ">
  123. <caption>엑셀</caption>
  124. </button>
  125. <datagrid id="grd_protocol" nodeset="/root/main/list/item" class="datagrid2" caption="진료과 ^질병코드^질병명^입원외래구분^프로토콜 코드^프로토콜명^투여주기^진토제코드^진토제명^보험팀확인^보험팀확인일시^진료확인^진료확인일시^약제팀확인^약제팀확인일시^Remark" colwidth="70, 70, 130, 48, 55, 189, 35, 66, 113, 73, 93, 61, 94, 68, 103, 315" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" style="left:4px; top:75px; width:1190px; height:662px; ">
  126. <col ref="orddeptcd" type="combo" disabled="true">
  127. <choices>
  128. <itemset nodeset="/root/main/orddeptlist/item">
  129. <label ref="orddeptnm"/>
  130. <value ref="orddeptcd"/>
  131. </itemset>
  132. </choices>
  133. </col>
  134. <col ref="sickclscd"/>
  135. <col ref="sickclsnm"/>
  136. <col ref="ioflag" type="combo">
  137. <choices>
  138. <item>
  139. <label>입원</label>
  140. <value>I</value>
  141. </item>
  142. <item>
  143. <label>외래</label>
  144. <value>O</value>
  145. </item>
  146. </choices>
  147. </col>
  148. <col ref="prtlcd"/>
  149. <col ref="prtlnm"/>
  150. <col ref="drugprid"/>
  151. <col ref="antimetprtlcd"/>
  152. <col ref="antimetprtlnm"/>
  153. <col ref="insuqualid" style="text-align:center; "/>
  154. <col ref="insuqualdt" type="inputdate"/>
  155. <col ref="ordqualid" style="text-align:center; "/>
  156. <col ref="ordqualdt" type="inputdate"/>
  157. <col ref="pharmqualid" style="text-align:center; "/>
  158. <col ref="pharmqualdt" type="inputdate"/>
  159. <col ref="remark"/>
  160. <script type="javascript" ev:event="ondblclick">
  161. <![CDATA[
  162. var userjpbflag = model.getValue("/root/send/srchdata/userjpbflag")
  163. if ( userjpbflag =="dr" || userjpbflag =="insu" || userjpbflag=="pharm" ) {
  164. model.makeNode("/root/main/list/item["+grd_protocol.row+"]/userjpbflag");
  165. model.setValue("/root/main/list/item["+grd_protocol.row+"]/userjpbflag",model.getValue("/root/send/srchdata/userjpbflag"));
  166. // alert (model.getValue("/root/send/srchdata/userjpbflag"));
  167. modal("SPADB00800","","","","","/root/main/list/item["+grd_protocol.row+"]","/root/send/popdata");
  168. }else{
  169. messageBox("해당 로그인ID 는 신규프로토콜 확인 작업을", "E001");
  170. }
  171. ]]>
  172. </script>
  173. </datagrid>
  174. </group>
  175. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  176. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  177. <caption>출력</caption>
  178. </button>
  179. </group>
  180. </xhtml:body>
  181. </xhtml:html>