SPMMO23000_항암제상세정보.xrw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. <main>
  10. <chemoinfo>
  11. <instcd/>
  12. <pid/>
  13. <orddd/>
  14. <cretno/>
  15. <ioflag/>
  16. <prcpdd/>
  17. <prcpno/>
  18. <prcpcd/>
  19. <prcpnm/>
  20. <prcpdayno/>
  21. <appdd/>
  22. <appfrom/>
  23. <appto/>
  24. <appline/>
  25. <appcycle/>
  26. <purpose/>
  27. </chemoinfo>
  28. </main>
  29. <init>
  30. <purpose/>
  31. </init>
  32. <send>
  33. <savedata>
  34. </savedata>
  35. </send>
  36. </root>
  37. </instance>
  38. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  39. <submission id="TXMMO23001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/result"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. zbcfGetCodeList(new Array( "M0753"), new Array( "/root/init/purpose"));
  43. var sPrcpDd = model.getValue("/root/main/chemoinfo/prcpdd");
  44. if (isNull(sPrcpDd)) {
  45. model.makeValue("/root/main/chemoinfo/appdd" , getCurrentDate()); // 당일
  46. } else {
  47. model.makeValue("/root/main/chemoinfo/appdd" , sPrcpDd); //처방일
  48. }
  49. var sPrcpDayNo = model.getValue("/root/main/chemoinfo/prcpdayno"); //처방날수
  50. model.makeValue("/root/main/chemoinfo/appto" , sPrcpDayNo);
  51. model.makeValue("/root/main/chemoinfo/appfrom" , "1");
  52. model.makeValue("/root/main/chemoinfo/appline" , "1");
  53. //model.makeValue("/root/main/chemoinfo/appcycle" , "1");
  54. //model.makeValue("/root/main/chemoinfo/purpose" , "");
  55. model.refresh();
  56. ]]>
  57. </script>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  65. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  66. </xhtml:head>
  67. <xhtml:body pagewidth="400" pageheight="280" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  68. <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:370px; y2:15px; "/>
  69. <caption id="caption14" class="tit_2" style="left:0px; top:0px; width:152px; height:15px; vertical-align:middle; ">항암제 상세정보</caption>
  70. <caption id="caption26" class="cell_1" style="left:1px; top:20px; width:85px; height:23px; text-align:center; vertical-align:middle; ">처방코드</caption>
  71. <input id="ipt_prcpcd" ref="/root/main/chemoinfo/prcpcd" disabled="true" disable.background-color="#ffffff" style="left:90px; top:23px; width:280px; height:19px; "/>
  72. <caption id="caption13" class="cell_1" style="left:1px; top:45px; width:85px; height:23px; text-align:center; vertical-align:middle; ">처방명칭</caption>
  73. <input id="ipt_prcpnm" ref="/root/main/chemoinfo/prcpnm" disabled="true" disable.background-color="#ffffff" style="left:90px; top:47px; width:280px; height:19px; "/>
  74. <caption id="caption1" class="cell_1" style="left:1px; top:70px; width:85px; height:23px; text-align:center; vertical-align:middle; ">시작일</caption>
  75. <input id="ipt_appdd" ref="/root/main/chemoinfo/appdd" navindex="-1" inputtype="date" style="left:90px; top:71px; width:85px; height:19px; "/>
  76. <caption id="caption2" class="cell_1" style="left:181px; top:70px; width:85px; height:23px; text-align:center; vertical-align:middle; ">적용선택</caption>
  77. <caption id="caption5" style="left:268px; top:72px; width:15px; height:20px; ">D</caption>
  78. <input id="input2" ref="/root/main/chemoinfo/appfrom" class="input_essential" maxlength="3" format="#,###" style="left:280px; top:71px; width:33px; height:19px; "/>
  79. <caption id="caption6" style="left:314px; top:72px; width:25px; height:20px; ">~ D</caption>
  80. <input id="input3" ref="/root/main/chemoinfo/appto" class="input_essential" maxlength="3" format="#,###" style="left:337px; top:71px; width:33px; height:19px; "/>
  81. <caption id="caption3" class="cell_1" style="left:1px; top:95px; width:85px; height:23px; text-align:center; vertical-align:middle; ">Line</caption>
  82. <input id="ipt_appline" ref="/root/main/chemoinfo/appline" class="input_essential" maxlength="2" format="#,###" style="left:90px; top:95px; width:85px; height:19px; "/>
  83. <caption id="caption16" class="cell_1" style="left:181px; top:95px; width:85px; height:23px; text-align:center; vertical-align:middle; ">Cycle</caption>
  84. <input id="ipt_appcycle" ref="/root/main/chemoinfo/appcycle" class="input_essential" maxlength="2" format="#,###" style="left:270px; top:95px; width:100px; height:19px; "/>
  85. <caption id="caption4" class="cell_1" style="left:0px; top:120px; width:85px; height:110px; text-align:center; vertical-align:middle; ">투여목적</caption>
  86. <select1 id="sel_purpose" ref="/root/main/chemoinfo/purpose" appearance="full" cols="1" rows="7" overflow="visible" style="left:90px; top:119px; width:280px; height:111px; border-style:none; ">
  87. <choices>
  88. <itemset nodeset="/root/init/purpose/M0753">
  89. <label ref="cdnm"/>
  90. <value ref="cdid"/>
  91. </itemset>
  92. </choices>
  93. </select1>
  94. <button id="btn_save" class="btn4_letter2" style="left:255px; top:235px; width:56px; height:22px; ">
  95. <caption>저장</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. model.copyNode("/root/send/savedata", "/root/main/chemoinfo");
  99. model.makeValue("/root/send/savedata/userid", getUserId());
  100. if(isNull(model.getValue("/root/send/savedata/appdd"))){
  101. messageBox ( "시작일은 필수 입력사항 입니다.", "I999" );
  102. return;
  103. }
  104. if(isNull(model.getValue("/root/send/savedata/appfrom")) || isNull(model.getValue("/root/send/savedata/appto")) ){
  105. messageBox ( "적용선택은 필수 입력사항 입니다.", "I999" );
  106. return;
  107. }
  108. if(isNull(model.getValue("/root/send/savedata/appline"))){
  109. messageBox ( "Line은 필수 입력사항 입니다.", "I999" );
  110. return;
  111. }
  112. if(isNull(model.getValue("/root/send/savedata/appcycle"))){
  113. messageBox ( "Cycle은 필수 입력사항 입니다.", "I999" );
  114. return;
  115. }
  116. if(isNull(model.getValue("/root/send/savedata/purpose"))){
  117. messageBox ( "사용목적은 필수 입력사항 입니다.", "I999" );
  118. return;
  119. }
  120. submit("TXMMO23001");
  121. opener.javascript.setParameter ( "SPMMO23000_rtn1", "Y" );
  122. window.close();
  123. ]]>
  124. </script>
  125. </button>
  126. <button id="btn_exit" class="btn4_letter2" style="left:315px; top:235px; width:56px; height:22px; ">
  127. <caption>종료</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. window.close();
  131. ]]>
  132. </script>
  133. </button>
  134. </xhtml:body>
  135. </xhtml:html>