SPPAS03000_마감후처방반환.xrw 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. <init>
  10. <comcd/>
  11. </init>
  12. <send>
  13. <etcclrflag/>
  14. <etcclrresn/>
  15. <target/>
  16. <seqno/>
  17. </send>
  18. <target>
  19. <list/>
  20. </target>
  21. <main/>
  22. <temp>
  23. </temp>
  24. <prcpnm/>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. zbcfGetCodeList( new Array("P0434"), new Array("/root/init/comcd"));
  30. radio1.refresh();
  31. input1.disabled= true;
  32. submit("TRPAS03001");
  33. output1.attribute("ref")="/root/temp/prcp/pid";
  34. output2.attribute("ref")="/root/temp/prcp/patnm";
  35. output3.attribute("ref")="/root/temp/prcp/orddeptnm";
  36. output4.attribute("ref")="/root/temp/prcp/medispclnm";
  37. var cnt = getNodesetCount("/root/target/list");
  38. var prcpnm = model.getValue("/root/temp/prcp/prcpnm");
  39. if(cnt >1 && output1.value != "")
  40. {
  41. prcpnm = prcpnm + " 외 " + (cnt-1) + "건";
  42. }
  43. model.setValue("/root/prcpnm", prcpnm);
  44. output1.refresh();
  45. output2.refresh();
  46. output3.refresh();
  47. output4.refresh();
  48. output5.refresh();
  49. model.copyNode("/root/send/seqno", "/root/temp/rtn");
  50. model.copyNode("/root/send/target", "/root/target");
  51. ]]>
  52. </script>
  53. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  54. <submission id="TRPAS03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/target/list" resultref="/root/temp"/>
  55. <submission id="TXPAS03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/target/list" resultref="/root/main"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="480" pageheight="480" guideline="2,548;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <group id="group3" scroll="auto" style="left:10px; top:35px; width:448px; height:411px; ">
  64. <group id="group2" style="left:0px; top:0px; width:443px; height:145px; vertical-align:top; ">
  65. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:442px; height:135px; "/>
  66. <caption id="caption2" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">등록번호 :</caption>
  67. <caption id="caption4" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">성 명 :</caption>
  68. <caption id="caption5" class="search_name" style="left:15px; top:60px; width:86px; height:17px; ">진 료 과 :</caption>
  69. <caption id="caption6" class="search_name" style="left:15px; top:85px; width:86px; height:17px; ">진료의사 :</caption>
  70. <caption id="caption7" class="search_name" style="left:15px; top:110px; width:86px; height:17px; ">처 방 명 :</caption>
  71. <output id="output1" style="left:105px; top:10px; width:300px; height:19px; "/>
  72. <output id="output2" style="left:105px; top:35px; width:300px; height:19px; "/>
  73. <output id="output3" style="left:105px; top:60px; width:300px; height:19px; "/>
  74. <output id="output4" style="left:105px; top:85px; width:300px; height:19px; "/>
  75. <output id="output5" ref="/root/prcpnm" style="left:105px; top:110px; width:300px; height:19px; "/>
  76. </group>
  77. <caption id="caption1" class="tit_2" style="left:5px; top:160px; width:100px; height:13px; ">처방 반환사유</caption>
  78. <line id="line1" class="line_1" style="x1:0px; y1:175px; x2:442px; y2:175px; "/>
  79. <select1 id="radio1" ref="/root/send/etcclrflag" appearance="full" itemheight="20" overflow="visible" style="left:15px; top:185px; width:100px; height:20px; border-style:none; ">
  80. <choices>
  81. <itemset nodeset="/root/init/comcd/P0434">
  82. <label ref="cdnm"/>
  83. <value ref="cdid"/>
  84. </itemset>
  85. </choices>
  86. <script type="javascript" ev:event="xforms-select">
  87. <![CDATA[
  88. if(radio1.value == "99")
  89. {
  90. input1.disabled= false;
  91. }
  92. else if(radio1.value != "99")
  93. {
  94. input1.value = "";
  95. input1.disabled= true;
  96. }
  97. ]]>
  98. </script>
  99. </select1>
  100. <input id="input1" ref="/root/send/etcclrresn" style="left:10px; top:375px; width:430px; height:19px; "/>
  101. </group>
  102. <group id="group1" scroll="auto" style="left:390px; top:186px; width:63px; height:22px; ">
  103. <button id="btn_confirm" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:7px; top:0px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  104. <caption>저장</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. if(radio1.value == "")
  108. {
  109. messageBox("처방 반환사유를 ", "C002");
  110. }
  111. else if(radio1.value=="99" && input1.value=="")
  112. {
  113. messageBox("기타 사유를 ", "C001");
  114. }
  115. else
  116. {
  117. var etcclrflag = model.getValue("/root/send/etcclrflag");
  118. var etcclrresn = model.getValue("/root/send/etcclrresn");
  119. var nodeCnt = getNodesetCount("/root/target/list");
  120. for(var i = 1; i <= nodeCnt; i++){
  121. model.makeValue("/root/target/list[" + i + "]/etcclrflag", etcclrflag);
  122. model.makeValue("/root/target/list[" + i + "]/etcclrresn", etcclrresn);
  123. }
  124. if(submit("TXPAS03001"))
  125. {
  126. window.close();
  127. }
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. </group>
  133. <caption id="caption3" class="tit_2" style="left:5px; top:15px; width:113px; height:14px; ">마감후 처방반환</caption>
  134. </xhtml:body>
  135. </xhtml:html>