SMAHA04360_특수일괄보정.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHA04360.xrw
  4. * 설 명 : 특수일괄보정
  5. * 설 계 자 : 장준원
  6. * 작 성 자 : 장준원
  7. * 작 성 일 : 2010.03.15
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>특수일괄보정</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <totalpatlst>
  19. <item>
  20. <chk/>
  21. <rsrvdd/>
  22. <rsrvno/>
  23. <pid/>
  24. <hngnm/>
  25. <testcd/>
  26. <testnm/>
  27. <rslt1/>
  28. <rslt2/>
  29. <rslt3/>
  30. <healexamflag/>
  31. </item>
  32. </totalpatlst>
  33. <tempinfo>
  34. <assorsltlst>
  35. <itemasso>
  36. <rsltcd/>
  37. <rsltnm/>
  38. <testcd/>
  39. </itemasso>
  40. </assorsltlst>
  41. <assorsltlst1>
  42. <itemasso>
  43. <rsltcd/>
  44. <rsltnm/>
  45. <testcd/>
  46. </itemasso>
  47. </assorsltlst1>
  48. </tempinfo>
  49. </main>
  50. <send>
  51. <srch>
  52. <srchfromdd/>
  53. <srchtodd/>
  54. <srchhealexamflag/>
  55. <srchhealexamdetlflag/>
  56. <srchpid/>
  57. <srchpnm/>
  58. <srchplceflag/>
  59. <srchcmpycd/>
  60. <srchtestcd1/>
  61. <srchtestnm1/>
  62. <srchtestcd2>LCU102</srchtestcd2>
  63. <srchtestnm2>크레아티닌(URINE)</srchtestnm2>
  64. <srchcmpycd/>
  65. <srchcmpynm/>
  66. <srchbojung/>
  67. </srch>
  68. <saveinfo>
  69. <infolist/>
  70. </saveinfo>
  71. </send>
  72. <init>
  73. <baseinfo>
  74. <plceflag/>
  75. </baseinfo>
  76. <send>
  77. <srchcmpycd/>
  78. <srchcmpynm/>
  79. </send>
  80. </init>
  81. <hidden>
  82. <count/>
  83. <itemrslt/>
  84. <testlst>
  85. <testcd/>
  86. <testnm/>
  87. </testlst>
  88. <pkglst/>
  89. </hidden>
  90. <temp>
  91. <aplyitem>
  92. <outtestrsltcnts/>
  93. <assorsltcd/>
  94. <assorsltcd1/>
  95. <testrsltcnts/>
  96. </aplyitem>
  97. </temp>
  98. </root>
  99. </instance>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  104. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  105. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  106. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. fInitInfo();
  110. fGetBaseInfo();
  111. btn_search.dispatch("DOMActivate");
  112. model.refresh();
  113. ]]>
  114. </script>
  115. <submission id="TRZBC00101"/>
  116. <submission id="TXAHA04361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveinfo/infolist" replace="instance" resultref="/root/hidden/itemrslt"/>
  117. <submission id="TRAHA00001"/>
  118. <submission id="TRAHA04361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/totalpatlst"/>
  119. </model>
  120. <script type="javascript">
  121. <![CDATA[
  122. var m_vHealexamflag = "";
  123. var m_vHealexamdetlflag = "";
  124. /*=======================================================================================
  125. *공통코드 가져오기
  126. =======================================================================================*/
  127. function fGetBaseInfo(){
  128. var sFlag = getScreenMenuParameter();
  129. //alert('sFlag->'+sFlag);
  130. if(sFlag == "") {
  131. m_vHealexamflag = "G"
  132. m_vHealexamdetlflag = "G01"
  133. }else {
  134. m_vHealexamflag = sFlag.substr(0,1);
  135. m_vHealexamdetlflag = sFlag;
  136. }
  137. model.setValue("/root/send/srch/srchhealexamflag", m_vHealexamflag);
  138. model.setValue("/root/send/srch/srchhealexamdetlflag", m_vHealexamdetlflag);
  139. //건진분류(종건/일건) , 건진상태구분, 계약종류
  140. zbcfGetCodeList( new Array( "A0110" ),
  141. new Array ( "/root/init/baseinfo/plceflag" ) // 장소구분
  142. );
  143. submit("TRZBC00101");
  144. var deptLength = model.instances(0).selectNodes( "/root/init/baseinfo/plceflag/A0110" ).length+1;
  145. model.makeValue("/root/init/baseinfo/plceflag/A0110["+deptLength+"]/cdid", "");
  146. model.makeValue("/root/init/baseinfo/plceflag/A0110["+deptLength+"]/cdnm", "전체");
  147. }
  148. /*=======================================================================================
  149. *초기화
  150. =======================================================================================*/
  151. function fInitInfo(){
  152. var cur_date = getCurrentDate() ;
  153. model.setValue( ipt_srchfromdd.attribute("ref") , cur_date) ;
  154. model.setValue(ipt_srchtodd.attribute("ref") , cur_date) ;
  155. grd_patdtllst.fixedcellcheckbox(0,1)=true;
  156. }
  157. /**=======================================================================================
  158. * 건진 결과 대상자 리스트 조회
  159. =======================================================================================*/
  160. function fGetTotalPatList(){
  161. model.makeValue("/root/send/srch/srchhopedd", model.getValue("/root/send/srch/srchtodd"));
  162. model.setValue("/root/send/srch/srchcmpycd", model.getValue("/root/init/send/srchcmpycd"));
  163. if(submit("TRAHA04361")) {
  164. }
  165. }
  166. /**=======================================================================================
  167. * 수치적용된 값 반올림처리
  168. =======================================================================================*/
  169. function round(val,precision) {
  170. if(!isNaN(val) && val != Number.POSITIVE_INFINITY) {
  171. val = val * Math.pow(10,precision);
  172. val = Math.round(val);
  173. return val/Math.pow(10,precision); //지수계산
  174. }else {
  175. return ;
  176. }
  177. }
  178. /**=======================================================================================
  179. * 공단연계결과와 특검연계결과에 따른 답안 예문
  180. =======================================================================================*/
  181. function fSetAssoChoiExmp(vCls, vGrd) {
  182. var idx = vGrd.row;
  183. if(vCls == "1"){
  184. var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd") );
  185. var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
  186. var nodeList = instance1.selectNodes("/root/main/tempinfo/assorsltlst/itemasso");
  187. for(var i=0; i <= nodeList.length; i++) {
  188. var desrsltcnts = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/rsltcd");
  189. var destestcd = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/testcd");
  190. if(rsltcnts == desrsltcnts && testcd == destestcd) {
  191. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts") ) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/rsltnm");
  192. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd") ) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + i + "]/rsltcd");
  193. grp_assorsltexmp.visible = false;
  194. break;
  195. }
  196. }
  197. }else if(vCls == "2"){
  198. var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd1") );
  199. var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
  200. var nodeList = instance1.selectNodes("/root/main/tempinfo/assorsltlst1/itemasso");
  201. for(var i=0; i <= nodeList.length; i++) {
  202. var desrsltcnts = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/rsltcd");
  203. var destestcd = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/testcd");
  204. if(rsltcnts == desrsltcnts && testcd == destestcd) {
  205. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts1") ) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/rsltnm");
  206. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd1") ) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso[" + i + "]/rsltcd");
  207. grp_assorsltexmp1.visible = false;
  208. break;
  209. }
  210. }
  211. }
  212. }
  213. function fSetAssoChoiExmpCnts(vCls, vGrd) {
  214. if(vCls == "1"){
  215. for(var idx=1;idx<vGrd.rows; idx++){
  216. var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd") );
  217. var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
  218. var nodeList = instance1.selectNodes("/root/main/totalpatlst/itemassoexmp");
  219. for(var i=0; i <= nodeList.length; i++) {
  220. var desrsltcnts = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/rsltcd");
  221. var destestcd = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/testcd");
  222. if(rsltcnts == desrsltcnts && testcd == destestcd) {
  223. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts") ) = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/rsltnm");
  224. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd") ) = model.getValue("/root/main/totalpatlst/itemassoexmp[" + i + "]/rsltcd");
  225. }
  226. }
  227. }
  228. }else if(vCls == "2"){
  229. for(var idx=1;idx<vGrd.rows; idx++){
  230. var rsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("assorsltcd1") );
  231. var testcd = vGrd.valueMatrix(idx , vGrd.colRef("testcd") );
  232. var nodeList = instance1.selectNodes("/root/main/totalpatlst/itemassoexmp1");
  233. for(var i=0; i <= nodeList.length; i++) {
  234. var desrsltcnts = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/rsltcd");
  235. var destestcd = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/testcd");
  236. if(rsltcnts == desrsltcnts && testcd == destestcd) {
  237. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcnts1") ) = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/rsltnm");
  238. vGrd.valueMatrix( idx , vGrd.colRef("assorsltcd1") ) = model.getValue("/root/main/totalpatlst/itemassoexmp1[" + i + "]/rsltcd");
  239. }
  240. }
  241. }
  242. }
  243. }
  244. ]]>
  245. </script>
  246. </xhtml:head>
  247. <xhtml:body pagewidth="1220" pageheight="820" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  248. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  249. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">특수일괄보정</caption>
  250. </group>
  251. <group id="group2" style="left:0px; top:18px; width:1190px; height:72px; vertical-align:top; ">
  252. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:70px; "/>
  253. <caption id="caption10" class="search_name" style="left:10px; top:12px; width:91px; height:17px; ">처방일자 :</caption>
  254. <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdd" class="input_s_essential" inputtype="date" style="left:97px; top:11px; width:90px; height:19px; "/>
  255. <input id="ipt_srchtodd" ref="/root/send/srch/srchtodd" class="input_s_essential" inputtype="date" style="left:210px; top:11px; width:90px; height:19px; "/>
  256. <line id="line5" class="line_4" style="x1:1115px; y1:6px; x2:1115px; y2:39px; "/>
  257. <caption id="caption13" class="search_name" style="left:315px; top:11px; width:86px; height:17px; ">환자검색 :</caption>
  258. <caption id="caption14" class="search_n_b" style="left:191px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  259. <input id="ipt_pid" ref="/root/send/srch/srchpid" class="input_search" style="left:402px; top:11px; width:100px; height:19px; ">
  260. <script type="javascript" ev:event="onkeyup">
  261. <![CDATA[
  262. if( event.keyCode != 13) return ;
  263. model.setValue("/root/send/srch/srchpid" , ipt_pid.currentText)
  264. fGetTotalPatList();
  265. ]]>
  266. </script>
  267. </input>
  268. <button id="btn_selpat" class="icon_search" style="left:507px; top:12px; width:16px; height:16px; ">
  269. <caption/>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. fSearchPatInfo("SMAHR00900", "pnm",model.getValue("/root/temp/send/srchtext") , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  273. if( model.getValue( ipt_pid.attribute("ref")) != "" ){
  274. fGetTotalPatList();
  275. }
  276. ]]>
  277. </script>
  278. </button>
  279. <input id="ipt_pnm" ref="/root/send/srch/srchpnm" class="output_fix" style="left:530px; top:11px; width:100px; height:19px; ">
  280. <script type="javascript" ev:event="onkeyup">
  281. <![CDATA[
  282. if( event.keyCode != 13) return ;
  283. model.makeValue("/root/temp/send/srchtext" , ipt_pnm.currentText);
  284. inputEnterKey("btn_selpat","DOMActivate");
  285. ]]>
  286. </script>
  287. </input>
  288. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:12px; width:56px; height:22px; ">
  289. <caption>조회</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. //조회 버튼 클릭 이벤트
  293. fGetTotalPatList();
  294. ]]>
  295. </script>
  296. </button>
  297. <caption id="caption36" class="search_name" style="left:640px; top:10px; width:69px; height:17px; ">장소 :</caption>
  298. <select1 id="cmb_srchplceflag" ref="/root/send/srch/srchplceflag" appearance="minimal" style="left:704px; top:9px; width:60px; height:19px; ">
  299. <choices>
  300. <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
  301. <label ref="cdnm"/>
  302. <value ref="cdid"/>
  303. </itemset>
  304. </choices>
  305. </select1>
  306. <button id="btn_selcmpy" class="icon_search" style="left:945px; top:13px; width:16px; height:16px; ">
  307. <caption/>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. fGetComnCd("SMAHA00400", "09" , "nm", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
  311. ]]>
  312. </script>
  313. </button>
  314. <caption id="caption42" class="search_name" style="left:786px; top:10px; width:86px; height:17px; ">거래처 :</caption>
  315. <input id="ipt_srchcmpycd" ref="/root/init/send/srchcmpycd" class="input_search" style="left:860px; top:10px; width:80px; height:19px; ">
  316. <script type="javascript" ev:event="onkeyup">
  317. <![CDATA[
  318. inputEnterKey("btn_selcmpy", "DOMActivate");
  319. ]]>
  320. </script>
  321. </input>
  322. <output id="opt_srchcmpynm" ref="/root/init/send/srchcmpynm" class="output_fix" style="left:965px; top:10px; width:140px; height:19px; "/>
  323. <caption id="caption21" class="search_name" style="left:10px; top:40px; width:86px; height:17px; ">검사코드 :</caption>
  324. <input id="ipt_testcd" ref="/root/send/srch/srchtestcd1" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:97px; top:40px; width:80px; height:19px; ">
  325. <script type="javascript" ev:event="onkeyup">
  326. <![CDATA[
  327. if( event.keyCode != 13) return ;
  328. model.resetInstanceNode("/root/hidden/testlst");
  329. fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
  330. var testcd = model.getValue("/root/hidden/testlst/testcd");
  331. var testnm = model.getValue("/root/hidden/testlst/testnm");
  332. model.setValue("/root/send/srch/srchtestcd1",testcd);
  333. model.setValue("/root/send/srch/srchtestnm1",testnm);
  334. model.refresh();
  335. ]]>
  336. </script>
  337. </input>
  338. <button id="button2" class="icon_search" style="left:185px; top:40px; width:16px; height:16px; ">
  339. <caption/>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. model.resetInstanceNode("/root/hidden/testlst");
  343. fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
  344. var testcd = model.getValue("/root/hidden/testlst/testcd");
  345. var testnm = model.getValue("/root/hidden/testlst/testnm");
  346. model.setValue("/root/send/srch/srchtestcd1",testcd);
  347. model.setValue("/root/send/srch/srchtestnm1",testnm);
  348. model.refresh();
  349. ]]>
  350. </script>
  351. </button>
  352. <input id="input1" ref="/root/send/srch/srchtestnm1" class="output_fix" imemode="disabled" _chartype="upper" style="left:205px; top:40px; width:190px; height:19px; ">
  353. <script type="javascript" ev:event="onkeyup">
  354. <![CDATA[
  355. ]]>
  356. </script>
  357. </input>
  358. <button id="button3" class="icon_search" style="left:580px; top:40px; width:16px; height:16px; ">
  359. <caption/>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. model.resetInstanceNode("/root/hidden/testlst");
  363. fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
  364. var testcd = model.getValue("/root/hidden/testlst/testcd");
  365. var testnm = model.getValue("/root/hidden/testlst/testnm");
  366. model.setValue("/root/send/srch/srchtestcd2",testcd);
  367. model.setValue("/root/send/srch/srchtestnm2",testnm);
  368. model.refresh();
  369. ]]>
  370. </script>
  371. </button>
  372. <caption id="caption7" class="search_name" style="left:410px; top:40px; width:86px; height:17px; ">검사코드 :</caption>
  373. <input id="input2" ref="/root/send/srch/srchtestcd2" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:497px; top:40px; width:80px; height:19px; ">
  374. <script type="javascript" ev:event="onkeyup">
  375. <![CDATA[
  376. if( event.keyCode != 13) return ;
  377. model.resetInstanceNode("/root/hidden/testlst");
  378. fGetPkgCd("SMAHA00300", "A", "N","nm" , "" ,"G03" , "", "/root/hidden/testlst","Y","" ,"" );
  379. var testcd = model.getValue("/root/hidden/testlst/testcd");
  380. var testnm = model.getValue("/root/hidden/testlst/testnm");
  381. model.setValue("/root/send/srch/srchtestcd2",testcd);
  382. model.setValue("/root/send/srch/srchtestnm2",testnm);
  383. model.refresh();
  384. ]]>
  385. </script>
  386. </input>
  387. <input id="input3" ref="/root/send/srch/srchtestnm2" class="output_fix" imemode="disabled" _chartype="upper" style="left:600px; top:40px; width:210px; height:19px; ">
  388. <script type="javascript" ev:event="onkeyup">
  389. <![CDATA[
  390. ]]>
  391. </script>
  392. </input>
  393. <input id="input4" ref="/root/send/srch/srchbojung" class="input_s_essential" imemode="disabled" _chartype="upper" style="left:905px; top:40px; width:80px; height:19px; ">
  394. <script type="javascript" ev:event="onkeyup">
  395. <![CDATA[
  396. ]]>
  397. </script>
  398. </input>
  399. <caption id="caption1" class="search_name" style="left:828px; top:40px; width:86px; height:17px; ">보정값 :</caption>
  400. </group>
  401. <switch id="switch1" style="left:0px; top:90px; width:1195px; height:630px; ">
  402. <case id="case_prnt" selected="true">
  403. <caption id="caption11" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">상세내역</caption>
  404. <line id="line2" class="line_1" style="x1:5px; y1:20px; x2:1187px; y2:20px; "/>
  405. <datagrid id="grd_patdtllst" nodeset="/root/main/totalpatlst/item" autoresize="true" caption="선택^예약일자^예약번호^등록번호^환자명^검사코드^검사명^결과1^결과2^결과3^건진구분" colsep="^" colwidth="59, 80, 80, 80, 80, 90, 200, 100, 100, 100, 60" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:25px; width:1180px; height:595px; ">
  406. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  407. <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  408. <col ref="rsrvno" style="text-align:center; "/>
  409. <col ref="pid" style="text-align:center; "/>
  410. <col ref="hngnm" style="text-align:center; "/>
  411. <col ref="testcd" style="text-align:left; "/>
  412. <col ref="testnm" style="text-align:left; "/>
  413. <col ref="rslt1" style="text-align:right; "/>
  414. <col ref="rslt2" style="text-align:right; "/>
  415. <col ref="rslt3" type="input" style="text-align:right; "/>
  416. <col ref="healexamflag" visibility="hidden"/>
  417. <script type="javascript" ev:event="onendedit">
  418. <![CDATA[
  419. var colidx = grd_patdtllst.col;
  420. if (event.keyCode == 13){
  421. if( grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd")) {
  422. if( grd_patdtllst.row < 1) return ;
  423. if( grd_patdtllst.row < grd_patdtllst.rows ) {
  424. fSetAssoChoiExmp("1", grd_patdtllst);
  425. }
  426. }else if( grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd1")) {
  427. if( grd_patdtllst.row < 1) return ;
  428. if( grd_patdtllst.row < grd_patdtllst.rows ) {
  429. fSetAssoChoiExmp("2", grd_patdtllst);
  430. }
  431. }
  432. var nextRow = grd_patdtllst.row + 1
  433. if(grd_patdtllst.colType(grd_patdtllst.col) == "input" && nextRow < grd_patdtllst.rows) {
  434. grd_patdtllst.row = nextRow;
  435. grd_patdtllst.editCell();
  436. }
  437. }
  438. if( grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcnts" || grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcd" ||
  439. grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcnts1" || grd_patdtllst.colAttribute(colidx, "ref") == "assorsltcd1" ) {
  440. model.setValue("/root/main/totalpatlst/item["+grd_patdtllst.row+"]/chk" ,"Y");
  441. }
  442. grd_patdtllst.refresh();
  443. ]]>
  444. </script>
  445. <script type="javascript" ev:event="onaftersort">
  446. <![CDATA[
  447. grd_patdtllst.gridToInstance();
  448. ]]>
  449. </script>
  450. <script type="javascript" ev:event="onstartedit">
  451. <![CDATA[
  452. var vTestCd = model.getValue("/root/main/totalpatlst/item[" + grd_patdtllst.row + "]/testcd");
  453. if(grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd")) {
  454. if(model.getXPathValue("count(/root/main/totalpatlst/itemassoexmp[testcd = '" + vTestCd + "'])") > 0) {
  455. model.removeNodeset("/root/main/tempinfo/assorsltlst/itemasso");
  456. model.makeNode("/root/main/tempinfo/assorsltlst/itemasso");
  457. copyNodesetType("/root/main/tempinfo/assorsltlst/itemasso", "/root/main/totalpatlst/itemassoexmp[testcd = '" + vTestCd + "']");
  458. grd_assorslt.refresh();
  459. grp_assorsltexmp.visible = true;
  460. grp_assorsltexmp1.visible = false;
  461. }else {
  462. grp_assorsltexmp.visible = false;
  463. }
  464. }else if(grd_patdtllst.col == grd_patdtllst.colRef("assorsltcd1")) {
  465. if(model.getXPathValue("count(/root/main/totalpatlst/itemassoexmp1[testcd = '" + vTestCd + "'])") > 0) {
  466. model.removeNodeset("/root/main/tempinfo/assorsltlst1/itemasso");
  467. model.makeNode("/root/main/tempinfo/assorsltlst1/itemasso");
  468. copyNodesetType("/root/main/tempinfo/assorsltlst1/itemasso", "/root/main/totalpatlst/itemassoexmp1[testcd = '" + vTestCd + "']");
  469. grd_assorslt1.refresh();
  470. grp_assorsltexmp1.visible = true;
  471. grp_assorsltexmp.visible = false;
  472. }else {
  473. grp_assorsltexmp1.visible = false;
  474. }
  475. }
  476. ]]>
  477. </script>
  478. <script type="javascript" ev:event="onclick">
  479. <![CDATA[
  480. if(isDataCell()){
  481. grd_patdtllst.dispatch("onstartedit");
  482. }
  483. ]]>
  484. </script>
  485. </datagrid>
  486. </case>
  487. </switch>
  488. <button id="button1" class="btn4_letter2" visibility="visible" style="left:1133px; top:725px; width:56px; height:22px; ">
  489. <caption>저장</caption>
  490. <script type="javascript" ev:event="DOMActivate">
  491. <![CDATA[
  492. //var loopcnt = 0;
  493. //var loop = grd_patdtllst.rows - grd_patdtllst.fixedRows;
  494. var nodeList = instance1.selectNodes("/root/main/totalpatlst/item[chk='Y']");
  495. var rCSV = getNodeListCSV(nodeList);
  496. //alert("rCSV["+rCSV+"]");
  497. //return;
  498. if ( rCSV == null ) {
  499. messageBox("일괄 등록할 내역을 선택해 주십시오.","I999");
  500. return "0";
  501. }
  502. model.setValue("/root/send/saveinfo/infolist", rCSV);
  503. if ( messageBox("일괄 보정내역을 ","Q002")==6 ) {
  504. submit("TXAHA04361");
  505. btn_search.dispatch("DOMActivate");
  506. }else {
  507. model.resetInstanceNode("/root/send/saveinfo/infolist");
  508. }
  509. model.refresh();
  510. ]]>
  511. </script>
  512. </button>
  513. </xhtml:body>
  514. </xhtml:html>