SPLRR91300_염색체검사의뢰서등록.xrw 9.9 KB

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