SPLPP01000_동결절편결과조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPP01000_동결절편결과조회.xrw
  4. * 설 명 : 동결절편결과조회
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2006.12.13
  8. * 수정이력 : 2007.06.05
  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. <popupendflag/>
  20. <frznptno>
  21. <frznptnolist>
  22. <instcd/>
  23. <ptno/>
  24. <dispptno/>
  25. <pid/>
  26. <patnm/>
  27. <acptdd/>
  28. <acpttm/>
  29. </frznptnolist>
  30. </frznptno>
  31. <frzncste>
  32. <frzncstelist>
  33. <instcd/>
  34. <ptno/>
  35. <dispptno/>
  36. <spcacptdd/>
  37. <spcacptno/>
  38. <spccd/>
  39. <spcnm/>
  40. <spcacptseqno/>
  41. <csteno/>
  42. <cstecnts/>
  43. <acptdd/>
  44. <acpttm/>
  45. <indd/>
  46. <intm/>
  47. <readdd/>
  48. <readtm/>
  49. <readrslt/>
  50. <readdrnm1/>
  51. <readdrid1/>
  52. <readdrnm2/>
  53. <readdrid2/>
  54. <readdrnm3/>
  55. <readdrid3/>
  56. <delyflagcd/>
  57. <delyresncd/>
  58. <cmtcnts/>
  59. </frzncstelist>
  60. </frzncste>
  61. </main>
  62. <send/>
  63. <init>
  64. <refflagcd>1</refflagcd>
  65. <refval/>
  66. <acptfromdd/>
  67. <acpttodd/>
  68. <sysdt>
  69. <sysdtinfo>
  70. <sysdd/>
  71. <systm/>
  72. </sysdtinfo>
  73. </sysdt>
  74. <hospenv>
  75. <hospenvinfo>
  76. <instcd/>
  77. <lendrtnterm/>
  78. <recvqualmthdcd/>
  79. <plgydeptcd/>
  80. <plgyteamcd/>
  81. <doctjobgradcd/>
  82. <teamjobgradcd/>
  83. </hospenvinfo>
  84. </hospenv>
  85. <userinfo>
  86. <userinfolist>
  87. <userid/>
  88. <usernm/>
  89. <jobkindcd/>
  90. </userinfolist>
  91. </userinfo>
  92. <resncd>
  93. <resncdlist>
  94. <instcd/>
  95. <baseflagcd/>
  96. <resncd/>
  97. <resncnts/>
  98. </resncdlist>
  99. </resncd>
  100. </init>
  101. <hidden/>
  102. <temp>
  103. <instcd/>
  104. <pid/>
  105. <patnm/>
  106. </temp>
  107. </root>
  108. </instance>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  113. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  114. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  115. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  116. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  117. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  118. <submission id="TRLPR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frznptno/frznptnolist"/>
  119. <submission id="TRLPR00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frzncste/frzncstelist"/>
  120. <script type="javascript" ev:event="xforms-ready">
  121. <![CDATA[
  122. fExeInitialize();
  123. ]]>
  124. </script>
  125. </model>
  126. <script type="javascript">
  127. <![CDATA[
  128. /* @group : 동결절편결과조회
  129. * @ver : 2007.06.04 (CMCDEV-0001)
  130. * @by : 유동철(ACK)
  131. * @-----------------------------------
  132. * @type : function
  133. * @access : public
  134. * @desc : 화면초기화 함수
  135. */
  136. function fExeInitialize() {
  137. //------------------------------------------------------
  138. model.removeNodeset("/root/main/frznptno/frznptnolist");
  139. model.removeNodeset("/root/main/frzncste/frzncstelist");
  140. //----------------
  141. // 시스템일시 조회
  142. model.removeNodeset("/root/send");
  143. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  144. model.makeValue("/root/send/baseflagcd", "'D1'");
  145. submit("TRLPZ00101", false);
  146. submit("TRLPZ00102", false);
  147. submit("TRLPZ00103", false); // 지연사유 목록 조회
  148. //---------------------------------------------------------
  149. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  150. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
  151. //----------------------------------------------------------------------------------
  152. model.makeValue("/root/send/userdeptcd", model.getValue("/root/hidden/userdeptcd"));
  153. model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
  154. model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
  155. submit("TRLPZ00105");
  156. //----------------------------------
  157. lpzfTopInfo(); // 상단정보 호출
  158. //----------------------------------------------
  159. if (model.getValue("/root/paminfo/pid") != "") {
  160. model.makeValue("/root/temp/instcd", getUserInfo("dutplceinstcd"));
  161. model.makeValue("/root/temp/pid", model.getValue("/root/paminfo/pid"));
  162. model.makeValue("/root/temp/patnm", model.getValue("/root/paminfo/hngnm"));
  163. //-------------------
  164. // 병리번호 목록 조회
  165. fGetFrznPtNolist();
  166. }
  167. //--------------
  168. model.refresh();
  169. }
  170. /* @group : 동결절편 결과조회 화면
  171. * @ver : 2007.06.05 (CMCDEV-0001)
  172. * @by : 유동철(ACK)
  173. * @-----------------------------------
  174. * @type : function
  175. * @access : public
  176. * @desc : 동절절편 병리번호 조회 함수
  177. */
  178. function fGetFrznPtNolist() {
  179. var sAcptFromDD = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  180. sAcptFromDD = sAcptFromDD.toDate().getAddDate(-1,"M").getDateFormat();
  181. //--------------------------------
  182. model.removeNodeset("/root/send");
  183. //----------------------------------------------------------------------------
  184. model.makeValue("/root/send/instcd", model.getValue("/root/temp/instcd"));
  185. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  186. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  187. model.makeValue("/root/send/refflagcd", "1");
  188. model.makeValue("/root/send/refval", model.getValue("/root/temp/pid"));
  189. submit("TRLPR00701");
  190. //-----------------------------------------------------------------------------
  191. // 병리번호 목록이 존재할 경우 맨 위의 병리번호를 기준으로 검사결과를 표시한다.
  192. if (getNodesetCount("/root/main/frznptno/frznptnolist") > 0) {
  193. fExePtNoGridClick(1);
  194. }
  195. }
  196. /* @group : 동결절편 결과조회 화면
  197. * @ver : 2007.06.05 (CMCDEV-0001)
  198. * @by : 유동철(ACK)
  199. * @-----------------------------------
  200. * @type : function
  201. * @access : public
  202. * @desc : 화면종료 함수
  203. */
  204. function fExePopupClose() {
  205. window.close();
  206. }
  207. /* @group : 동결절편결과조회
  208. * @ver : 2007.06.05 (CMCDEV-0001)
  209. * @by : 유동철(ACK)
  210. * @-----------------------------------
  211. * @type : function
  212. * @access : public
  213. * @desc : 동절절편 Cassette(블럭) 조회 함수
  214. */
  215. function fExePtNoGridClick(pRowNo) {
  216. var sSrcNode = "/root/main/frznptno/frznptnolist";
  217. var sDescNode = "/root/main/frzncste/frzncstelist";
  218. //----------------------------
  219. if (pRowNo <= 0) return false;
  220. if (grd_frznptnolist.isCell(event.target) && grd_frznptnolist.row >= grd_frznptnolist.fixedRows) {
  221. // Continue
  222. } else {
  223. return false;
  224. }
  225. //--------------------------------
  226. model.removeNodeset("/root/send");
  227. //-----------------------------------------------------------------------------------------
  228. model.makeValue("/root/send/instcd", model.getValue(sSrcNode + "[" + pRowNo + "]/instcd"));
  229. model.makeValue("/root/send/ptno", model.getValue(sSrcNode + "[" + pRowNo + "]/ptno"));
  230. //-------------------
  231. submit("TRLPR00702");
  232. }
  233. function fExePatPopupCall() {
  234. model.makeNode("/root/source");
  235. model.removeNodeset("/root/main/patinfo/patinfolist");
  236. model.makeNode("/root/main/patinfo/patinfolist");
  237. model.makeValue("/root/source/srchcond", "1"); // 등록번호(1), 환자명(2)
  238. model.makeValue("/root/source/pid", model.getValue("/root/temp/pid"));
  239. model.makeValue("/root/source/hngnm", "");
  240. model.makeValue("/root/source/rrgstno1", "");
  241. model.makeValue("/root/source/rrgstno2", "");
  242. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  243. //----------------------------------------------------------
  244. if (getNodesetCount("/root/main/patinfo/patinfolist") > 0) {
  245. model.makeValue("/root/temp/instcd", getUserInfo("dutplceinstcd"));
  246. model.makeValue("/root/temp/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  247. model.makeValue("/root/temp/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  248. //-------------------
  249. // 병리번호 목록 조회
  250. fGetFrznPtNolist();
  251. }
  252. //--------------
  253. model.refresh();
  254. }
  255. function fExePidKeyPress() {
  256. if(event.keyCode == 13) {
  257. model.setValue("/root/temp/pid", ipt_pid.currentText);
  258. ipt_pid.refresh();
  259. //-----------------
  260. fGetFrznPtNolist();
  261. }
  262. }
  263. ]]>
  264. </script>
  265. </xhtml:head>
  266. <xhtml:body pagewidth="1066" pageheight="594" guideline="1,1063;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  267. <group id="grp_biz" style="left:0px; top:0px; width:1050px; height:551; ">
  268. <caption id="caption2" class="tit_2" style="left:5px; top:10; width:111px; height:13px; ">환자정보</caption>
  269. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:392; y2:25px; "/>
  270. <caption id="caption3" class="cell_1" style="left:0; top:30px; width:80; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  271. <caption id="caption4" class="cell_1" style="left:208px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">환자성명</caption>
  272. <output id="opt_kornm" ref="/root/temp/patnm" class="output_fix" style="left:291px; top:31px; width:100px; height:19px; "/>
  273. <caption id="caption5" class="tit_2" style="left:5px; top:62px; width:111px; height:14px; ">접수목록</caption>
  274. <line id="line2" class="line_1" style="x1:0px; y1:77px; x2:160px; y2:77px; "/>
  275. <line id="line3" class="line_3" style="x1:0px; y1:52px; x2:392px; y2:52px; "/>
  276. <datagrid id="grd_frznptnolist" nodeset="/root/main/frznptno/frznptnolist" caption="기관코드^ptno^병리번호^등록번호^환자명^접수일자^접수시간^병리번호" colsep="^" colwidth="0, 0, 80, 0, 0, 70, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" navindex="3" style="left:0px; top:82px; width:160px; height:460; border-color:#c0c0c0; border-style:solid; ">
  277. <col ref="instcd"/>
  278. <col ref="ptno"/>
  279. <col class="text_center" ref="dispptno"/>
  280. <col class="text_center" ref="pid"/>
  281. <col class="text_center" ref="patnm"/>
  282. <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  283. <col class="text_center" ref="acpttm" format="99:99:99" mask="exclude" showmask="true"/>
  284. <col ref="acptdd"/>
  285. <script type="javascript" ev:event="onclick">
  286. <![CDATA[
  287. fExePtNoGridClick(grd_frznptnolist.row);
  288. ]]>
  289. </script>
  290. </datagrid>
  291. <caption id="caption6" class="tit_2" style="left:168px; top:62px; width:157px; height:13px; ">Frozen 결과</caption>
  292. <line id="line4" class="line_1" style="x1:163px; y1:77px; x2:1050px; y2:77px; "/>
  293. <datagrid id="grd_frzncstelist" nodeset="/root/main/frzncste/frzncstelist" class="datagrid2" caption="instcd^ptno^dispptno^spcacptdd^spcacptno^검체코드^검체명^세부&#xA;검체^Cassette&#xA;번호^Cassette&#xA;내용^접수일자^접수&#xA;시간^입고일자^Slide&#xA;제작시간^판독일자^진단&#xA;시간^진 단^판독의명1^판독의사1^판독의명2^판독의사2^판독의명3^판독의사3^caption2^지연사유^Comment" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 85, 40, 0, 70, 0, 54, 0, 54, 0, 54, 179, 60, 0, 60, 0, 0, 0, 0, 90, 110" dataheight="25" forecolorfrozen="#339966" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" navindex="4" style="left:163px; top:82px; width:887px; height:460px; border-style:solid; ">
  294. <col ref="instcd"/>
  295. <col ref="ptno"/>
  296. <col ref="dispptno"/>
  297. <col ref="spcacptdd"/>
  298. <col ref="spcacptno"/>
  299. <col ref="spccd"/>
  300. <col ref="spcnm"/>
  301. <col ref="spcacptseqno"/>
  302. <col ref="csteno"/>
  303. <col ref="cstecnts"/>
  304. <col ref="acptdd" type="inputdate"/>
  305. <col ref="acpttm" type="input" format="99:99:99" mask="exclude" showmask="true"/>
  306. <col ref="indd" type="inputdate"/>
  307. <col ref="intm" type="input" format="99:99:99" mask="exclude" showmask="true"/>
  308. <col ref="readdd" type="inputdate"/>
  309. <col ref="readtm" type="input" format="99:99:99" mask="exclude" showmask="true"/>
  310. <col ref="readrslt" type="input"/>
  311. <col ref="readdrnm1"/>
  312. <col ref="readdrid1" type="combo">
  313. <choices>
  314. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  315. <label ref="usernm"/>
  316. <value ref="userid"/>
  317. </itemset>
  318. </choices>
  319. </col>
  320. <col ref="readdrnm2"/>
  321. <col ref="readdrid2" type="combo" style="left:690px; top:32px; width:100px; height:25px; ">
  322. <choices>
  323. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  324. <label ref="usernm"/>
  325. <value ref="userid"/>
  326. </itemset>
  327. </choices>
  328. </col>
  329. <col ref="readdrnm3"/>
  330. <col ref="readdrid3" type="combo">
  331. <choices>
  332. <itemset nodeset="/root/init/deptuserlist/deptuserlisttbl[occukind='Y']">
  333. <label ref="username2"/>
  334. <value ref="userid"/>
  335. </itemset>
  336. </choices>
  337. </col>
  338. <col ref="delyflagcd"/>
  339. <col ref="delyresncd" type="combo"/>
  340. <col ref="cmtcnts" type="input"/>
  341. </datagrid>
  342. <button id="btn_search" class="icon_search" navindex="2" style="left:187px; top:31px; width:16px; height:16px; ">
  343. <caption/>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. fExePatPopupCall();
  347. ]]>
  348. </script>
  349. </button>
  350. <input id="ipt_pid" ref="/root/temp/pid" navindex="1" maxlength="10" style="left:83px; top:31px; width:100px; height:19px; ">
  351. <script type="javascript" ev:event="onkeypress">
  352. <![CDATA[
  353. fExePidKeyPress();
  354. ]]>
  355. </script>
  356. </input>
  357. </group>
  358. <group id="grp_btn" scroll="auto" style="left:0px; top:551; width:1050px; height:27px; ">
  359. <button id="btn_cls" class="btn4_letter2" navindex="5" style="left:994; top:5px; width:56px; height:22px; ">
  360. <caption>닫기</caption>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. fExePopupClose();
  364. ]]>
  365. </script>
  366. </button>
  367. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1050; y2:0px; "/>
  368. </group>
  369. </xhtml:body>
  370. </xhtml:html>