SPLLJ90300_검체취소사유관리.xrw 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLJ90300_검체취소사유관리.xrw
  4. * 설 명 : 다중결과
  5. * 설 계 자 : (주)에이씨케이 - 송요셉
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2008.03.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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 xmlns="">
  18. <main>
  19. <cancellist/>
  20. </main>
  21. <send>
  22. </send>
  23. <init>
  24. </init>
  25. <hidden>
  26. <cancel>
  27. <resncd/>
  28. <resndesc/>
  29. </cancel>
  30. <ref>
  31. <tclsnmlist/>
  32. </ref>
  33. </hidden>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-model-construct-done">
  37. <![CDATA[
  38. fInit();
  39. ]]>
  40. </script>
  41. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  45. <submission id="TRLLJ00301" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/cancelresn"/>
  46. </model>
  47. <script type="javascript">
  48. <![CDATA[
  49. function fInit(){
  50. submit("TRLLJ00301");
  51. model.setValue("/root/main/cancellist", model.getValue("/root/hidden/ref/tclsnmlist"));
  52. model.resetInstanceNode("/root/hidden/cancelcombo");
  53. var cntCR = instance1.selectNodes("/root/init/cancelresn").length;
  54. NodeCnt = 1;
  55. for(i=1; i<= cntCR; i++){
  56. if(model.getValue("/root/init/cancelresn["+ i +"]/resncdkind") == "04"){
  57. model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd");
  58. model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc");
  59. model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind");
  60. model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd", model.getValue("/root/init/cancelresn["+ i +"]/resncd"));
  61. model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc", model.getValue("/root/init/cancelresn["+ i +"]/resndesc"));
  62. model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind", model.getValue("/root/init/cancelresn["+ i +"]/resncdkind"));
  63. NodeCnt++;
  64. }
  65. }
  66. model.refresh();
  67. }
  68. function fSelect_Click(){
  69. if(model.getValue("/root/hidden/cancel/resncd") == "" || model.getValue("/root/hidden/cancel/resndesc") == ""){
  70. messageBox("사유를 " , "C001" ,"");
  71. return;
  72. }
  73. var retval = window.alert( "검체취소시 최종보고 데이터가 삭제될 수 있습니다. 취소 하시겠습니까?", "결과관리", "35" );
  74. if (retval != "6") return; // yes = 6, no = 7
  75. window.opener.model.setvalue("/root/send/cancelgrd/resncd", model.getvalue("/root/hidden/cancel/resncd"));
  76. window.opener.model.setvalue("/root/send/cancelgrd/resndesc", model.getvalue("/root/hidden/cancel/resndesc"));
  77. window.opener.javascript.fcancelClick();
  78. window.close();
  79. }
  80. function fSetResnCombo(){
  81. var cntCR = instance1.selectNodes("/root/init/cancelresn").length;
  82. for(i=1; i< cntCR; i++){
  83. if(cmb_resn.value == model.getValue("/root/init/cancelresn["+i+"]/resncd")){
  84. model.setValue("/root/hidden/cancel/resncd", model.getValue("/root/init/cancelresn["+i+"]/resncd"));
  85. model.setValue("/root/hidden/cancel/resndesc", model.getValue("/root/init/cancelresn["+i+"]/resndesc"));
  86. model.refresh();
  87. break;
  88. }
  89. }
  90. }
  91. ]]>
  92. </script>
  93. </xhtml:head>
  94. <xhtml:body pagewidth="450" pageheight="160" guideline="1,1194;2,-2;2,-3;2,-1;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  95. <group id="group1" style="left:0px; top:0px; width:415px; height:84px; ">
  96. <caption id="caption31" class="tit_2" style="left:5px; top:10px; width:121px; height:14px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검체취소사유</caption>
  97. <output id="output4" ref="/root/main/cancellist" class="output_fix" style="left:65px; top:55px; width:335px; height:19px; "/>
  98. <line id="line12" class="line_1" style="x1:0px; y1:25px; x2:400px; y2:25px; "/>
  99. <caption id="caption32" class="cell_1" style="left:0px; top:30px; width:60px; height:23px; vertical-align:middle; ">사유</caption>
  100. <caption id="caption33" class="cell_1" style="left:0px; top:54px; width:60px; height:23px; vertical-align:middle; ">취소항목</caption>
  101. <select1 id="cmb_resn" ref="/root/hidden/cancel/resncd" class="combo_default" appearance="minimal" style="left:65px; top:30px; width:335px; height:19px; ">
  102. <choices>
  103. <itemset nodeset="/root/hidden/cancelcombo">
  104. <label ref="resndesc"/>
  105. <value ref="resncd"/>
  106. </itemset>
  107. </choices>
  108. <script type="javascript" ev:event="xforms-select">
  109. <![CDATA[
  110. // 사유코드 콤보 선택
  111. fSetResnCombo();
  112. ]]>
  113. </script>
  114. </select1>
  115. </group>
  116. <button id="button3" class="btn4_letter2" visibility="visible" style="left:205px; top:95px; width:56px; height:22px; ">
  117. <caption>YES</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. fSelect_Click();
  121. ]]>
  122. </script>
  123. </button>
  124. <button id="button4" class="btn4_letter2" style="left:270px; top:95px; width:56px; height:22px; ">
  125. <caption>NO</caption>
  126. <script type="javascript" ev:event="onclick">
  127. <![CDATA[
  128. window.close();
  129. ]]>
  130. </script>
  131. </button>
  132. <caption id="caption1" style="left:15px; top:95px; width:175px; height:20px; ">검체취소를 실행하시겠습니까?</caption>
  133. </xhtml:body>
  134. </xhtml:html>