SPLPP02800_frozen검체현황조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPP02800_frozen검체현황조회.xrw
  4. * 설 명 : frozen검체현황조회
  5. * 설 계 자 : (주)평화이즈 - 박상환
  6. * 작 성 자 : (주)평화이즈 - 박상환
  7. * 작 성 일 : 2009.08.07
  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>frozen검체현황조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <acptspc>
  20. <acptspclist>
  21. <spcstatnm/>
  22. <spcbarcdno>A0X2B000201</spcbarcdno>
  23. <instcd/>
  24. <ptno/>
  25. <dispptno/>
  26. <pid/>
  27. <patnm/>
  28. <patflagnm/>
  29. <orddeptnm/>
  30. <orddrid/>
  31. <prcpdd>20080808</prcpdd>
  32. <prcptm>121212</prcptm>
  33. <trandd/>
  34. <trantm/>
  35. <delivedd/>
  36. <delivetm/>
  37. <delivenm/>
  38. <cnfmdd/>
  39. <cnfmtm/>
  40. <acptdd/>
  41. <acpttm/>
  42. <acptnm/>
  43. <testcd>PMO03001</testcd>
  44. <testnm/>
  45. <readdd/>
  46. <readdrnm/>
  47. <execprcpuniqno/>
  48. <prcpgenrflag/>
  49. <grosdrnm/>
  50. </acptspclist>
  51. <spccntinfo>
  52. <trancnt/>
  53. <recvcnt/>
  54. <acptcnt/>
  55. <patcnt/>
  56. <testcnt/>
  57. </spccntinfo>
  58. </acptspc>
  59. <detlstat>
  60. <detlstatinfo>
  61. <instcd/>
  62. <tretflagcd/>
  63. <tretdd/>
  64. <trettm/>
  65. <tretpsnnm/>
  66. </detlstatinfo>
  67. </detlstat>
  68. </main>
  69. <send/>
  70. <init>
  71. <acptfromdd/>
  72. <acpttodd/>
  73. <sysdt>
  74. <sysdtinfo>
  75. <sysdd/>
  76. <systm/>
  77. </sysdtinfo>
  78. </sysdt>
  79. <hospenv>
  80. <hospenvinfo>
  81. <instcd/>
  82. <lendrtnterm/>
  83. <recvqualmthdcd/>
  84. <plgydeptcd/>
  85. <plgyteamcd/>
  86. <doctjobgradcd/>
  87. <teamjobgradcd/>
  88. </hospenvinfo>
  89. </hospenv>
  90. <refmthd/>
  91. <refval/>
  92. <popupmenu>
  93. <item>
  94. <nm>병리번호별 상태조회</nm>
  95. <funt>fExeAcptDetlStat</funt>
  96. </item>
  97. </popupmenu>
  98. <ptnocd>
  99. <ptnocdlist>
  100. <instcd/>
  101. <ptnocd/>
  102. <ptnonm/>
  103. </ptnocdlist>
  104. </ptnocd>
  105. <ptnocode/>
  106. <fromyear/>
  107. <fromptno/>
  108. <toyear/>
  109. <toptno/>
  110. </init>
  111. <hidden>
  112. <userdeptcd/>
  113. </hidden>
  114. </root>
  115. </instance>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  119. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  120. <script type="javascript" ev:event="xforms-ready">
  121. <![CDATA[
  122. fExeInitialize();
  123. ]]>
  124. </script>
  125. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  126. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  127. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  128. <submission id="TRLPP01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptspc/acptspclist"/>
  129. <submission id="TRLPP01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detlstat/detlstatinfo"/>
  130. </model>
  131. <script type="javascript">
  132. <![CDATA[
  133. /* @group : 검사진행현황
  134. * @ver : 2009.08.10
  135. * @by : 박상환(평화이즈)
  136. * @-----------------------------------
  137. * @type : function
  138. * @access : public
  139. * @desc : 화면초기화 함수
  140. */
  141. function fExeInitialize() {
  142. //----------------
  143. // 시스템일시 조회
  144. model.removeNodeset("/root/send");
  145. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  146. submit("TRLPZ00101", false);
  147. submit("TRLPZ00102", false);
  148. submit("TRLPZ00109", false);
  149. // common.js
  150. if ( checkOpener() ) {
  151. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  152. if (param != "") { // opener parameter value가 있는 경우
  153. model.setValue("/root/init/refval", param);
  154. }
  155. }
  156. //---------------------------------------------------------
  157. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  158. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
  159. //----------------------------------------------------
  160. model.removeNodeset("/root/main/acptspc/acptspclist");
  161. //-------------------------------------------
  162. model.setValue("/root/init/refmthd", "0");
  163. //-------------------
  164. // 병리번호 목록 조회
  165. fGetSpcStatList();
  166. // //----------------------------------
  167. // lpzfTopInfo(); // 상단정보 호출
  168. //
  169. // //----------------------------------------------
  170. // if (model.getValue("/root/paminfo/pid") != "") {
  171. // model.setValue("/root/init/refmthd", "1");
  172. // model.setValue("/root/init/refval", model.getValue("/root/paminfo/pid"));
  173. //
  174. // cmb_refflagcd.refresh();
  175. // ipt_refval.refresh();
  176. //
  177. // //-------------------
  178. // // 병리번호 목록 조회
  179. // fGetSpcStatList();
  180. // }
  181. //--------------
  182. model.refresh();
  183. }
  184. /* @group : 검사진행현황
  185. * @ver : 2009.08.10
  186. * @by : 박상환(평화이즈)
  187. * @-----------------------------------
  188. * @type : function
  189. * @access : public
  190. * @desc : 검색값 입력 처리 함수
  191. */
  192. function fExeRefValInpt() {
  193. //-----------------------
  194. if(event.keyCode == 13) {
  195. model.setValue("/root/init/refval", ipt_refval.currentText);
  196. ipt_refval.refresh();
  197. //----------------
  198. fGetSpcStatList();
  199. }
  200. }
  201. /* @group : 검사진행현황
  202. * @ver : 2009.08.10
  203. * @by : 박상환(평화이즈)
  204. * @-----------------------------------
  205. * @type : function
  206. * @access : public
  207. * @desc : 검체별 상세목록 조회 함수
  208. */
  209. function fGetSpcStatList() {
  210. var sPtNoFrom = model.getValue("/root/init/ptnofrom");
  211. var sPtNoTo = model.getValue("/root/init/ptnoto");
  212. var sFromDD = model.getValue("/root/init/acptfromdd");
  213. var sToDD = model.getValue("/root/init/acpttodd");
  214. var sTemp = "";
  215. var nodelist = "";
  216. var sCntdelive = 0 ;
  217. var sCntcnfm = 0 ;
  218. var sCntacpt = 0 ;
  219. //--------------------------------
  220. model.removeNodeset("/root/send");
  221. model.removeNodeset("/root/main/acptspc/acptspclist");
  222. model.removeNodeset("/root/main/acptspc/spccntinfo");
  223. //------------------------------------
  224. if(model.getValue("/root/init/refval") == ""){
  225. messageBox("바코드번호는 반드시 입력해야 합니다", "E999", "");
  226. return false;
  227. }
  228. //------------------------------------------------
  229. if (model.getValue("/root/init/ptnocode") != "") {
  230. //------------------------------------------------
  231. if (model.getValue("/root/init/fromyear") == "") {
  232. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  233. } else {
  234. sTemp = model.getValue("/root/init/fromyear");
  235. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  236. }
  237. //----------------------------------------------
  238. if (model.getValue("/root/init/toyear") == "") {
  239. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  240. } else {
  241. sTemp = model.getValue("/root/init/toyear");
  242. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  243. }
  244. //------------------------------------------------
  245. if (model.getValue("/root/init/fromptno") == "") {
  246. model.makeValue("/root/init/fromptno", "000000");
  247. } else {
  248. sTemp = model.getValue("/root/init/fromptno");
  249. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  250. }
  251. //----------------------------------------------
  252. if (model.getValue("/root/init/toptno") == "") {
  253. model.makeValue("/root/init/toptno", "999999");
  254. } else {
  255. sTemp = model.getValue("/root/init/toptno");
  256. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  257. }
  258. }
  259. //--------------------------------------------
  260. sTemp = model.getValue("/root/init/ptnocode");
  261. //---------------------------------------------------------------------
  262. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  263. model.makeValue("/root/send/refmthd", model.getValue("/root/init/refmthd"));
  264. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  265. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  266. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  267. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  268. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  269. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  270. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  271. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  272. //-------------------
  273. submit("TRLPP01101");
  274. nodelist = instance1.selectNodes("/root/main/acptspc/acptspclist");
  275. for(var i = 1; i <= nodelist.length; i++){
  276. if(model.getValue("/root/main/acptspc/acptspclist[" + i + "]/delivedd") != "-" && model.getValue("/root/main/acptspc/acptspclist[" + i + "]/delivedd") != ""){
  277. sCntdelive = sCntdelive + 1;
  278. }
  279. if(model.getValue("/root/main/acptspc/acptspclist[" + i + "]/cnfmdd") != "-" && model.getValue("/root/main/acptspc/acptspclist[" + i + "]/cnfmdd") != ""){
  280. sCntcnfm = sCntcnfm + 1;
  281. }
  282. if(model.getValue("/root/main/acptspc/acptspclist[" + i + "]/acptdd") != "-" && model.getValue("/root/main/acptspc/acptspclist[" + i + "]/acptdd") != ""){
  283. sCntacpt = sCntacpt + 1;
  284. }
  285. }
  286. model.setValue("/root/main/acptspc/spccntinfo/trancnt", sCntdelive);
  287. model.setValue("/root/main/acptspc/spccntinfo/recvcnt", sCntcnfm);
  288. model.setValue("/root/main/acptspc/spccntinfo/acptcnt", sCntacpt);
  289. model.refresh();
  290. }
  291. ]]>
  292. </script>
  293. </xhtml:head>
  294. <xhtml:body pagewidth="1020" pageheight="635" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  295. <group id="group1" style="left:0px; top:0px; width:1000px; height:13px; ">
  296. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">frozen검체현황조회</caption>
  297. </group>
  298. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1000px; height:608px; ">
  299. <caption id="caption2" class="tit_2" style="left:5px; top:105px; width:140px; height:13px; ">검체목록</caption>
  300. <line id="line3" class="line_1" style="x1:0px; y1:120px; x2:1000px; y2:120px; "/>
  301. <group id="grp_sea" style="left:0px; top:10px; width:1000px; height:35px; vertical-align:top; ">
  302. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1000px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  303. <button id="button1" class="btn1_letter2" navindex="10" style="left:930px; top:7px; width:56px; height:22px; ">
  304. <caption>조회</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. fGetSpcStatList();
  308. ]]>
  309. </script>
  310. </button>
  311. <line id="line1" class="line_4" style="x1:914px; y1:7px; x2:914px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  312. <select1 id="cmb_refflagcd" ref="/root/init/refmthd" class="combo_search" navindex="8" visibility="hidden" appearance="minimal" style="left:385px; top:10px; width:112px; height:19px; text-align:center; ">
  313. <choices>
  314. <item>
  315. <label>바코드번호</label>
  316. <value>0</value>
  317. </item>
  318. </choices>
  319. </select1>
  320. <input id="ipt_refval" ref="/root/init/refval" class="input_s_essential" navindex="9" style="left:125px; top:10px; width:115px; height:19px; ">
  321. <script type="javascript" ev:event="onkeypress">
  322. <![CDATA[
  323. fExeRefValInpt();
  324. ]]>
  325. </script>
  326. </input>
  327. <caption id="caption4" class="search_name" style="left:19px; top:9px; width:100px; height:17px; ">바코드번호 :</caption>
  328. </group>
  329. <caption id="caption13" class="tit_2" style="left:5px; top:53px; width:111px; height:13px; ">검체현황</caption>
  330. <line id="line4" class="line_1" style="x1:1px; y1:68px; x2:1000px; y2:68px; "/>
  331. <caption id="caption31" class="cell_1" style="left:0px; top:73px; width:85px; height:23px; vertical-align:middle; ">검체전달</caption>
  332. <output id="opt_spctran" ref="/root/main/acptspc/spccntinfo/trancnt" class="output_fix" format="#,###,###" style="left:88px; top:74px; width:109px; height:19px; font-weight:bold; text-align:right; vertical-align:middle; "/>
  333. <caption id="caption14" class="cell_1" style="left:200px; top:73px; width:85px; height:23px; vertical-align:middle; ">병리과 수신</caption>
  334. <output id="opt_spcrecv" ref="/root/main/acptspc/spccntinfo/recvcnt" class="output_fix" format="#,###,###" style="left:288px; top:74px; width:108px; height:19px; font-weight:bold; text-align:right; vertical-align:middle; "/>
  335. <caption id="caption15" class="cell_1" style="left:399px; top:73px; width:85px; height:23px; vertical-align:middle; ">검체접수</caption>
  336. <output id="opt_spcacpt" ref="/root/main/acptspc/spccntinfo/acptcnt" class="output_fix" format="#,###,###" style="left:487px; top:74px; width:108px; height:19px; font-weight:bold; text-align:right; vertical-align:middle; "/>
  337. <caption id="caption17" class="cell_1" visibility="hidden" style="left:607px; top:74px; width:85px; height:23px; vertical-align:middle; ">총 환자수</caption>
  338. <output id="opt_totalpat" ref="/root/main/acptspc/spccntinfo/patcnt" class="output_fix" visibility="hidden" format="#,###,###" style="left:695px; top:75px; width:108px; height:19px; font-weight:bold; text-align:right; vertical-align:middle; "/>
  339. <caption id="caption18" class="cell_1" visibility="hidden" style="left:806px; top:74px; width:85px; height:23px; vertical-align:middle; ">총 검사수</caption>
  340. <output id="opt_totalspc" ref="/root/main/acptspc/spccntinfo/testcnt" class="output_fix" visibility="hidden" format="#,###,###" style="left:895px; top:75px; width:100px; height:19px; font-weight:bold; text-align:right; vertical-align:middle; "/>
  341. <line id="line5" class="line_3" style="x1:0px; y1:95px; x2:1000; y2:95px; "/>
  342. <datagrid id="grd_acptspclist" nodeset="/root/main/acptspc/acptspclist" caption="상태^바코드번호^기관코드^ptno^병리번호^육안검사의^등록번호^환자명^환자구분^진료과^진료의사^처방일자^처방시간^출력일자^출력시간^채취일자^채취시간^채취자^수신일자^수신시간^접수일자^접수시간^접수자^검사코드^처방명^판독일자^판독의사^execprcpuniqno^prcpgenrflag" colsep="^" colwidth="30, 85, 0, 0, 80, 70, 70, 70, 0, 0, 0, 70, 60, 70, 60, 70, 60, 60, 70, 60, 70, 60, 60, 76, 100, 70, 79, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:125px; width:1000px; height:483px; ">
  343. <col ref="spcstatnm" visibility="hidden"/>
  344. <col ref="spcbarcdno"/>
  345. <col ref="instcd"/>
  346. <col ref="ptno"/>
  347. <col ref="dispptno"/>
  348. <col class="text_center" ref="grosdrnm" visibility="hidden"/>
  349. <col class="text_center" ref="pid" visibility="hidden"/>
  350. <col class="text_center" ref="patnm" visibility="hidden"/>
  351. <col class="text_center" ref="patflagnm"/>
  352. <col ref="orddeptnm"/>
  353. <col ref="orddrid"/>
  354. <col class="text_center" ref="prcpdd" type="output" visibility="hidden" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  355. <col class="text_center" ref="prcptm" visibility="hidden" format="hh:nn:ss" mask="exclude" showmask="true"/>
  356. <col class="text_center" ref="trandd" visibility="visible" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  357. <col class="text_center" ref="trantm" visibility="visible" format="hh:nn:ss" mask="exclude" showmask="true"/>
  358. <col class="text_center" ref="delivedd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  359. <col class="text_center" ref="delivetm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  360. <col class="text_center" ref="delivenm"/>
  361. <col class="text_center" ref="cnfmdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  362. <col class="text_center" ref="cnfmtm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  363. <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  364. <col class="text_center" ref="acpttm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  365. <col class="text_center" ref="acptnm"/>
  366. <col ref="testcd" visibility="hidden"/>
  367. <col ref="testnm" type="output" visibility="hidden"/>
  368. <col ref="readdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  369. <col ref="readdrnm"/>
  370. <col ref="execprcpuniqno"/>
  371. <col ref="prcpgenrflag"/>
  372. </datagrid>
  373. </group>
  374. </xhtml:body>
  375. </xhtml:html>