SPLPJ01300_비부인과의뢰지.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPJ01300_비부인과의뢰지.xfm
  4. * 설 명 : 비부인과의뢰지
  5. * 설 계 자 :
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2007.04.04
  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. <spcsite/>
  23. <choispc>
  24. <choispclist>
  25. <choi/>
  26. <spcseqno/>
  27. <spccd/>
  28. <spccd2/>
  29. </choispclist>
  30. </choispc>
  31. <inptitem01/>
  32. <reqcnts/>
  33. </reqfrminfo>
  34. </reqfrmtbl>
  35. </reqfrm>
  36. <rtnval>
  37. <rtnvalinfo>
  38. <reqno/>
  39. <instcd/>
  40. </rtnvalinfo>
  41. </rtnval>
  42. </main>
  43. <send>
  44. <data1/>
  45. <data2/>
  46. </send>
  47. <init>
  48. </init>
  49. <hidden>
  50. <reqfrminfo>
  51. <pid/>
  52. <prcpcd/>
  53. <prcpnm/>
  54. <opnm/>
  55. <spccd/>
  56. <spcnm/>
  57. <reqno/>
  58. <reqhistno/>
  59. </reqfrminfo>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fExeInitialize();
  70. ]]>
  71. </script>
  72. <submission id="TXLPJ01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
  73. <submission id="TRLPJ01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqfrm"/>
  74. </model>
  75. <script type="javascript">
  76. <![CDATA[
  77. /* @group : 비부인과의뢰지 팝업화면
  78. * @ver : 2007.04.04 (CMCDEV-0001)
  79. * @by : 유동철(ACK)
  80. * @-----------------------------------
  81. * @type : function
  82. * @access : public
  83. * @desc : 화면 Initialize함수
  84. */
  85. function fExeInitialize() {
  86. var sReqFrmNo = "";
  87. /*
  88. //----------------------------------------------------------------
  89. // 처방등록 화면에서 호출되지 않는 경우는 "저장" 기능을 비 활성화 처리
  90. if (model.getValue("/root/hidden/reqfrminfo/scrnno") == "10") {
  91. btn_save.visible = true;
  92. btn_sytsrsltref.visible= true;
  93. } else {
  94. btn_save.visible = false;
  95. btn_sytsrsltref.visible= false;
  96. }
  97. */
  98. /*
  99. //-------------
  100. // Test용 자료
  101. model.makeValue("/root/hidden/reqfrminfo/pid", "10434");
  102. model.makeValue("/root/hidden/reqfrminfo/prcpcd", "PCY20001");
  103. // model.makeValue("/root/hidden/reqfrminfo/spccd", "TC2003");
  104. model.makeValue("/root/hidden/reqfrminfo/reqno", "31");
  105. model.makeValue("/root/hidden/reqfrminfo/prcpstatcd", "000");
  106. */
  107. model.makeValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/spcsite", "2");
  108. //----------------------------------------------------------
  109. sReqFrmNo = model.getValue("/root/hidden/reqfrminfo/reqno");
  110. sReqFrmNo = sReqFrmNo.getLeftPad(1, "0");
  111. //----------------------------------------------
  112. // 의뢰지번호가 존재할 경우 의뢰지내용을 조회한다.
  113. if (sReqFrmNo != "0") {
  114. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  115. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  116. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  117. submit("TRLPJ01502");
  118. model.makeValue("/root/hidden/reqfrminfo/spccd", model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist/spccd"));
  119. } else {
  120. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01", "");
  121. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts", "");
  122. }
  123. //-------------------------------------------------------------
  124. // 처방상태코드가 바코드출력(420)보다 적은 경우만 검체수정 가능
  125. if (Number(model.getValue("/root/hidden/reqfrminfo/prcpstatcd")) >= 400) {
  126. btn_save.disabled = true;
  127. } else {
  128. if(Number(model.getValue("/root/main/reqfrm/prcpstatcd")) >= 400) {
  129. btn_save.disabled = true;
  130. }else {
  131. btn_save.disabled = false;
  132. }
  133. }
  134. //-------------
  135. model.refresh();
  136. model.makeValue("/root/hidden/reqfrminfo/spcnm", rdo_reprspccd.label);
  137. }
  138. /* @group : 비부인과의뢰지 팝업화면
  139. * @ver : 2007.04.04 (CMCDEV-0001)
  140. * @by : 유동철(ACK)
  141. * @-----------------------------------
  142. * @type : function
  143. * @access : public
  144. * @desc : 화면 닫기 함수
  145. */
  146. function fScrnClos() {
  147. window.close();
  148. }
  149. /* @group : 부인과의뢰지 팝업화면
  150. * @ver : 2007.04.06 (CMCDEV-0001)
  151. * @by : 유동철(ACK)
  152. * @-----------------------------------
  153. * @type : function
  154. * @access : public
  155. * @desc : 통합결과조회 처리 Function
  156. */
  157. function fSytsRsltRef() {
  158. modal("SMAER00800", "", "", "", "SMAER00800", "/root/hidden/reqfrminfo/pid", "/root/send/data/singdata/srchpid");
  159. }
  160. /* @group : 조직검사의뢰지
  161. * @ver : 2007.04.02 (CMCDEV-0001)
  162. * @by : 유동철(ACK)
  163. * @-----------------------------------
  164. * @type : function
  165. * @access : public
  166. * @desc : 설정값 저장 Function
  167. */
  168. function fExeSave()
  169. {
  170. var sSpcnm = "";
  171. var strNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
  172. var node = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  173. //------------------
  174. // 검체 추가정보 설정
  175. model.makeValue(strNode + "/choi", "true");
  176. model.makeValue(strNode + "/spcseqno", "001");
  177. model.makeValue(strNode + "/spccd", model.getValue("/root/hidden/reqfrminfo/spccd"));
  178. // Other 검체 선택 시 의뢰지에 저장하는 명칭 변경
  179. sSpcnm = rdo_reprspccd.item(rdo_reprspccd.focusIndex).label;
  180. if (sSpcnm == "Other")
  181. {
  182. model.makeValue(strNode + "/spcnm", ipt_other.currentText);
  183. }
  184. else
  185. {
  186. model.makeValue(strNode + "/spcnm", sSpcnm);
  187. }
  188. //---------------------------------
  189. model.removeNodeset("/root/send");
  190. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  191. model.makeValue("/root/send/scrno", "30");
  192. model.makeValue("/root/send/reqno", (model.getValue("/root/hidden/reqfrminfo/reqno")).toString().getLeftPad(1, "0"));
  193. model.makeValue("/root/send/reqcnts", "");
  194. model.setValue("/root/send/reqcnts", node.xml, true);
  195. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  196. model.makeValue("/root/send/prcpdd", model.getValue("/root/hidden/reqfrminfo/prcpdd"));
  197. model.makeValue("/root/send/execprcpuniqno", model.getValue("/root/hidden/reqfrminfo/execprcpuniqno"));
  198. //------------------------
  199. if (!submit("TXLPJ01501")) {
  200. messageBox("의뢰지 저장을", "E009");
  201. return false;
  202. }
  203. //------------------
  204. // 의뢰지번호 Return
  205. opener.model.setValue("/root/hidden/reqfrminfo/reqno", model.getValue("/root/main/rtnval/rtnvalinfo/reqno"));
  206. opener.model.setValue("/root/hidden/reqfrminfo/spccd", model.getValue("/root/hidden/reqfrminfo/spccd"));
  207. opener.model.setValue("/root/hidden/reqfrminfo/spcnm", rdo_reprspccd.item(rdo_reprspccd.focusIndex).label);
  208. //------------
  209. model.close();
  210. }
  211. function fExeOtherKeyPress() {
  212. if (event.keyCode != 13) {
  213. model.makeValue("/root/hidden/reqfrminfo/spccd", "TCBF99");
  214. rdo_reprspccd.refresh();
  215. }
  216. }
  217. ]]>
  218. </script>
  219. </xhtml:head>
  220. <xhtml:body pagewidth="546" pageheight="576" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  221. <group id="grp_biz" style="left:0px; top:0px; width:530; height:533; ">
  222. <caption id="caption1" class="tit_2" autoresize="true" style="left:5px; top:10px; width:160px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">처방</caption>
  223. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:530px; y2:25px; "/>
  224. <caption id="caption2" class="tit_2" autoresize="true" style="left:5px; top:62; width:170px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">필수기록사항</caption>
  225. <line id="line2" class="line_1" style="x1:0px; y1:77; x2:530px; y2:77; "/>
  226. <caption id="caption4" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; text-align:center; vertical-align:middle; ">처방명</caption>
  227. <output id="output1" ref="/root/hidden/reqfrminfo/prcpnm" class="output_fix" style="left:103px; top:31px; width:250px; height:19px; "/>
  228. <caption id="caption5" class="tit_2" autoresize="true" style="left:5px; top:245px; width:170px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">임상정보 및 기록사항</caption>
  229. <line id="line3" class="line_1" style="x1:0px; y1:260px; x2:530px; y2:260px; "/>
  230. <textarea id="textarea1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts" navindex="4" style="left:0px; top:265px; width:530px; height:268px; "/>
  231. <line id="line4" class="line_3" style="x1:0px; y1:52px; x2:530px; y2:52px; "/>
  232. <select1 id="rdo_reprspccd" ref="/root/hidden/reqfrminfo/spccd" navindex="2" appearance="full" cellspacing="32" cols="3" rows="7" vcellspacing="3" overflow="visible" style="left:0px; top:82px; width:530px; height:158px; border-style:none; ">
  233. <choices>
  234. <item>
  235. <label>Ascites</label>
  236. <value>TCBF01</value>
  237. </item>
  238. <item>
  239. <label>Nipple discharge</label>
  240. <value>TCBF07</value>
  241. </item>
  242. <item>
  243. <label>Synovial fluid</label>
  244. <value>TCBF13</value>
  245. </item>
  246. <item>
  247. <label>Bile</label>
  248. <value>TCBF02</value>
  249. </item>
  250. <item>
  251. <label>Ovary cyst</label>
  252. <value>TCBF08</value>
  253. </item>
  254. <item>
  255. <label>Urine catheterized</label>
  256. <value>TCBF15</value>
  257. </item>
  258. <item>
  259. <label>Bronchial brushing</label>
  260. <value>TCBF03</value>
  261. </item>
  262. <item>
  263. <label>Pericaridal fluid</label>
  264. <value>TCBF09</value>
  265. </item>
  266. <item>
  267. <label>Urine voided</label>
  268. <value>TCBF14</value>
  269. </item>
  270. <item>
  271. <label>Bronchial washing</label>
  272. <value>TCBF04</value>
  273. </item>
  274. <item>
  275. <label>Peritoneal washing</label>
  276. <value>TCBF10</value>
  277. </item>
  278. <item>
  279. <label>Urine washing</label>
  280. <value>TCBF16</value>
  281. </item>
  282. <item>
  283. <label>Cerebrospinal fluid (CSF)</label>
  284. <value>TCBF05</value>
  285. </item>
  286. <item>
  287. <label>Pleural fluid</label>
  288. <value>TCBF11</value>
  289. </item>
  290. <item>
  291. <label>Wounded discharge</label>
  292. <value>TCBF17</value>
  293. </item>
  294. <item>
  295. <label>Gastric washing</label>
  296. <value>TCBF06</value>
  297. </item>
  298. <item>
  299. <label>Sputum</label>
  300. <value>TCBF12</value>
  301. </item>
  302. <item>
  303. <label>Thyroid</label>
  304. <value>TCAP08</value>
  305. </item>
  306. <item>
  307. <label>BAL fluid</label>
  308. <value>TCBF18</value>
  309. </item>
  310. <item>
  311. <label/>
  312. <value/>
  313. </item>
  314. <item>
  315. <label/>
  316. <value/>
  317. </item>
  318. <item>
  319. <label>Other</label>
  320. <value>TCBF99</value>
  321. </item>
  322. </choices>
  323. </select1>
  324. <select1 id="rdo_ltrt" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/spcsite" navindex="1" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:356px; top:30px; width:164px; height:20px; border-style:none; ">
  325. <choices>
  326. <item>
  327. <label>RT</label>
  328. <value>0</value>
  329. </item>
  330. <item>
  331. <label>LT</label>
  332. <value>1</value>
  333. </item>
  334. <item>
  335. <label>Other</label>
  336. <value>2</value>
  337. </item>
  338. </choices>
  339. </select1>
  340. <caption id="caption3" style="left:190px; top:198px; width:190px; height:15px; background-color:#ffffff; "/>
  341. <input id="ipt_other" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01" navindex="3" maxlength="100" style="left:50px; top:216px; width:476px; height:19px; ">
  342. <script type="javascript" ev:event="onkeypress">
  343. <![CDATA[
  344. fExeOtherKeyPress();
  345. ]]>
  346. </script>
  347. </input>
  348. </group>
  349. <group id="grp_btn" scroll="auto" style="left:0px; top:533; width:530px; height:27px; ">
  350. <button id="btn_exit" class="btn4_letter2" navindex="7" style="left:474; top:5px; width:56px; height:22px; ">
  351. <caption>닫기</caption>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. fScrnClos();
  355. ]]>
  356. </script>
  357. </button>
  358. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:530; y2:0px; "/>
  359. <button id="btn_save" class="btn4_letter2" navindex="6" style="left:415px; top:5px; width:56px; height:22px; ">
  360. <caption>확인</caption>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. fExeSave();
  364. ]]>
  365. </script>
  366. </button>
  367. <button id="btn_sytsrsltref" class="btn3_letter6" navindex="5" style="left:0; top:3px; width:56px; height:22px; ">
  368. <caption>통합결과조회</caption>
  369. <script type="javascript" ev:event="DOMActivate">
  370. <![CDATA[
  371. fSytsRsltRef();
  372. ]]>
  373. </script>
  374. </button>
  375. </group>
  376. </xhtml:body>
  377. </xhtml:html>