SPLLF90900_검체정보설정2.xrw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLF90900_검체정보설정2.xrw
  4. * 설 명 : 검체정보설정
  5. * 설 계 자 : (주)에이씨케이 박정은
  6. * 작 성 자 : (주)에이씨케이 박정은
  7. * 작 성 일 : 2009.07.07
  8. * 수정이력 : 병원별 검사코드 관리 2에서 사용할꺼
  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. <spccdlist>
  20. <chk/>
  21. <cd/>
  22. <nm/>
  23. </spccdlist>
  24. </main>
  25. <send>
  26. <data1/>
  27. <codeflag/>
  28. </send>
  29. <init/>
  30. <hidden>
  31. <spckind>A</spckind>
  32. <spccdnm>
  33. <cd/>
  34. <nm/>
  35. <row/>
  36. <value/>
  37. <basespccd/>
  38. </spccdnm>
  39. </hidden>
  40. </root>
  41. </instance>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. // 초기정보 조회
  46. //model.setValue("/root/send/codeflag", "0105|"); //0105 검체 //
  47. //submit("TRLZZ00101");
  48. //model.copyNode("/root/main/spccdlist", "/root/init/LB0105");
  49. model.refresh();
  50. ]]>
  51. </script>
  52. </model>
  53. <script type="javascript">
  54. <![CDATA[
  55. // 확인 버튼 클릭
  56. function fSetSpcListSend(){
  57. var sRow = 0;
  58. var sSpccd = "";
  59. var sSpcnm = "";
  60. for(i=1; i<grd_SpcList.rows; i++){
  61. // 선택된 검체만
  62. if(model.getValue("/root/main/spccdlist["+i+"]/chk")=="Y"){
  63. sRow += 1;
  64. sSpccd += "▦" + model.getValue("/root/main/spccdlist["+i+"]/cd");
  65. sSpcnm += "▦" + model.getValue("/root/main/spccdlist["+i+"]/nm");
  66. }
  67. }
  68. model.setValue("/root/hidden/spccdnm/cd", sSpccd);
  69. model.setValue("/root/hidden/spccdnm/nm", sSpcnm);
  70. model.setValue("/root/hidden/spccdnm/row", sRow);
  71. model.setValue("/root/hidden/spccdnm/value", "확인");
  72. model.copyNode(opener.root.hidden.spccdnm, root.hidden.spccdnm);
  73. //opener.ipt_tclscdlist.refresh();
  74. window.close();
  75. }
  76. // 기본검체변경
  77. function fSetBaseSpccd(){
  78. model.setValue("/root/hidden/spccdnm/value", "기본검체변경");
  79. for(i=1; i <grd_SpcList.rows; i++){
  80. if(model.getValue("/root/main/spccdlist["+i+"]/chk" ) == "Y"){
  81. model.setValue("/root/hidden/spccdnm/basespccd", model.getValue("/root/main/spccdlist["+i+"]/cd"));
  82. }
  83. }
  84. model.copyNode(opener.root.hidden.spccdnm, root.hidden.spccdnm);
  85. window.close();
  86. }
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body pagewidth="320" pageheight="360" guideline="1,1194;" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  91. <group id="group2" style="left:0px; top:311px; width:300px; height:27px; ">
  92. <button id="button4" class="btn4_letter2" style="left:184px; top:5px; width:56px; height:22px; ">
  93. <caption>확인</caption>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. fSetSpcListSend();
  97. ]]>
  98. </script>
  99. </button>
  100. <button id="button9" class="btn4_letter2" style="left:243px; top:5px; width:56px; height:22px; ">
  101. <caption>취소</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. window.close();
  105. ]]>
  106. </script>
  107. </button>
  108. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:299px; y2:0px; "/>
  109. <button id="button1" class="btn4_letter6" visibility="hidden" style="left:77px; top:5px; width:104px; height:22px; ">
  110. <caption>기본검체변경</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. fSetBaseSpccd();
  114. ]]>
  115. </script>
  116. </button>
  117. </group>
  118. <group id="group1" style="left:0px; top:0px; width:300px; height:311px; ">
  119. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:299px; y2:26px; "/>
  120. <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:126px; height:14px; ">검체목록</caption>
  121. <datagrid id="grd_SpcList" nodeset="/root/main/spccdlist" visibility="visible" caption="^검체코드^검체명" colsep="^" colwidth="30, 60, 160" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:31px; width:299px; height:278px; ">
  122. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  123. <col ref="cd"/>
  124. <col ref="nm"/>
  125. </datagrid>
  126. </group>
  127. </xhtml:body>
  128. </xhtml:html>