SMLPP01800_검체보관현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPP01800_검체보관현황
  4. * 설 명 : 검체보관현황
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.11.06
  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. <spckeep>
  20. <spckeeplist>
  21. <instcd/>
  22. <ptno/>
  23. <dispptno/>
  24. <relaptno/>
  25. <reladispptno/>
  26. <pid/>
  27. <patnm/>
  28. <acptdd/>
  29. <teamspckeepflagnm/>
  30. <spckeepdd/>
  31. <spckeeptm/>
  32. <spckeepnm/>
  33. <doctspckeepflagnm/>
  34. </spckeeplist>
  35. </spckeep>
  36. </main>
  37. <send/>
  38. <init>
  39. <sysdt>
  40. <sysdtinfo>
  41. <sysdd/>
  42. <systm/>
  43. </sysdtinfo>
  44. </sysdt>
  45. <ptnocd>
  46. <ptnocdlist>
  47. <instcd/>
  48. <ptnocd/>
  49. <ptnonm/>
  50. </ptnocdlist>
  51. </ptnocd>
  52. <ptnocode/>
  53. <fromyear/>
  54. <fromptno/>
  55. <toyear/>
  56. <toptno/>
  57. <refmthdcd/>
  58. <refval/>
  59. <acptfromdd/>
  60. <acpttodd/>
  61. </init>
  62. <hidden/>
  63. </root>
  64. </instance>
  65. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  66. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  67. <submission id="TRLPP01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spckeep/spckeeplist"/>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. fExeInitialize();
  75. ]]>
  76. </script>
  77. </model>
  78. <script type="javascript">
  79. <![CDATA[
  80. /* @group : 검체보관현황 화면
  81. * @ver : 2007.11.06 (CMCDEV-0001)
  82. * @by : 유동철(ACK)
  83. * @-----------------------------------
  84. * @type : function
  85. * @access : public
  86. * @desc : 검체보관현황 초기화 함수
  87. */
  88. function fExeInitialize() {
  89. var sCurDate = "";
  90. //----------------------------------------------------
  91. model.removeNodeset("/root/main/spckeep/spckeeplist");
  92. //----------------
  93. // 시스템일자 조회
  94. model.removeNodeset("/root/send");
  95. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  96. submit("TRLPZ00102", false);
  97. submit("TRLPZ00109");
  98. //------------
  99. // 초기값 설정
  100. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  101. model.makeValue("/root/init/ptnocode", ""); // 검색값
  102. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  103. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  104. model.makeValue("/root/init/fromptno", "");
  105. model.makeValue("/root/init/toptno", "");
  106. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
  107. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
  108. model.makeValue("/root/init/refmthdcd", "1"); // 등록번호
  109. model.makeValue("/root/init/refval", "");
  110. model.setFocus("ipt_refval");
  111. //--------------
  112. model.refresh();
  113. }
  114. /* @group : 검체보관현황 화면
  115. * @ver : 2007.11.06 (CMCDEV-0001)
  116. * @by : 유동철(ACK)
  117. * @-----------------------------------
  118. * @type : function
  119. * @access : public
  120. * @desc : 검색값 입력 처리 함수
  121. */
  122. function fExeRefValKeyPress() {
  123. if (event.keyCode == 13) {
  124. model.makeValue("/root/init/refval", ipt_refval.currentText);
  125. ipt_refval.refresh();
  126. //----------------
  127. fGetSpcKeepList();
  128. }
  129. }
  130. /* @group : 검체보관현황 화면
  131. * @ver : 2007.11.06 (CMCDEV-0001)
  132. * @by : 유동철(ACK)
  133. * @-----------------------------------
  134. * @type : function
  135. * @access : public
  136. * @desc : 세포조직진단비교 Excel저장 처리 Function
  137. */
  138. function fExeSaveToExcel() {
  139. grd_spckeeplist.saveExcel("C:\\SMLPP01800_검체보관현황.xls", "검체보관현황", false, false);
  140. messageBox("C:\\SMLPP01800_검체보관현황.xls 파일 생성이 ", "I002");
  141. }
  142. /* @group : 검체보관현황 화면
  143. * @ver : 2007.11.06 (CMCDEV-0001)
  144. * @by : 유동철(ACK)
  145. * @-----------------------------------
  146. * @type : function
  147. * @access : public
  148. * @desc : 검체보관목록 검색 처리 Function
  149. */
  150. function fGetSpcKeepList() {
  151. var sTemp = "";
  152. //--------------------------------
  153. model.removeNodeset("/root/send");
  154. model.removeNodeset("/root/main/spckeep/spckeeplist");
  155. //------------------------------------------------
  156. if (model.getValue("/root/init/ptnocode") != "") {
  157. //------------------------------------------------
  158. if (model.getValue("/root/init/fromyear") == "") {
  159. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  160. } else {
  161. sTemp = model.getValue("/root/init/fromyear");
  162. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  163. }
  164. //----------------------------------------------
  165. if (model.getValue("/root/init/toyear") == "") {
  166. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  167. } else {
  168. sTemp = model.getValue("/root/init/toyear");
  169. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  170. }
  171. //------------------------------------------------
  172. if (model.getValue("/root/init/fromptno") == "") {
  173. model.makeValue("/root/init/fromptno", "000000");
  174. } else {
  175. sTemp = model.getValue("/root/init/fromptno");
  176. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  177. }
  178. //----------------------------------------------
  179. if (model.getValue("/root/init/toptno") == "") {
  180. model.makeValue("/root/init/toptno", "999999");
  181. } else {
  182. sTemp = model.getValue("/root/init/toptno");
  183. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  184. }
  185. }
  186. //--------------------------------------------
  187. sTemp = model.getValue("/root/init/ptnocode");
  188. //--------------------------------------------------------------------------
  189. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  190. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  191. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  192. model.makeValue("/root/send/refmthdcd", model.getValue("/root/init/refmthdcd"));
  193. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  194. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  195. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  196. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  197. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  198. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  199. submit("TRLPP01801");
  200. }
  201. ]]>
  202. </script>
  203. </xhtml:head>
  204. <xhtml:body guideline="1,1195;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  205. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  206. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">검체보관현황</caption>
  207. </group>
  208. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  209. <group id="grp_sea" style="left:0px; top:10; width:1194px; height:35px; vertical-align:top; ">
  210. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  211. <caption id="caption2" class="search_name" style="left:797px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  212. <caption id="caption5" class="search_no_b" style="left:983px; top:7px; width:12px; height:17px; ">~</caption>
  213. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  214. <button id="btn_sea" class="btn1_letter2" navindex="9" style="left:1123px; top:7px; width:56px; height:22px; ">
  215. <caption>조회</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. fGetSpcKeepList();
  219. ]]>
  220. </script>
  221. </button>
  222. <input id="ipt_abnddfrom" ref="/root/init/acptfromdd" class="input_s_essential" navindex="7" inputtype="date" style="left:886px; top:7px; width:94px; height:19px; "/>
  223. <input id="ipt_abnddto" ref="/root/init/acpttodd" class="input_s_essential" navindex="8" inputtype="date" style="left:998px; top:7px; width:94px; height:19px; "/>
  224. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" style="left:109px; top:7px; width:156px; height:19px; ">
  225. <choices>
  226. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  227. <label ref="ptnonm"/>
  228. <value ref="ptnocd"/>
  229. </itemset>
  230. </choices>
  231. </select1>
  232. <input id="ipt_refval" ref="/root/init/refval" navindex="6" maxlength="10" style="left:618px; top:7px; width:95px; height:19px; ">
  233. <script type="javascript" ev:event="onkeypress">
  234. <![CDATA[
  235. fExeRefValKeyPress();
  236. ]]>
  237. </script>
  238. </input>
  239. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:298px; top:7px; width:50px; height:19px; "/>
  240. <caption id="caption1" class="search_name" style="left:16px; top:8px; width:94px; height:17px; ">병리번호 :</caption>
  241. <caption id="caption4" class="search_no_b" style="left:351px; top:8px; width:12px; height:17px; ">~</caption>
  242. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:396px; top:7px; width:50px; height:19px; "/>
  243. <caption id="caption7" class="search_name" style="left:526px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  244. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:366px; top:7px; width:27px; height:19px; "/>
  245. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:268px; top:7px; width:27px; height:19px; "/>
  246. </group>
  247. <datagrid id="grd_spckeeplist" nodeset="/root/main/spckeep/spckeeplist" autoresize="true" caption="기관코드^ptno^병리번호^relaptno^관련병리번호^등록번호^환자명^접수일자^보관여부^보관일자^보관시간^보관자^보관여부" colsep="^" colwidth="0, 0, 200, 0, 0, 200, 200, 200, 0, 200, 0, 0, 152" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="10" style="left:0px; top:75px; width:1194px; height:665px; ">
  248. <col ref="instcd"/>
  249. <col ref="ptno" type="output"/>
  250. <col class="text_center" ref="dispptno"/>
  251. <col ref="relaptno"/>
  252. <col class="text_center" ref="reladispptno"/>
  253. <col class="text_center" ref="pid"/>
  254. <col class="text_center" ref="patnm"/>
  255. <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  256. <col class="text_center" ref="teamspckeepflagnm"/>
  257. <col class="text_center" ref="spckeepdd"/>
  258. <col class="text_center" ref="spckeeptm"/>
  259. <col class="text_center" ref="spckeepnm"/>
  260. <col class="text_center" ref="doctspckeepflagnm"/>
  261. <script type="javascript" ev:event="onaftersort">
  262. <![CDATA[
  263. grd_spckeeplist.gridToInstance();
  264. ]]>
  265. </script>
  266. </datagrid>
  267. <caption id="caption3" class="tit_2" style="left:5px; top:55; width:139px; height:13px; ">검체보관목록</caption>
  268. <line id="line1" class="line_1" style="x1:0px; y1:70; x2:1194px; y2:70; "/>
  269. </group>
  270. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  271. <button id="btn_prt" class="btn6_letter5" navindex="11" style="left:0px; top:3; width:56px; height:22px; ">
  272. <caption>Excel 출력</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. fExeSaveToExcel();
  276. ]]>
  277. </script>
  278. </button>
  279. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  280. </group>
  281. </xhtml:body>
  282. </xhtml:html>