SPLPJ01400_부인과의뢰지.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPJ01400_부인과의뢰지.xfm
  4. * 설 명 : 부인과의뢰지
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2007.04.02
  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. <spcnm/>
  28. </choispclist>
  29. </choispc>
  30. <inptitem01/>
  31. <inptitem02/>
  32. <inptitem03/>
  33. <reqcnts/>
  34. </reqfrminfo>
  35. </reqfrmtbl>
  36. </reqfrm>
  37. <rtnval>
  38. <rtnvalinfo>
  39. <reqno/>
  40. <instcd/>
  41. </rtnvalinfo>
  42. </rtnval>
  43. </main>
  44. <send>
  45. <data1/>
  46. <data2/>
  47. </send>
  48. <init>
  49. <sysdt>
  50. <sysdtinfo>
  51. <sysdd/>
  52. <systm/>
  53. </sysdtinfo>
  54. </sysdt>
  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" src="../../../lis/commonweb/js/LPZ001.js"/>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fExeInitialize();
  77. ]]>
  78. </script>
  79. <submission id="TXLPJ01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
  80. <submission id="TRLPJ01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqfrm"/>
  81. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  82. </model>
  83. <script type="javascript">
  84. <![CDATA[
  85. /* @group : 부인과의뢰지 팝업화면
  86. * @ver : 2007.04.02 (CMCDEV-0001)
  87. * @by : 유동철(ACK)
  88. * @-----------------------------------
  89. * @type : function
  90. * @access : public
  91. * @desc : 화면 Initialize함수
  92. */
  93. function fExeInitialize() {
  94. var sReqFrmNo = "";
  95. /*
  96. //----------------------------------------------------------------
  97. // 처방등록 화면에서 호출되지 않는 경우는 "저장" 기능을 비 활성화 처리
  98. if (model.getValue("/root/hidden/reqfrminfo/scrnno") == "10") {
  99. btn_save.visible = true;
  100. btn_sytsrsltref.visible= true;
  101. } else {
  102. btn_save.visible = false;
  103. btn_sytsrsltref.visible= false;
  104. }
  105. */
  106. //----------------
  107. // 시스템일시 조회
  108. model.removeNodeset("/root/send");
  109. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  110. submit("TRLPZ00102");
  111. /*
  112. //-------------
  113. // Test용 자료
  114. model.makeValue("/root/hidden/reqfrminfo/pid", "10434");
  115. model.makeValue("/root/hidden/reqfrminfo/prcpcd", "PCY00001");
  116. //model.makeValue("/root/hidden/reqfrminfo/spccd", "TCGY01");
  117. //model.makeValue("/root/hidden/reqfrminfo/spcnm", "Cervico-viginal smear");
  118. model.makeValue("/root/hidden/reqfrminfo/reqno", "32");
  119. */
  120. //----------------------------------------------------------
  121. sReqFrmNo = model.getValue("/root/hidden/reqfrminfo/reqno");
  122. sReqFrmNo = sReqFrmNo.getLeftPad(1, "0");
  123. //------------------------------------------------
  124. // 의뢰지번호가 존재할 경우 의뢰지내용을 조회한다.
  125. if (sReqFrmNo != "0") {
  126. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  127. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  128. model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
  129. submit("TRLPJ01502");
  130. model.makeValue("/root/hidden/reqfrminfo/spccd", model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist/spccd"));
  131. } else {
  132. //---------------------------------------------
  133. // 대표검체코드가 처방화면에서 넘어온 경우 처리
  134. if (model.getValue("/root/hidden/reqfrminfo/spccd") != "" && model.getValue("/root/hidden/reqfrminfo/spccd") != "-") {
  135. model.makeValue("/root/hidden/reqfrminfo/spccd", "TCGY01");
  136. model.makeValue("/root/hidden/reqfrminfo/spcnm", "Cervico-vaginal smear");
  137. } else {
  138. model.makeValue("/root/hidden/reqfrminfo/spccd", "TCGY01");
  139. model.makeValue("/root/hidden/reqfrminfo/spcnm", "Cervico-vaginal smear");
  140. }
  141. //----------------------------------------------------------------
  142. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  143. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02", "");
  144. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem03", "");
  145. model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts", "");
  146. }
  147. //-------------------------------------------------------------
  148. // 처방상태코드가 바코드출력(400)보다 적은 경우만 검체수정 가능
  149. if (Number(model.getValue("/root/hidden/reqfrminfo/prcpstatcd")) >= 400) {
  150. btn_save.disabled = true;
  151. } else {
  152. if(Number(model.getValue("/root/main/reqfrm/prcpstatcd")) >= 400) {
  153. btn_save.disabled = true;
  154. }else {
  155. btn_save.disabled = false;
  156. }
  157. }
  158. //-------------
  159. model.refresh();
  160. model.makeValue("/root/hidden/reqfrminfo/spcnm", rdo_reprspc.label);
  161. }
  162. /* @group : 부인과의뢰지 팝업화면
  163. * @ver : 2007.04.02 (CMCDEV-0001)
  164. * @by : 유동철(ACK)
  165. * @-----------------------------------
  166. * @type : function
  167. * @access : public
  168. * @desc : 화면 닫기 함수
  169. */
  170. function fScrnClos() {
  171. window.close();
  172. }
  173. /* @group : 부인과의뢰지 팝업화면
  174. * @ver : 2007.04.06 (CMCDEV-0001)
  175. * @by : 유동철(ACK)
  176. * @-----------------------------------
  177. * @type : function
  178. * @access : public
  179. * @desc : 통합결과조회 처리 Function
  180. */
  181. function fSytsRsltRef() {
  182. modal("SMAER00800", "", "", "", "SMAER00800", "/root/hidden/reqfrminfo/pid", "/root/send/data/singdata/srchpid");
  183. }
  184. /* @group : 조직검사의뢰지
  185. * @ver : 2007.04.02 (CMCDEV-0001)
  186. * @by : 유동철(ACK)
  187. * @-----------------------------------
  188. * @type : function
  189. * @access : public
  190. * @desc : 설정값 저장 Function
  191. */
  192. function fExeSave() {
  193. var strNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
  194. var node = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
  195. //------------------
  196. // 검체 추가정보 설정
  197. model.makeValue(strNode + "/choi", "true");
  198. model.makeValue(strNode + "/spcseqno", "001");
  199. model.makeValue(strNode + "/spccd ", model.getValue("/root/hidden/reqfrminfo/spccd"));
  200. model.makeValue(strNode + "/spccd2", model.getValue("/root/hidden/reqfrminfo/spccd"));
  201. model.makeValue(strNode + "/spcnm", "Cervico-vaginal smear");
  202. model.makeValue(strNode + "/existyn", "N");
  203. //---------------------------------
  204. model.removeNodeset("/root/send");
  205. model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
  206. model.makeValue("/root/send/scrno", "20");
  207. model.makeValue("/root/send/reqno", (model.getValue("/root/hidden/reqfrminfo/reqno")).toString().getLeftPad(1, "0"));
  208. model.makeValue("/root/send/reqcnts", "");
  209. model.setValue("/root/send/reqcnts", node.xml, true);
  210. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  211. model.makeValue("/root/send/prcpdd", model.getValue("/root/hidden/reqfrminfo/prcpdd"));
  212. model.makeValue("/root/send/execprcpuniqno", model.getValue("/root/hidden/reqfrminfo/execprcpuniqno"));
  213. //------------------------
  214. if (!submit("TXLPJ01501")) {
  215. messageBox("의뢰지 저장을", "E009");
  216. return false;
  217. }
  218. //------------------
  219. // 의뢰지번호 Return
  220. opener.model.setValue("/root/hidden/reqfrminfo/reqno", model.getValue("/root/main/rtnval/rtnvalinfo/reqno"));
  221. opener.model.setValue("/root/hidden/reqfrminfo/spccd", model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist/spccd"));
  222. opener.model.setValue("/root/hidden/reqfrminfo/spcnm", model.getValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist/spcnm"));
  223. //------------
  224. model.close();
  225. }
  226. ]]>
  227. </script>
  228. </xhtml:head>
  229. <xhtml:body pagewidth="546" pageheight="563" guideline="1,531;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  230. <group id="group2" scroll="auto" style="left:0px; top:520; width:530; height:27px; ">
  231. <button id="btn_exit" class="btn4_letter2" navindex="7" style="left:474; top:5px; width:56px; height:22px; ">
  232. <caption>닫기</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. fScrnClos();
  236. ]]>
  237. </script>
  238. </button>
  239. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:530; y2:0px; "/>
  240. <button id="btn_sytsrsltref" class="btn3_letter6" style="left:0; top:3px; width:56px; height:22px; ">
  241. <caption>통합결과조회</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fSytsRsltRef();
  245. ]]>
  246. </script>
  247. </button>
  248. <button id="btn_save" class="btn4_letter2" style="left:415px; top:5px; width:56px; height:22px; ">
  249. <caption>확인</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. fExeSave();
  253. ]]>
  254. </script>
  255. </button>
  256. </group>
  257. <group id="grp_biz" style="left:0px; top:0px; width:530; height:520; ">
  258. <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>
  259. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:530px; y2:25px; "/>
  260. <select1 id="rdo_reprspc" ref="/root/hidden/reqfrminfo/spccd" appearance="full" cellspacing="90" cols="3" overflow="visible" style="left:0px; top:30px; width:530px; height:13px; border-style:none; ">
  261. <choices>
  262. <item>
  263. <label>Cervico-vaginal smear</label>
  264. <value>TCGY01</value>
  265. </item>
  266. </choices>
  267. </select1>
  268. <caption id="caption2" class="tit_2" autoresize="true" style="left:5px; top:50px; width:170px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">필수기록사항</caption>
  269. <line id="line2" class="line_1" style="x1:0px; y1:65px; x2:530px; y2:65px; "/>
  270. <caption id="caption3" class="cell_1" style="left:0px; top:70px; width:100px; height:23px; text-align:center; vertical-align:middle; ">L.M.P</caption>
  271. <input id="input1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01" inputtype="date" style="left:103; top:71px; width:100px; height:19px; "/>
  272. <caption id="caption4" class="cell_1" style="left:205px; top:70px; width:100px; height:23px; text-align:center; vertical-align:middle; ">처방명</caption>
  273. <output id="output1" ref="/root/hidden/reqfrminfo/prcpnm" class="output_fix" style="left:308; top:71px; width:222px; height:19px; "/>
  274. <select id="checkbox1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02" overflow="visible" appearance="full" cellspacing="60" cols="3" rows="4" vcellspacing="4" style="left:0px; top:97px; width:530px; height:83px; border-style:none; ">
  275. <choices>
  276. <item>
  277. <label>Routine Check</label>
  278. <value>0</value>
  279. </item>
  280. <item>
  281. <label>Hormone Therapy</label>
  282. <value>1</value>
  283. </item>
  284. <item>
  285. <label>Pregnancy</label>
  286. <value>2</value>
  287. </item>
  288. <item>
  289. <label>Hx. of Gyn surgery</label>
  290. <value>3</value>
  291. </item>
  292. <item>
  293. <label>Chemotherapy</label>
  294. <value>4</value>
  295. </item>
  296. <item>
  297. <label>Postparturm</label>
  298. <value>5</value>
  299. </item>
  300. <item>
  301. <label>Hx. of Abnormal PAP smear</label>
  302. <value>6</value>
  303. </item>
  304. <item>
  305. <label>Radiation Therapy</label>
  306. <value>7</value>
  307. </item>
  308. <item>
  309. <label>Vaginal bleeding</label>
  310. <value>8</value>
  311. </item>
  312. <item>
  313. <label>Menopause</label>
  314. <value>9</value>
  315. </item>
  316. </choices>
  317. </select>
  318. <caption id="caption5" class="tit_2" autoresize="true" style="left:5px; top:190px; width:170px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">임상정보 및 기록사항</caption>
  319. <line id="line3" class="line_1" style="x1:0px; y1:205px; x2:530px; y2:205px; "/>
  320. <textarea id="textarea1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts" style="left:0px; top:210px; width:530px; height:310px; "/>
  321. <line id="line4" class="line_3" style="x1:0px; y1:92px; x2:530px; y2:92px; "/>
  322. <input id="input2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem03" style="left:86px; top:159px; width:444px; height:19px; "/>
  323. </group>
  324. </xhtml:body>
  325. </xhtml:html>