SMLPP02000_전체이미지조회.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPP02000_전체이미지조회.xrw
  4. * 설 명 : 전체이미지조회 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2008.02.13
  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. <imginfo>
  20. <imginfolist>
  21. <instcd/>
  22. <ptno/>
  23. <dispptno/>
  24. <pid/>
  25. <patnm/>
  26. <sexage/>
  27. <wardroom/>
  28. <rgstdd/>
  29. <rgsttm/>
  30. <rgstrid/>
  31. <rgstrnm/>
  32. <rsltimg/>
  33. </imginfolist>
  34. <lastpage>
  35. <lastpage/>
  36. </lastpage>
  37. </imginfo>
  38. </main>
  39. <send/>
  40. <init>
  41. <acptfromdd/>
  42. <acpttodd/>
  43. <refmthdcd/>
  44. <refval/>
  45. <ptnocode/>
  46. <fromyear/>
  47. <fromptno/>
  48. <sysdt>
  49. <sysdtinfo>
  50. <sysdd/>
  51. <systm/>
  52. </sysdtinfo>
  53. </sysdt>
  54. <ptnocd>
  55. <ptnocdlist>
  56. <instcd/>
  57. <ptnocd/>
  58. <ptnonm/>
  59. </ptnocdlist>
  60. </ptnocd>
  61. <imgsrc/>
  62. <imgdisp/>
  63. </init>
  64. <hidden>
  65. <paval/>
  66. <patinfo>
  67. <ptno/>
  68. <pid/>
  69. <patnm/>
  70. <sexage/>
  71. <relaptno/>
  72. <hospnm/>
  73. <orddeptnm/>
  74. <dispptno/>
  75. <disprelaptno/>
  76. </patinfo>
  77. <prtninfolist/>
  78. </hidden>
  79. <message/>
  80. </root>
  81. </instance>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. fExeInitialize();
  89. ]]>
  90. </script>
  91. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  92. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  93. <submission id="TRLPP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/imginfo/imginfolist"/>
  94. <submission id="TRLPP02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqpatinfo" resultref="/root/hidden/prtninfolist"/>
  95. </model>
  96. <script type="javascript">
  97. <![CDATA[
  98. /* @group : 전체이미지조회 화면
  99. * @ver : 2008.02.13 (CMCDEV-0001)
  100. * @by : 유동철(ACK)
  101. * @-----------------------------------
  102. * @type : function
  103. * @access : public
  104. * @desc : 화면초기화 함수
  105. */
  106. function fExeInitialize() {
  107. var sCurDate = "";
  108. var sPtNoCd = "";
  109. var sYear = "";
  110. var sNo = "";
  111. // 이미지 object, 브라우져 object 비활성화
  112. document.controls("obj_imge").attribute("visibility") = "hidden";
  113. var menuparam = getScreenMenuParameter();
  114. //--------------------------------------------------
  115. model.removeNodeset("/root/main/ptnoinfo/ptnolist");
  116. model.removeNodeset("/root/main/imginfo/imglist");
  117. //----------------
  118. // 시스템일자 조회
  119. model.removeNodeset("/root/send");
  120. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  121. submit("TRLPZ00102", false);
  122. submit("TRLPZ00109");
  123. //------------------------------------------------------------
  124. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  125. //------------
  126. // 초기값 설정
  127. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 등록일자(From)
  128. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 등록일자(To)
  129. model.makeValue("/root/init/refval", ""); // 검색값
  130. model.makeValue("/root/init/ptnocode", "");
  131. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  132. model.makeValue("/root/init/fromptno", "");
  133. model.makeValue("/root/init/imgdisp", "0");
  134. //-----------------
  135. fExeColHidden("0");
  136. //-------------------------------------
  137. // 메뉴에서 화면이 선택되었을 경우 처리
  138. if (menuparam == "1") {
  139. // Continue
  140. } else {
  141. //-------------------------------------------------
  142. // 검사결과등록, 결과조회 화면에서 호출할 경우 처리
  143. if (window.parent == null) {
  144. // Continue
  145. } else {
  146. if (opener.javascript.getParameter("SMLPP02000_scrno") == "SMAER00800") {
  147. sPtNoCd = opener.javascript.getParameter("SMLPP02000_no");
  148. sPtNoCd = sPtNoCd.getTrim();
  149. sYear = sPtNoCd.substr(sPtNoCd.length-8, 2);
  150. sNo = sPtNoCd.substr(sPtNoCd.length-6, 6);
  151. sPtNoCd = sPtNoCd.substr(0, sPtNoCd.length-8);
  152. //------------------------------------------------
  153. model.makeValue("/root/init/ptnocode", sPtNoCd);
  154. model.makeValue("/root/init/fromyear", sYear);
  155. model.makeValue("/root/init/fromptno", sNo);
  156. model.makeValue("/root/init/acptfromdd", "19000101");
  157. model.makeValue("/root/init/acpttodd", "99991231");
  158. model.makeValue("/root/init/scrno", opener.javascript.getParameter("SMLPP02000_scrno"));
  159. model.makeValue("/root/init/refval", "");
  160. cbo_ptnocd.disabled = true;
  161. ipt_seaval.disabled = true;
  162. ipt_cnclfromdd.disabled = true;
  163. ipt_cncltodd.disabled = true;
  164. btn_sea.disabled = true;
  165. cap_title.visible = false;
  166. bol_imgdisp.visible = false;
  167. } else {
  168. model.makeValue("/root/init/ptnocode", opener.javascript.getParameter("SMLPP02000_ptnocd"));
  169. model.makeValue("/root/init/fromyear", opener.javascript.getParameter("SMLPP02000_year"));
  170. model.makeValue("/root/init/fromptno", opener.javascript.getParameter("SMLPP02000_no"));
  171. model.makeValue("/root/init/acptfromdd", opener.javascript.getParameter("SMLPP02000_rgstdd"));
  172. model.makeValue("/root/init/acpttodd", opener.javascript.getParameter("SMLPP02000_rgstdd"));
  173. model.makeValue("/root/init/scrno", opener.javascript.getParameter("SMLPP02000_scrno"));
  174. model.makeValue("/root/init/refval", opener.javascript.getParameter("SMLPP02000_pid"));
  175. }
  176. //--------------
  177. fGetImgInfo("");
  178. }
  179. }
  180. //--------------
  181. model.refresh();
  182. }
  183. /* @group : 전체이미지조회 화면
  184. * @ver : 2008.02.13 (CMCDEV-0001)
  185. * @by : 유동철(ACK)
  186. * @-----------------------------------
  187. * @type : function
  188. * @access : public
  189. * @desc : 부가정보 표시처리 함수
  190. */
  191. function fExeColHidden(pBizFlagCd) {
  192. var bState = false;
  193. //----------------------
  194. if (pBizFlagCd == "1") {
  195. bState = false;
  196. } else {
  197. bState = true;
  198. }
  199. //----------------------------------
  200. grd_ptnolist.colHidden(4) = bState; // 등록번호
  201. grd_ptnolist.colHidden(5) = bState; // 환자명
  202. grd_ptnolist.colHidden(6) = bState; // 성별/나이
  203. grd_ptnolist.colHidden(7) = bState; // 병동/병실
  204. grd_ptnolist.colHidden(8) = bState; // 등록일자
  205. grd_ptnolist.colHidden(9) = bState; // 등록시간
  206. grd_ptnolist.colHidden(11) = bState; // 등록자명
  207. //---------------------
  208. grd_ptnolist.refresh();
  209. }
  210. /* @group : 전체이미지조회 화면
  211. * @ver : 2008.02.13 (CMCDEV-0001)
  212. * @by : 유동철(ACK)
  213. * @-----------------------------------
  214. * @type : function
  215. * @access : public
  216. * @desc : 접수목록 조회 처리 함수
  217. */
  218. function fGetImgInfo(pPage) {
  219. var iWidth = 0;
  220. var iHeight = 0;
  221. var iBackWidth = 0;
  222. var sSize = "";
  223. var sNode = "/root/main/imginfo/imginfolist";
  224. var sTemp = "";
  225. var sFromDD = model.getValue("/root/init/acptfromdd");
  226. var sToDD = model.getValue("/root/init/acpttodd");
  227. //----------------------
  228. // 이상 페이지 번호 처리
  229. if(pPage == "") pPage = 1;
  230. if(pPage < 1) pPage = 1;
  231. if(pPage > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
  232. if (pPage == 0) page = 1;
  233. //------------------------------------------------
  234. if (model.getValue("/root/init/ptnocode") != "") {
  235. //------------------------------------------------
  236. if (model.getValue("/root/init/fromyear") == "") {
  237. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  238. } else {
  239. sTemp = model.getValue("/root/init/fromyear");
  240. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  241. }
  242. //------------------------------------------------
  243. if (model.getValue("/root/init/fromptno") == "") {
  244. model.makeValue("/root/init/fromptno", "000000");
  245. } else {
  246. sTemp = model.getValue("/root/init/fromptno");
  247. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  248. }
  249. }
  250. //--------------------------------------------
  251. sTemp = model.getValue("/root/init/ptnocode");
  252. //--------------------------------
  253. model.removeNodeset("/root/send");
  254. model.removeNodeset(sNode);
  255. //----------------------------------------------------------------------
  256. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  257. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  258. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  259. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  260. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  261. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  262. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  263. model.makeValue("/root/send/page", pPage);
  264. model.makeValue("/root/send/itemlimit", "100");
  265. //-------------------
  266. submit("TRLPP02001");
  267. //----------------------
  268. //인적정보 set
  269. if(model.getValue("/root/init/refval") == "" && model.getValue("/root/init/ptnocode") != "-" && model.getValue("/root/init/ptnocode") != "") {
  270. model.setValue("/root/hidden/patinfo/ptno", model.getValue("/root/main/imginfo/imginfolist/ptno"));
  271. model.setValue("/root/hidden/patinfo/pid", model.getValue("/root/main/imginfo/imginfolist/pid"));
  272. model.setValue("/root/hidden/patinfo/patnm", model.getValue("/root/main/imginfo/imginfolist/patnm"));
  273. model.setValue("/root/hidden/patinfo/sexage", model.getValue("/root/main/imginfo/imginfolist/sexage"));
  274. model.setValue("/root/hidden/patinfo/relaptno", model.getValue("/root/main/imginfo/imginfolist/relaptno"));
  275. model.setValue("/root/hidden/patinfo/hospnm", "강남성모병원");
  276. model.setValue("/root/hidden/patinfo/orddeptnm", model.getValue("/root/main/imginfo/imginfolist/orddeptnm"));
  277. model.setValue("/root/hidden/patinfo/dispptno", model.getValue("/root/main/imginfo/imginfolist/dispptno"));
  278. model.setValue("/root/hidden/patinfo/disprelaptno", model.getValue("/root/main/imginfo/imginfolist/disprelaptno"));
  279. } else {
  280. model.resetInstanceNode("/root/hidden/patinfo");
  281. }
  282. //-----------------------------------------------------
  283. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  284. /*
  285. //---------------------------------------------
  286. setImageRefInstance(sNode+"["+iNo+"]/rsltimg");
  287. sSize = getBase64DataSize(sNode+"["+iNo+"]/rsltimg");
  288. iWidth = sSize.split("^")[0];
  289. iHeight = sSize.split("^")[1];
  290. grd_ptnolist.rowHeight(iNo) = iHeight;
  291. //----------------------------------------
  292. if (Number(iBackWidth) < Number(iWidth)) {
  293. grd_ptnolist.colWidth(12) = iWidth;
  294. iBackWidth = iWidth;
  295. }
  296. */
  297. var IMGE_SZ_WID = 1075;
  298. var IMGE_SZ_HEI = 1075;
  299. //var IMGE_SZ_HEI = 615;
  300. var imgcnts = model.getValue(sNode+"["+iNo+"]/rsltimg");
  301. obj_imge.SetViewMode(0);
  302. //obj_imge.DeleteAllShape();
  303. obj_imge.LoadImageBase64(imgcnts);
  304. var sz = obj_imge.GetImageSize();
  305. var imgewid = sz.split("|")[0];
  306. var imgehei = sz.split("|")[1];
  307. if ( !(imgewid < IMGE_SZ_WID && imgehei < IMGE_SZ_HEI) ){
  308. obj_imge.SetViewMode(3);
  309. }
  310. if ( !(imgewid < IMGE_SZ_WID && imgehei < IMGE_SZ_HEI) ) {
  311. sz = obj_imge.GetImageSizeEx(false);
  312. arrSz = sz.split("|");
  313. imgewid = arrSz[0];
  314. imgehei = arrSz[1];
  315. }
  316. grd_ptnolist.rowHeight(iNo) = imgehei;
  317. //grd_ptnolist.colWidth(12) = imgewid;
  318. var strBase64 = obj_imge.SaveImageBase64();
  319. model.setValue(sNode+"["+iNo+"]/rsltimg", strBase64, true);
  320. setImageRefInstance(sNode+"["+iNo+"]/rsltimg");
  321. }
  322. //----------------------
  323. ipt_paval.value = pPage;
  324. }
  325. /* @group : 전체이미지조회
  326. * @ver : 2007.11.14 (CMCDEV-0001)
  327. * @by : 유동철(ACK)
  328. * @-----------------------------------
  329. * @type : function
  330. * @access : public
  331. * @desc : 검색값을 입력하고 Enter키를 누를 경우 처리 Function
  332. */
  333. function fExeInputKey() {
  334. if(event.keyCode == 13) {
  335. model.makeValue("/root/init/refval", ipt_seaval.currentText);
  336. ipt_seaval.refresh();
  337. //--------------
  338. fGetImgInfo("");
  339. }
  340. }
  341. /************************************************************************************************
  342. 함수명 : getBase64DataSize ()
  343. 인자 :
  344. String xPath - Base64Data 이미지 파일 xPath
  345. 결과값 : String width^height
  346. 예) 20^20)
  347. 함수설명 : 이미지 Width, Height 반환 함수
  348. ************************************************************************************************
  349. 작 성 자 :
  350. 작 성 일 :
  351. ************************************************************************************************/
  352. function getBase64DataSize(xPath) {
  353. if(document.controls("_image_forSize") == null) {
  354. var newCtrObj = body.createChild("xforms:img", "id:_image_forSize; left:0px; top:0px; width:1px; height:1px;");
  355. newCtrObj.visible = false;
  356. newCtrObj.attribute("ref") = xPath;
  357. }
  358. else{
  359. //_image_forSize.visible = true;
  360. _image_forSize.attribute("ref") = xPath;
  361. }
  362. _image_forSize.attribute("width") = null;
  363. _image_forSize.attribute("height") = null;
  364. _image_forSize.visible = false;
  365. var imgW = _image_forSize.attribute("width").replace("px", "");
  366. var imgH = _image_forSize.attribute("height").replace("px", "");
  367. return imgW + "^" + imgH;
  368. }
  369. ]]>
  370. </script>
  371. </xhtml:head>
  372. <xhtml:body visibility="visible">
  373. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  374. <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  375. <button id="button1" class="btn4_letter2" style="left:250px; top:5px; width:56px; height:22px; ">
  376. <caption>다음</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. fGetImgInfo(Number(model.getValue("/root/hidden/paval")) + 1);
  380. ]]>
  381. </script>
  382. </button>
  383. <button id="button2" class="btn3_letter2" style="left:2px; top:4px; width:56px; height:22px; ">
  384. <caption>처음</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. fGetImgInfo(1);
  388. ]]>
  389. </script>
  390. </button>
  391. <button id="button4" class="btn4_letter2" style="left:309px; top:5px; width:56px; height:22px; ">
  392. <caption>최종</caption>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. fGetImgInfo(model.getValue("/root/main/imginfo/lastpage/lastpage"));
  396. ]]>
  397. </script>
  398. </button>
  399. <input id="ipt_paval" ref="/root/hidden/paval" class="input_search" style="left:120px; top:5px; width:65px; height:19px; text-align:right; ">
  400. <script type="javascript" ev:event="xforms-value-changed">
  401. <![CDATA[
  402. fGetImgInfo(model.getValue("/root/hidden/paval"));
  403. ]]>
  404. </script>
  405. <script type="javascript" ev:event="onkeypress">
  406. <![CDATA[
  407. if(event.keyCode == 13 && ipt_paval.currentText != ipt_paval.value) {
  408. model.setValue("/root/hidden/paval", ipt_paval.currentText);
  409. ipt_paval.dispatch("xforms-value-changed");
  410. }
  411. else if(event.keyCode != 8 && (event.keyCode < 48 || event.keyCode > 57)) {
  412. event.defaultAction = "cancel";
  413. }
  414. ]]>
  415. </script>
  416. </input>
  417. <caption id="cap_lastPage" ref="/root/main/imginfo/lastpage/lastpage" style="left:195px; top:5px; width:60px; height:20px; font-size:9pt; font-weight:bold; ">1</caption>
  418. <caption id="caption7" style="left:187px; top:5px; width:11px; height:20px; font-size:9pt; font-weight:bold; ">/</caption>
  419. <button id="btn_prntexcel" class="btn3_letter2" style="left:61px; top:4px; width:56px; height:22px; ">
  420. <caption>이전</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. fGetImgInfo(Number(model.getValue("/root/hidden/paval")) - 1);
  424. ]]>
  425. </script>
  426. </button>
  427. </group>
  428. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  429. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:220px; height:14px; ">이미지조회</caption>
  430. </group>
  431. <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
  432. <datagrid id="grd_ptnolist" nodeset="/root/main/imginfo/imginfolist" class="datagrid2" autoresize="false" caption="기관코드^병리번호^병리번호^등록번호^환자명^성별/&#xA;나이^병동/병실^등록일자^등록시간^rgstrid^등록자^이미지내용" colsep="^" colwidth="0, 0, 80, 80, 80, 60, 0, 70, 60, 0, 80, 1070" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="11" style="left:0px; top:120px; width:1194px; height:620px; ">
  433. <col ref="instcd"/>
  434. <col ref="ptno"/>
  435. <col class="text_center" ref="dispptno"/>
  436. <col class="text_center" ref="pid"/>
  437. <col class="text_center" ref="patnm"/>
  438. <col class="text_center" ref="sexage"/>
  439. <col class="text_center" ref="wardroom"/>
  440. <col class="text_center" ref="rgstdd" format="yyyy-mm-dd"/>
  441. <col ref="rgsttm" format="hh:nn:ss"/>
  442. <col ref="rgstrid"/>
  443. <col class="text_center" ref="rgstrnm"/>
  444. <col ref="rsltimg"/>
  445. <script type="javascript" ev:event="onaftersort">
  446. <![CDATA[
  447. grd_ptnolist.gridToInstance();
  448. ]]>
  449. </script>
  450. </datagrid>
  451. <object id="obj_imge" clsid="{72e5d9ed-0d6a-46e8-aead-23144bfef878}" style="left:110px; top:160px; width:1075px; height:575px; background-color:transparent; "/>
  452. <caption id="caption4" class="tit_2" style="left:5px; top:100px; width:146px; height:13px; ">이미지 목록</caption>
  453. <line id="line1" class="line_1" style="x1:0px; y1:115px; x2:1194px; y2:115px; "/>
  454. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  455. <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; "/>
  456. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  457. <input id="ipt_seaval" ref="/root/init/refval" class="input_search" navindex="6" maxlength="10" style="left:577px; top:8px; width:98px; height:19px; ">
  458. <script type="javascript" ev:event="onkeypress">
  459. <![CDATA[
  460. fExeInputKey();
  461. ]]>
  462. </script>
  463. </input>
  464. <caption id="caption3" class="search_name" style="left:486px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  465. <caption id="caption5" class="search_no_b" style="left:979px; top:8px; width:12px; height:17px; ">~</caption>
  466. <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  467. <caption>조회</caption>
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. fGetImgInfo("");
  471. ]]>
  472. </script>
  473. </button>
  474. <input id="ipt_cnclfromdd" ref="/root/init/acptfromdd" class="input_s_essential" navindex="8" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:876px; top:8px; width:100px; height:19px; "/>
  475. <input id="ipt_cncltodd" ref="/root/init/acpttodd" class="input_s_essential" navindex="9" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:995px; top:8px; width:100px; height:19px; "/>
  476. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:156px; height:19px; ">
  477. <choices>
  478. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  479. <label ref="ptnonm"/>
  480. <value ref="ptnocd"/>
  481. </itemset>
  482. </choices>
  483. </select1>
  484. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:298px; top:8px; width:50px; height:19px; "/>
  485. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  486. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:268px; top:8px; width:27px; height:19px; "/>
  487. <caption id="cap_refdd" class="search_name" style="left:787px; top:9px; width:86px; height:17px; ">등록일자 :</caption>
  488. </group>
  489. <bool id="bol_imgdisp" checkvalue="1,0" ref="/root/init/imgdisp" style="left:1095px; top:95px; width:25px; height:20px; ">
  490. <script type="javascript" ev:event="xforms-value-changed">
  491. <![CDATA[
  492. fExeColHidden(model.getValue("/root/init/imgdisp"));
  493. ]]>
  494. </script>
  495. </bool>
  496. <caption id="cap_title" style="left:1115px; top:96px; width:79px; height:20px; ">부가정보 보기</caption>
  497. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:140px; height:13px; ">인적사항</caption>
  498. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1015px; y2:70px; "/>
  499. <output id="opt_pid" ref="/root/hidden/patinfo/pid" class="output_fix" style="left:280px; top:75px; width:82px; height:19px; border-color:#c0c0c0; "/>
  500. <caption id="cap_pid" class="cell_1" style="left:217px; top:74px; width:60px; height:23px; vertical-align:middle; ">등록번호</caption>
  501. <output id="opt_ptno" ref="/root/hidden/patinfo/dispptno" class="output_fix" style="left:98px; top:75px; width:115px; height:19px; border-color:#c0c0c0; "/>
  502. <caption id="caption8" class="cell_1" style="left:2px; top:74px; width:93px; height:23px; vertical-align:middle; ">병리번호</caption>
  503. <output id="opt_hngnm" ref="/root/hidden/patinfo/patnm" class="output_fix" style="left:430px; top:75px; width:82px; height:19px; border-color:#c0c0c0; "/>
  504. <caption id="cap_hngnm" class="cell_1" style="left:367px; top:74px; width:60px; height:23px; vertical-align:middle; ">이 름</caption>
  505. <caption id="caption9" class="cell_1" style="left:517px; top:74; width:61px; height:23px; vertical-align:middle; ">성별/나이</caption>
  506. <output id="output1" ref="/root/hidden/patinfo/sexage" class="output_fix" style="left:581px; top:75px; width:82px; height:19px; border-color:#c0c0c0; "/>
  507. <caption id="caption10" class="cell_1" style="left:670px; top:74; width:85px; height:23px; vertical-align:middle; ">관련병리번호</caption>
  508. <line id="line3" class="line_3" style="x1:0px; y1:96px; x2:1015px; y2:96px; "/>
  509. <caption id="caption12" class="cell_1" style="left:860px; top:74; width:60px; height:23px; vertical-align:middle; ">의뢰과</caption>
  510. <output id="output4" ref="/root/hidden/patinfo/orddeptnm" class="output_fix" style="left:925px; top:75px; width:90px; height:19px; border-color:#c0c0c0; "/>
  511. <button id="button3" class="btn6_letter5" navindex="14" style="left:95px; top:48px; width:56px; height:22px; ">
  512. <caption>출력(원내)</caption>
  513. <script type="javascript" ev:event="DOMActivate">
  514. <![CDATA[
  515. var sHdrInfo = "/root/hidden/headerinfo";
  516. var sRsltHdrInfo = "/root/hidden/rslthdrinfo";
  517. if(model.getValue("/root/init/refval") == "" && model.getValue("/root/init/ptnocode") != "-" && model.getValue("/root/init/ptnocode") != "") {
  518. model.removenode("/root/hidden/prtninfo");
  519. model.removenode("/root/hidden/diaginfo");
  520. model.removenode("/root/hidden/headerinfo");
  521. model.removenode("/root/hidden/rslthdrinfo");
  522. model.removenode("/root/hidden/imginfo");
  523. //----------------------------------------------------------------------
  524. model.makeValue("/root/send/reqpatinfo/instcd", getUserInfo("dutplceinstcd"));
  525. model.makeValue("/root/send/reqpatinfo/ptno", model.getValue("/root/hidden/patinfo/ptno"));
  526. model.makeValue("/root/send/reqpatinfo/acptdd", model.getValue("/root/main/imginfo/imginfolist/acptdd"));
  527. //-------------------
  528. if(submit("TRLPP02002")) {
  529. model.makeValue("/root/hidden/prtninfo/ptno", model.getValue("/root/hidden/patinfo/ptno"));
  530. model.makeValue("/root/hidden/prtninfo/pid", model.getValue("/root/hidden/patinfo/pid"));
  531. model.makeValue("/root/hidden/prtninfo/patnm", model.getValue("/root/hidden/patinfo/patnm"));
  532. model.makeValue("/root/hidden/prtninfo/sexage", model.getValue("/root/hidden/patinfo/sexage"));
  533. model.makeValue("/root/hidden/prtninfo/relaptno", model.getValue("/root/hidden/patinfo/relaptno"));
  534. model.makeValue("/root/hidden/prtninfo/hospnm", model.getValue("/root/hidden/patinfo/hospnm"));
  535. model.makeValue("/root/hidden/prtninfo/orddeptnm", model.getValue("/root/hidden/patinfo/orddeptnm"));
  536. model.makeValue("/root/hidden/prtninfo/dispptno", model.getValue("/root/hidden/patinfo/dispptno"));
  537. model.makeValue("/root/hidden/prtninfo/disprelaptno", model.getValue("/root/hidden/patinfo/disprelaptno"));
  538. //model.makeValue("/root/hidden/prtninfo/rsltimg", model.getValue("/root/main/imginfo/imginfolist/rsltimg"), true);
  539. model.makeNode("/root/hidden/imginfo");
  540. model.copyNode("/root/hidden/imginfo", "/root/main/imginfo");
  541. model.makeValue(sHdrInfo+"/patnm", model.getValue(sHdrInfo+"/patnm") + "["+model.getValue(sHdrInfo+"/sexage")+"]");
  542. model.makeValue(sHdrInfo+"/rrgstno", (model.getValue(sHdrInfo+"/rrgstno")).substr(0, 8) + "xxxxxx");
  543. model.makeValue(sHdrInfo+"/prcpdt", model.getValue(sHdrInfo+"/prcpdt") + " " + model.getValue(sHdrInfo+"/orddrnm"));
  544. model.makeValue(sHdrInfo+"/acptdt", model.getValue(sHdrInfo+"/acptdt") + " " + model.getValue(sHdrInfo+"/acptnm"));
  545. model.makeValue(sHdrInfo+"/grosdt", model.getValue(sHdrInfo+"/grosdt") + " " + model.getValue(sHdrInfo+"/grosdrnm"));
  546. model.makeValue(sRsltHdrInfo+"/inptdt", model.getValue(sRsltHdrInfo+"/inptdt") + " " + model.getValue(sRsltHdrInfo+"/inptnm"));
  547. model.makeValue(sRsltHdrInfo+"/readdt", model.getValue(sRsltHdrInfo+"/readdt") + " " + model.getValue(sRsltHdrInfo+"/readdrnm"));
  548. //exeReportPreview("RPLPP00700", "XMLSTR", "", "", "true", "", "", "", "", "false", "", "grp_prnt");
  549. exeReportPreview("RPLPP00700", "XMLSTR", "", "", "", "", "", "", "", "", "", "");
  550. }
  551. //-------------------
  552. }
  553. ]]>
  554. </script>
  555. </button>
  556. <input id="inpt_relaptno" ref="/root/hidden/patinfo/disprelaptno" class="input_search" style="left:755px; top:75px; width:100px; height:19px; ">
  557. <script type="javascript" ev:event="xforms-value-changed">
  558. <![CDATA[
  559. model.makeValue("/root/hidden/prtninfo/disprelaptno", model.getValue("/root/hidden/patinfo/disprelaptno"));
  560. ]]>
  561. </script>
  562. </input>
  563. <button id="button5" class="btn6_letter5" navindex="14" style="left:190px; top:48px; width:92px; height:22px; ">
  564. <caption>출력(원외)</caption>
  565. <script type="javascript" ev:event="DOMActivate">
  566. <![CDATA[
  567. var sHdrInfo = "/root/hidden/headerinfo";
  568. var sRsltHdrInfo = "/root/hidden/rslthdrinfo";
  569. if(model.getValue("/root/init/refval") == "" && model.getValue("/root/init/ptnocode") != "-" && model.getValue("/root/init/ptnocode") != "") {
  570. model.removenode("/root/hidden/prtninfo");
  571. model.removenode("/root/hidden/diaginfo");
  572. model.removenode("/root/hidden/headerinfo");
  573. model.removenode("/root/hidden/rslthdrinfo");
  574. //----------------------------------------------------------------------
  575. model.makeValue("/root/send/reqpatinfo/instcd", getUserInfo("dutplceinstcd"));
  576. model.makeValue("/root/send/reqpatinfo/ptno", model.getValue("/root/hidden/patinfo/ptno"));
  577. model.makeValue("/root/send/reqpatinfo/acptdd", model.getValue("/root/main/imginfo/imginfolist/acptdd"));
  578. //-------------------
  579. if(submit("TRLPP02002")) {
  580. model.makeValue("/root/hidden/prtninfo/ptno", model.getValue("/root/hidden/patinfo/ptno"));
  581. model.makeValue("/root/hidden/prtninfo/pid", model.getValue("/root/hidden/patinfo/pid"));
  582. model.makeValue("/root/hidden/prtninfo/patnm", model.getValue("/root/hidden/patinfo/patnm"));
  583. model.makeValue("/root/hidden/prtninfo/sexage", model.getValue("/root/hidden/patinfo/sexage"));
  584. model.makeValue("/root/hidden/prtninfo/relaptno", model.getValue("/root/hidden/patinfo/relaptno"));
  585. model.makeValue("/root/hidden/prtninfo/hospnm", model.getValue("/root/hidden/patinfo/hospnm"));
  586. model.makeValue("/root/hidden/prtninfo/orddeptnm", model.getValue("/root/hidden/patinfo/orddeptnm"));
  587. model.makeValue("/root/hidden/prtninfo/dispptno", model.getValue("/root/hidden/patinfo/dispptno"));
  588. model.makeValue("/root/hidden/prtninfo/disprelaptno", model.getValue("/root/hidden/patinfo/disprelaptno"));
  589. if(grd_ptnolist.row <= 0) {
  590. grd_ptnolist.row = 1;
  591. }
  592. model.makeValue("/root/hidden/prtninfo/rsltimg", model.getValue("/root/main/imginfo/imginfolist["+ grd_ptnolist.row +"]/rsltimg"), true);
  593. model.makeValue(sHdrInfo+"/patnm", model.getValue(sHdrInfo+"/patnm") + "["+model.getValue(sHdrInfo+"/sexage")+"]");
  594. model.makeValue(sHdrInfo+"/rrgstno", (model.getValue(sHdrInfo+"/rrgstno")).substr(0, 8) + "xxxxxx");
  595. model.makeValue(sHdrInfo+"/prcpdt", model.getValue(sHdrInfo+"/prcpdt") + " " + model.getValue(sHdrInfo+"/orddrnm"));
  596. model.makeValue(sHdrInfo+"/acptdt", model.getValue(sHdrInfo+"/acptdt") + " " + model.getValue(sHdrInfo+"/acptnm"));
  597. model.makeValue(sHdrInfo+"/grosdt", model.getValue(sHdrInfo+"/grosdt") + " " + model.getValue(sHdrInfo+"/grosdrnm"));
  598. model.makeValue(sRsltHdrInfo+"/inptdt", model.getValue(sRsltHdrInfo+"/inptdt") + " " + model.getValue(sRsltHdrInfo+"/inptnm"));
  599. model.makeValue(sRsltHdrInfo+"/readdt", model.getValue(sRsltHdrInfo+"/readdt") + " " + model.getValue(sRsltHdrInfo+"/readdrnm"));
  600. //exeReportPreview("RPLPP00700", "XMLSTR", "", "", "true", "", "", "", "", "false", "", "grp_prnt");
  601. exeReportPreview("RPLPP00800", "XMLSTR", "", "", "", "", "", "", "", "", "", "");
  602. }
  603. //-------------------
  604. }
  605. ]]>
  606. </script>
  607. </button>
  608. </group>
  609. </xhtml:body>
  610. </xhtml:html>