SPLLC90400_채혈접수취소등록.xrw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 채혈접수취소등록.xrw
  4. * 설 명 : 채혈접수취소등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2006.11.11
  8. * 수정이력 : 2007.04.25 조철형 수정
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>채혈접수취소등록</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <cnclrsn/>
  20. </main>
  21. <send>
  22. <data1/>
  23. <data2/>
  24. <data3/>
  25. <rtnid/>
  26. <rtnid/>
  27. </send>
  28. <init>
  29. <title/>
  30. <LB0101>
  31. <cd/>
  32. <nm/>
  33. <etc01/>
  34. </LB0101>
  35. </init>
  36. <hidden>
  37. <cancel>
  38. <bcno/>
  39. <title/>
  40. </cancel>
  41. <cancelcombo>
  42. <resncd/>
  43. <resndesc/>
  44. <resncdkind/>
  45. </cancelcombo>
  46. <cancelinfo>
  47. <resndesc/>
  48. <resncd/>
  49. <resncdkind/>
  50. </cancelinfo>
  51. <openerdata>
  52. <data1/>
  53. <data2/>
  54. </openerdata>
  55. </hidden>
  56. </root>
  57. </instance>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  60. <submission id="TXLLC90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  61. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  62. <submission id="TXLLC90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fBaseInfoRef("0101|");
  66. // 채혈취소// 접수취소 제목 설정
  67. var resn = model.getValue("/root/hidden/openerdata/data2");
  68. model.setvalue("/root/hidden/cancelinfo/resncdkind" , resn);
  69. if(resn == "02"){
  70. model.makeValue("/root/init/title", "접수취소등록");
  71. cap_cmt.visible = true;
  72. }else if(resn == "01"){
  73. model.makeValue("/root/init/title", "채혈취소등록");
  74. cap_cmt.visible = false;
  75. }
  76. cap_cancel.refresh();
  77. //취소사유별로 콤보내용변경..
  78. fSetCancelCombo(resn);
  79. ]]>
  80. </script>
  81. </model>
  82. <script type="javascript">
  83. <![CDATA[
  84. // 채혈/접수 취소등록
  85. function fSetBcollAcptCncl(){
  86. model.setvalue("/root/send/data1",model.getvalue("/root/hidden/openerdata/data1"));
  87. model.setvalue("/root/send/data2",model.getvalue("/root/hidden/openerdata/data2"));
  88. model.copyNode("/root/send/data3" , "/root/hidden/cancelinfo");
  89. model.setvalue("/root/send/rtnid", "-");
  90. var strCd = model.getValue("/root/hidden/cancelinfo/resncd");
  91. //01000 채혈 취소사유, 02000 접수취소 사유, 03000 채혈접수취소 사유
  92. if(strCd.substring(2, 6) == "000" || strCd.substring(2, 6) == ""){
  93. messageBox("취소구분을 선택하세요", "E");
  94. return;
  95. }
  96. if(model.getvalue("/root/hidden/openerdata/data2") == "01"){
  97. submit("TXLLC90401");
  98. }
  99. else if(model.getvalue("/root/hidden/openerdata/data2") == "02"){
  100. submit("TXLLC90402");
  101. window.opener.javascript.fGetSpcListref("C");
  102. }
  103. window.close();
  104. }
  105. // 취소 콤보 변경
  106. function fSetCancelCombo(value){
  107. //alert("01");
  108. model.resetInstanceNode("/root/hidden/cancelcombo");
  109. //var Cnt = getNodesetCnt("/root/init/cancelresn");
  110. var vInstance = document.models(0).instances(0);
  111. var cntCR = vInstance.selectNodes("/root/init/LB0101").length;
  112. //alert("cnt= " + cntCR);
  113. NodeCnt = 1;
  114. for(i=1; i<= cntCR; i++){
  115. // alert("kind= " + model.getValue("/root/init/cancelresn["+ i +"]/resncdkind") + " value= " + value);
  116. if(model.getValue("/root/init/LB0101["+ i +"]/etc01") == value){
  117. model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd");
  118. model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc");
  119. model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind");
  120. model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd", model.getValue("/root/init/LB0101["+ i +"]/cd"));
  121. model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc", model.getValue("/root/init/LB0101["+ i +"]/nm"));
  122. model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind", model.getValue("/root/init/LB0101["+ i +"]/etc01"));
  123. NodeCnt++;
  124. }
  125. }
  126. model.refresh();
  127. }
  128. // 취소 콤보 선택
  129. function fSetCancelResn(){
  130. model.setvalue("/root/hidden/cancelinfo/resndesc" , cmb_cancelgbn.label);
  131. model.refresh();
  132. }
  133. ]]>
  134. </script>
  135. </xhtml:head>
  136. <xhtml:body pagewidth="340" pageheight="200" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  137. <group id="group1" style="left:0px; top:0px; width:311px; height:155px; ">
  138. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:310px; y2:26px; "/>
  139. <caption id="caption2" class="cell_1" style="left:0px; top:55px; width:100px; height:96px; ">취소사유</caption>
  140. <textarea id="textarea1" ref="/root/hidden/cancelinfo/resndesc" style="left:103px; top:56px; width:207px; height:92px; "/>
  141. <line id="line8" class="line_3" style="x1:0px; y1:150px; x2:310px; y2:150px; "/>
  142. <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:310px; y2:53px; "/>
  143. <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; ">취소구분</caption>
  144. <caption id="cap_cancel" ref="/root/init/title" class="tit_2" style="left:5px; top:11px; width:250px; height:14px; "/>
  145. <select1 id="cmb_cancelgbn" ref="/root/hidden/cancelinfo/resncd" class="combo_default" appearance="minimal" style="left:103px; top:32px; width:207px; height:19px; ">
  146. <choices>
  147. <itemset nodeset="/root/hidden/cancelcombo">
  148. <label ref="resndesc"/>
  149. <value ref="resncd"/>
  150. </itemset>
  151. </choices>
  152. <script type="javascript" ev:event="xforms-select">
  153. <![CDATA[
  154. //fSetcnclrsn();
  155. ]]>
  156. </script>
  157. <script type="javascript" ev:event="xforms-value-changed">
  158. <![CDATA[
  159. fSetCancelResn();
  160. ]]>
  161. </script>
  162. </select1>
  163. <caption id="cap_cmt" visibility="hidden" style="left:130px; top:8px; width:179px; height:20px; font-size:9pt; color:#0033cc; ">※ 선택된 한 검체만 취소됩니다.</caption>
  164. </group>
  165. <group id="group2" style="left:0px; top:155px; width:310px; height:27px; ">
  166. <button id="btn_cfm" class="btn4_letter2" style="left:195px; top:5px; width:56px; height:22px; ">
  167. <caption>확인</caption>
  168. <script type="javascript" ev:event="onclick">
  169. <![CDATA[
  170. // 채혈취소등록
  171. fSetBcollAcptCncl();
  172. ]]>
  173. </script>
  174. </button>
  175. <button id="btn_can" class="btn4_letter2" style="left:254px; top:5px; width:56px; height:22px; ">
  176. <caption>취소</caption>
  177. <script type="javascript" ev:event="onclick">
  178. <![CDATA[
  179. window.close();
  180. ]]>
  181. </script>
  182. </button>
  183. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:310px; y2:0px; "/>
  184. </group>
  185. </xhtml:body>
  186. </xhtml:html>