SPMMD08700_제한항생제등록.xrw 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <limantibiodruginfo/>
  11. <cond>
  12. <prcpcd/>
  13. <prcpnm/>
  14. </cond>
  15. </main>
  16. <send>
  17. <savedata/>
  18. </send>
  19. <hidden/>
  20. <init/>
  21. </root>
  22. </instance>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. var sUserId = getUserInfo ( "userid" );
  26. if(fContainsHardCD("286", sUserId)) {
  27. button1.disabled = false;
  28. } else {
  29. button1.disabled = true;
  30. }
  31. btn_search.dispatch("DOMActivate");
  32. ]]>
  33. </script>
  34. <submission id="TRMMD08701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/limantibiodruginfo"/>
  35. <submission id="TXMMD08701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/limantibiodruginfo"/>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  41. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  42. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  43. <script type="javascript">
  44. <![CDATA[
  45. ]]>
  46. </script>
  47. </xhtml:head>
  48. <xhtml:body pagewidth="900" pageheight="520" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  49. <group id="group2" style="left:0px; top:0px; width:865px; height:520px; vertical-align:top; ">
  50. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:860px; height:40px; "/>
  51. <caption id="caption2" class="search_name" style="left:10px; top:30px; width:95px; height:17px; vertical-align:middle; ">처방코드 :</caption>
  52. <input id="input5" ref="/root/main/cond/prcpcd" style="left:105px; top:30px; width:165px; height:19px; ">
  53. <script type="javascript" ev:event="onkeypress">
  54. <![CDATA[
  55. inputEnterKey("btn_search", "DOMActivate");
  56. ]]>
  57. </script>
  58. </input>
  59. <caption id="caption13" class="search_name" style="left:375px; top:30px; width:95px; height:17px; vertical-align:middle; ">처방명:</caption>
  60. <input id="input6" ref="/root/main/cond/prcpnm" style="left:452px; top:30px; width:165px; height:19px; ">
  61. <script type="javascript" ev:event="onkeypress">
  62. <![CDATA[
  63. inputEnterKey("btn_search", "DOMActivate");
  64. ]]>
  65. </script>
  66. </input>
  67. <caption id="caption10" class="tit_2" style="left:5px; top:70px; width:139px; height:14px; ">제한항생제 등록</caption>
  68. <line id="line19" class="line_1" style="x1:0px; y1:86px; x2:860px; y2:87px; "/>
  69. <button id="btn_excel" class="btn2_letter2" style="left:805px; top:64px; width:42px; height:19px; ">
  70. <caption>엑셀</caption>
  71. <script type="javascript" ev:event="DOMActivate">
  72. <![CDATA[
  73. var fileName = window.fileDialog("save", ",", false, "제한항생제등록내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  74. if (fileName != ""){
  75. grd_limantibioapplist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  76. }
  77. ]]>
  78. </script>
  79. </button>
  80. <datagrid id="grd_limantibioapplist" nodeset="/root/main/limantibiodruginfo/limantibiodruglist" caption="승인필요^처방코드^처방명^차수^시작일자^종료일자" colsep="^" colwidth="60, 107, 385, 71, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:865px; height:400px; ">
  81. <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
  82. <col ref="prcpcd"/>
  83. <col ref="prcpnm"/>
  84. <col ref="dgflag" type="input"/>
  85. <col ref="valifromdd" type="inputdate"/>
  86. <col ref="valitodd" type="inputdate"/>
  87. <script type="javascript" ev:event="onclick">
  88. <![CDATA[
  89. var row = grd_limantibioapplist.row;
  90. if (grd_limantibioapplist.col == grd_limantibioapplist.colRef("chkflag")) {
  91. if (model.getValue("/root/main/limantibiodruginfo/limantibiodruglist[" + row + "]/chkflag") == "Y") {
  92. model.setValue("/root/main/limantibiodruginfo/limantibiodruglist[" + row + "]/valitodd", "99991231");
  93. } else {
  94. model.setValue("/root/main/limantibiodruginfo/limantibiodruglist[" + row + "]/valitodd", getCurrentDate()-1);
  95. }
  96. grd_limantibioapplist.refresh();
  97. }
  98. ]]>
  99. </script>
  100. </datagrid>
  101. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">제한항생제 등록</caption>
  102. <line id="line20" class="line_4" style="x1:764px; y1:29px; x2:764px; y2:52px; "/>
  103. <button id="btn_search" class="btn1_letter2" style="left:780px; top:29px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. grd_limantibioapplist.clearStatus();
  108. if (submit("TRMMD08701", false) == true) {
  109. model.refresh();
  110. }
  111. ]]>
  112. </script>
  113. </button>
  114. <line id="line15" class="line_3" style="x1:0px; y1:490px; x2:860px; y2:490px; "/>
  115. <button id="button1" class="btn4_letter2" style="left:805px; top:495px; width:56px; height:22px; ">
  116. <caption>저장</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. model.removenode("/root/send/savedate");
  120. model.makeValue("/root/send/savedata", grd_limantibioapplist.getUpdateData());
  121. if (submit("TXMMD08701", false) == true) {
  122. model.refresh();
  123. }
  124. ]]>
  125. </script>
  126. <hint>
  127. <![CDATA[제한 항생제 승인 권한자만 사용 가능 합니다.]]>
  128. </hint>
  129. </button>
  130. </group>
  131. </xhtml:body>
  132. </xhtml:html>