SPMMO14001_무산정처리.xrw 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. <calcflaginfo>
  11. <instcd/>
  12. <pid/>
  13. <orddd/>
  14. <cretno/>
  15. <ordtype/>
  16. <orddeptcd/>
  17. <prcpcd/>
  18. <prcpnm/>
  19. <prcpdd/>
  20. <prcpno/>
  21. <prcphistno/>
  22. <calcflag/>
  23. <resncnts/>
  24. </calcflaginfo>
  25. </main>
  26. <hidden>
  27. <precalcflag/>
  28. </hidden>
  29. <temp/>
  30. <init>
  31. <instcd/>
  32. <prcpdd/>
  33. <prcpno/>
  34. <prcphistno/>
  35. </init>
  36. <send>
  37. <reqdata/>
  38. </send>
  39. </root>
  40. </instance>
  41. <submission id="TRMMO14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" resultref="/root/main/calcflaginfo"/>
  42. <submission id="TXMMO14001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. var param = opener.javascript.getParameter("SSPMMO14001_Param"); // 처방키를 넘겨 받음.
  46. if(param!=""){
  47. param = param.split("|");
  48. model.setValue("/root/init/prcpdd", param[0]);
  49. model.setValue("/root/init/prcpno", param[1]);
  50. model.setValue("/root/init/prcphistno", param[2]);
  51. model.setValue("/root/init/instcd", param[3]);
  52. if(submit("TRMMO14001")){
  53. var sCalcFlag = model.getValue("/root/main/calcflaginfo/calcflag");
  54. if(sCalcFlag == "N"){
  55. messageBox ("무산정 처리 할수 없는 처방 입니다.(자가약, 로봇수술, 비처방성 재료 등등)", "I" );
  56. model.close();
  57. }
  58. model.setValue("/root/hidden/precalcflag", sCalcFlag); // 초기 무산정 여부 설정.
  59. } else {
  60. messageBox ("초기화 처리중 오류가 발생 하였습니다.", "I" );
  61. model.close();
  62. }
  63. }else{
  64. alert("잘못된 데이터입니다.");
  65. model.close();
  66. }
  67. model.refresh();
  68. ]]>
  69. </script>
  70. </model>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  76. </xhtml:head>
  77. <xhtml:body pagewidth="320" pageheight="190" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  78. <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:300px; y2:15px; "/>
  79. <caption id="caption14" class="tit_2" style="left:0px; top:0px; width:152px; height:15px; vertical-align:middle; ">무산정처리</caption>
  80. <caption id="caption26" class="cell_1" style="left:1px; top:20px; width:85px; height:23px; text-align:center; vertical-align:middle; ">처방코드</caption>
  81. <input id="ipt_prcpcd" ref="/root/main/calcflaginfo/prcpcd" disabled="true" disable.background-color="#ffffff" style="left:90px; top:22px; width:210px; height:19px; "/>
  82. <caption id="caption13" class="cell_1" style="left:1px; top:45px; width:85px; height:23px; text-align:center; vertical-align:middle; ">처방명</caption>
  83. <input id="ipt_prcpnm" ref="/root/main/calcflaginfo/prcpnm" disabled="true" disable.background-color="#ffffff" style="left:90px; top:47px; width:210px; height:19px; "/>
  84. <caption id="caption2" class="cell_1" style="left:0px; top:70px; width:85px; height:23px; text-align:center; vertical-align:middle; ">무산정여부</caption>
  85. <select1 id="combo1" ref="/root/main/calcflaginfo/calcflag" appearance="minimal" style="left:90px; top:70px; width:210px; height:19px; ">
  86. <choices>
  87. <item>
  88. <label>정상</label>
  89. <value>Y</value>
  90. </item>
  91. <item>
  92. <label>분리청구</label>
  93. <value>C</value>
  94. </item>
  95. </choices>
  96. </select1>
  97. <caption id="caption1" class="cell_1" style="left:0px; top:95px; width:85px; height:60px; text-align:center; vertical-align:middle; ">무산정사유</caption>
  98. <textarea id="txt_reason" ref="/root/main/calcflaginfo/resncnts" maxlength="600" style="left:90px; top:95px; width:210px; height:60px; "/>
  99. <button id="btn_save" class="btn4_letter2" style="left:180px; top:160px; width:56px; height:22px; ">
  100. <caption>저장</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. if(model.getValue("/root/main/calcflaginfo/resncnts")==""){
  104. alert("무산정 사유를 입력 하세요.");
  105. return;
  106. }
  107. if(model.getValue("/root/hidden/precalcflag")==model.getValue("/root/main/calcflaginfo/calcflag")){
  108. alert("무산정 여부가 변경 되지 않았습니다.");
  109. return;
  110. }
  111. model.copyNode("/root/send/reqdata", "/root/main/calcflaginfo");
  112. if(submit("TXMMO14001")){
  113. alert("저장되었습니다.");
  114. model.close();
  115. }
  116. ]]>
  117. </script>
  118. </button>
  119. <button id="btn_exit" class="btn4_letter2" style="left:240px; top:160px; width:56px; height:22px; ">
  120. <caption>종료</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. model.close();
  124. ]]>
  125. </script>
  126. </button>
  127. </xhtml:body>
  128. </xhtml:html>