SMLPR01900_검사항목별결과관리.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPR01900_감사항목별결과관리
  4. * 설 명 : 검사항목별 결과등록
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2008.01.31
  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. <prcp>
  20. <prcplist>
  21. <instcd/>
  22. <ptno/>
  23. <dispptno/>
  24. <scrn/>
  25. <testnm/>
  26. <spcnm/>
  27. <pid/>
  28. <patnm/>
  29. <bftestrslt/>
  30. <testrslt/>
  31. <sexage/>
  32. <orddeptcd/>
  33. <orddeptnm/>
  34. <orddrid/>
  35. <orddrnm/>
  36. <wardroom/>
  37. <prcpdd/>
  38. <prcptm/>
  39. <acptdd/>
  40. <acpttm/>
  41. <rsltrgstdd/>
  42. <rsltrgsttm/>
  43. <acptno/>
  44. <orgprcpstatcd/>
  45. <testcd/>
  46. <spccd/>
  47. <prcpno/>
  48. <execprcpuniqno/>
  49. <rsltrgstno/>
  50. <rgstnm/>
  51. <orgtestrslt/>
  52. <inptdd/>
  53. <inpttm/>
  54. <extrpartcd/>
  55. <extrmthdcd/>
  56. <diagcd/>
  57. <cmtcnts/>
  58. <spckeepflagcd/>
  59. <conccaseflagcd/>
  60. <rslthideflagcd/>
  61. <preprsltflagcd/>
  62. <workflagcd/>
  63. <trandd/>
  64. <tranno/>
  65. <choi/>
  66. <rsltrgstid/>
  67. <acptitemno/>
  68. <orgacptstatcd/>
  69. <prcpgenrflag/>
  70. <scanyn/>
  71. <formcd/>
  72. <cretno/>
  73. <orddd/>
  74. <readdrid/>
  75. <scrnid/>
  76. <rsltcnts3/>
  77. <rsltcnts4/>
  78. <rsltcnts5/>
  79. <specdrnm/>
  80. <cncrjudgflagcd/>
  81. <humspec/>
  82. </prcplist>
  83. </prcp>
  84. </main>
  85. <send>
  86. </send>
  87. <init>
  88. <ptnocode/>
  89. <fromyear/>
  90. <fromptno/>
  91. <toyear/>
  92. <toptno/>
  93. <acptfromdd/>
  94. <acpttodd/>
  95. <refmthdcd/>
  96. <testcdlist/>
  97. <testnmlist/>
  98. <sysdt>
  99. <sysdtinfo>
  100. <sysdd/>
  101. <systm/>
  102. </sysdtinfo>
  103. </sysdt>
  104. <ptnocd>
  105. <ptnocdlist>
  106. <instcd/>
  107. <ptnocd/>
  108. <ptnonm/>
  109. </ptnocdlist>
  110. </ptnocd>
  111. <testinfo>
  112. <testitemlist>
  113. <instcd/>
  114. <dispseqno/>
  115. <testcd/>
  116. <testengnm/>
  117. <testengabbr/>
  118. <testhngnm/>
  119. <testhngabbr/>
  120. <basepartcd/>
  121. <basepartnm/>
  122. <detlpartcd/>
  123. <detlpartnm/>
  124. <singletest_cnt/>
  125. </testitemlist>
  126. </testinfo>
  127. <pid/>
  128. <userinfo>
  129. <userinfolist>
  130. <userid/>
  131. <usernm/>
  132. <jobkindcd/>
  133. </userinfolist>
  134. </userinfo>
  135. </init>
  136. <hidden>
  137. <readdrlist>
  138. <readdrid/>
  139. </readdrlist>
  140. </hidden>
  141. </root>
  142. </instance>
  143. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  144. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  145. <submission id="TRLPC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/testinfo/testitemlist"/>
  146. <submission id="TRLPR01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcp/prcplist"/>
  147. <submission id="TXLPR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/message"/>
  148. <script type="javascript" ev:event="xforms-ready">
  149. <![CDATA[
  150. fExeInitialize();
  151. ]]>
  152. </script>
  153. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  154. </model>
  155. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  156. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  157. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  159. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  160. <script type="javascript">
  161. <![CDATA[
  162. /* @group : 검사항목별 결과등록
  163. * @ver : 2008.01.31 (CMCDEV-0001)
  164. * @by : 유동철(ACK)
  165. * @-----------------------------------
  166. * @type : function
  167. * @access : public
  168. * @desc : 초기화 Function
  169. */
  170. function fExeInitialize() {
  171. var sCurDate = "";
  172. //---------------------
  173. // Instance Node 초기화
  174. model.removeNodeset("/root/main/prcp/prcplist");
  175. //---------------
  176. // 시스템일시 조회
  177. model.removeNodeset("/root/send");
  178. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  179. submit("TRLPZ00102", false);
  180. submit("TRLPZ00109");
  181. //------------------------------------------------------------
  182. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  183. //--------------------------------------------------------------------------------------------
  184. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  185. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  186. model.makeValue("/root/init/ptnocode", "");
  187. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  188. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  189. model.makeValue("/root/init/fromptno", "");
  190. model.makeValue("/root/init/toptno", "");
  191. model.makeValue("/root/init/refmthdcd", "2"); // 전체
  192. model.makeValue("/root/init/ptnocode", "M"); //
  193. //---------------
  194. fGetTestCdList();
  195. //--------------------------
  196. cbo_ptnocd.disabled = false;
  197. //판독의 목록조회
  198. submit("TRLPZ00105");
  199. model.refresh();
  200. }
  201. /* @group : 검사항목별 결과등록
  202. * @ver : 2008.01.31 (CMCDEV-0001)
  203. * @by : 유동철(ACK)
  204. * @-----------------------------------
  205. * @type : function
  206. * @access : public
  207. * @desc : 검사코드 선택 처리 Function
  208. */
  209. function fExeTestItemChoi() {
  210. var iFindNo = 0;
  211. var sTestCd = "";
  212. var sTestNm = "";
  213. var bState = false;
  214. var sNode = "/root/init/testinfo/testitemlist";
  215. //-------------------------------------------
  216. iFindNo = grd_testlist.findRow("true", 1, 0);
  217. if (Number(iFindNo) <= 0) {
  218. model.makeValue("/root/init/testcdlist", "");
  219. model.makeValue("/root/init/testnmlist", "");
  220. opt_testnmlist.refresh();
  221. grp_testlist.visible = false;
  222. return false;
  223. }
  224. //-----------------------------------------------------
  225. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  226. //-----------------------------------------------------
  227. if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  228. if (bState) {
  229. sTestCd += ", '" + model.getValue(sNode+"["+iNo+"]/testcd") + "'";
  230. sTestNm += ", " + model.getValue(sNode+"["+iNo+"]/testengnm");
  231. } else {
  232. sTestCd += "'" + model.getValue(sNode+"["+iNo+"]/testcd") + "'";
  233. sTestNm += model.getValue(sNode+"["+iNo+"]/testengnm");
  234. bState = true;
  235. }
  236. }
  237. }
  238. //------------------------------------------------
  239. model.makeValue("/root/init/testcdlist", sTestCd);
  240. model.makeValue("/root/init/testnmlist", sTestNm);
  241. opt_testnmlist.refresh();
  242. grp_testlist.visible = false;
  243. model.refresh();
  244. }
  245. /* @group : 검사항목별 결과등록
  246. * @ver : 2008.01.31 (CMCDEV-0001)
  247. * @by : 유동철(ACK)
  248. * @-----------------------------------
  249. * @type : function
  250. * @access : public
  251. * @desc : 검사코드 목록 조회 처리 Function
  252. */
  253. function fGetTestCdList() {
  254. model.removeNodeset("/root/send");
  255. model.removeNodeset("/root/init/testinfo/testitemlist");
  256. model.makeValue("/root/send/delflagcd", "0"); // 조회조건 사용여부구분
  257. model.makeValue("/root/send/refflag", "1"); // 조회조건 조회구분
  258. model.makeValue("/root/send/refval", "PM"); // 조회조건 조회값
  259. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  260. submit("TRLPC00401");
  261. //-----------------------------------------
  262. grd_testlist.fixedcellcheckbox(0,0) = true;
  263. }
  264. /* @group : 검사항목별 결과등록
  265. * @ver : 2008.01.31 (CMCDEV-0001)
  266. * @by : 유동철(ACK)
  267. * @-----------------------------------
  268. * @type : function
  269. * @access : public
  270. * @desc : 접수자료 조회 처리 Function
  271. */
  272. function fGetMoleList() {
  273. var sTemp = "";
  274. var sFromDD = model.getValue("/root/init/acptfromdd");
  275. var sToDD = model.getValue("/root/init/acpttodd");
  276. //------------------------------------------------
  277. grd_prcplist.rebuildStyle();
  278. //------------------------------------------------
  279. if (model.getValue("/root/init/ptnocode") != "") {
  280. //------------------------------------------------
  281. if (model.getValue("/root/init/fromyear") == "") {
  282. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  283. } else {
  284. sTemp = model.getValue("/root/init/fromyear");
  285. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  286. }
  287. //----------------------------------------------
  288. if (model.getValue("/root/init/toyear") == "") {
  289. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  290. } else {
  291. sTemp = model.getValue("/root/init/toyear");
  292. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  293. }
  294. //------------------------------------------------
  295. if (model.getValue("/root/init/fromptno") == "") {
  296. model.makeValue("/root/init/fromptno", "000000");
  297. } else {
  298. sTemp = model.getValue("/root/init/fromptno");
  299. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  300. }
  301. //----------------------------------------------
  302. if (model.getValue("/root/init/toptno") == "") {
  303. model.makeValue("/root/init/toptno", "999999");
  304. } else {
  305. sTemp = model.getValue("/root/init/toptno");
  306. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  307. }
  308. }
  309. //--------------------------------------------
  310. sTemp = model.getValue("/root/init/ptnocode");
  311. //--------------------------------
  312. model.removeNodeset("/root/send");
  313. model.removeNodeset("/root/main/prcp/prcplist");
  314. //-----------------------------------------------------------------
  315. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  316. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  317. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  318. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  319. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  320. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  321. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd")); // 접수시작일자
  322. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd")); // 접수종료일자
  323. model.makeValue("/root/send/refmthdcd", model.getValue("/root/init/refmthdcd")); // 결과상태
  324. model.makeValue("/root/send/pid", model.getValue("/root/init/pid")); // 등록번호
  325. model.makeValue("/root/send/testcdlist", model.getValue("/root/init/testcdlist")); // 검사코드목록
  326. model.makeValue("/root/send/ptno", ""); // 병리번호
  327. submit("TRLPR01901");
  328. grd_prcplist.colstyle(9, "data", "background-color") = "#ffff99";
  329. //-------------
  330. model.refresh();
  331. }
  332. /* @group : 검사항목별 결과등록
  333. * @ver : 2008.01.31 (CMCDEV-0001)
  334. * @by : 유동철(ACK)
  335. * @-----------------------------------
  336. * @type : function
  337. * @access : public
  338. * @desc : 조회조건 등록번호 입력 시 처리 Function
  339. */
  340. function fExePidKeyPress() {
  341. if (event.keyCode == 13) {
  342. model.setValue("/root/init/pid", ipt_pid.currentText);
  343. ipt_pid.refresh();
  344. //------------
  345. fGetMoleList();
  346. }
  347. }
  348. /* @group : 검사항목별 결과등록
  349. * @ver : 2008.01.31 (CMCDEV-0001)
  350. * @by : 유동철(ACK)
  351. * @-----------------------------------
  352. * @type : function
  353. * @access : public
  354. * @desc : 검사결과 입력 시 처리 Function
  355. */
  356. function fExeRsltInptKeyPress() {
  357. if (event.keyCode == 13) {
  358. //--------------------
  359. fExeRsltChangeColor();
  360. //--------------------------------------------------------------------
  361. if (grd_prcplist.row == getNodesetCount("/root/main/prcp/prcplist")) {
  362. return false;
  363. } else {
  364. grd_prcplist.row = Number(grd_prcplist.row) + 1;
  365. }
  366. }
  367. }
  368. /* @group : 검사항목별 결과등록
  369. * @ver : 2008.01.31 (CMCDEV-0001)
  370. * @by : 유동철(ACK)
  371. * @-----------------------------------
  372. * @type : function
  373. * @access : public
  374. * @desc : 검사결과 등록 시 처리 Function
  375. */
  376. function fExeRsltSave() {
  377. var sNode = "/root/main/prcp/prcplist";
  378. var bState = false;
  379. var iMaxRowCnt = 0;
  380. //-------------------------
  381. grd_prcplist.clearStatus();
  382. //----------------------------------
  383. iMaxRowCnt = getNodesetCount(sNode);
  384. for (var iNo=1; iNo <= iMaxRowCnt; iNo++) {
  385. if (model.getValue(sNode+"["+iNo+"]/testrslt") != model.getValue(sNode+"["+iNo+"]/orgtestrslt")) {
  386. grd_prcplist.addStatus(iNo, "insert");
  387. model.setValue(sNode+"["+iNo+"]/choi", "true");
  388. model.setValue(sNode+"["+iNo+"]/rsltrgstid", getUserInfo("userid"));
  389. model.makeValue(sNode+"["+iNo+"]/scrnid", "SMLPR01900");
  390. if(model.getValue("/root/hidden/readdrlist/readdrid") != "" &&
  391. model.getValue("/root/hidden/readdrlist/readdrid") != "-" &&
  392. model.getValue("/root/hidden/readdrlist/readdrid") != "A0" ) {
  393. model.makeValue(sNode+"["+iNo+"]/readdrid", model.getValue("/root/hidden/readdrlist/readdrid"));
  394. } else {
  395. model.makeValue(sNode+"["+iNo+"]/readdrid", "-");
  396. }
  397. bState = true;
  398. }
  399. }
  400. //------------
  401. if (!bState) {
  402. messageBox("변경된 결과가 없습니다! 저장", "E001");
  403. return false;
  404. }
  405. //--------------------------------
  406. model.removeNodeset("/root/send");
  407. model.makeValue("/root/send/moletestlist", grd_prcplist.getUpdateData());
  408. //-------------------------
  409. if (submit("TXLPR00103")) {
  410. model.removeNodeset(sNode+"[choi='true']");
  411. }
  412. //--------------
  413. model.refresh();
  414. }
  415. /* @group : 검사항목별 결과등록
  416. * @ver : 2008.01.31 (CMCDEV-0001)
  417. * @by : 유동철(ACK)
  418. * @-----------------------------------
  419. * @type : function
  420. * @access : public
  421. * @desc : 검사결과 입력 시 줄 색 변경 처리 Function
  422. */
  423. function fExeRsltChangeColor() {
  424. var iRowNo = grd_prcplist.row;
  425. var iColNo = grd_prcplist.col;
  426. var sNode = "/root/main/prcp/prcplist";
  427. //---------------
  428. switch (iColNo) {
  429. case 8 :
  430. break;
  431. }
  432. if (model.getValue(sNode+"["+iRowNo+"]/testrslt") != model.getValue(sNode+"["+iRowNo+"]/orgtestrslt")) {
  433. grd_prcplist.rowstyle(iRowNo, "data", "background-color") = "#99ffcc";
  434. } else {
  435. grd_prcplist.rowstyle(iRowNo, "data", "background-color") = "#ffffff";
  436. }
  437. //---------------------
  438. grd_prcplist.refresh();
  439. }
  440. ]]>
  441. </script>
  442. </xhtml:head>
  443. <xhtml:body>
  444. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  445. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">검사항목별 결과등록</caption>
  446. </group>
  447. <group id="grp_biz" style="left:0px; top:40; width:1195; height:744px; ">
  448. <caption id="caption6" class="tit_2" style="left:5px; top:80px; width:90px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">접수목록</caption>
  449. <line id="line1" class="line_1" style="x1:0px; y1:95; x2:1194px; y2:95; "/>
  450. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60; vertical-align:top; ">
  451. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60; background-color:#fffbf2; border-color:#ffd799; "/>
  452. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  453. <caption id="caption4" class="search_no_b" style="left:773px; top:8px; width:21px; height:17px; font-family:굴림체; font-size:10pt; text-align:center; vertical-align:middle; ">~</caption>
  454. <caption id="caption5" class="search_name" autoresize="true" style="left:896px; top:9px; width:97px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">결과상태 :</caption>
  455. <input id="ipt_ddfrom" ref="/root/init/acptfromdd" class="input_search" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:683px; top:8px; width:90px; height:19px; ">
  456. <script type="javascript" ev:event="xforms-value-changed">
  457. <![CDATA[
  458. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  459. ]]>
  460. </script>
  461. </input>
  462. <select1 id="cmbseaflagcd" ref="/root/init/refmthdcd" class="combo_search" navindex="7" appearance="minimal" style="left:993px; top:8px; width:100px; height:19px; ">
  463. <choices>
  464. <item>
  465. <label>결과미입력</label>
  466. <value>0</value>
  467. </item>
  468. <item>
  469. <label>결과입력</label>
  470. <value>1</value>
  471. </item>
  472. <item>
  473. <label>전체</label>
  474. <value>2</value>
  475. </item>
  476. </choices>
  477. </select1>
  478. <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  479. <caption>조회</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. fGetMoleList();
  483. ]]>
  484. </script>
  485. </button>
  486. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" disabled="true" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:111px; height:19px; ">
  487. <choices>
  488. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  489. <label ref="ptnonm"/>
  490. <value ref="ptnocd"/>
  491. </itemset>
  492. </choices>
  493. </select1>
  494. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:253px; top:8px; width:50px; height:19px; "/>
  495. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  496. <caption id="caption2" class="search_no_b" style="left:306px; top:8px; width:12px; height:17px; ">~</caption>
  497. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:351px; top:8px; width:50px; height:19px; "/>
  498. <input id="ipt_toyear" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:321px; top:8px; width:27px; height:19px; "/>
  499. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:223px; top:8px; width:27px; height:19px; "/>
  500. <caption id="caption7" class="search_name" style="left:592px; top:9px; width:90px; height:17px; ">접수기간 :</caption>
  501. <caption id="caption8" class="search_name" style="left:15px; top:34; width:90px; height:17px; ">검 사 명 :</caption>
  502. <button id="btn_bloc" style="left:1165px; top:34px; width:14px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
  503. <caption/>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. grp_testlist.visible = true;
  507. ]]>
  508. </script>
  509. </button>
  510. <output id="opt_testnmlist" ref="/root/init/testnmlist" style="left:109px; top:34px; width:1051px; height:19px; border-color:#000000; border-style:solid; "/>
  511. <input id="ipt_acpttodd" ref="/root/init/acpttodd" class="input_search" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:796px; top:8px; width:90px; height:19px; ">
  512. <script type="javascript" ev:event="xforms-value-changed">
  513. <![CDATA[
  514. lpzfExeDateChange(ipt_toyear, "/root/init/acpttodd", "/root/init/toyear");
  515. ]]>
  516. </script>
  517. </input>
  518. <caption id="caption9" class="search_name" style="left:410px; top:9px; width:90px; height:17px; ">등록번호 :</caption>
  519. <input id="ipt_pid" ref="/root/init/pid" maxlength="10" style="left:501px; top:8px; width:79px; height:19px; ">
  520. <script type="javascript" ev:event="onkeypress">
  521. <![CDATA[
  522. fExePidKeyPress();
  523. ]]>
  524. </script>
  525. </input>
  526. </group>
  527. <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" class="datagrid2" caption="instcd^ptno^병리번호^동의서^인종/민족^검사명^검체명^등록번호^성명^이전결과^결과^성별&#xA;나이^orddeptcd^진료과^orddrid^진료의^선택&#xA;진료의^병동/병실^처방일자^처방시간^접수일자^접수시간^결과일자^결과시간^접수번호^orgprcpstatcd^testcd^spccd^prcpno^execprcpuniqno^rsltrgstno^등록자^cncrjudgflagcd^orgtestrslt^inptdd^inpttm^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^choi^rsltrgstid^acptitemno^orgacptstatcd^prcpgenrflag^scanyn^formcd^cretno^orddd^readdrid^scrnid^rsltcnts3^rsltcnts4^rsltcnts5" colsep="^" colwidth="0, 0, 80, 82, 85, 180, 0, 70, 70, 92, 96, 60, 0, 60, 0, 60, 65, 80, 0, 0, 70, 60, 70, 65, 0, 0, 0, 0, 0, 0, 0, 60, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="9" style="left:0px; top:100px; width:1194px; height:642px; ">
  528. <col ref="instcd"/>
  529. <col ref="ptno"/>
  530. <col class="text_center" ref="dispptno"/>
  531. <col ref="scrn" type="output"/>
  532. <col ref="humspec"/>
  533. <col ref="testnm"/>
  534. <col ref="spcnm"/>
  535. <col class="text_center" ref="pid"/>
  536. <col ref="patnm"/>
  537. <col class="text_right" ref="bftestrslt"/>
  538. <col class="text_right" ref="testrslt" type="input"/>
  539. <col class="text_center" ref="sexage"/>
  540. <col ref="orddeptcd"/>
  541. <col class="text_center" ref="orddeptnm"/>
  542. <col ref="orddrid"/>
  543. <col class="text_center" ref="orddrnm"/>
  544. <col class="text_center" ref="specdrnm"/>
  545. <col class="text_center" ref="wardroom"/>
  546. <col ref="prcpdd"/>
  547. <col ref="prcptm"/>
  548. <col class="text_center" ref="acptdd" format="yyyy-mm-dd"/>
  549. <col class="text_center" ref="acpttm" format="hh:nn:ss"/>
  550. <col class="text_center" ref="rsltrgstdd" format="yyyy-mm-dd"/>
  551. <col class="text_center" ref="rsltrgsttm" format="hh:nn:ss"/>
  552. <col ref="acptno"/>
  553. <col ref="orgprcpstatcd"/>
  554. <col ref="testcd"/>
  555. <col ref="spccd"/>
  556. <col ref="prcpno"/>
  557. <col ref="execprcpuniqno"/>
  558. <col ref="rsltrgstno"/>
  559. <col class="text_center" ref="rgstnm"/>
  560. <col ref="cncrjudgflagcd" visibility="hidden"/>
  561. <col ref="orgtestrslt"/>
  562. <col ref="inptdd"/>
  563. <col ref="inpttm"/>
  564. <col ref="extrpartcd"/>
  565. <col ref="extrmthdcd"/>
  566. <col ref="diagcd"/>
  567. <col ref="cmtcnts"/>
  568. <col ref="spckeepflagcd"/>
  569. <col ref="conccaseflagcd"/>
  570. <col ref="rslthideflagcd"/>
  571. <col ref="preprsltflagcd"/>
  572. <col ref="workflagcd"/>
  573. <col ref="trandd"/>
  574. <col ref="tranno"/>
  575. <col ref="choi"/>
  576. <col ref="rsltrgstid"/>
  577. <col ref="acptitemno"/>
  578. <col ref="orgacptstatcd"/>
  579. <col ref="prcpgenrflag"/>
  580. <col ref="scanyn"/>
  581. <col ref="formcd"/>
  582. <col ref="cretno"/>
  583. <col ref="orddd"/>
  584. <col ref="readdrid"/>
  585. <col ref="scrnid"/>
  586. <col ref="rsltcnts3"/>
  587. <col ref="rsltcnts4"/>
  588. <col ref="rsltcnts5"/>
  589. <script type="javascript" ev:event="onaftersort">
  590. <![CDATA[
  591. grd_prcplist.gridToInstance();
  592. ]]>
  593. </script>
  594. <script type="javascript" ev:event="onkeypress">
  595. <![CDATA[
  596. //fExeRsltInptKeyPress();
  597. ]]>
  598. </script>
  599. <script type="javascript" ev:event="onrowchanged">
  600. <![CDATA[
  601. ]]>
  602. </script>
  603. <script type="javascript" ev:event="onclick">
  604. <![CDATA[
  605. //동의서 컬럼을 클릭하였을 경우 스캔한 동의서가 있을 경우 스캔 이미지를 조회한다.
  606. if ( (grd_prcplist.row >= grd_prcplist.fixedRows) && (grd_prcplist.isCell(event.target)) && grd_prcplist.col == grd_prcplist.colRef("scrn")) {
  607. //스캔한 동의서가 있을 경우 스캔 이미지를 조회한다.
  608. if(model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/scanyn") == "Y"){
  609. //================================================================================================
  610. //pid : 환자번호
  611. //orddeptcd : 진료과 코드
  612. //indd : 입(내)원일
  613. //docucd : 서식코드
  614. //ioflag : 입원/외래
  615. //cmc_cretno : 생성번호
  616. //================================================================================================
  617. model.resetInstanceNode("/root/send/iemr");
  618. var prcpgenrflag = model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/prcpgenrflag");
  619. /* if((prcpgenrflag == "O") ||(prcpgenrflag == "S")) {
  620. prcpgenrflag = "O";
  621. } else {
  622. prcpgenrflag = "I";
  623. }*/
  624. model.makeValue("/root/send/iemr/pid", model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/pid"));
  625. model.makeValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/orddeptcd"));
  626. model.makeValue("/root/send/iemr/indd", model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/orddd"));
  627. model.makeValue("/root/send/iemr/docucd", model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/formcd"));
  628. model.makeValue("/root/send/iemr/ioflag", prcpgenrflag);
  629. model.makeValue("/root/send/iemr/cmc_cretno", model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/cretno"));
  630. model.makeValue("/root/send/iemr/cmc_spcid", "");
  631. model.makeValue("/root/send/iemr/cmc_orddate", "");
  632. model.makeValue("/root/send/iemr/cmc_orderseqno", "");
  633. if(window.children.item("imgemrviewer") == null) {
  634. open("SSMRC03110", "", "", "", "imgemrviewer", "/root/send/iemr", "/root/hidden/temp");
  635. //window.load("SSMRC03110.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  636. }
  637. else
  638. {
  639. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  640. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  641. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  642. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  643. window.children.item("imgemrviewer").modelesstopmost = true;
  644. window.children.item("imgemrviewer").modelesstopmost = false;
  645. }
  646. }
  647. }
  648. //판독의사 set
  649. //model.setValue("/root/hidden/readdrlist/readdrid", model.getValue("/root/main/prcp/prcplist["+ grd_prcplist.row +"]/readdrid"));
  650. //cmb_readdr.refresh();
  651. ]]>
  652. </script>
  653. <script type="javascript" ev:event="xforms-value-changed">
  654. <![CDATA[
  655. fExeRsltChangeColor();
  656. //--------------------------------------------------------------------
  657. if (grd_prcplist.row == getNodesetCount("/root/main/prcp/prcplist")) {
  658. return false;
  659. } else {
  660. grd_prcplist.row = Number(grd_prcplist.row) + 1;
  661. }
  662. ]]>
  663. </script>
  664. </datagrid>
  665. <group id="grp_testlist" visibility="hidden" style="left:300px; top:215px; width:555px; height:463px; ">
  666. <datagrid id="grd_testlist" nodeset="/root/init/testinfo/testitemlist" caption="선택^기관코드^코드^명칭^약어" colsep="^" colwidth="56, 0, 80, 200, 200" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:555px; height:437; ">
  667. <col ref="choi" type="checkbox"/>
  668. <col ref="instcd"/>
  669. <col ref="testcd"/>
  670. <col ref="testengnm"/>
  671. <col ref="testengabbr"/>
  672. <script type="javascript" ev:event="onaftersort">
  673. <![CDATA[
  674. grd_testlist.gridToInstance();
  675. ]]>
  676. </script>
  677. </datagrid>
  678. <button id="btn_cls" class="btn4_letter2" style="left:499px; top:440px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  679. <caption>닫기</caption>
  680. <script type="javascript" ev:event="DOMActivate">
  681. <![CDATA[
  682. grp_testlist.visible = false;
  683. ]]>
  684. </script>
  685. </button>
  686. <button id="btn_cfm" class="btn4_letter2" style="left:440px; top:440px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  687. <caption>확인</caption>
  688. <script type="javascript" ev:event="DOMActivate">
  689. <![CDATA[
  690. fExeTestItemChoi();
  691. ]]>
  692. </script>
  693. </button>
  694. </group>
  695. <select1 id="cmb_readdr" ref="/root/hidden/readdrlist/readdrid" class="input_s_essential" appearance="minimal" style="left:175px; top:75px; width:110px; height:19px; ">
  696. <choices>
  697. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  698. <label ref="usernm"/>
  699. <value ref="userid"/>
  700. </itemset>
  701. </choices>
  702. </select1>
  703. <caption id="caption48" class="cell_1" style="left:100px; top:75px; width:75px; height:19px; vertical-align:middle; ">판독의 지정</caption>
  704. </group>
  705. <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  706. <line id="line9" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  707. <button id="btn_excel" class="btn6_letter5" navindex="10" style="left:5px; top:3px; width:92px; height:22px; ">
  708. <caption>EXCEL저장</caption>
  709. <script type="javascript" ev:event="DOMActivate">
  710. <![CDATA[
  711. lpzfExeSaveToExcel(grd_prcplist, "검사항목별 결과등록");
  712. ]]>
  713. </script>
  714. </button>
  715. <button id="btn_save" class="btn4_letter2" navindex="12" style="left:1137px; top:3px; width:56px; height:22px; ">
  716. <caption>저장</caption>
  717. <script type="javascript" ev:event="DOMActivate">
  718. <![CDATA[
  719. fExeRsltSave();
  720. ]]>
  721. </script>
  722. </button>
  723. </group>
  724. </xhtml:body>
  725. </xhtml:html>