SPLRR90500_장기이식의뢰서등록.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLRR90500_장기이식의뢰서등록.xfm
  4. * 설 명 : 장기이식의뢰서등록
  5. * 설 계 자 :
  6. * 작 성 자 : 박정은(ACK)
  7. * 작 성 일 : 2007.05.21
  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>
  32. <organ1/>
  33. <other1/>
  34. <race/>
  35. <other2/>
  36. <TP/>
  37. <organ2/>
  38. <date/>
  39. <pid/>
  40. <pregnancy/>
  41. <tnsyn/>
  42. <dnorpid/>
  43. <dnornm/>
  44. <reqpurpose/>
  45. <patpp/>
  46. <ritux/>
  47. <pata/>
  48. <patb/>
  49. <patdr/>
  50. <patother/>
  51. <ppra/>
  52. <pcm/>
  53. <dshla/>
  54. <relation/>
  55. <dnora/>
  56. <dnorb/>
  57. <dnordr/>
  58. <dnorother/>
  59. <pcnt/>
  60. </inptitem01>
  61. </reqfrminfo>
  62. </reqfrmtbl>
  63. </reqfrm>
  64. <rtnval>
  65. <rtnvalinfo>
  66. <reqno/>
  67. <instcd/>
  68. </rtnvalinfo>
  69. </rtnval>
  70. </main>
  71. <send/>
  72. <init/>
  73. <hidden>
  74. <reqfrminfo>
  75. <pid/>
  76. <prcpcd/>
  77. <prcpnm/>
  78. <opnm/>
  79. <spccd/>
  80. <spcnm/>
  81. <reqno/>
  82. <reqhistno/>
  83. </reqfrminfo>
  84. </hidden>
  85. </root>
  86. </instance>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. fExeInitialize();
  93. ]]>
  94. </script>
  95. <submission id="TXLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
  96. <submission id="TRLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqfrm"/>
  97. </model>
  98. <script type="javascript">
  99. <![CDATA[
  100. /* @group : 장기이식 의뢰서 팝업화면
  101. * @ver : 2007.05.21
  102. * @by : 박정은(ACK)
  103. * @-----------------------------------
  104. * @type : function
  105. * @access : public
  106. * @desc : 화면 Initialize함수
  107. */
  108. function fExeInitialize() {
  109. //----------------------------------------------------------------
  110. // 처방등록 화면에서 호출되지 않는 경우는 "저장" 기능을 비 활성화 처리
  111. if (model.getValue("/root/hidden/reqfrminfo/scrnno") == "10") {
  112. btn_save.visible = true;
  113. } else {
  114. btn_save.visible = false;
  115. //처방등록 화면이 아닌 화면에서는 모든 컨드롤 비활성
  116. var childObjCnt = document.controls.length;
  117. var childObj, ref;
  118. for (var i = 0; i < childObjCnt; i++) {
  119. childObj = document.controls.item(i);
  120. ref = childObj.attribute("ref");
  121. if(ref != ""){
  122. document.controls.item(i).disabled= true;
  123. }
  124. }
  125. }
  126. //-------------
  127. // Test용 자료
  128. //model.setValue("/root/hidden/reqfrminfo/pid", "56605");
  129. //model.setValue("/root/hidden/reqfrminfo/prcpcd", "T2");
  130. //model.setValue("/root/hidden/reqfrminfo/spccd", "TC2003");
  131. //model.setValue("/root/hidden/reqfrminfo/reqno", "27");
  132. //----------------------------------------------
  133. // 의뢰지번호가 존재할 경우 의뢰지내용을 조회한다.
  134. if(getNodesetCount("/root/hidden/reqfrminfo/reqcnts") <= 0) { //내용이 없다
  135. if (model.getValue("/root/hidden/reqfrminfo/reqno") != "0") { //의뢰지번호 존재시
  136. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  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. submit("TRLRR90201");
  140. } else { //의뢰지 번호 없어.!
  141. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01", "");
  142. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts", "");
  143. model.setValue("/root/hidden/reqfrminfo/reqno", "0");
  144. }
  145. } else { //내용이 있다(ex> 특수에서 의뢰서 띄울때 처럼)
  146. model.removeNodeset("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  147. model.makeNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  148. copyNodesetType("/root/main/reqfrm/reqfrmtbl/reqfrminfo", "/root/hidden/reqfrminfo/reqcnts/reqfrminfo"); //의뢰서 내용 main으로 복사
  149. }
  150. //-------------
  151. model.refresh();
  152. }
  153. // 확인버튼 클릭시 저장
  154. function fExeClinicSave(){
  155. var strNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
  156. var node = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo"); //xml 저장을 위해 노드로 만듬
  157. if(model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/organ1") == ""){
  158. messageBox("organ은 필수 선택 사항입니다", "E");
  159. return;
  160. }
  161. if(model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/reqpurpose") == ""){
  162. messageBox("의뢰목적은 필수 선택 사항입니다", "E");
  163. return;
  164. }
  165. // 검체 추가정보 설정
  166. model.makeValue(strNode + "/choi", "true");
  167. model.makeValue(strNode + "/spcseqno", "001");
  168. model.makeValue(strNode + "/spccd", model.getValue("/root/hidden/reqfrminfo/spccd"));
  169. model.makeValue(strNode + "/spccd2", model.getValue("/root/hidden/reqfrminfo/spccd"));
  170. model.removeNodeset("/root/send");
  171. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  172. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  173. model.makeValue("/root/send/reqcnts", node.xml, true);
  174. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  175. //------------------------
  176. if (!submit("TXLRR90201")) {
  177. messageBox("의뢰지 저장을", "E009");
  178. return false;
  179. }
  180. //------------------
  181. // 의뢰지번호 Return
  182. opener.model.setValue("/root/hidden/reqfrminfo/reqno", model.getValue("/root/main/rtnval/rtnvalinfo/reqno"));
  183. //------------
  184. model.close();
  185. }
  186. // 닫기
  187. function fSetClose(){
  188. window.close();
  189. }
  190. ]]>
  191. </script>
  192. </xhtml:head>
  193. <xhtml:body pagewidth="640" pageheight="400" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  194. <group id="group1" style="left:1px; top:0px; width:618px; height:350px; ">
  195. <textarea id="textarea1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts" style="left:92px; top:224px; width:217px; height:121px; "/>
  196. <caption id="caption5" class="tit_2" style="left:315px; top:10px; width:134px; height:14px; ">감작력</caption>
  197. <line id="line1" class="line_1" style="x1:1px; y1:25px; x2:617px; y2:25px; "/>
  198. <select1 id="combo4" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/organ1" class="combo_essential" appearance="minimal" style="left:94px; top:32px; width:120px; height:19px; ">
  199. <choices>
  200. <item>
  201. <label>Kidney</label>
  202. <value>Kidney</value>
  203. </item>
  204. <item>
  205. <label>liver</label>
  206. <value>liver</value>
  207. </item>
  208. <item>
  209. <label>heart</label>
  210. <value>heart</value>
  211. </item>
  212. <item>
  213. <label>pancreas</label>
  214. <value>pancreas</value>
  215. </item>
  216. <item>
  217. <label>intestine</label>
  218. <value>intestine</value>
  219. </item>
  220. <item>
  221. <label>other</label>
  222. <value>other</value>
  223. </item>
  224. </choices>
  225. </select1>
  226. <line id="line3" class="line_2" style="x1:0px; y1:54px; x2:617px; y2:54px; "/>
  227. <line id="line4" class="line_2" style="x1:315px; y1:132px; x2:617px; y2:132px; "/>
  228. <select1 id="radio1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/TP" appearance="full" cellspacing="60" cols="2" overflow="visible" style="left:441px; top:34px; width:164px; height:16px; border-style:none; ">
  229. <choices>
  230. <item>
  231. <label>Yes</label>
  232. <value>Yes</value>
  233. </item>
  234. <item>
  235. <label>No</label>
  236. <value>No</value>
  237. </item>
  238. </choices>
  239. <script type="javascript" ev:event="xforms-select">
  240. <![CDATA[
  241. if(radio1.value == "Yes"){
  242. input14.disabled = false;
  243. }else{
  244. input14.value = "No";
  245. input14.disabled = true;
  246. }
  247. ]]>
  248. </script>
  249. </select1>
  250. <input id="input8" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/date" class="input_default" inputtype="date" style="left:441px; top:58px; width:120px; height:19px; "/>
  251. <select1 id="radio2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/pregnancy" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:441px; top:112px; width:116px; height:16px; border-style:none; ">
  252. <choices>
  253. <item>
  254. <label>Yes</label>
  255. <value>Yes</value>
  256. </item>
  257. <item>
  258. <label>No</label>
  259. <value>No</value>
  260. </item>
  261. </choices>
  262. </select1>
  263. <caption id="caption8" class="cell_1" style="left:1px; top:224px; width:90px; height:121px; vertical-align:middle; ">기타사항</caption>
  264. <line id="line5" class="line_2" style="x1:0px; y1:106px; x2:617px; y2:106px; "/>
  265. <line id="line6" class="line_2" style="x1:1px; y1:346px; x2:617px; y2:346px; "/>
  266. <line id="line9" class="line_2" style="x1:315px; y1:80px; x2:617px; y2:80px; "/>
  267. <caption id="caption10" class="cell_1" style="left:315px; top:160px; width:124px; height:23px; vertical-align:middle; ">Previous CM pos.</caption>
  268. <caption id="caption1" class="cell_1" style="left:1px; top:56px; width:91px; height:49px; vertical-align:middle; ">의뢰목적</caption>
  269. <caption id="caption2" class="cell_1" style="left:315px; top:30px; width:124px; height:23px; vertical-align:middle; ">Previous TP</caption>
  270. <caption id="caption3" class="cell_1" style="left:315px; top:56px; width:124px; height:23px; vertical-align:middle; ">최근 이식일</caption>
  271. <caption id="caption4" class="cell_1" style="left:315px; top:186px; width:124px; height:23px; vertical-align:middle; ">DS-HLA항체판정의뢰</caption>
  272. <caption id="caption13" class="cell_1" style="left:1px; top:30px; width:91px; height:23px; vertical-align:middle; ">organ</caption>
  273. <caption id="caption7" class="cell_1" style="left:315px; top:108px; width:124px; height:23px; vertical-align:middle; ">임신</caption>
  274. <caption id="caption9" class="cell_1" style="left:315px; top:134px; width:124px; height:23px; vertical-align:middle; ">Previous PRA pos.</caption>
  275. <caption id="caption6" class="cell_1" style="left:1px; top:108px; width:90px; height:113px; vertical-align:middle; ">환자정보</caption>
  276. <caption id="caption11" class="cell_1" style="left:315px; top:82px; width:124px; height:23px; vertical-align:middle; ">수혈여부</caption>
  277. <input id="input2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/pid" class="input_default" visibility="hidden" style="left:175px; top:2px; width:116px; height:19px; "/>
  278. <select1 id="radio3" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/tnsyn" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:441px; top:85px; width:116px; height:16px; border-style:none; ">
  279. <choices>
  280. <item>
  281. <label>Yes</label>
  282. <value>Yes</value>
  283. </item>
  284. <item>
  285. <label>No</label>
  286. <value>No</value>
  287. </item>
  288. </choices>
  289. </select1>
  290. <caption id="caption12" class="cell_1" style="left:315px; top:212px; width:84px; height:133px; vertical-align:middle; ">공여자정보</caption>
  291. <line id="line8" class="line_2" style="x1:1px; y1:222px; x2:310px; y2:222px; "/>
  292. <input id="input4" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/dnorpid" class="input_default" style="left:501px; top:231px; width:115px; height:19px; "/>
  293. <input id="input11" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/dnornm" class="input_default" style="left:501px; top:212px; width:115px; height:19px; "/>
  294. <select1 id="radio4" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/reqpurpose" appearance="full" overflow="visible" style="left:94px; top:55px; width:215px; height:51px; border-style:none; ">
  295. <choices>
  296. <item>
  297. <label>Pre-TP work-up</label>
  298. <value>Pre-TP work-up</value>
  299. </item>
  300. <item>
  301. <label>Post-TP monitoring</label>
  302. <value>Post-TP monitoring</value>
  303. </item>
  304. <item>
  305. <label>Others</label>
  306. <value>Others</value>
  307. </item>
  308. </choices>
  309. </select1>
  310. <caption id="caption15" style="left:94px; top:108px; width:80px; height:19px; ">PP*IVIG</caption>
  311. <caption id="caption16" style="left:94px; top:127px; width:80px; height:19px; ">Rituximab</caption>
  312. <caption id="caption17" style="left:94px; top:146px; width:80px; height:19px; ">HLA typing A</caption>
  313. <caption id="caption18" style="left:158px; top:165px; width:35px; height:19px; ">B</caption>
  314. <caption id="caption19" style="left:158px; top:184px; width:35px; height:19px; ">DR</caption>
  315. <caption id="caption20" style="left:158px; top:203px; width:35px; height:19px; ">Other</caption>
  316. <input id="input3" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/patother" class="input_default" style="left:193px; top:203px; width:116px; height:19px; "/>
  317. <input id="input5" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/pata" class="input_default" style="left:193px; top:146px; width:116px; height:19px; "/>
  318. <input id="input6" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/patb" class="input_default" style="left:193px; top:165px; width:116px; height:19px; "/>
  319. <input id="input7" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/patdr" class="input_default" style="left:193px; top:184px; width:116px; height:19px; "/>
  320. <line id="line10" class="line_1" style="x1:310px; y1:29px; x2:310px; y2:346px; "/>
  321. <line id="line11" class="line_2" style="x1:315px; y1:158px; x2:617px; y2:158px; "/>
  322. <line id="line12" class="line_2" style="x1:315px; y1:184px; x2:617px; y2:184px; "/>
  323. <line id="line13" class="line_2" style="x1:315px; y1:210px; x2:617px; y2:210px; "/>
  324. <caption id="caption14" style="left:401px; top:212px; width:35px; height:19px; ">성명</caption>
  325. <caption id="caption21" style="left:401px; top:231px; width:50px; height:19px; ">등록번호</caption>
  326. <caption id="caption22" style="left:401px; top:250px; width:78px; height:19px; ">환자와의 관계</caption>
  327. <caption id="caption23" style="left:401px; top:269px; width:74px; height:19px; ">HLA typing A</caption>
  328. <caption id="caption24" style="left:466px; top:288px; width:35px; height:19px; ">B</caption>
  329. <caption id="caption25" style="left:466px; top:307px; width:35px; height:19px; ">DR</caption>
  330. <caption id="caption26" style="left:466px; top:326px; width:35px; height:19px; ">Other</caption>
  331. <input id="input1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/dnora" class="input_default" style="left:501px; top:269px; width:115px; height:19px; "/>
  332. <input id="input9" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/dnorb" class="input_default" style="left:501px; top:288px; width:115px; height:19px; "/>
  333. <input id="input10" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/dnordr" class="input_default" style="left:501px; top:307px; width:115px; height:19px; "/>
  334. <input id="input12" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/dnorother" class="input_default" style="left:501px; top:326px; width:115px; height:19px; "/>
  335. <input id="input13" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/relation" class="input_default" style="left:501px; top:250px; width:115px; height:19px; "/>
  336. <select1 id="radio5" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/ppra" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:441px; top:137px; width:115px; height:16px; border-style:none; ">
  337. <choices>
  338. <item>
  339. <label>Yes</label>
  340. <value>Yes</value>
  341. </item>
  342. <item>
  343. <label>No</label>
  344. <value>No</value>
  345. </item>
  346. </choices>
  347. </select1>
  348. <select1 id="radio6" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/pcm" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:441px; top:163px; width:115px; height:17px; border-style:none; ">
  349. <choices>
  350. <item>
  351. <label>Yes</label>
  352. <value>Yes</value>
  353. </item>
  354. <item>
  355. <label>No</label>
  356. <value>No</value>
  357. </item>
  358. </choices>
  359. </select1>
  360. <select1 id="radio7" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/dshla" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:441px; top:190px; width:115px; height:16px; border-style:none; ">
  361. <choices>
  362. <item>
  363. <label>Yes</label>
  364. <value>Yes</value>
  365. </item>
  366. <item>
  367. <label>No</label>
  368. <value>No</value>
  369. </item>
  370. </choices>
  371. </select1>
  372. <input id="input14" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/pcnt" class="input_default" disabled="true" style="left:488px; top:32px; width:25px; height:19px; "/>
  373. <caption id="caption27" style="left:516px; top:33px; width:20px; height:19px; ">회</caption>
  374. <caption id="caption28" class="tit_2" style="left:0px; top:10px; width:134px; height:14px; ">장기이식 의뢰서</caption>
  375. <select1 id="radio8" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/ritux" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:193px; top:127px; width:116px; height:16px; border-style:none; ">
  376. <choices>
  377. <item>
  378. <label>Yes</label>
  379. <value>Yes</value>
  380. </item>
  381. <item>
  382. <label>No</label>
  383. <value>No</value>
  384. </item>
  385. </choices>
  386. </select1>
  387. <select1 id="radio9" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/patpp" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:193px; top:109px; width:116px; height:16px; border-style:none; ">
  388. <choices>
  389. <item>
  390. <label>Yes</label>
  391. <value>Yes</value>
  392. </item>
  393. <item>
  394. <label>No</label>
  395. <value>No</value>
  396. </item>
  397. </choices>
  398. </select1>
  399. </group>
  400. <group id="group3" style="left:219px; top:346px; width:400px; height:27px; ">
  401. <line id="line2" class="line_2" style="x1:0px; y1:0px; x2:400px; y2:0px; "/>
  402. <button id="btn_save" class="btn4_letter2" style="left:283px; top:3px; width:56px; height:22px; ">
  403. <caption>확인</caption>
  404. <script type="javascript" ev:event="DOMActivate">
  405. <![CDATA[
  406. fExeClinicSave();
  407. ]]>
  408. </script>
  409. </button>
  410. <button id="btn_close" class="btn4_letter2" style="left:342px; top:3px; width:56px; height:22px; ">
  411. <caption>닫기</caption>
  412. <script type="javascript" ev:event="DOMActivate">
  413. <![CDATA[
  414. fSetClose();
  415. ]]>
  416. </script>
  417. </button>
  418. </group>
  419. </xhtml:body>
  420. </xhtml:html>