SMAHA03140_판정문구관리.xrw 25 KB

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