SMLPU00300_위탁검사현황.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPU00300_위탁검사현황
  4. * 설 명 : 위탁검사현황
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.0.19
  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. <trsttest>
  20. <trsttestlist>
  21. <choi/>
  22. <instcd/>
  23. <ptno/>
  24. <dispptno/>
  25. <pid/>
  26. <patnm/>
  27. <sexage/>
  28. <rrgstno/>
  29. <patflagnm/>
  30. <acptdd/>
  31. <acpttm/>
  32. <testcd/>
  33. <testnm/>
  34. <spccd/>
  35. <spcnm/>
  36. <trustdd/>
  37. <trusttm/>
  38. <exlabcd/>
  39. <exlabnm/>
  40. <repldd/>
  41. <repltm/>
  42. <testrslt/>
  43. <acptno/>
  44. <acptitemno/>
  45. <trustno/>
  46. <trustseqno/>
  47. <wardcd/>
  48. <roomcd/>
  49. <prcpdd/>
  50. <orddd/>
  51. <prcpgenrflag/>
  52. <prcpno/>
  53. <orddrnm/>
  54. <orddeptnm/>
  55. <execprcpuniqno/>
  56. <reqfrmno/>
  57. <reqfrmflagcd/>
  58. <reqcnts/>
  59. <prcpstatcd/>
  60. <bcno/>
  61. <reqcntsnode/>
  62. <rrgstno1/>
  63. <rrgstno2/>
  64. <psptno/>
  65. </trsttestlist>
  66. </trsttest>
  67. </main>
  68. <send/>
  69. <init>
  70. <pid/>
  71. <acptfromdd/>
  72. <acpttodd/>
  73. <seameth/>
  74. <trstflag/>
  75. <exlabcd/>
  76. <sysdt>
  77. <sysdtinfo>
  78. <sysdd/>
  79. <systm/>
  80. </sysdtinfo>
  81. </sysdt>
  82. <resncd>
  83. <resncdist>
  84. <instcd/>
  85. <baseflagcd/>
  86. <resncd/>
  87. <resncnts/>
  88. </resncdist>
  89. </resncd>
  90. <ptnocd>
  91. <ptnocdlist>
  92. <instcd/>
  93. <ptnocd/>
  94. <ptnonm/>
  95. </ptnocdlist>
  96. </ptnocd>
  97. <ptnocode/>
  98. <fromyear/>
  99. <fromptno/>
  100. <toyear/>
  101. <toptno/>
  102. <init>
  103. <LB0110>
  104. <cd/>
  105. <nm/>
  106. </LB0110>
  107. </init>
  108. </init>
  109. <hidden/>
  110. <message/>
  111. </root>
  112. </instance>
  113. <bind id="bind1" ref="/root/main/trsttest/trsttestlist/exlabcd" readonly="../exlabcd/@readonly = 'true'"/>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  117. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  118. <script type="javascript" ev:event="xforms-ready">
  119. <![CDATA[
  120. fExeInitialize();
  121. ]]>
  122. </script>
  123. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB0110"/>
  124. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  125. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  126. <submission id="TRLPU00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/trsttest/trsttestlist"/>
  127. </model>
  128. <script type="javascript">
  129. <![CDATA[
  130. /* @group : 위탁검사현황
  131. * @ver : 2007.09.19 (CMCDEV-0001)
  132. * @by : 유동철(ACK)
  133. * @-----------------------------------
  134. * @type : function
  135. * @access : public
  136. * @desc : 초기화 Function
  137. */
  138. function fExeInitialize() {
  139. var sCurDate = "";
  140. //---------------
  141. // 시스템일시 조회
  142. model.removeNodeset("/root/send");
  143. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  144. submit("TRLPZ00102", false);
  145. submit("TRLPZ00109", false);
  146. model.makeValue("/root/send/codeflag", "0110|"); // 0110 외부기관
  147. submit("TRLZZ00101");
  148. //------------------------------------------------------------
  149. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  150. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  151. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  152. model.makeValue("/root/init/ptnocode", "");
  153. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  154. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  155. model.makeValue("/root/init/fromptno", "");
  156. model.makeValue("/root/init/toptno", "");
  157. model.makeValue("/root/init/exlabcd", "");
  158. model.makeValue("/root/init/pid", "");
  159. model.makeValue("/root/init/trstflag", "1");
  160. //------------------------------------------------------
  161. model.removeNodeset("/root/main/trsttest/trsttestlist");
  162. //--------------
  163. model.refresh();
  164. }
  165. /* @group : 위탁검사현황
  166. * @ver : 2007.09.19 (CMCDEV-0001)
  167. * @by : 유동철(ACK)
  168. * @-----------------------------------
  169. * @type : function
  170. * @access : public
  171. * @desc : 위탁검사목록 조회 Function
  172. */
  173. function fGetTrustList() {
  174. var sTemp = "";
  175. var sFromDD = model.getValue("/root/init/acptfromdd");
  176. var sToDD = model.getValue("/root/init/acpttodd");
  177. //------------------------------------------------
  178. if (model.getValue("/root/init/ptnocode") != "") {
  179. //------------------------------------------------
  180. if (model.getValue("/root/init/fromyear") == "") {
  181. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  182. } else {
  183. sTemp = model.getValue("/root/init/fromyear");
  184. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  185. }
  186. //----------------------------------------------
  187. if (model.getValue("/root/init/toyear") == "") {
  188. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  189. } else {
  190. sTemp = model.getValue("/root/init/toyear");
  191. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  192. }
  193. //------------------------------------------------
  194. if (model.getValue("/root/init/fromptno") == "") {
  195. model.makeValue("/root/init/fromptno", "000000");
  196. } else {
  197. sTemp = model.getValue("/root/init/fromptno");
  198. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  199. }
  200. //----------------------------------------------
  201. if (model.getValue("/root/init/toptno") == "") {
  202. model.makeValue("/root/init/toptno", "999999");
  203. } else {
  204. sTemp = model.getValue("/root/init/toptno");
  205. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  206. }
  207. }
  208. //--------------------------------------------
  209. sTemp = model.getValue("/root/init/ptnocode");
  210. model.removeNodeset("/root/main/trsttest/trsttestlist");
  211. //--------------------------------
  212. model.removeNodeset("/root/send");
  213. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  214. model.makeValue("/root/send/fromdd", model.getValue("/root/init/acptfromdd"));
  215. model.makeValue("/root/send/todd", model.getValue("/root/init/acpttodd"));
  216. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  217. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  218. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  219. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  220. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  221. model.makeValue("/root/send/trstflagcd", model.getValue("/root/init/trstflag")); // 위탁구분(0:전, 1:후)
  222. model.makeValue("/root/send/pid", model.getValue("/root/init/pid"));
  223. model.makeValue("/root/send/exlabcd", model.getValue("/root/init/exlabcd"));
  224. //-------------------
  225. submit("TRLPU00201");
  226. }
  227. /* @group : 위탁검사현황
  228. * @ver : 2007.09.19 (CMCDEV-0001)
  229. * @by : 유동철(ACK)
  230. * @-----------------------------------
  231. * @type : function
  232. * @access : public
  233. * @desc : 위탁검사목록 조회 Function
  234. */
  235. function fExeSaveToExcel() {
  236. grd_trstlist.saveExcel("C:\\SMLPU00300_위탁검사현황.xls", "위탁검사현황", false, false);
  237. }
  238. ]]>
  239. </script>
  240. </xhtml:head>
  241. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  242. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  243. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">위탁검사현황</caption>
  244. </group>
  245. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  246. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35; vertical-align:top; ">
  247. <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; "/>
  248. <caption id="caption5" class="search_no_b" style="left:202px; top:8px; width:12px; height:17px; ">~</caption>
  249. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  250. <input id="ipt_acptddfrom" ref="/root/init/acptfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:105px; top:8px; width:94; height:19px; "/>
  251. <input id="ipt_acptddto" ref="/root/init/acpttodd" class="input_s_essential" navindex="2" inputtype="date" style="left:217px; top:8px; width:94px; height:19px; "/>
  252. <caption id="caption1" class="search_name" style="left:916px; top:9px; width:86px; height:17px; ">위탁기관 :</caption>
  253. <button id="btn_sea" class="btn1_letter2" navindex="11" style="left:1123px; top:7px; width:56px; height:22px; ">
  254. <caption>조회</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. fGetTrustList();
  258. ]]>
  259. </script>
  260. </button>
  261. <select1 id="cmb_basepartcd" ref="/root/init/exlabcd" class="combo_search" navindex="10" appearance="minimal" style="left:1008px; top:8px; width:84px; height:19px; ">
  262. <choices>
  263. <itemset nodeset="/root/init/init/LB0110">
  264. <label ref="nm"/>
  265. <value ref="cd"/>
  266. </itemset>
  267. </choices>
  268. </select1>
  269. <caption id="caption10" class="search_name" autoresize="true" style="left:709px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  270. <caption id="cap_ddflagcd" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">위탁일자 :</caption>
  271. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="3" appearance="minimal" editmode="search" style="left:439px; top:8px; width:51px; height:19px; ">
  272. <choices>
  273. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  274. <label ref="ptnocd"/>
  275. <value ref="ptnocd"/>
  276. </itemset>
  277. </choices>
  278. </select1>
  279. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="5" maxlength="6" style="left:523px; top:8px; width:50px; height:19px; "/>
  280. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="4" maxlength="2" style="left:493px; top:8px; width:27px; height:19px; "/>
  281. <caption id="caption2" class="search_name" style="left:350px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  282. <caption id="caption4" class="search_no_b" style="left:576px; top:8px; width:12px; height:17px; ">~</caption>
  283. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="7" maxlength="6" style="left:621px; top:8px; width:50px; height:19px; "/>
  284. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="6" maxlength="2" style="left:591px; top:8px; width:27px; height:19px; "/>
  285. <input id="input3" ref="/root/init/pid" navindex="8" style="left:800px; top:8px; width:80px; height:19px; "/>
  286. </group>
  287. <line id="line1" class="line_1" style="x1:0px; y1:70; x2:1194px; y2:70; "/>
  288. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:139px; height:13; ">위탁검사정보</caption>
  289. <datagrid id="grd_trstlist" nodeset="/root/main/trsttest/trsttestlist" class="datagrid2" caption="instcd^ptno^병리번호^등록번호^환자명^성별&#xA;나이^주민번호^병동/외래^접수일자^접수&#xA;시간^검사코드^검사명^검체코드^검체명^발송일자^발송&#xA;시간^위탁기관^위탁기관^회신일자^회신&#xA;시간^검사결과^acptno^acptitemno^trustno^trustseqno^wardcd^roomcd^prcpdd^orddd^prcpgenrflag^prcpno^orddrnm^orddeptnm^execprcpuniqno^reqfrmno^reqfrmflagcd^reqcnts^prcpstatcd^bcno^reqcntsnode^rrgstno1^rrgstno2^psptno" colsep="^" colwidth="0, 0, 80, 70, 70, 46, 90, 0, 70, 56, 0, 120, 0, 70, 70, 56, 90, 0, 70, 56, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="13" style="left:0px; top:75px; width:1194px; height:607px; ">
  290. <col ref="instcd"/>
  291. <col ref="ptno"/>
  292. <col ref="dispptno"/>
  293. <col ref="pid"/>
  294. <col ref="patnm"/>
  295. <col ref="sexage"/>
  296. <col ref="rrgstno"/>
  297. <col ref="patflagnm"/>
  298. <col ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  299. <col ref="acpttm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  300. <col ref="testcd"/>
  301. <col ref="testnm"/>
  302. <col ref="spccd"/>
  303. <col ref="spcnm"/>
  304. <col ref="trustdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  305. <col ref="trusttm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  306. <col ref="exlabcd" type="combo">
  307. <choices>
  308. <itemset nodeset="/root/init/init/LB0110">
  309. <label ref="nm"/>
  310. <value ref="cd"/>
  311. </itemset>
  312. </choices>
  313. </col>
  314. <col ref="exlabnm"/>
  315. <col ref="repldd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  316. <col ref="repltm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  317. <col ref="testrslt"/>
  318. <col ref="acptno"/>
  319. <col ref="acptitemno"/>
  320. <col ref="trustno"/>
  321. <col ref="trustseqno"/>
  322. <col ref="wardcd"/>
  323. <col ref="roomcd"/>
  324. <col ref="prcpdd"/>
  325. <col ref="orddd"/>
  326. <col ref="prcpgenrflag"/>
  327. <col ref="prcpno"/>
  328. <col ref="orddrnm"/>
  329. <col ref="orddeptnm"/>
  330. <col ref="execprcpuniqno"/>
  331. <col ref="reqfrmno"/>
  332. <col ref="reqfrmflagcd"/>
  333. <col ref="reqcnts"/>
  334. <col ref="prcpstatcd"/>
  335. <col ref="bcno"/>
  336. <col ref="reqcntsnode"/>
  337. <col ref="rrgstno1"/>
  338. <col ref="rrgstno2"/>
  339. <col ref="psptno"/>
  340. </datagrid>
  341. </group>
  342. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  343. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  344. <button id="button13" class="btn6_letter5" navindex="9" style="left:5px; top:3px; width:92px; height:22px; ">
  345. <caption>EXCEL저장</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. lpzfExeSaveToExcel(grd_trstlist, "위탁검사현황");
  349. ]]>
  350. </script>
  351. </button>
  352. </group>
  353. </xhtml:body>
  354. </xhtml:html>