SMAHB00800_종합판정문구관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00800.xrw
  4. * 설 명 : 종합판정문구관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <judgexmpcdlst>
  20. <item>
  21. <sel/>
  22. <useyn/>
  23. <judgexmpcd/>
  24. <judghangshrtcnts/>
  25. <judgengshrtcnts/>
  26. <judgexmpgrpcd/>
  27. <judgexmpgrpnm/>
  28. <lastupdtrid/>
  29. <lastupdtdt/>
  30. </item>
  31. </judgexmpcdlst>
  32. <judgexmpdetl>
  33. <item>
  34. <judgexmpcd/>
  35. <judghangshrtcnts/>
  36. <judgengshrtcnts/>
  37. <useyn/>
  38. <judghangcnts/>
  39. <judgengcnts/>
  40. </item>
  41. <itemsick>
  42. <sickcd/>
  43. <sicknm/>
  44. <judgcd/>
  45. <cmpycd/>
  46. </itemsick>
  47. <itemtest>
  48. <testcd/>
  49. <testnm/>
  50. <instcd/>
  51. <healexamflag/>
  52. <judgexmpcd/>
  53. </itemtest>
  54. </judgexmpdetl>
  55. </main>
  56. <send>
  57. <srchjudgexmpcd/>
  58. <srchjudgexmpcnts/>
  59. <srchjudgexmpcd2/>
  60. <srchhealexamdetlflag/>
  61. <save>
  62. <savesick/>
  63. <healexamflag/>
  64. <mode/>
  65. </save>
  66. <srchinstcd/>
  67. <srchhealexamflag/>
  68. <srchjudgexmpcd2/>
  69. <savesub>
  70. <savetest/>
  71. <judgcd/>
  72. <instcd/>
  73. <healexamflag/>
  74. </savesub>
  75. <savegrp>
  76. <healexamflag/>
  77. <instcd/>
  78. <grpdata/>
  79. </savegrp>
  80. </send>
  81. <init>
  82. <baseinfo>
  83. <hedetflaglst>
  84. <A0070/>
  85. </hedetflaglst>
  86. </baseinfo>
  87. </init>
  88. <hidden>
  89. <testlst>
  90. <itemtest/>
  91. </testlst>
  92. <cnt/>
  93. </hidden>
  94. <source>
  95. <grdid/>
  96. </source>
  97. <temp>
  98. <okflag/>
  99. <instcd/>
  100. <healexamflag/>
  101. <testcd/>
  102. <judgexmpcd/>
  103. </temp>
  104. <popup>
  105. <item>
  106. <label>판정소견그룹등록</label>
  107. <func>addjudgegrp</func>
  108. </item>
  109. <item>
  110. <label>판정소견그룹삭제</label>
  111. <func>deljudgegrp</func>
  112. </item>
  113. <jugdgexmp>
  114. <judgexmpgrpcd/>
  115. <judgexmpgrpnm/>
  116. </jugdgexmp>
  117. </popup>
  118. </root>
  119. </instance>
  120. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  124. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  125. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  126. <submission id="TRAHB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpcdlst"/>
  127. <submission id="TRAHB00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpdetl"/>
  128. <submission id="TXAHB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  129. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  130. <script type="javascript" ev:event="xforms-ready">
  131. <![CDATA[
  132. fGetJudgExmpList();
  133. //화면권한추가
  134. btn_search.disabled = ! checkAuth("R");
  135. btn_save.disabled = ! checkAuth("X");
  136. btn_clear.disabled = ! checkAuth("X");
  137. btn_del.disabled = ! checkAuth("X");
  138. ]]>
  139. </script>
  140. <submission id="TXAHB00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgexmpdetl/itemtest" resultref="/root/hidden/testlst"/>
  141. <submission id="TXAHB00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/temp/delresult"/>
  142. <submission id="TXAHB00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savegrp" resultref="/root/hidden/cnt"/>
  143. </model>
  144. <script type="javascript">
  145. <![CDATA[
  146. function fGetJudgExmpList(){
  147. fInit(false);
  148. model.removeNodeset("/root/main/judgexmpcdlst/item");
  149. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  150. model.setValue("/root/send/srchhealexamflag",fGetHealExamFlag());
  151. zbcfGetCodeList( new Array("A0070"), new Array( "/root/init/baseinfo/hedetflaglst"));
  152. if(fGetHealExamFlag() == "G"){
  153. caption13.attribute("visibility") = "visible";
  154. cmb_healexamdetlflag.attribute("visibility") = "visible";
  155. caption15.attribute("visibility") = "visible";
  156. cmb_healexamdetlflag2.attribute("visibility") = "visible";
  157. model.setValue("/root/send/srchhealexamdetlflag", cmb_healexamdetlflag2.value);
  158. }else{
  159. caption13.attribute("visibility") = "hidden";
  160. cmb_healexamdetlflag.attribute("visibility") = "hidden";
  161. caption15.attribute("visibility") = "hidden";
  162. cmb_healexamdetlflag2.attribute("visibility") = "hidden";
  163. }
  164. submit("TRAHB00801");
  165. }
  166. function fInit(vInput){
  167. ipt_exmpcd.disabled = false;
  168. if( vInput == false ) {
  169. model.removeNodeset("/root/main/judgexmpcdlst/item");
  170. }
  171. model.removeNodeset(grd_sicklst.nodeset);
  172. model.removeNodeset(grd_testlst.nodeset);
  173. model.resetInstanceNode("/root/main/judgexmpdetl/item");
  174. model.setFocus("ipt_exmpcd");
  175. model.refresh();
  176. }
  177. function fGetExmpDetlInfo(bCopy){
  178. var idx = grd_judgexmplst.Row;
  179. if( idx < 1) return ;
  180. ipt_exmpcd.disabled = !bCopy ;
  181. model.setValue("/root/send/srchinstcd",getUserInfo("dutplceinstcd"));
  182. model.setValue("/root/send/srchhealexamflag",fGetHealExamFlag());
  183. model.setValue("/root/send/srchjudgexmpcd2",model.getValue("/root/main/judgexmpcdlst/item[" +idx+ "]/judgexmpcd" ));
  184. submit("TRAHB00802");
  185. if(bCopy == true ) {
  186. model.setValue("/root/main/judgexmpdetl/item/judgexmpcd","");
  187. model.refresh();
  188. model.setFocus("ipt_exmpcd");
  189. }
  190. }
  191. function fCheckVal(){
  192. var vCd = model.getValue("/root/main/judgexmpdetl/item/judgexmpcd");
  193. if(vCd == "") {
  194. messageBox("예문코드는","I003");
  195. model.setFocus("ipt_exmpcd");
  196. }
  197. return true;
  198. }
  199. function fSaveExmp(vDel){
  200. if(vDel == true ) {
  201. if ( messageBox("판정소견정보를","Q001") !=6 ) return ;
  202. }
  203. else {
  204. if ( messageBox("판정소견정보를","Q002") !=6 ) return ;
  205. }
  206. if(!fCheckVal()) return ;
  207. model.copyNode("/root/send/save", "/root/main/judgexmpdetl/item");
  208. var vMode = "/root/send/save/mode";
  209. model.makeNode(vMode);
  210. if( ipt_exmpcd.disabled == true ){
  211. //update
  212. if(vDel == false ) {
  213. model.setValue(vMode, "u");
  214. }
  215. else {
  216. model.setValue(vMode, "d");
  217. }
  218. }
  219. else {
  220. //update
  221. model.setValue(vMode, "i");
  222. }
  223. model.makeNode("/root/send/save/healexamflag");
  224. model.setValue("/root/send/save/healexamflag",fGetHealExamFlag());
  225. model.makeNode("/root/send/save/savesick");
  226. model.setValue("/root/send/save/savesick", grd_sicklst.getUpdateData());
  227. if(fGetHealExamFlag() == "G"){
  228. model.makeNode("/root/send/save/healexamdetlflag");
  229. model.setValue("/root/send/save/healexamdetlflag", cmb_healexamdetlflag.value);
  230. }
  231. if( submit("TXAHB00801") == true ){
  232. //fGetJudgExmpList();
  233. fGetExmpDetlInfo(false);
  234. }
  235. }
  236. // 예문코드와 매칭되는 검사코드를 저장,삭제한다.
  237. function fExeTestCd() {
  238. var idx = grd_judgexmplst.Row;
  239. if( idx < 1) return ;
  240. var itest = grd_testlst.rows;
  241. for(var i=1;i<itest;i++){
  242. model.makeValue("/root/main/judgexmpdetl/itemtest[" +i+ "]/healexamflag", fGetHealExamFlag());;
  243. model.makeValue("/root/main/judgexmpdetl/itemtest[" +i+ "]/judgcd", model.getValue("/root/main/judgexmpcdlst/item[" +idx+ "]/judgexmpcd" ));
  244. model.makeValue("/root/main/judgexmpdetl/itemtest[" +i+ "]/instcd", getUserInfo("dutplceinstcd"));
  245. }
  246. var ret = submit("TXAHB00802");
  247. }
  248. /*****************************************************************************************************************************
  249. * 판정소견그룹을 등록,삭제 한다.
  250. ******************************************************************************************************************************/
  251. function fSetJudgeGrp(vMode) {
  252. var selIdxs = grd_judgexmplst.selectedRows;
  253. // 판정소견그룹을 등록한다.
  254. if(vMode == "A") {
  255. // 팝업화면을 나타낸다
  256. grp_judgexmpgrp.visible = true;
  257. //초기화
  258. model.setValue("/root/popup/jugdgexmp/judgexmpgrpcd","");
  259. model.setValue("/root/popup/jugdgexmp/judgexmpgrpnm","");
  260. }else if(vMode == "D") {
  261. // 선택한 row의 그룹코드,명을 삭제한다.
  262. for(var i=0; i < selIdxs; i++) {
  263. var idx = grd_judgexmplst.selectedRow(i);
  264. grd_judgexmplst.valueMatrix(idx,grd_judgexmplst.colRef("judgexmpgrpcd")) = "";
  265. grd_judgexmplst.valueMatrix(idx,grd_judgexmplst.colRef("judgexmpgrpnm")) = "";
  266. grd_judgexmplst.addStatus(idx, "update");
  267. }
  268. model.setValue("/root/send/savegrp/healexamflag" , model.getValue("/root/send/srchhealexamflag"));
  269. model.setValue("/root/send/savegrp/instcd" , model.getValue("/root/send/srchinstcd"));
  270. model.setValue("/root/send/savegrp/grpdata", grd_judgexmplst.getUpdateData());
  271. if(submit("TXAHB00804")) { grd_judgexmplst.clearStatus()}
  272. }
  273. }
  274. ]]>
  275. </script>
  276. </xhtml:head>
  277. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  278. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  279. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">판정소견예문관리</caption>
  280. </group>
  281. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  282. <caption id="caption1" class="tit_2" style="left:720px; top:55px; width:78px; height:14px; ">예문입력</caption>
  283. <datagrid id="grd_judgexmplst" nodeset="/root/main/judgexmpcdlst/item" caption="sel^USE^소견코드^한글소견^영문소견^소견그룹코드^소견그룹명^최종수정자^최종수정일시" colsep="^" colwidth="42, 30, 66, 220, 120, 100, 100, 80, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="listbox" style="left:0px; top:75px; width:710px; height:650px; ">
  284. <col ref="sel" visibility="hidden"/>
  285. <col ref="useyn" style="text-align:center; "/>
  286. <col ref="judgexmpcd"/>
  287. <col ref="judghangshrtcnts"/>
  288. <col ref="judgengshrtcnts"/>
  289. <col ref="judgexmpgrpcd"/>
  290. <col ref="judgexmpgrpnm"/>
  291. <col ref="lastupdtrid"/>
  292. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  293. <script type="javascript" ev:event="ondblclick">
  294. <![CDATA[
  295. fGetExmpDetlInfo(false);
  296. ]]>
  297. </script>
  298. <script type="javascript" ev:event="DOMFocusOut">
  299. <![CDATA[
  300. window.setPopupMenu(false);
  301. ]]>
  302. </script>
  303. <script type="javascript" ev:event="onaftersort">
  304. <![CDATA[
  305. grd_judgexmplst.gridToInstance();
  306. ]]>
  307. </script>
  308. <script type="javascript" ev:event="onmousedown">
  309. <![CDATA[
  310. if(event.button == "3") {
  311. if(grd_judgexmplst.isCell(event.target) && grd_judgexmplst.row < grd_judgexmplst.rows) {
  312. window.setPopupMenu(true,"/root/popup/item","label","func",true);
  313. }else {
  314. window.setPopupMenu(false);
  315. }
  316. }
  317. ]]>
  318. </script>
  319. </datagrid>
  320. <line id="line10" class="line_3" style="x1:715px; y1:725px; x2:1194px; y2:725px; "/>
  321. <line id="line1" class="line_1" style="x1:715px; y1:70px; x2:1194px; y2:70px; "/>
  322. <line id="line2" class="line_2" style="x1:715px; y1:97px; x2:1194px; y2:97px; "/>
  323. <line id="line3" class="line_2" style="x1:715px; y1:121px; x2:1194px; y2:121px; "/>
  324. <caption id="caption11" class="cell_1" style="left:715px; top:99px; width:79px; height:23px; vertical-align:middle; ">한글소견</caption>
  325. <caption id="caption7" class="cell_1" style="left:715px; top:75px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">예문코드</caption>
  326. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:90px; height:14px; ">예문내역</caption>
  327. <line id="line4" class="line_1" style="x1:0px; y1:70px; x2:710px; y2:70px; "/>
  328. <line id="line5" class="line_2" style="x1:715px; y1:145px; x2:1194px; y2:145px; "/>
  329. <caption id="caption9" class="cell_1" style="left:715px; top:346px; width:79px; height:184px; vertical-align:middle; ">한글판정소견</caption>
  330. <line id="line8" class="line_2" style="x1:715px; y1:254px; x2:1194px; y2:254px; "/>
  331. <caption id="caption18" class="cell_1" style="left:715px; top:147px; width:79px; height:108px; vertical-align:middle; ">질환코드</caption>
  332. <caption id="caption14" class="cell_1" style="left:715px; top:123px; width:79px; height:23px; vertical-align:middle; ">영문소견</caption>
  333. <input id="ipt_exmpcd" ref="/root/main/judgexmpdetl/item/judgexmpcd" class="input_essential" style="left:797px; top:76px; width:123px; height:19px; ">
  334. <script type="javascript" ev:event="onkeyup">
  335. <![CDATA[
  336. if( event.keyCode == 13) {
  337. model.setFocus("ipt_shrthang");
  338. }
  339. ]]>
  340. </script>
  341. </input>
  342. <input id="ipt_shrthang" ref="/root/main/judgexmpdetl/item/judghangshrtcnts" class="input" style="left:797px; top:100px; width:392px; height:19px; ">
  343. <script type="javascript" ev:event="onkeyup">
  344. <![CDATA[
  345. if( event.keyCode == 13) {
  346. model.setFocus("ipt_shrteng");
  347. }
  348. ]]>
  349. </script>
  350. </input>
  351. <input id="ipt_shrteng" ref="/root/main/judgexmpdetl/item/judgengshrtcnts" class="input" style="left:797px; top:124px; width:392px; height:19px; ">
  352. <script type="javascript" ev:event="onkeyup">
  353. <![CDATA[
  354. if( event.keyCode == 13) {
  355. model.setFocus("tar_hangcnts");
  356. }
  357. ]]>
  358. </script>
  359. </input>
  360. <textarea id="tar_hangcnts" ref="/root/main/judgexmpdetl/item/judghangcnts" scroll="vertical" style="left:797px; top:346px; width:392px; height:181px; "/>
  361. <textarea id="tar_engcnts" ref="/root/main/judgexmpdetl/item/judgengcnts" scroll="vertical" imemode="alpha" style="left:797px; top:532px; width:392px; height:191px; "/>
  362. <button id="btn_sickcd" class="btn2_letter4" style="left:720px; top:189px; width:64px; height:19px; ">
  363. <caption>질환코드</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. var cnt = grd_sicklst.rows;
  367. ahafGetSickCd("SMAHB00800", "", "", cnt , grd_sicklst.nodeset );
  368. if( model.getValue( "/root/temp/okflag") == "Y" ){
  369. for( var i = cnt ; i < grd_sicklst.rows ; i++){
  370. grd_sicklst.addStatus(i, "insert");
  371. }
  372. }
  373. ]]>
  374. </script>
  375. </button>
  376. <caption id="caption10" class="cell_1" style="left:715px; top:531px; width:79px; height:194px; vertical-align:middle; ">영문판정소견</caption>
  377. <line id="line9" class="line_2" style="x1:715px; y1:529px; x2:1194px; y2:529px; "/>
  378. <group id="grp_search" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  379. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  380. <caption id="caption21" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">예문코드 :</caption>
  381. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  382. <caption>조회</caption>
  383. <script type="javascript" ev:event="DOMActivate">
  384. <![CDATA[
  385. fGetJudgExmpList();
  386. ]]>
  387. </script>
  388. </button>
  389. <line id="line18" class="line_4" style="x1:1104px; y1:7px; x2:1104px; y2:29px; border-left-style:solid; "/>
  390. <input id="ipt_examcnts" ref="/root/send/srchjudgexmpcnts" class="input_search" style="left:420px; top:8px; width:290px; height:19px; ">
  391. <script type="javascript" ev:event="onkeyup">
  392. <![CDATA[
  393. inputEnterKey("btn_search", "DOMActivate");
  394. ]]>
  395. </script>
  396. </input>
  397. <input id="ipt_examcd" ref="/root/send/srchjudgexmpcd" class="input_search" style="left:105px; top:8px; width:165px; height:19px; ">
  398. <script type="javascript" ev:event="onkeyup">
  399. <![CDATA[
  400. inputEnterKey("btn_search", "DOMActivate");
  401. ]]>
  402. </script>
  403. </input>
  404. <caption id="caption22" class="search_name" style="left:330px; top:8px; width:86px; height:17px; ">단문내용:</caption>
  405. <caption id="caption13" class="search_name" style="left:770px; top:8px; width:86px; height:17px; ">건진상세:</caption>
  406. </group>
  407. <datagrid id="grd_sicklst" nodeset="/root/main/judgexmpdetl/itemsick" caption="질환코드^질환명^판정코드^사업체코드" colsep="^" colwidth="83, 168, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:797px; top:165px; width:392px; height:87px; ">
  408. <col ref="sickcd"/>
  409. <col ref="sicknm"/>
  410. <col ref="judgcd" type="combo">
  411. <choices>
  412. <item>
  413. <label>A</label>
  414. <value>A</value>
  415. </item>
  416. <item>
  417. <label>B</label>
  418. <value>B</value>
  419. </item>
  420. <item>
  421. <label>C</label>
  422. <value>C</value>
  423. </item>
  424. <item>
  425. <label>R</label>
  426. <value>R</value>
  427. </item>
  428. </choices>
  429. </col>
  430. <col ref="cmpycd" type="input" visibility="visible"/>
  431. </datagrid>
  432. <caption id="caption2" class="cell_1" style="left:923px; top:75px; width:59px; height:23px; font-family:돋움; vertical-align:middle; ">사용여부</caption>
  433. <select id="chk_useyn" ref="/root/main/judgexmpdetl/item/useyn" overflow="visible" appearance="full" style="left:985px; top:77px; width:45px; height:20px; border-style:none; ">
  434. <choices>
  435. <item>
  436. <label>사용</label>
  437. <value>Y</value>
  438. </item>
  439. </choices>
  440. </select>
  441. <button id="btn_rsltdel" class="btn2_letter5" style="left:1114px; top:145px; width:75px; height:19px; ">
  442. <caption>선택행삭제</caption>
  443. <script type="javascript" ev:event="DOMActivate">
  444. <![CDATA[
  445. deleteSelectedRows(grd_sicklst, true);
  446. ]]>
  447. </script>
  448. </button>
  449. <button id="btn_copy" class="btn2_letter3" style="left:657px; top:50px; width:53px; height:19px; ">
  450. <caption>행복사</caption>
  451. <script type="javascript" ev:event="DOMActivate">
  452. <![CDATA[
  453. fGetExmpDetlInfo(true);
  454. ]]>
  455. </script>
  456. </button>
  457. <caption id="caption4" class="cell_1" style="left:715px; top:256px; width:79px; height:89px; vertical-align:middle; ">질환코드</caption>
  458. <line id="line6" class="line_2" style="x1:715px; y1:344px; x2:1194px; y2:344px; "/>
  459. <datagrid id="grd_testlst" nodeset="/root/main/judgexmpdetl/itemtest" caption="검사코드^검사명" colsep="^" colwidth="150, 200" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:797px; top:274px; width:392px; height:68px; ">
  460. <col ref="testcd"/>
  461. <col ref="testnm"/>
  462. </datagrid>
  463. <button id="ipt_testcd" class="btn2_letter4" style="left:720px; top:289px; width:64px; height:24px; ">
  464. <caption>검사코드</caption>
  465. <script type="javascript" ev:event="DOMActivate">
  466. <![CDATA[
  467. var cnt = grd_testlst.rows;
  468. var vjudgexmpcd = model.getValue("/root/main/judgexmpcdlst/item["+grd_judgexmplst.row+"]/judgexmpcd");
  469. ahafGetTestCd("SMAHB00800", "", "", cnt , grd_testlst.nodeset ,vjudgexmpcd);
  470. if( model.getValue( "/root/temp/okflag") == "Y" ){
  471. for( var i = cnt ; i < grd_testlst.rows ; i++){
  472. grd_testlst.addStatus(i, "insert");
  473. }
  474. }
  475. ]]>
  476. </script>
  477. </button>
  478. <button id="button3" class="btn2_letter6" style="left:1102px; top:254px; width:86px; height:19px; ">
  479. <caption>검사코드삭제</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. // grd_testlst.addStatus(grd_testlst.row,"delete");
  483. //fExeTestCd();
  484. deleteTest(grd_testlst.row);
  485. ]]>
  486. </script>
  487. </button>
  488. <button id="button2" class="btn2_letter6" style="left:1014px; top:254px; width:86px; height:19px; ">
  489. <caption>검사코드저장</caption>
  490. <script type="javascript" ev:event="DOMActivate">
  491. <![CDATA[
  492. fExeTestCd();
  493. ]]>
  494. </script>
  495. </button>
  496. <group id="grp_judgexmpgrp" visibility="hidden" showeffect="blend 300" style="left:280px; top:195px; width:425px; height:79px; ">
  497. <caption id="caption5" class="cell_1" style="left:0px; top:25px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">소견그룹코드</caption>
  498. <caption id="caption8" class="tit_2" style="left:5px; top:5px; width:95px; height:14px; ">소견그룹등록</caption>
  499. <line id="line7" class="line_1" style="x1:0px; y1:20px; x2:424px; y2:20px; "/>
  500. <input id="ipt_judgexmpgrpcd" ref="/root/popup/jugdgexmp/judgexmpgrpcd" class="input_essential" style="left:82px; top:26px; width:120px; height:19px; "/>
  501. <caption id="caption12" class="cell_1" style="left:205px; top:25px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">소견그룹명</caption>
  502. <input id="ipt_judgexmpgrpnm" ref="/root/popup/jugdgexmp/judgexmpgrpnm" class="input_essential" style="left:287px; top:26px; width:134px; height:19px; "/>
  503. <button id="btn_savepopup" class="btn4_letter2" style="left:365px; top:53px; width:56px; height:22px; ">
  504. <caption>저장</caption>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. ipt_judgexmpgrpnm.refresh();
  508. var selIdxs = grd_judgexmplst.selectedRows;
  509. var judgexmpgrpcd = ipt_judgexmpgrpcd.value;
  510. var judgexmpgrpnm = ipt_judgexmpgrpnm.value;
  511. for(var i = 0; i < selIdxs; i++) {
  512. var selIdx = grd_judgexmplst.selectedRow(i);
  513. if(judgexmpgrpcd != "") grd_judgexmplst.valueMatrix(selIdx,grd_judgexmplst.colRef("judgexmpgrpcd")) = judgexmpgrpcd;
  514. if(judgexmpgrpnm != "") grd_judgexmplst.valueMatrix(selIdx,grd_judgexmplst.colRef("judgexmpgrpnm")) = judgexmpgrpnm;
  515. grd_judgexmplst.addStatus(selIdx , "update");
  516. }
  517. model.setValue("/root/send/savegrp/grpdata", grd_judgexmplst.getUpdateData());
  518. model.setValue("/root/send/savegrp/healexamflag" , model.getValue("/root/send/srchhealexamflag"));
  519. model.setValue("/root/send/savegrp/instcd" , model.getValue("/root/send/srchinstcd"));
  520. grp_judgexmpgrp.visible = false;
  521. if(submit("TXAHB00804")) {grd_judgexmplst.clearStatus()};
  522. ]]>
  523. </script>
  524. </button>
  525. <line id="line11" class="line_2" style="x1:0px; y1:48px; x2:424px; y2:48px; "/>
  526. <button id="btn_rsltexmp" class="icon_plus" style="left:408px; top:4px; width:13px; height:15px; ">
  527. <caption/>
  528. <script type="javascript" ev:event="DOMActivate">
  529. <![CDATA[
  530. grp_judgexmpgrp.visible = false;
  531. ]]>
  532. </script>
  533. </button>
  534. </group>
  535. <select1 id="cmb_healexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:857px; top:18px; width:85px; height:19px; ">
  536. <choices>
  537. <itemset nodeset="/root/init/baseinfo/hedetflaglst/A0070">
  538. <label ref="cdnm"/>
  539. <value ref="cdid"/>
  540. </itemset>
  541. </choices>
  542. </select1>
  543. <caption id="caption15" class="cell_1" style="left:1033px; top:75px; width:59px; height:23px; font-family:돋움; vertical-align:middle; ">건진상세</caption>
  544. <select1 id="cmb_healexamdetlflag2" ref="/root/send/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:1098px; top:76px; width:91px; height:19px; ">
  545. <choices>
  546. <itemset nodeset="/root/init/baseinfo/hedetflaglst/A0070">
  547. <label ref="cdnm"/>
  548. <value ref="cdid"/>
  549. </itemset>
  550. </choices>
  551. </select1>
  552. </group>
  553. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  554. <button id="btn_save" class="btn4_letter2" style="left:1007px; top:5px; width:56px; height:22px; ">
  555. <caption>저장</caption>
  556. <script type="javascript" ev:event="DOMActivate">
  557. <![CDATA[
  558. for ( var i = 1; i < grd_sicklst.rows; i ++){
  559. if (model.getValue("/root/main/judgexmpdetl/itemsick[" + i + "]/sickcd") == ""){
  560. messageBox("질환코드는 필수 선택항목 입니다.", "E999", "");
  561. return;
  562. }
  563. if (model.getValue("/root/main/judgexmpdetl/itemsick[" + i + "]/judgcd") == ""){
  564. messageBox("판정코드는 필수 선택항목 입니다.", "E999", "");
  565. return;
  566. }
  567. }
  568. var judgexmpcd = model.getValue("/root/main/judgexmpdetl/item/judgexmpcd");
  569. fSaveExmp(false);
  570. btn_search.dispatch("DOMActivate");
  571. //그리드 행찾기
  572. model.setFocus("grd_judgexmplst");
  573. var row = grd_judgexmplst.findRow(judgexmpcd, 1, grd_judgexmplst.colRef("judgexmpcd"), false, true);
  574. grd_judgexmplst.row = row;
  575. grd_judgexmplst.dispatch("ondblclick");
  576. ]]>
  577. </script>
  578. </button>
  579. <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  580. <caption>삭제</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. fSaveExmp(true);
  584. ]]>
  585. </script>
  586. </button>
  587. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  588. <caption>초기화</caption>
  589. <script type="javascript" ev:event="DOMActivate">
  590. <![CDATA[
  591. fInit(true);
  592. ]]>
  593. </script>
  594. </button>
  595. </group>
  596. <script type="javascript" ev:event="onmenu">
  597. <![CDATA[
  598. if(event.description == "addjudgegrp") {
  599. fSetJudgeGrp("A");
  600. }
  601. if(event.description == "deljudgegrp") {
  602. fSetJudgeGrp("D");
  603. }
  604. ]]>
  605. </script>
  606. </xhtml:body>
  607. </xhtml:html>