SPLRR90200_분자생물학부의뢰서등록.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLRR90200_분자생물학부의뢰서등록.xrw
  4. * 설 명 : 분자생물학부의뢰서등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.5.21
  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. <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/>
  32. <inptitem02/>
  33. <inptitem03/>
  34. <inptitem04/>
  35. <inptitem05/>
  36. </reqfrminfo>
  37. </reqfrmtbl>
  38. </reqfrm>
  39. <rtnval>
  40. <rtnvalinfo>
  41. <reqno/>
  42. <instcd/>
  43. </rtnvalinfo>
  44. </rtnval>
  45. </main>
  46. <send>
  47. <pid/>
  48. <reqno/>
  49. <reqcnts/>
  50. <instcd/>
  51. <iptitem01/>
  52. <iptitem02/>
  53. </send>
  54. <init>
  55. </init>
  56. <hidden>
  57. <reqfrminfo>
  58. <pid/>
  59. <prcpcd/>
  60. <prcpnm/>
  61. <opnm/>
  62. <spccd/>
  63. <spcnm/>
  64. <reqno/>
  65. <reqhistno/>
  66. </reqfrminfo>
  67. </hidden>
  68. </root>
  69. </instance>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. fExeInitialize();
  76. ]]>
  77. </script>
  78. <submission id="TXLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
  79. <submission id="TRLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqfrm"/>
  80. </model>
  81. <script type="javascript">
  82. <![CDATA[
  83. /* @group : 분자생물학부 의뢰서 팝업화면
  84. * @ver : 2007.05.21
  85. * @by : 박정은(ACK)
  86. * @-----------------------------------
  87. * @type : function
  88. * @access : public
  89. * @desc : 화면 Initialize함수
  90. */
  91. function fExeInitialize() {
  92. //----------------------------------------------------------------
  93. // 처방등록 화면에서 호출되지 않는 경우는 "저장" 기능을 비 활성화 처리
  94. if (model.getValue("/root/hidden/reqfrminfo/scrnno") == "10") {
  95. btn_save.visible = true;
  96. } else {
  97. btn_save.visible = false;
  98. }
  99. //-------------
  100. // Test용 자료
  101. //model.setValue("/root/hidden/reqfrminfo/pid", "56605");
  102. //model.setValue("/root/hidden/reqfrminfo/prcpcd", "T2");
  103. //model.setValue("/root/hidden/reqfrminfo/spccd", "TC2003");
  104. //model.setValue("/root/hidden/reqfrminfo/reqno", 27);
  105. //----------------------------------------------
  106. // 의뢰지번호가 존재할 경우 의뢰지내용을 조회한다.
  107. if(getNodesetCount("/root/hidden/reqfrminfo/reqcnts") <= 0) { //내용이 없다
  108. if (model.getValue("/root/hidden/reqfrminfo/reqno") != "0") { //의뢰지번호 존재시
  109. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  110. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  111. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  112. submit("TRLRR90201");
  113. } else {//의뢰지 번호 없어.!
  114. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01", "1");
  115. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02", "");
  116. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts", "");
  117. model.setValue("/root/hidden/reqfrminfo/reqno", "0");
  118. }
  119. } else {//내용이 있다(ex> 특수에서 의뢰서 띄울때 처럼)
  120. model.removeNodeset("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  121. model.makeNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  122. copyNodesetType("/root/main/reqfrm/reqfrmtbl/reqfrminfo", "/root/hidden/reqfrminfo/reqcnts/reqfrminfo"); //의뢰서 내용 main으로 복사
  123. }
  124. //-------------
  125. model.refresh();
  126. }
  127. // 확인버튼 클릭시 저장
  128. function fExeClinicSave(){
  129. var strNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
  130. var node = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");//xml 저장을 위해 노드로 만듬
  131. // 검체 추가정보 설정
  132. model.makeValue(strNode + "/choi", "true");
  133. model.makeValue(strNode + "/spcseqno", "001");
  134. model.makeValue(strNode + "/spccd", model.getValue("/root/hidden/reqfrminfo/spccd"));
  135. model.makeValue(strNode + "/spccd2", model.getValue("/root/hidden/reqfrminfo/spccd"));
  136. model.removeNodeset("/root/send");
  137. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  138. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  139. model.makeValue("/root/send/reqcnts", node.xml, true);
  140. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  141. //------------------------
  142. if (!submit("TXLRR90201")) {
  143. messageBox("의뢰지 저장을", "E009");
  144. return false;
  145. }
  146. //------------------
  147. // 의뢰지번호 Return
  148. opener.model.setValue("/root/hidden/reqfrminfo/reqno", model.getValue("/root/main/rtnval/rtnvalinfo/reqno"));
  149. //------------
  150. model.close();
  151. }
  152. // 닫기
  153. function fSetClose(){
  154. window.close();
  155. }
  156. ]]>
  157. </script>
  158. </xhtml:head>
  159. <xhtml:body pagewidth="510" pageheight="420" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  160. <group id="group1" style="left:0px; top:0px; width:490px; height:400px; ">
  161. <caption id="caption21" class="tit_2" style="left:5px; top:11px; width:100px; height:13px; ">임상적 적응증</caption>
  162. <textarea id="textarea1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts" style="left:0px; top:31px; width:490px; height:169px; "/>
  163. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:490px; y2:26px; "/>
  164. <caption id="caption1" class="tit_2" style="left:5px; top:255px; width:100px; height:13px; ">인종</caption>
  165. <line id="line2" class="line_1" style="x1:0px; y1:270px; x2:490px; y2:270px; "/>
  166. <line id="line4" class="line_6" style="x1:0px; y1:296px; x2:490px; y2:296px; "/>
  167. <select1 id="cmb_Injong" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01" class="combo_default" appearance="minimal" style="left:103px; top:276px; width:117px; height:19px; ">
  168. <choices>
  169. <item>
  170. <label>한국인</label>
  171. <value>1</value>
  172. </item>
  173. <item>
  174. <label>아시안</label>
  175. <value>2</value>
  176. </item>
  177. <item>
  178. <label>남미</label>
  179. <value>4</value>
  180. </item>
  181. <item>
  182. <label>북미</label>
  183. <value>5</value>
  184. </item>
  185. <item>
  186. <label>유대인</label>
  187. <value>6</value>
  188. </item>
  189. <item>
  190. <label>유럽인</label>
  191. <value>7</value>
  192. </item>
  193. <item>
  194. <label>Other</label>
  195. <value>3</value>
  196. </item>
  197. </choices>
  198. </select1>
  199. <input id="ipt_text" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02" class="input_default" style="left:223px; top:276px; width:267px; height:19px; "/>
  200. <button id="btn_save" class="btn4_letter2" style="left:375px; top:353px; width:56px; height:22px; ">
  201. <caption>확인</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. fExeClinicSave();
  205. ]]>
  206. </script>
  207. </button>
  208. <button id="btn_close" class="btn4_letter2" style="left:434px; top:353px; width:56px; height:22px; ">
  209. <caption>닫기</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. fSetClose();
  213. ]]>
  214. </script>
  215. </button>
  216. <caption id="caption2" class="cell_1" style="left:0px; top:275px; width:100px; height:23px; vertical-align:middle; ">인종</caption>
  217. <caption id="caption4" class="cell_1" style="left:0px; top:323px; width:100px; height:23px; vertical-align:middle; ">진단명</caption>
  218. <line id="line5" class="line_6" style="x1:0px; y1:320px; x2:490px; y2:320px; "/>
  219. <caption id="caption3" class="cell_1" style="left:0px; top:299px; width:100px; height:23px; vertical-align:middle; ">가족력</caption>
  220. <line id="line3" class="line_3" style="x1:0px; y1:345px; x2:490px; y2:345px; "/>
  221. <input id="input1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem03" style="left:102px; top:300px; width:385px; height:19px; "/>
  222. <input id="input2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem04" style="left:102px; top:324px; width:385px; height:19px; "/>
  223. <caption id="caption5" class="tit_2" style="left:5px; top:205px; width:100px; height:13px; ">검사목적</caption>
  224. <line id="line6" class="line_1" style="x1:0px; y1:220px; x2:490px; y2:220px; "/>
  225. <input id="input3" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem05" style="left:0px; top:225px; width:488px; height:19px; "/>
  226. </group>
  227. </xhtml:body>
  228. </xhtml:html>