SPMMD03100_추가사유입력.xrw 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <remlist>
  11. <resncd/>
  12. <resn/>
  13. <resnetc/>
  14. </remlist>
  15. <paramlist/>
  16. </main>
  17. <init>
  18. <M0339list>
  19. </M0339list>
  20. </init>
  21. </root>
  22. </instance>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. zbcfGetCodeList( new Array("M0339"), new Array( "/root/init/M0339list") );
  26. model.refresh();
  27. ]]>
  28. </script>
  29. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  30. <script type="javascript" ev:event="xforms-model-destruct">
  31. <![CDATA[
  32. //opener.javascript.setParameter("SPMMD01600_useyn", "N");
  33. ]]>
  34. </script>
  35. </model>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  40. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  41. <script type="javascript">
  42. <![CDATA[
  43. function fAddRemOpener(){
  44. var strNotInput = "";
  45. var flag = true;
  46. // for( idx = 1; idx <= grd_remlist.rows - grd_remlist.fixedRows ; idx++ ){
  47. //
  48. // var prcpnm = model.getValue("/root/main/remlist/info["+idx+"]/prcpnm");
  49. // if ( isNull(model.getValue("/root/main/remlist/info["+idx+"]/rem"))) {
  50. // strNotInput = strNotInput + "["+prcpnm+"]";
  51. // flag = false;//입력안한 추가사항이 존재한다
  52. // }
  53. //
  54. // }
  55. if ( isNull(model.getValue("/root/main/remlist/resncd"))) {
  56. messageBox(" 추가사항이 입력되지 않았습니다.", "C001");
  57. return false;
  58. }
  59. // 2008.09.11 기타사유가 없을 때는 넘어가지 않도록
  60. if( model.getValue("/root/main/remlist/resncd") == "99") {
  61. if( isNull(model.getValue("/root/main/remlist/resnetc")) ) {
  62. messageBox("기타사유를", "C001");
  63. return false;
  64. }
  65. }
  66. //copyNodesetType("/root/main/antibiotics/antibioticslist","/root/main/remlist","replace",opener.model,model);
  67. opener.model.setValue("/root/main/antibiotics/antibioticslist/resncd", model.getValue("/root/main/remlist/resncd"));
  68. opener.model.setValue("/root/main/antibiotics/antibioticslist/resnetc", model.getValue("/root/main/remlist/resnetc"));
  69. opener.model.setValue("/root/main/antibiotics/antibioticslist/addyn", "Y");//Y : 항생제 추가를 통해 저장된 처방의 경우
  70. return true;
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body pagewidth="595" pageheight="110">
  76. <button id="button1" class="btn4_letter2" style="left:468px; top:83px; width:56px; height:22px; ">
  77. <caption>확인</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. if(fAddRemOpener()){
  81. opener.javascript.setParameter("SPMMD01600_useyn", "Y");
  82. window.close();
  83. }
  84. ]]>
  85. </script>
  86. </button>
  87. <button id="button2" class="btn4_letter2" style="left:527px; top:83px; width:56px; height:22px; ">
  88. <caption>취소</caption>
  89. <script type="javascript" ev:event="onclick">
  90. <![CDATA[
  91. opener.javascript.setParameter("SPMMD01600_useyn", "N");
  92. model.close();
  93. ]]>
  94. </script>
  95. </button>
  96. <caption id="caption3" class="tit_2" style="left:7px; top:6px; width:283px; height:13px; ">추가사유입력(반드시 입력하시기 바랍니다)</caption>
  97. <line id="line7" class="line_1" style="x1:0px; y1:21px; x2:581px; y2:21px; "/>
  98. <select1 id="combo1" ref="/root/main/remlist/resncd" appearance="minimal" style="left:61px; top:28px; width:519px; height:19px; ">
  99. <choices>
  100. <itemset nodeset="/root/init/M0339list/M0339">
  101. <label ref="cdnm"/>
  102. <value ref="cdid"/>
  103. </itemset>
  104. </choices>
  105. <script type="javascript" ev:event="xforms-value-changed">
  106. <![CDATA[
  107. if( model.getValue("/root/main/remlist/resncd") == "99" ){
  108. ipt_resnetc.disabled = false;
  109. }
  110. ]]>
  111. </script>
  112. </select1>
  113. <caption id="caption54" class="cell_1" style="left:0px; top:26px; width:60px; height:49px; text-align:left; vertical-align:middle; ">추가사유</caption>
  114. <line id="line16" class="line_3" style="x1:60px; y1:50px; x2:581px; y2:50px; "/>
  115. <line id="line1" class="line_3" style="x1:0px; y1:76px; x2:581px; y2:76px; "/>
  116. <input id="ipt_resnetc" ref="/root/main/remlist/resnetc" disabled="true" style="left:61px; top:54px; width:520px; height:19px; "/>
  117. </xhtml:body>
  118. </xhtml:html>