SPLRR92400_말라리아검사의뢰서등록.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLRR92400_말라리아검사의뢰서.xfm
  4. * 설 명 : 말라리아검사의뢰서
  5. * 설 계 자 :
  6. * 작 성 자 : 유민규(ACK)
  7. * 작 성 일 : 2011.01.
  8. * 수정이력 :
  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 xmlns="">
  18. <main>
  19. <reqfrm>
  20. <reqfrmtbl>
  21. <reqfrminfo>
  22. <choispc>
  23. <choispclist>
  24. <choi/>
  25. <spcseqno/>
  26. <spccd/>
  27. <spccd2/>
  28. </choispclist>
  29. </choispc>
  30. <reqcnts/>
  31. <inptitem01>3days</inptitem01>
  32. <inptitem02/>
  33. <inptitem03>전</inptitem03>
  34. <etc/>
  35. <claim/>
  36. </reqfrminfo>
  37. </reqfrmtbl>
  38. </reqfrm>
  39. <rtnval>
  40. <rtnvalinfo>
  41. <reqno/>
  42. <instcd/>
  43. </rtnvalinfo>
  44. </rtnval>
  45. </main>
  46. <send/>
  47. <init/>
  48. <hidden>
  49. <reqfrminfo>
  50. <pid/>
  51. <prcpcd/>
  52. <prcpnm/>
  53. <opnm/>
  54. <spccd/>
  55. <spcnm/>
  56. <reqno/>
  57. <reqhistno/>
  58. </reqfrminfo>
  59. </hidden>
  60. </root>
  61. </instance>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. fExeInitialize();
  68. ]]>
  69. </script>
  70. <submission id="TXLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
  71. <submission id="TRLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqfrm"/>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. /* @group : 세포유전학검사 의뢰서 팝업화면
  76. * @ver : 2007.05.21
  77. * @by : 박정은(ACK)
  78. * @-----------------------------------
  79. * @type : function
  80. * @access : public
  81. * @desc : 화면 Initialize함수
  82. */
  83. function fExeInitialize() {
  84. //----------------------------------------------------------------
  85. // 처방등록 화면에서 호출되지 않는 경우는 "저장" 기능을 비 활성화 처리
  86. if (model.getValue("/root/hidden/reqfrminfo/scrnno") == "10") {
  87. btn_save.visible = true;
  88. } else {
  89. btn_save.visible = false;
  90. }
  91. fchange();
  92. //-------------
  93. // Test용 자료
  94. //model.setValue("/root/hidden/reqfrminfo/pid", "56605");
  95. //model.setValue("/root/hidden/reqfrminfo/prcpcd", "T2");
  96. //model.setValue("/root/hidden/reqfrminfo/spccd", "TC2003");
  97. //model.setValue("/root/hidden/reqfrminfo/reqno", "27");
  98. //----------------------------------------------
  99. // 의뢰지번호가 존재할 경우 의뢰지내용을 조회한다.
  100. if(getNodesetCount("/root/hidden/reqfrminfo/reqcnts") <= 0) { //내용이 없다
  101. if (model.getValue("/root/hidden/reqfrminfo/reqno") != "0") { //의뢰지번호 존재시
  102. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  103. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  104. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  105. submit("TRLRR90201");
  106. } else { //의뢰지 번호 없어.!
  107. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01", "");
  108. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02", "");
  109. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem03", "");
  110. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts", "");
  111. model.setValue("/root/hidden/reqfrminfo/reqno", "0");
  112. }
  113. } else { //내용이 있다(ex> 특수에서 의뢰서 띄울때 처럼)
  114. model.removeNodeset("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  115. model.makeNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  116. copyNodesetType("/root/main/reqfrm/reqfrmtbl/reqfrminfo", "/root/hidden/reqfrminfo/reqcnts/reqfrminfo"); //의뢰서 내용 main으로 복사
  117. }
  118. //-------------
  119. model.refresh();
  120. }
  121. function fchange(){
  122. if(radio1.value == "기타"){
  123. input1.disabled = false;
  124. }else{
  125. input1.disabled = true;
  126. }
  127. }
  128. // 확인버튼 클릭시 저장
  129. function fExeClinicSave(){
  130. var strNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
  131. var node = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo"); //xml 저장을 위해 노드로 만듬
  132. if(model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01") == ""){
  133. messageBox("Fever cycle은 필수 입력 사항입니다", "E");
  134. return;
  135. }
  136. if(model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02") == ""){
  137. messageBox("Brief history는 필수 입력 사항입니다", "E");
  138. return;
  139. }
  140. if(model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem03") == ""){
  141. messageBox("Fever는 필수 입력 사항입니다", "E");
  142. return;
  143. }
  144. // 검체 추가정보 설정
  145. model.makeValue(strNode + "/choi", "true");
  146. model.makeValue(strNode + "/spcseqno", "001");
  147. model.makeValue(strNode + "/spccd", model.getValue("/root/hidden/reqfrminfo/spccd"));
  148. model.makeValue(strNode + "/spccd2", model.getValue("/root/hidden/reqfrminfo/spccd"));
  149. model.removeNodeset("/root/send");
  150. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  151. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  152. model.makeValue("/root/send/reqcnts", node.xml, true);
  153. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  154. //------------------------
  155. if (!submit("TXLRR90201")) {
  156. messageBox("의뢰지 저장을", "E009");
  157. return false;
  158. }
  159. //------------------
  160. // 의뢰지번호 Return
  161. opener.model.setValue("/root/hidden/reqfrminfo/reqno", model.getValue("/root/main/rtnval/rtnvalinfo/reqno"));
  162. //------------
  163. model.close();
  164. }
  165. // 닫기
  166. function fSetClose(){
  167. window.close();
  168. }
  169. ]]>
  170. </script>
  171. </xhtml:head>
  172. <xhtml:body pagewidth="490" pageheight="290" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  173. <group id="group1" style="left:0px; top:0px; width:460px; height:230px; ">
  174. <caption id="caption5" class="tit_2" style="left:0px; top:6px; width:198px; height:14px; ">Malaria 검사의뢰서</caption>
  175. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:455px; y2:20px; "/>
  176. <caption id="caption25" class="cell_1" style="left:0px; top:25px; width:110px; height:23px; text-align:left; vertical-align:middle; ">Fever cycle</caption>
  177. <caption id="caption1" class="cell_1" style="left:0px; top:50px; width:110px; height:149px; text-align:left; vertical-align:middle; ">Brief history</caption>
  178. <line id="line3" class="line_3" style="x1:0px; y1:48px; x2:455px; y2:48px; "/>
  179. <line id="line9" class="line_3" style="x1:0px; y1:198px; x2:455px; y2:198px; "/>
  180. <line id="line17" class="line_3" style="x1:0px; y1:223px; x2:455px; y2:223px; "/>
  181. <select1 id="radio1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:115px; top:25px; width:190px; height:20px; border-style:none; ">
  182. <choices>
  183. <item>
  184. <label>3days</label>
  185. <value>3days</value>
  186. </item>
  187. <item>
  188. <label>4days</label>
  189. <value>4days</value>
  190. </item>
  191. <item>
  192. <label>기타</label>
  193. <value>기타</value>
  194. </item>
  195. </choices>
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. fchange();
  199. ]]>
  200. </script>
  201. </select1>
  202. <input id="input1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/etc" style="left:315px; top:25px; width:140px; height:19px; "/>
  203. <textarea id="textarea1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02" style="left:115px; top:50px; width:340px; height:145px; "/>
  204. <caption id="caption2" class="cell_1" style="left:0px; top:200px; width:110px; height:23px; text-align:left; vertical-align:middle; ">Fever</caption>
  205. <select1 id="radio2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem03" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:120px; top:200px; width:175px; height:20px; border-style:none; ">
  206. <choices>
  207. <item>
  208. <label>전</label>
  209. <value>전</value>
  210. </item>
  211. <item>
  212. <label>중</label>
  213. <value>중</value>
  214. </item>
  215. <item>
  216. <label>후</label>
  217. <value>후</value>
  218. </item>
  219. </choices>
  220. </select1>
  221. </group>
  222. <group id="group3" style="left:0px; top:230px; width:455px; height:30px; ">
  223. <button id="btn_close" class="btn4_letter2" style="left:394px; top:5px; width:56px; height:22px; ">
  224. <caption>닫기</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fSetClose();
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="btn_save" class="btn4_letter2" style="left:335px; top:5px; width:56px; height:22px; ">
  232. <caption>확인</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. fExeClinicSave();
  236. ]]>
  237. </script>
  238. </button>
  239. </group>
  240. </xhtml:body>
  241. </xhtml:html>