SPLRR90300_산전검사의뢰서등록.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLRR90300_산전검사의뢰서등록.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. <bdwt/>
  33. <LPM/>
  34. <week/>
  35. <day/>
  36. <glycosyn/>
  37. <hypetsyn/>
  38. </inptitem01>
  39. </reqfrminfo>
  40. </reqfrmtbl>
  41. </reqfrm>
  42. <rtnval>
  43. <rtnvalinfo>
  44. <reqno/>
  45. <instcd/>
  46. </rtnvalinfo>
  47. </rtnval>
  48. </main>
  49. <send>
  50. </send>
  51. <init>
  52. </init>
  53. <hidden>
  54. <reqfrminfo>
  55. <pid/>
  56. <prcpcd/>
  57. <prcpnm/>
  58. <opnm/>
  59. <spccd/>
  60. <spcnm/>
  61. <reqno/>
  62. <reqhistno/>
  63. </reqfrminfo>
  64. </hidden>
  65. </root>
  66. </instance>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fExeInitialize();
  73. ]]>
  74. </script>
  75. <submission id="TXLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
  76. <submission id="TRLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqfrm"/>
  77. </model>
  78. <script type="javascript">
  79. <![CDATA[
  80. /* @group : 산전검사 의뢰서 팝업화면
  81. * @ver : 2007.05.21
  82. * @by : 박정은(ACK)
  83. * @-----------------------------------
  84. * @type : function
  85. * @access : public
  86. * @desc : 화면 Initialize함수
  87. */
  88. function fExeInitialize() {
  89. //----------------------------------------------------------------
  90. // 처방등록 화면에서 호출되지 않는 경우는 "저장" 기능을 비 활성화 처리
  91. if (model.getValue("/root/hidden/reqfrminfo/scrnno") == "10") {
  92. btn_save.visible = true;
  93. } else {
  94. btn_save.visible = false;
  95. }
  96. //-------------
  97. // Test용 자료
  98. //model.setValue("/root/hidden/reqfrminfo/pid", "56605");
  99. //model.setValue("/root/hidden/reqfrminfo/prcpcd", "T2");
  100. //model.setValue("/root/hidden/reqfrminfo/spccd", "TC2003");
  101. //model.setValue("/root/hidden/reqfrminfo/reqno", "27");
  102. //----------------------------------------------
  103. // 의뢰지번호가 존재할 경우 의뢰지내용을 조회한다.
  104. if(getNodesetCount("/root/hidden/reqfrminfo/reqcnts") <= 0) { //내용이 없다
  105. if (model.getValue("/root/hidden/reqfrminfo/reqno") != "0") { //의뢰지번호 존재시
  106. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  107. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  108. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  109. submit("TRLRR90201");
  110. } else { //의뢰지번호 없다..!!
  111. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01", "");
  112. model.setValue("/root/hidden/reqfrminfo/reqno", "0");
  113. }
  114. }else { //내용이 있다(ex> 특수에서 의뢰서 띄울때 처럼)
  115. model.removeNodeset("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  116. model.makeNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  117. copyNodesetType("/root/main/reqfrm/reqfrmtbl/reqfrminfo", "/root/hidden/reqfrminfo/reqcnts/reqfrminfo"); //의뢰서 내용 main으로 복사
  118. }
  119. //-------------
  120. model.refresh();
  121. }
  122. // 확인버튼 클릭시 저장
  123. function fExeClinicSave(){
  124. var strNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
  125. var node = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo"); //xml 저장을 위해 노드로 만듬
  126. // 검체 추가정보 설정
  127. model.makeValue(strNode + "/choi", "true");
  128. model.makeValue(strNode + "/spcseqno", "001");
  129. model.makeValue(strNode + "/spccd", model.getValue("/root/hidden/reqfrminfo/spccd"));
  130. model.makeValue(strNode + "/spccd2", model.getValue("/root/hidden/reqfrminfo/spccd"));
  131. model.removeNodeset("/root/send");
  132. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  133. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  134. model.makeValue("/root/send/reqcnts", node.xml, true);
  135. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  136. //------------------------
  137. if (!submit("TXLRR90201")) {
  138. messageBox("의뢰지 저장을", "E009");
  139. return false;
  140. }
  141. //------------------
  142. // 의뢰지번호 Return
  143. opener.model.setValue("/root/hidden/reqfrminfo/reqno", model.getValue("/root/main/rtnval/rtnvalinfo/reqno"));
  144. //------------
  145. model.close();
  146. }
  147. // 닫기
  148. function fSetClose(){
  149. window.close();
  150. }
  151. ]]>
  152. </script>
  153. </xhtml:head>
  154. <xhtml:body pagewidth="310" pageheight="200" guideline="1,1194;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  155. <group id="group1" style="left:0px; top:0px; width:290px; height:152px; ">
  156. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:280px; y2:26px; "/>
  157. <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:113px; height:14px; ">산전검사 의뢰서</caption>
  158. <caption id="caption4" class="cell_1" style="left:0px; top:31px; width:150; height:23px; vertical-align:middle; ">현재 체중</caption>
  159. <input id="input2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/bdwt" class="input_essential" style="left:153px; top:32px; width:100px; height:19px; "/>
  160. <caption id="caption8" style="left:255px; top:35px; width:30px; height:13px; ">Kg</caption>
  161. <caption id="caption9" class="cell_1" style="left:0px; top:55px; width:150; height:23px; vertical-align:middle; ">LMP (최종월경일)</caption>
  162. <input id="input4" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/LPM" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:153px; top:56px; width:100px; height:19px; "/>
  163. <input id="input5" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/week" class="input_default" style="left:153px; top:80px; width:40px; height:19px; text-align:right; "/>
  164. <caption id="caption10" class="cell_1" style="left:0px; top:79px; width:150px; height:23px; vertical-align:middle; ">초음파검사상 임신주수</caption>
  165. <caption id="caption11" class="cell_1" style="left:0px; top:103px; width:150; height:23px; vertical-align:middle; ">당뇨병 여부</caption>
  166. <caption id="caption12" class="cell_1" style="left:0px; top:127px; width:150; height:23px; vertical-align:middle; ">고혈압 여부</caption>
  167. <line id="line5" class="line_3" style="x1:0px; y1:149px; x2:280px; y2:149px; "/>
  168. <caption id="caption1" style="left:195px; top:82px; width:16px; height:14px; ">주</caption>
  169. <caption id="caption2" style="left:254px; top:82px; width:20px; height:14px; ">일</caption>
  170. <input id="input1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/day" class="input_default" style="left:212px; top:80px; width:40px; height:19px; text-align:right; "/>
  171. <select id="checkbox1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/glycosyn" overflow="visible" appearance="full" style="left:153px; top:107px; width:45px; height:15px; border-style:none; ">
  172. <choices>
  173. <item>
  174. <label>Y</label>
  175. <value>1</value>
  176. </item>
  177. </choices>
  178. </select>
  179. <select id="checkbox2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/hypetsyn" overflow="visible" appearance="full" style="left:153px; top:130px; width:45px; height:16px; border-style:none; ">
  180. <choices>
  181. <item>
  182. <label>Y</label>
  183. <value>1</value>
  184. </item>
  185. </choices>
  186. </select>
  187. </group>
  188. <group id="group3" style="left:0px; top:152px; width:290px; height:27px; ">
  189. <line id="line8" class="line_6" style="x1:0px; y1:0px; x2:280px; y2:0px; "/>
  190. <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:166px; top:5px; width:56px; height:22px; ">
  191. <caption>확인</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. fExeClinicSave();
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="btn_close" class="btn4_letter2" style="left:225px; top:5px; width:56px; height:22px; ">
  199. <caption>닫기</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fSetClose();
  203. ]]>
  204. </script>
  205. </button>
  206. </group>
  207. </xhtml:body>
  208. </xhtml:html>