SMAEB00200_검사치료코드관리.xrw 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>검사치료코드관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <examcurecdlist>
  11. <item>
  12. <update/>
  13. <excucd/>
  14. <excucdnm/>
  15. <excuroomcd/>
  16. <excupartcd/>
  17. <execbaseflag/>
  18. <rcptacptyn/>
  19. <rcptrsrvyn/>
  20. <prcptdayaftrcptyn>N</prcptdayaftrcptyn>
  21. <excuclscd/>
  22. <lrgcd/>
  23. <mdlcd/>
  24. <ioexamflag/>
  25. <excucdrem/>
  26. <angioaltprcpcd/>
  27. <angiouseyn/>
  28. <autroomassgyn/>
  29. <autroomassgcd/>
  30. <section/>
  31. <specdrcd/>
  32. <rslttmplcd/>
  33. <rslttmplcdnm/>
  34. <ocrtmplcd/>
  35. <eqmtifyn/>
  36. <readdrid3/>
  37. <readdrid3nm/>
  38. <rsltdispyn/>
  39. <rsltdispgbn/>
  40. <rsltclscd1/>
  41. <rsltclscd2/>
  42. <partcntstats/>
  43. <phocntstats/>
  44. <curetims/>
  45. <rsrvexcupossyn/>
  46. <rsrvexcuroomposscd/>
  47. <rsrvexcuroomposscd2/>
  48. <rsrvsono/>
  49. <rsrvplceflag/>
  50. <excutm/>
  51. <rsrvexmptmplcd/>
  52. <rsrvexmptmplexecrnm/>
  53. <rsrvexmpcnt/>
  54. <fastyn/>
  55. <enemayn/>
  56. <rsrvaprvtmplcd/>
  57. <slepyn/>
  58. <dcusrsrvyn/>
  59. <rsrvupdtcncllimdayno/>
  60. <modality/>
  61. <pacsnocretyn/>
  62. <etceqmtifyn/>
  63. <prestddappyn/>
  64. <anotestyn>Y</anotestyn>
  65. <sytserdispyn/>
  66. <sytshealdispyn/>
  67. <glycostestyn/>
  68. <bonedentestyn/>
  69. <prcpexecdeptcd/>
  70. <nextexcuroomcd/>
  71. <excurem/>
  72. <basesuppdeptcd/>
  73. <excutodd/>
  74. <excupatrem/>
  75. <saveflag/>
  76. <prcpexecdeptcd1/>
  77. <prcptdayrcptyn/>
  78. <rslttmplcd2nd/>
  79. </item>
  80. </examcurecdlist>
  81. <userpopupinfo>
  82. <param/>
  83. </userpopupinfo>
  84. <userinfolist/>
  85. <prcp>
  86. <prcplist>
  87. <prcpexecdeptcd/>
  88. </prcplist>
  89. </prcp>
  90. </main>
  91. <send>
  92. <req>
  93. </req>
  94. <srchexamcurecd/>
  95. <srchexamcurenm/>
  96. <globalinstance>
  97. <instance1/>
  98. <basecd>%</basecd>
  99. </globalinstance>
  100. <windowloadinstance>SMAEB00200</windowloadinstance>
  101. <newoldyb>1</newoldyb>
  102. <excuroomcd/>
  103. <srchrsltclscd1/>
  104. <grupcdid/>
  105. <excupatrem/>
  106. <saveflag/>
  107. <excucdrem/>
  108. </send>
  109. <init>
  110. <baseinfo>
  111. <initexecbaseflag/>
  112. <initioexamflag/>
  113. <initrsrvplceflag/>
  114. <excuclscd/>
  115. <rsltclscd1/>
  116. <initeqmtifyn/>
  117. <initpacsnocretyn/>
  118. </baseinfo>
  119. <baseinfo1>
  120. <rsltclscd2/>
  121. </baseinfo1>
  122. <cmb_info>
  123. <initexcuroomgrp>
  124. <excuroomgrpcdid/>
  125. <excuroomgrpcdnm/>
  126. </initexcuroomgrp>
  127. <initexecroom>
  128. <excuroomcdid/>
  129. <excuroomcdnm/>
  130. </initexecroom>
  131. <suppdept>
  132. <suppdeptcd/>
  133. <depthngnm/>
  134. </suppdept>
  135. <initsystgrd>
  136. <rsltclscd1/>
  137. <rsltclsnm1/>
  138. </initsystgrd>
  139. <initsystmdl>
  140. <rsltclscd2/>
  141. <rsltclsnm2/>
  142. <basecdcnts/>
  143. </initsystmdl>
  144. </cmb_info>
  145. <cmb_info2>
  146. <initsection>
  147. <cdid/>
  148. <cdnm/>
  149. <grupcdid/>
  150. </initsection>
  151. <initmodal>
  152. <cdid/>
  153. <cdnm/>
  154. <grupcdid/>
  155. </initmodal>
  156. <initrsltgb>
  157. <cdid/>
  158. <cdnm/>
  159. <grupcdid/>
  160. </initrsltgb>
  161. <specdr>
  162. <cdid/>
  163. <cdnm/>
  164. <grupcdid/>
  165. </specdr>
  166. </cmb_info2>
  167. <bodypartlist>
  168. <bodypart>
  169. <basecd/>
  170. <basecdflagdesc/>
  171. </bodypart>
  172. <bodypartgrp>
  173. <basecd/>
  174. <basecdflagdesc/>
  175. </bodypartgrp>
  176. </bodypartlist>
  177. <dept_info>
  178. <initprcpexecdeptcd>
  179. <prcpexecdeptcdid/>
  180. <prcpexecdeptcdnm/>
  181. </initprcpexecdeptcd>
  182. </dept_info>
  183. <comcd_info>
  184. <initcomgrupcd>
  185. <comgrupcdid/>
  186. <comgrupcdnm/>
  187. </initcomgrupcd>
  188. </comcd_info>
  189. <comcd_info2>
  190. <initcomcd>
  191. <comcdid/>
  192. <comcdnm/>
  193. </initcomcd>
  194. </comcd_info2>
  195. <rsrvidinfo/>
  196. </init>
  197. <hidden>
  198. <count/>
  199. <parameters>
  200. <formcd/>
  201. </parameters>
  202. <checkseq/>
  203. <init>
  204. <comcd>
  205. </comcd>
  206. </init>
  207. <item>
  208. <excucd/>
  209. <excucdnm/>
  210. <excuroomcd/>
  211. <excupartcd/>
  212. <execbaseflag/>
  213. <rcptacptyn/>
  214. <rcptrsrvyn/>
  215. <prcptdayaftrcptyn>N</prcptdayaftrcptyn>
  216. <excuclscd/>
  217. <lrgcd/>
  218. <mdlcd/>
  219. <ioexamflag/>
  220. <excucdrem/>
  221. <angioaltprcpcd/>
  222. <angiouseyn/>
  223. <autroomassgyn/>
  224. <autroomassgcd/>
  225. <section/>
  226. <rslttmplcd/>
  227. <ocrtmplcd/>
  228. <eqmtifyn/>
  229. <readdrid3/>
  230. <readdrid3nm/>
  231. <rsltdispyn/>
  232. <rsltdispgbn/>
  233. <rsltclscd1/>
  234. <rsltclscd2/>
  235. <partcntstats/>
  236. <phocntstats/>
  237. <curetims/>
  238. <rsrvexcupossyn/>
  239. <rsrvexcuroomposscd/>
  240. <rsrvexcuroomposscd2/>
  241. <rsrvsono/>
  242. <rsrvplceflag/>
  243. <excutm/>
  244. <rsrvexmptmplcd/>
  245. <rsrvexmptmplexecrnm/>
  246. <rsrvexmpcnt/>
  247. <fastyn/>
  248. <enemayn/>
  249. <rsrvaprvtmplcd/>
  250. <slepyn/>
  251. <dcusrsrvyn/>
  252. <rsrvupdtcncllimdayno/>
  253. <modality/>
  254. <pacsnocretyn/>
  255. <etceqmtifyn/>
  256. <prestddappyn/>
  257. <anotestyn>Y</anotestyn>
  258. <sytserdispyn/>
  259. <sytshealdispyn/>
  260. <glycostestyn/>
  261. <bonedentestyn/>
  262. <prcpexecdeptcd/>
  263. <nextexcuroomcd/>
  264. <excurem/>
  265. <basesuppdeptcd/>
  266. <excutodd/>
  267. <prcpexecdeptcd1/>
  268. </item>
  269. </hidden>
  270. <temp>
  271. <templst/>
  272. </temp>
  273. <hidden1>
  274. <initsystmdl>
  275. <rsltclscd2/>
  276. <rsltclsnm2/>
  277. <basecdcnts/>
  278. </initsystmdl>
  279. </hidden1>
  280. <orddept/>
  281. </root>
  282. </instance>
  283. <script type="javascript" ev:event="xforms-ready">
  284. <![CDATA[
  285. //2010.11.29 c y w 시행부서컬럼은 계정이 'AST'인 경우에만 활성화
  286. var userid = getUserId();
  287. if( userid == "AST" )
  288. {
  289. grd_examcurecdlist.colDisabled(59) = false;
  290. } else {
  291. grd_examcurecdlist.colDisabled(59) = true;
  292. }
  293. //aezfSetSuppDeptcd();
  294. var suppdeptcd = "";
  295. suppdeptcd = getScreenMenuParameter();
  296. if (suppdeptcd == "" || suppdeptcd == null || suppdeptcd == "null"){
  297. aezfSetSuppDeptcd();
  298. }else{
  299. model.setValue("/root/send/globalinstance/instance1", suppdeptcd);
  300. }
  301. zbcfGetCodeList( new Array("A0071", "A0072", "A0073", "A0463", "A0481", "A0502", "A0501"), new Array("/root/init/baseinfo/initexecbaseflag",
  302. "/root/init/baseinfo/initioexamflag",
  303. "/root/init/baseinfo/initrsrvplceflag",
  304. "/root/init/baseinfo/excuclscd",
  305. "/root/init/baseinfo/rsltclscd1",
  306. "/root/init/baseinfo/initeqmtifyn",
  307. "/root/init/baseinfo/initpacsnocretyn"
  308. ) );
  309. zbcfGetSubCodeList("A0481", "", "A0482", "cdnm", "asc", "true", "/root/init/baseinfo1/rsltclscd2");
  310. //zbcfGetSubCodeList("A0481", "", "A0482", "cdnm", "asc", "true", "/root/hidden/init/comcd");
  311. submit("TRZBC00101", false);
  312. submit("TRAEA01301", false); // 검사치료실 가져오기
  313. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
  314. caption5.visible = true;
  315. cmb_deptcd.visible = true;
  316. btn_grdadd.disabled = true;
  317. btn_grdcopy.disabled = true;
  318. btn_grddel.disabled = true;
  319. //btn_save.disabled = true;
  320. //2010.11.02 통합예약에서 주의사항 저장기능 추가 - 박재영
  321. //2014/11/17 이정택 추가 원무과 및 원무팀에서 저장 할 수 있도록 플래그값 수정(미수예약, 검사일수납, 예약구분, 상세내역, 주의사항만 수정할 수 있도록)
  322. //model.setValue("/root/send/saveflag","A");
  323. if(getUserInfo("dutplcecd")=='4040300000' || getUserInfo("dutplcecd")=='4040326000' || getUserInfo("userid")=='PAM'){
  324. var i=1;
  325. for(i; i<=grd_examcurecdlist.cols; i++){
  326. if(i==grd_examcurecdlist.colRef("rcptrsrvyn") || i==grd_examcurecdlist.colRef("prcptdayrcptyn") ||
  327. i==grd_examcurecdlist.colRef("rsrvplceflag") || i==grd_examcurecdlist.colRef("excucdrem") ||
  328. i==grd_examcurecdlist.colRef("excupatrem")){
  329. grd_examcurecdlist.colDisabled(i)=false;
  330. }else{
  331. grd_examcurecdlist.colDisabled(i)=true;
  332. }
  333. }
  334. }else{
  335. model.setValue("/root/send/saveflag","A");
  336. }
  337. //2014/11/17 이정택 추가
  338. btn_save.disabled = false;
  339. btn_selcalcscorcd.disabled = true;
  340. }else{
  341. //2014/11/21 이정택 수정(위치 변경에 따른 옵션 변경)
  342. //caption5.visible = false;
  343. //cmb_deptcd.visible = false;
  344. caption5.visible = true;
  345. cmb_deptcd.visible = true;
  346. cmb_deptcd.disabled = true;
  347. //2014/11/21 이정택 수정(위치 변경에 따른 옵션 변경)
  348. btn_grdadd.disabled = false;
  349. btn_grdcopy.disabled = false;
  350. btn_grddel.disabled = false;
  351. btn_save.disabled = false;
  352. btn_selcalcscorcd.disabled = false;
  353. }
  354. submit("TRAEB00601", false); // 부위코드 가져오기
  355. submit("TRAEB00205", false); // 수행부서 코드 가져오기
  356. submit("TRAEB00206", false); // 공통 그룹코드 가져오기
  357. model.setValue("/root/send/srchexamcurecd","%");
  358. model.setValue("/root/send/srchexamcurenm","%");
  359. submit("TRAEB00201");
  360. model.setValue("/root/send/srchexamcurecd","");
  361. model.setValue("/root/send/srchexamcurenm","");
  362. copyNodesetType("/root/hidden1/initsystmdl", "/root/init/cmb_info/initsystmdl");
  363. //model.removeNodeset("/root/main/examcurecdlist/item");
  364. // Section, Modal 등의 공통정보를 가져온다. App단에서 그룹코드별 셋팅을 입력해 놓는다.
  365. model.setValue("/root/send/grupcdid","A");
  366. submit("TRAEA01313");
  367. //트리거로 대체함 ast.aebmeccd_log
  368. // //20140204 by kya 진료지원 공통코드에서 수정자격 가져오기 'T001'
  369. // //start
  370. // suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  371. //
  372. // //alert("** suppdeptcd = " + model.getValue("/root/send/globalinstance/instance1"));
  373. //
  374. // astGetComboList( new Array("T0001"), new Array("/root/init/rsrvidinfo"), suppdeptcd );
  375. // submit("TRAAA00001", false);
  376. //
  377. // var idx_rsrv = 0;
  378. // var rsrvidCnt = getNodesetCount("/root/init/rsrvidinfo/T0001");
  379. // for( var i = 1 ; i<= rsrvidCnt ; i++){
  380. // if( model.getValue("/root/init/rsrvidinfo/T0001["+ i +"]/cdid") == getUserId() ){
  381. // idx_rsrv++;
  382. // }
  383. // }
  384. //
  385. // if( idx_rsrv == 0 ){
  386. // btn_save.disabled = true;
  387. // }
  388. //end
  389. model.refresh();
  390. ]]>
  391. </script>
  392. <submission id="TXAEB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  393. <submission id="TRAEB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/examcurecdlist"/>
  394. <submission id="TRZBC00101"/>
  395. <submission id="TRZBC00122"/>
  396. <!-- <bind id="bind_prcpexecdeptcd" ref="/root/main/examcurecdlist/item/prcpexecdeptcd" readonly="../prcpexecdeptcd!=''"/> -->
  397. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  398. <submission id="TRAEB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/bodypartlist"/>
  399. <submission id="TRAEB00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
  400. <submission id="TRAEB00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/comcd_info"/>
  401. <submission id="TRAEB00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchrsltclscd1" replace="instance" resultref="/root/init/comcd_info2"/>
  402. <!-- Section, Modal 등의 공통정보를 가져온다 -->
  403. <!-- 결과조회 구분코드 조회 20100904 장준원 추가 root.init.cmb_info2.initrsltgb 인스턴스 추가i-->
  404. <submission id="TRAEA01313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
  405. <submission id="TRAAA00001"/>
  406. </model>
  407. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  408. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  409. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  410. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  411. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  412. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  413. <script type="javascript">
  414. <![CDATA[
  415. function fSrchDrInfo() {
  416. /* @group : 검사치료코드 제 3판독의 등록
  417. * @ver :
  418. * @by : 장준원
  419. * @-----------------------------------
  420. * @type : function
  421. * @access : public
  422. * @desc : 제 3판독의를 통한 PACS 오더 전달..
  423. */
  424. model.resetInstanceNode("/root/main/userpopupinfo"); // Instance 초기화
  425. model.removeNodeset("/root/main/userinfolist/list"); // Instance 초기화
  426. model.setValue("/root/main/userpopupinfo/param", "_OneS"); // 사용자 한 명만을 검색하기 위한 파라미터 설정
  427. modal("SPZSU10103", "", "200", "200", "SPZSU10103", "/root/main/userpopupinfo", "/root/main/temp");
  428. var iParam = getParameter("SPZSU10103_");
  429. setCSVToNode("/root/main/userinfolist", iParam);
  430. clearParameter("SPZSU10103_");
  431. }
  432. function fCheckExCuCd() {
  433. var srchLength1 = model.instances(0).selectNodes( "/root/main/examcurecdlist/item" ).length;
  434. var msg = "";
  435. var msgCnt = 0;
  436. for ( var i = 1 ; i <= srchLength1; i++ ) {
  437. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/excucd") == "" ) {
  438. messageBox("검사코드[필수입력사항]를 입력 해야 합니다.","I999");
  439. return "1";
  440. }
  441. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/excucdnm") == "" ) {
  442. messageBox("["+model.getValue("/root/main/examcurecdlist/item["+i+"]/excucd")+"]코드의 검사코드명칭[필수입력사항]를 입력 해야 합니다.","I999");
  443. return "1";
  444. }
  445. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/prcpexecdeptcd") == "" ) {
  446. messageBox("["+model.getValue("/root/main/examcurecdlist/item["+i+"]/excucd")+"]코드의 시행부서코드[필수입력사항]를 선택 해야 합니다.","I999");
  447. return "1";
  448. }
  449. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/excuclscd") == "" ) {
  450. model.setValue("/root/main/examcurecdlist/item["+i+"]/excuclscd", "-");
  451. }
  452. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsltclscd1") == "" ) {
  453. model.setValue("/root/main/examcurecdlist/item["+i+"]/rsltclscd1", "-");
  454. }
  455. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsltclscd2") == "" ) {
  456. model.setValue("/root/main/examcurecdlist/item["+i+"]/rsltclscd2", "-");
  457. }
  458. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/pacsnocretyn") == "N" ) {
  459. model.setValue("/root/main/examcurecdlist/item[" + i + "]/etceqmtifyn", "-");
  460. }else{
  461. if (model.getValue("/root/main/examcurecdlist/item[" + i + "]/etceqmtifyn") == "-"){
  462. messageBox("Pacs연동시 장비구분은 필수 선택항목입니다.", "E999", "");
  463. return "1";
  464. }
  465. }
  466. /*
  467. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd") == "" || model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd") == "-") {
  468. }else{
  469. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvexmptmplcd") == "" || model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvexmptmplcd") == "-") {
  470. }else{
  471. messageBox("예약예문은 단독 또는 멀티 두가지를 선택할 수 없습니다.", "E999", "");
  472. return "1";
  473. }
  474. }
  475. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvexmptmplcd") == "" || model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvexmptmplcd") == "-") {
  476. }else{
  477. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd") == "" || model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd") == "-") {
  478. }else{
  479. messageBox("예약예문은 단독 또는 멀티 두가지를 선택할 수 없습니다.", "E999", "");
  480. return "1";
  481. }
  482. }
  483. */
  484. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd") == "" ){
  485. model.setValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd", "-");
  486. }
  487. // 미수예약 및 당일수납 체크 변경시 확인
  488. var rsrvFlag = model.getValue("/root/main/examcurecdlist/item[" + i + "]/rcptrsrvyn") != model.getValue("/root/main/examcurecdlist/item[" + i + "]/bfrcptrsrvyn");
  489. var dayFlag = model.getValue("/root/main/examcurecdlist/item[" + i + "]/prcptdayrcptyn") != model.getValue("/root/main/examcurecdlist/item[" + i + "]/bfprcptdayrcptyn");
  490. if (rsrvFlag || dayFlag) {
  491. msgCnt++;
  492. if (msgCnt < 11) {
  493. msg += ( msg != "" ? "\n" : "" );
  494. msg += "[ " + i + " ] 행 - ";
  495. msg += ( rsrvFlag ? "[ 미수예약 ]" : "" );
  496. msg += ( dayFlag ? " " : "" );
  497. msg += ( dayFlag ? "[ 당일수납 ]" : "" );
  498. } else if (msgCnt == 11) {
  499. msg += "\n...";
  500. }
  501. }
  502. if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd") == "" ){
  503. model.setValue("/root/main/examcurecdlist/item["+i+"]/rsrvmultitmplcd", "-");
  504. }
  505. // if ( model.getValue("/root/main/examcurecdlist/item["+i+"]/excuroomcd") == "" ) {
  506. // messageBox("["+model.getValue("/root/main/examcurecdlist/item["+i+"]/excucd")+"]코드의 검사,치료실코드[필수입력사항]를 선택 해야 합니다.","I999");
  507. // return "1";
  508. // }
  509. }
  510. if (msg != "") {
  511. if (messageBox("아래와 같은 변경 사항이 있습니다.\n\n" + msg + "\n\n진행하시겠습니까?", "Q999") != 6) {
  512. return "1";
  513. }
  514. }
  515. }
  516. ]]>
  517. </script>
  518. </xhtml:head>
  519. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  520. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  521. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  522. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  523. <line id="line13" class="line_4" style="x1:1117px; y1:7px; x2:1117px; y2:29px; "/>
  524. <button id="btn_sea" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
  525. <caption>조회</caption>
  526. <script type="javascript" ev:event="DOMActivate">
  527. <![CDATA[
  528. // 2014/11/20 이정택 추가(원무과로 로그인시에 지원부서를 먼저 선택 후 검색 할 수 있도록 제어)
  529. if(getUserInfo("dutplcecd")=='4040300000' || getUserInfo("dutplcecd")=='4040326000' || getUserInfo("userid")=='PAM'){
  530. if(cmb_deptcd.value ==null || cmb_deptcd.value=="" || cmb_deptcd.value=="4040300000" || cmb_deptcd.value=="4040326000" || cmb_deptcd.value=="3170000000"){ // 검사통합예약실 : 3170000000
  531. messageBox("검색은 지원부서 선택 후 가능합니다.", "E");
  532. return;
  533. }
  534. }
  535. // 2014/11/20 이정택 추가(원무과로 로그인시에 지원부서를 먼저 선택 후 검색 할 수 있도록 제어)
  536. model.removeNodeset("/root/main/examcurecdlist/item");
  537. if ( model.getValue("/root/send/srchexamcurecd") == "" ) {
  538. model.setValue("/root/send/srchexamcurecd","%");
  539. }else {
  540. model.setValue("/root/send/srchexamcurecd", "%"+model.getValue("/root/send/srchexamcurecd").toUpperCase()+"%");
  541. }
  542. if ( model.getValue("/root/send/srchexamcurenm") == "" ) {
  543. model.setValue("/root/send/srchexamcurenm","%");
  544. }else {
  545. model.setValue("/root/send/srchexamcurenm", "%"+model.getValue("/root/send/srchexamcurenm")+"%");
  546. }
  547. submit("TRAEB00201");
  548. model.setValue("/root/send/srchexamcurecd","");
  549. model.setValue("/root/send/srchexamcurenm","");
  550. for (var i = 1; i < grd_examcurecdlist.rows; i ++){
  551. grd_examcurecdlist.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_n.gif";
  552. }
  553. grd_examcurecdlist.topRow = 1;
  554. model.refresh();
  555. ]]>
  556. </script>
  557. </button>
  558. <caption id="caption2" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">검사코드 :</caption>
  559. <input id="ipt_srchexamcurecd" ref="/root/send/srchexamcurecd" class="input_search" imemode="alpha" style="left:100px; top:10px; width:115px; height:19px; ">
  560. <script type="javascript" ev:event="onkeyup">
  561. <![CDATA[
  562. inputEnterKey("btn_sea", "DOMActivate");
  563. ]]>
  564. </script>
  565. <hint>
  566. <![CDATA[검사코드12자리입력가능]]>
  567. </hint>
  568. </input>
  569. <input id="ipt_srchexamcurenm" ref="/root/send/srchexamcurenm" class="input_search" style="left:331px; top:10px; width:149px; height:19px; ">
  570. <script type="javascript" ev:event="onkeyup">
  571. <![CDATA[
  572. inputEnterKey("btn_sea", "DOMActivate");
  573. ]]>
  574. </script>
  575. <hint>
  576. <![CDATA[검사코드12자리입력가능]]>
  577. </hint>
  578. </input>
  579. <caption id="caption3" class="search_name" style="left:227px; top:10px; width:100px; height:17px; ">검사코드명 :</caption>
  580. <button id="button1" visibility="hidden" style="left:665px; top:5px; width:100px; height:20px; ">
  581. <caption>button1</caption>
  582. <script type="javascript" ev:event="DOMActivate">
  583. <![CDATA[
  584. //alert(grd_examcurecdlist.rowstatus(grd_examcurecdlist.row));
  585. ]]>
  586. </script>
  587. </button>
  588. <caption id="caption4" class="search_name" style="left:915px; top:10px; width:100px; height:17px; ">구/신코드 :</caption>
  589. <select1 id="combo1" ref="/root/send/newoldyb" appearance="minimal" style="left:1020px; top:10px; width:90px; height:19px; ">
  590. <choices>
  591. <item>
  592. <label>신코드</label>
  593. <value>1</value>
  594. </item>
  595. <item>
  596. <label>구코드</label>
  597. <value>2</value>
  598. </item>
  599. <item>
  600. <label>전체</label>
  601. <value/>
  602. </item>
  603. </choices>
  604. </select1>
  605. <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" appearance="minimal" style="left:570px; top:10px; width:125px; height:19px; ">
  606. <choices>
  607. <itemset nodeset="/root/init/cmb_info/suppdept">
  608. <label ref="depthngnm"/>
  609. <value ref="suppdeptcd"/>
  610. </itemset>
  611. </choices>
  612. <script type="javascript" ev:event="xforms-value-changed">
  613. <![CDATA[
  614. model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
  615. submit("TRAEA01301", false);
  616. btn_sea.dispatch("DOMActivate");
  617. ]]>
  618. </script>
  619. </select1>
  620. <caption id="caption5" class="search_name" style="left:485px; top:10px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">지원부서 :</caption>
  621. <caption id="caption7" class="search_name" style="left:703px; top:10px; width:73px; height:17px; ">검사실 :</caption>
  622. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" navindex="1" appearance="minimal" editmode="input" style="left:780px; top:10px; width:120px; height:19px; ">
  623. <choices>
  624. <itemset nodeset="/root/init/cmb_info/initexecroom">
  625. <label ref="excuroomcdnm"/>
  626. <value ref="excuroomcdid"/>
  627. </itemset>
  628. </choices>
  629. <script type="javascript" ev:event="xforms-value-changed">
  630. <![CDATA[
  631. btn_sea.dispatch("DOMActivate");
  632. ]]>
  633. </script>
  634. </select1>
  635. </group>
  636. <line id="line1" class="line_1" style="x1:1px; y1:69px; x2:1194px; y2:69px; "/>
  637. <!-- 결과조회 구분코드 조회 20100904 장준원 추가 root.main.examcurecdlist.item 과 root.hidden.item에 rsltdispyn rsltdispgbn 인스턴스 추가i-->
  638. <datagrid id="grd_examcurecdlist" nodeset="/root/main/examcurecdlist/item" caption="^코드^검사명^기본설정^기본설정^기본설정^기본설정^기본설정^기본설정^기본설정^기본설정^기본설정^기본설정^분류^분류^분류^분류^분류^분류^분류^분류^판독/대출^결과설정^결과설정^결과설정^결과설정^결과설정^결과설정^결과설정^결과설정^결과조회^결과조회^통계^통계^통계^통계^통계^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^예약설정^PACS설정^PACS설정^PACS설정^현재일자^타검사^검통응급^검통건진^당뇨체크^골밀도^진료^시행부서^시행부서^다음치료실^비고^caption1^caption2^주의사항^saveflag^grupsnglflag|^코드^검사명^검사/치료실^검사부위/품목^실시기준^미수접수^미수예약^미수예약^오늘결과^당일수납^당일수납^예약구분^분류코드^대^중^구분^상세내역^대체코드^조영제^자동배정^배정검사실^SECTION^선택의^결과Tmpl^결과Tmpl^내시경서식^OCR서식^CDIS I/F^판독의3^판독의명^조회여부^조회구분^대분류^중분류^부위^촬영^치료횟수^예약^통합검사/치료실^자체검사/치료실^나이제한/치료실^소요시간^예약예문^멀티예약예문^실시자명^출력장수^금식^관장^동의서^수면^협의^변경/취소 제한일수^Modality^I/F^장비구분^적용여부^표시여부^표시 여부^표시여부^유무^검사유무^예약유무^시행부서^시행부서^다음치료실^비고^부서코드^종료일자^주의사항^saveflag^grupsnglflag" colsep="^" colwidth="17, 85, 190, 76, 84, 57, 60, 0, 55, 54, 0, 58, 57, 57, 47, 44, 55, 61, 56, 42, 55, 62, 69, 56, 111, 100, 57, 58, 57, 67, 54, 64, 63, 63, 63, 37, 62, 53, 43, 100, 100, 100, 63, 54, 100, 77, 70, 30, 32, 75, 30, 30, 119, 59, 58, 100, 61, 57, 63, 59, 61, 70, 61, 100, 90, 100, 308, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:72px; width:1194px; height:667px; ">
  639. <col ref="update" style="background-image:../../../com/commonweb/images/icon_n.gif; background-position:center; "/>
  640. <col imemode="alpha" ref="excucd" type="input"/>
  641. <col ref="excucdnm" type="input"/>
  642. <col editmode="input" ref="excuroomcd" type="combo">
  643. <choices>
  644. <itemset nodeset="/root/init/cmb_info/initexecroom">
  645. <label ref="excuroomcdnm"/>
  646. <value ref="excuroomcdid"/>
  647. </itemset>
  648. </choices>
  649. </col>
  650. <col ref="excupartcd" type="combo">
  651. <choices>
  652. <itemset nodeset="/root/init/bodypartlist/bodypart">
  653. <label ref="basecdflagdesc"/>
  654. <value ref="basecd"/>
  655. </itemset>
  656. </choices>
  657. </col>
  658. <col ref="execbaseflag" type="combo">
  659. <choices>
  660. <itemset nodeset="/root/init/baseinfo/initexecbaseflag/A0071">
  661. <label ref="cdnm"/>
  662. <value ref="cdid"/>
  663. </itemset>
  664. </choices>
  665. </col>
  666. <col checkvalue="Y,N" disabled="true" ref="rcptacptyn" type="checkbox"/>
  667. <col ref="bfrcptrsrvyn"/>
  668. <col checkvalue="Y,N" ref="rcptrsrvyn" type="checkbox"/>
  669. <col checkvalue="Y,N" ref="prcptdayaftrcptyn" type="checkbox"/>
  670. <col ref="bfprcptdayrcptyn"/>
  671. <col checkvalue="Y,N" ref="prcptdayrcptyn" type="checkbox"/>
  672. <col ref="rsrvplceflag" type="combo">
  673. <choices>
  674. <itemset nodeset="/root/init/baseinfo/initrsrvplceflag/A0073">
  675. <label ref="cdnm"/>
  676. <value ref="cdid"/>
  677. </itemset>
  678. </choices>
  679. </col>
  680. <col editmode="inputsearch" ref="excuclscd" type="combo">
  681. <choices>
  682. <itemset nodeset="/root/init/baseinfo/excuclscd/A0463">
  683. <label ref="cdnm"/>
  684. <value ref="cdid"/>
  685. </itemset>
  686. </choices>
  687. </col>
  688. <col ref="lrgcd" type="combo">
  689. <choices>
  690. <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
  691. <label ref="excuroomgrpcdnm"/>
  692. <value ref="excuroomgrpcdid"/>
  693. </itemset>
  694. </choices>
  695. </col>
  696. <col ref="mdlcd" type="combo">
  697. <choices>
  698. <itemset nodeset="/root/init/bodypartlist/bodypart">
  699. <label ref="basecdflagdesc"/>
  700. <value ref="basecd"/>
  701. </itemset>
  702. </choices>
  703. </col>
  704. <col ref="ioexamflag" type="combo">
  705. <choices>
  706. <itemset nodeset="/root/init/baseinfo/initioexamflag/A0072">
  707. <label ref="cdnm"/>
  708. <value ref="cdid"/>
  709. </itemset>
  710. </choices>
  711. </col>
  712. <col ref="excucdrem" type="inputbutton"/>
  713. <col ref="angioaltprcpcd" type="inputbutton"/>
  714. <col checkvalue="Y,N" ref="angiouseyn" type="checkbox"/>
  715. <col checkvalue="Y,N" disabled="true" ref="autroomassgyn" type="checkbox"/>
  716. <col ref="autroomassgcd" type="inputbutton"/>
  717. <col ref="section" type="combo">
  718. <choices>
  719. <itemset nodeset="/root/init/cmb_info2">
  720. <label ref="initsection/cdnm"/>
  721. <value ref="initsection/cdid"/>
  722. </itemset>
  723. </choices>
  724. </col>
  725. <col ref="specdrcd" type="inputbutton"/>
  726. <col ref="rslttmplcd" type="inputbutton"/>
  727. <col ref="rslttmplcdnm" type="inputbutton"/>
  728. <col disabled="true" ref="rslttmplcd2nd" type="inputbutton"/>
  729. <col ref="ocrtmplcd" type="inputbutton" visibility="hidden"/>
  730. <col ref="eqmtifyn" type="combo">
  731. <choices>
  732. <itemset nodeset="/root/init/baseinfo/initeqmtifyn/A0502">
  733. <label ref="cdnm"/>
  734. <value ref="cdid"/>
  735. </itemset>
  736. </choices>
  737. </col>
  738. <col disabled="true" ref="readdrid3" type="input"/>
  739. <col ref="readdrid3nm" type="inputbutton"/>
  740. <col checkvalue="Y,N" ref="rsltdispyn" type="checkbox"/>
  741. <col ref="rsltdispgbn" type="combo">
  742. <choices>
  743. <itemset nodeset="/root/init/cmb_info2">
  744. <label ref="initrsltgb/cdnm"/>
  745. <value ref="initrsltgb/cdid"/>
  746. </itemset>
  747. </choices>
  748. </col>
  749. <col editmode="inputsearch" ref="rsltclscd1" type="combo">
  750. <choices>
  751. <itemset nodeset="/root/init/cmb_info/initsystgrd">
  752. <label ref="rsltclsnm1"/>
  753. <value ref="rsltclscd1"/>
  754. </itemset>
  755. </choices>
  756. </col>
  757. <col editmode="inputsearch" ref="rsltclscd2" type="combo">
  758. <choices>
  759. <itemset nodeset="/root/init/cmb_info/initsystmdl">
  760. <label ref="rsltclsnm2"/>
  761. <value ref="rsltclscd2"/>
  762. </itemset>
  763. </choices>
  764. </col>
  765. <col ref="partcntstats" type="input"/>
  766. <col ref="phocntstats" type="input"/>
  767. <col ref="curetims" type="input" format="#,###"/>
  768. <col checkvalue="Y,N" ref="rsrvexcupossyn" type="checkbox"/>
  769. <col ref="rsrvexcuroomposscd" type="inputbutton"/>
  770. <col ref="rsrvexcuroomposscd2" type="inputbutton"/>
  771. <col ref="rsrvsono" type="inputbutton"/>
  772. <col ref="excutm" type="input"/>
  773. <col ref="rsrvexmptmplcd" type="inputbutton"/>
  774. <col ref="rsrvmultitmplcd" type="inputbutton"/>
  775. <col ref="rsrvexmptmplexecrnm" type="input"/>
  776. <col ref="rsrvexmpcnt" type="input"/>
  777. <col checkvalue="Y,N" ref="fastyn" type="checkbox" visibility="hidden"/>
  778. <col checkvalue="Y,N" ref="enemayn" type="checkbox" visibility="hidden"/>
  779. <col ref="rsrvaprvtmplcd" type="inputbutton" visibility="hidden"/>
  780. <col checkvalue="Y,N" ref="slepyn" type="checkbox"/>
  781. <col checkvalue="Y,N" ref="dcusrsrvyn" type="checkbox"/>
  782. <col ref="rsrvupdtcncllimdayno" type="input" style="text-align:right; "/>
  783. <col ref="modality" type="combo">
  784. <choices>
  785. <itemset nodeset="/root/init/cmb_info2/initmodal">
  786. <label ref="cdnm"/>
  787. <value ref="cdid"/>
  788. </itemset>
  789. </choices>
  790. </col>
  791. <col ref="pacsnocretyn" type="combo">
  792. <choices>
  793. <itemset nodeset="/root/init/baseinfo/initpacsnocretyn/A0501">
  794. <label ref="cdnm"/>
  795. <value ref="cdid"/>
  796. </itemset>
  797. </choices>
  798. </col>
  799. <col ref="etceqmtifyn" type="combo">
  800. <choices>
  801. <item>
  802. <label>-</label>
  803. <value>-</value>
  804. </item>
  805. <item>
  806. <label>Main Pacs</label>
  807. <value>0</value>
  808. </item>
  809. <item>
  810. <label>Cardiac Pacs</label>
  811. <value>1</value>
  812. </item>
  813. </choices>
  814. </col>
  815. <col checkvalue="Y,N" ref="prestddappyn" type="checkbox"/>
  816. <col checkvalue="Y,N" ref="anotestyn" type="checkbox"/>
  817. <col checkvalue="Y,N" ref="sytserdispyn" type="checkbox"/>
  818. <col checkvalue="Y,N" ref="sytshealdispyn" type="checkbox"/>
  819. <col checkvalue="Y,N" ref="glycostestyn" type="checkbox"/>
  820. <col checkvalue="Y,N" ref="bonedentestyn" type="checkbox"/>
  821. <col checkvalue="Y,N" disabled="true" ref="emryn" type="checkbox"/>
  822. <col disabled="true" ref="prcpexecdeptcd" type="combo">
  823. <choices>
  824. <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
  825. <label ref="prcpexecdeptcdnm"/>
  826. <value ref="prcpexecdeptcdid"/>
  827. </itemset>
  828. </choices>
  829. </col>
  830. <col ref="prcpexecdeptcd1" type="inputbutton"/>
  831. <col editmode="inputsearch" ref="nextexcuroomcd" type="combo">
  832. <choices>
  833. <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
  834. <label ref="excuroomgrpcdnm"/>
  835. <value ref="excuroomgrpcdid"/>
  836. </itemset>
  837. </choices>
  838. </col>
  839. <col ref="excurem" type="input"/>
  840. <col ref="basesuppdeptcd" visibility="hidden"/>
  841. <col ref="excutodd" visibility="hidden"/>
  842. <col ref="excupatrem" type="inputbutton"/>
  843. <col ref="saveflag" visibility="hidden"/>
  844. <col ref="grupsnglflag" visibility="hidden"/>
  845. <script type="javascript" ev:event="xforms-value-changed">
  846. <![CDATA[
  847. var iRow = grd_examcurecdlist.row ;
  848. var colidx = grd_examcurecdlist.col;
  849. var image = grd_examcurecdlist.cellStyle("background-image", grd_examcurecdlist.row, 1);
  850. image = image.substr(image.length - 10, image.length);
  851. if ( grd_examcurecdlist.rowstatus(iRow) == 1 ) {
  852. grd_examcurecdlist.cellStyle("background-image", grd_examcurecdlist.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  853. }else if ( grd_examcurecdlist.rowstatus(iRow) == 2 ) {
  854. grd_examcurecdlist.cellStyle("background-image", grd_examcurecdlist.row, 1) = "../../../com/commonweb/images/icon_u.gif";
  855. }else if ( grd_examcurecdlist.rowstatus(iRow) == 4 ) {
  856. grd_examcurecdlist.cellStyle("background-image", grd_examcurecdlist.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  857. }
  858. /*
  859. * 장비연동(CDIS/PACS) 중복 체크
  860. */
  861. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "eqmtifyn") {
  862. var row = grd_examcurecdlist.row - 1;
  863. var idx = model.getValue("/root/main/examcurecdlist/item[" + row + "]/eqmtifyn");
  864. var eqmtifyn = model.getValue("/root/main/examcurecdlist/item[" + row + "]/eqmtifyn");
  865. var pacsnocretyn = model.getValue("/root/main/examcurecdlist/item[" + row + "]/pacsnocretyn");
  866. if ( eqmtifyn != "N" ) {
  867. if ( pacsnocretyn != "N" ) {
  868. messageBox("검사코드에 CDIS 장비연동과 PACS연동을 동시적용 불가입니다. PACS연동을 해제합니다.","I999");
  869. model.SetValue("/root/main/examcurecdlist/item[" + row + "]/pacsnocretyn", "N");
  870. }
  871. }
  872. }
  873. var irow = grd_examcurecdlist.row - 1;
  874. if (model.getValue("/root/main/examcurecdlist/item[" + irow + "]/pacsnocretyn") == "N" ) {
  875. model.setValue("/root/main/examcurecdlist/item[" + irow + "]/etceqmtifyn", "-");
  876. }
  877. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "pacsnocretyn") {
  878. var row = grd_examcurecdlist.row - 1;
  879. var idx = model.getValue("/root/main/examcurecdlist/item[" + row + "]/pacsnocretyn");
  880. var pacsnocretyn = model.getValue("/root/main/examcurecdlist/item[" + row + "]/pacsnocretyn");
  881. var eqmtifyn = model.getValue("/root/main/examcurecdlist/item[" + row + "]/eqmtifyn");
  882. if ( pacsnocretyn != "N" ) {
  883. if ( eqmtifyn != "N" ) {
  884. messageBox("검사코드에 CDIS 장비연동과 PACS연동을 동시적용 불가입니다. CDIS연동을 해제합니다.","I999");
  885. model.SetValue("/root/main/examcurecdlist/item[" + row + "]/eqmtifyn", "N");
  886. }
  887. }
  888. }
  889. /**
  890. * 분류코드1,2 가져오기.
  891. */
  892. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsltclscd1") {
  893. var row = grd_examcurecdlist.row - 1;
  894. model.setValue("/root/main/examcurecdlist/item[" + row + "]/rsltclscd2", "");
  895. //alert("1==> " + row);
  896. var idx = model.getValue("/root/main/examcurecdlist/item[" + row + "]/rsltclscd1");
  897. //alert("2==> " + idx);
  898. //alert("2==> " + grd_examcurecdlist.colRef("rsltclscd2"));
  899. //grd_examcurecdlist.cellComboNodeset(grd_examcurecdlist.row, grd_examcurecdlist.colRef("rsltclscd2")) = "/root/init/baseinfo1/rsltclscd2/A0482[@supcd='"+idx+"']/";
  900. //grd_examcurecdlist.cellComboNodeset(grd_examcurecdlist.row, grd_examcurecdlist.colRef("rsltclscd2")) = "/root/hidden/init/comcd/A0482[@supcd='"+idx+"']";
  901. //grd_examcurecdlist.cellComboNodeset(grd_examcurecdlist.row, grd_examcurecdlist.colRef("rsltclscd2")) = "/root/init/baseinfo1/rsltclscd2/A0482[supcd='"+idx+"']";
  902. var idx1 = "";
  903. //grd_examcurecdlist.cellComboNodeset(grd_examcurecdlist.row, grd_examcurecdlist.colRef("rsltclscd2")) = "/root/init/cmb_info/initsystmdl[basecdcnts='"+idx+" or basecdcnts = "+idx1+"']";
  904. //grd_examcurecdlist.cellComboNodeset(grd_examcurecdlist.row, grd_examcurecdlist.colRef("rsltclscd2")) = "/root/init/cmb_info/initsystmdl[basecdcnts='"+idx+"']";
  905. grd_examcurecdlist.cellComboNodeset(grd_examcurecdlist.row, grd_examcurecdlist.colRef("rsltclscd2")) = "/root/hidden1/initsystmdl[basecdcnts='"+idx+"']";
  906. /*
  907. var rownum = grd_examcurecdlist.row - 1;
  908. var rsltclscd1 = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/rsltclscd1");
  909. //alert(rsltclscd1);
  910. if ( rsltclscd1 == "" ) return;
  911. model.resetInstanceNode("/root/init/comcd_info2/initcomcd");
  912. model.setValue("/root/send/srchrsltclscd1", rsltclscd1);
  913. submit("TRAEB00207");
  914. var srchLength1 = model.instances(0).selectNodes( "/root/init/comcd_info/initcomgrupcd" ).length;
  915. for ( var i = 1; i <= srchLength1; i++ ) {
  916. if ( model.getValue("/root/init/comcd_info/initcomgrupcd["+i+"]/comgrupcdid").getTrim() == rsltclscd1 ) {
  917. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/rsltclscdnm1", model.getValue("/root/init/comcd_info/initcomgrupcd["+i+"]/comgrupcdnm"));
  918. }
  919. }
  920. model.refresh();
  921. */
  922. }
  923. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsltclscd2") {
  924. /*
  925. var rownum = grd_examcurecdlist.row - 1;
  926. var rsltclscd2 = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/rsltclscd2");
  927. //alert(rsltclscd1);
  928. if ( rsltclscd2 == "" ) return;
  929. var srchLength1 = model.instances(0).selectNodes( "/root/init/comcd_info2/initcomcd" ).length;
  930. for ( var i = 1; i <= srchLength1; i++ ) {
  931. if ( model.getValue("/root/init/comcd_info2/initcomcd["+i+"]/comcdid").getTrim() == rsltclscd2 ) {
  932. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/rsltclscdnm2", model.getValue("/root/init/comcd_info2/initcomcd["+i+"]/comcdnm"));
  933. }
  934. }
  935. model.refresh();
  936. */
  937. }
  938. //2015/02/11 이정택 M-SET처방의 싱글 관리추가
  939. if(colidx==grd_examcurecdlist.colRef("prcptdayrcptyn") && grd_examcurecdlist.valueMatrix(grd_examcurecdlist.row, grd_examcurecdlist.colRef("grupsnglflag"))=='M'){
  940. if(grd_examcurecdlist.valueMatrix(grd_examcurecdlist.row, grd_examcurecdlist.colRef("prcptdayrcptyn"))=='Y'){
  941. setParameter("excucd", grd_examcurecdlist.valueMatrix(grd_examcurecdlist.row, grd_examcurecdlist.colRef("excucd")));
  942. modal("SPAEB00020");
  943. }
  944. }
  945. //2015/02/11 이정택 M-SET처방의 싱글 관리추가
  946. model.refresh();
  947. ]]>
  948. </script>
  949. <script type="javascript" ev:event="onbuttonclick">
  950. <![CDATA[
  951. var colidx = grd_examcurecdlist.col;
  952. var rowidx = grd_examcurecdlist.row -1;
  953. /**
  954. * 검사가능장비코드 가져오기.
  955. if( colidx == 6)
  956. {
  957. alert('장비코드');
  958. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  959. //open("SPAEA02301", "","","", "SPAEA02301", "/root/send/windowloadinstance","/root/init/windowloadinstance");
  960. }
  961. */
  962. /**
  963. * 제3판독의 가져오기.
  964. */
  965. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "readdrid3nm")
  966. {
  967. var rownum = grd_examcurecdlist.row - 1;
  968. //var readdrid3 = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/readdrid3");
  969. fSrchDrInfo();
  970. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/readdrid3",
  971. model.getValue("/root/main/userinfolist/list/userid") ); // 사용자 ID
  972. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/readdrid3nm",
  973. model.getValue("/root/main/userinfolist/list/usernm") ); // 사용자 이름
  974. grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"update");
  975. grd_examcurecdlist.dispatch("xforms-value-changed");
  976. model.refresh();
  977. }
  978. /**
  979. * 대체코드 가져오기.
  980. */
  981. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "angioaltprcpcd")
  982. {
  983. var rownum = grd_examcurecdlist.row - 1;
  984. var angiouseyn = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/angiouseyn");
  985. if ( angiouseyn != "Y" ) {
  986. messageBox("[조영제사용여부]를 선택하십시오.","I999");
  987. return true;
  988. }
  989. modal("SPAEA02302", "", "200", "200", "SPAEA02302","","");
  990. grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"update");
  991. grd_examcurecdlist.dispatch("xforms-value-changed");
  992. model.refresh();
  993. }
  994. /**
  995. * 배정가능검사실코드 가져오기.
  996. */
  997. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "autroomassgcd")
  998. {
  999. var rownum = grd_examcurecdlist.row - 1;
  1000. var assgyn = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/autroomassgyn");
  1001. if ( assgyn != "Y" ) {
  1002. messageBox("[자동방배정여부]를 선택하십시오.","I999");
  1003. return true;
  1004. }
  1005. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1006. }
  1007. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rslttmplcd")
  1008. {
  1009. setParameter("SPMMR01000_openerid", "SMAEB00200");
  1010. setParameter("SPMMR01000_param_flag", "F");
  1011. modal("SPMMR01000");
  1012. var rownum = grd_examcurecdlist.row - 1;
  1013. if(getParameter("SPMMR01000_formcd_rtn") != ""){
  1014. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/rslttmplcd", getParameter("SPMMR01000_formcd_rtn"));
  1015. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/rslttmplcdnm", getParameter("SPMMR01000_formnm_rtn"));
  1016. grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"update");
  1017. grd_examcurecdlist.dispatch("xforms-value-changed");
  1018. model.refresh();
  1019. }
  1020. }
  1021. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "ocrtmplcd")
  1022. {
  1023. /*
  1024. window.load( "../../../emr/medirecweb/xrw/SMMMR02500_서식리스트.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1025. if ( model.getValue("/root/hidden/parameters/formcd") == "" ) return;
  1026. var rownum = grd_examcurecdlist.row - 1;
  1027. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/ocrtmplcd",model.getValue("/root/hidden/parameters/formcd"));
  1028. model.refresh();
  1029. */
  1030. }
  1031. /**
  1032. * 20150921 권영애 선택진료의 가져오기.
  1033. */
  1034. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "specdrcd")
  1035. {
  1036. var rownum = grd_examcurecdlist.row - 1;
  1037. model.makeValue("/root/hidden/checkseq","57");
  1038. model.makeValue("/root/hidden/grupcdid","A0012");
  1039. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1040. }
  1041. /**
  1042. * 예약가능검사실코드 가져오기.
  1043. */
  1044. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvexcuroomposscd")
  1045. {
  1046. var rownum = grd_examcurecdlist.row - 1;
  1047. var assgyn = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/rsrvexcupossyn");
  1048. if ( assgyn != "Y" ) {
  1049. messageBox("[예약여부]를 선택하십시오.","I999");
  1050. return true;
  1051. }
  1052. model.makeValue("/root/hidden/checkseq","23");
  1053. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1054. }
  1055. /**
  1056. * 자체예약 검사/치료실 가져오기.
  1057. */
  1058. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvexcuroomposscd2")
  1059. {
  1060. var rownum = grd_examcurecdlist.row - 1;
  1061. var assgyn = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/rsrvexcupossyn");
  1062. if ( assgyn != "Y" ) {
  1063. messageBox("[예약여부]를 선택하십시오.","I999");
  1064. return true;
  1065. }
  1066. model.makeValue("/root/hidden/checkseq","55");
  1067. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1068. }
  1069. /**
  1070. * 나이제한 검사/치료실 가져오기.
  1071. */
  1072. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvsono")
  1073. {
  1074. var rownum = grd_examcurecdlist.row - 1;
  1075. model.makeValue("/root/hidden/checkseq","56");
  1076. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1077. }
  1078. /**
  1079. * 예약예문코드 가져오기.
  1080. */
  1081. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvexmptmplcd")
  1082. {
  1083. model.makeValue("/root/hidden/checkseq","26");
  1084. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1085. }
  1086. /**
  1087. * 멀티예약예문코드 가져오기.
  1088. */
  1089. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvmultitmplcd")
  1090. {
  1091. model.makeValue("/root/hidden/checkseq","27");
  1092. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1093. }
  1094. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvaprvtmplcd")
  1095. {
  1096. setParameter("formlistflag","true");
  1097. window.load( "../../../emr/medirecweb/xrw/SMMMR02500_서식리스트.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1098. var rownum = grd_examcurecdlist.row - 1;
  1099. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/rsrvaprvtmplcd", getParameter("formcd"));
  1100. grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"update");
  1101. grd_examcurecdlist.dispatch("xforms-value-changed");
  1102. model.refresh();
  1103. }
  1104. /**
  1105. * 검사코드별주의사항 입력
  1106. */
  1107. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "excupatrem"){
  1108. model.setValue("/root/send/excupatrem", "");
  1109. grp_excupatrem.visible = true;
  1110. var rownum = grd_examcurecdlist.row - 1;
  1111. var excupatrem = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/excupatrem");
  1112. model.setValue("/root/send/excupatrem",excupatrem);
  1113. model.refresh();
  1114. }
  1115. // 2010.12.15 c y w 분류 상세내역 입력버튼 추가
  1116. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "excucdrem"){
  1117. model.setValue("/root/send/excucdrem", "");
  1118. grp_excucdrem.visible = true;
  1119. var rownum = grd_examcurecdlist.row - 1;
  1120. var excucdrem = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/excucdrem");
  1121. model.setValue("/root/send/excucdrem",excucdrem);
  1122. grd_examcurecdlist.addStatus( grd_examcurecdlist.row ,"update");
  1123. grd_examcurecdlist.dispatch("xforms-value-changed");
  1124. model.refresh();
  1125. }
  1126. // 2010.12.23 c y w 시행부서 팝업추가
  1127. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "prcpexecdeptcd1"){
  1128. modal("SPMMB02500");
  1129. if( model.getValue("/root/main/prcp/prcplist/prcpexecdeptcd") != ""){
  1130. model.setValue("/root/main/examcurecdlist/item["+ rowidx +"]/prcpexecdeptcd1", model.getValue("/root/main/prcp/prcplist/prcpexecdeptcd"));
  1131. model.setValue("/root/main/examcurecdlist/item["+ rowidx +"]/prcpexecdeptcd", model.getValue("/root/main/prcp/prcplist/prcpexecdeptcd"));
  1132. grd_examcurecdlist.addStatus( grd_examcurecdlist.row ,"update");
  1133. grd_examcurecdlist.dispatch("xforms-value-changed");
  1134. model.refresh();
  1135. }
  1136. }
  1137. /**
  1138. * 결과 tmpl 미리보기
  1139. * 20101013 -박재영
  1140. */
  1141. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rslttmplcdnm"){
  1142. var rownum = grd_examcurecdlist.row - 1;
  1143. var valu = model.getValue("/root/main/examcurecdlist/item["+rownum+"]/rslttmplcd");
  1144. if( valu != ""){
  1145. setParameter("openmode", "preview"); //오픈모드는 “newform”
  1146. setParameter("formcd", valu); //서식테이블의 formcd(서식코드)
  1147. modal("SSMMR01100", 1, 0, 0 ,"", "", "");
  1148. }
  1149. }
  1150. ]]>
  1151. </script>
  1152. <script type="javascript" ev:event="onclick">
  1153. <![CDATA[
  1154. //alert('onclick->'+grd_examcurecdlist.mouseCol);
  1155. var iRow = grd_examcurecdlist.row - 1 ;
  1156. //alert(iRow);
  1157. var colidx = grd_examcurecdlist.col;
  1158. // 자동방배정 체크박스
  1159. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "autroomassgyn") {
  1160. //alert('autroomassgcd');
  1161. var check = model.getValue("/root/main/examcurecdlist/item["+iRow+"]/autroomassgyn");
  1162. if ( check == "N" ) model.setValue("/root/main/examcurecdlist/item["+iRow+"]/autroomassgcd", "");
  1163. }
  1164. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rslttmplcd") {
  1165. //alert('rslttmplcd');
  1166. grd_examcurecdlist.addStatus(iRow, "update");
  1167. }
  1168. /* if(grd_examcurecdlist.mouseCol == 14){
  1169. if ( model.getValue("/root/main/examcurecdlist/item["+iRow+"]/autroomassgyn") == "Y" ) {
  1170. model.setValue("/root/main/examcurecdlist/item["+iRow+"]/autroomassgyn","N");
  1171. }else {
  1172. model.setValue("/root/main/examcurecdlist/item["+iRow+"]/autroomassgyn","Y");
  1173. }
  1174. grd_examcurecdlist.addStatus(iRow, "update");
  1175. }
  1176. */
  1177. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "ocrtmplcd") {
  1178. //alert('ocrtmplcd');
  1179. grd_examcurecdlist.addStatus(iRow, "update");
  1180. }
  1181. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "eqmtifyn") {
  1182. //alert('eqmtifyn');
  1183. grd_examcurecdlist.addStatus(iRow, "update");
  1184. }
  1185. // 예약여부 체크박스
  1186. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvexcupossyn") {
  1187. //alert('rsrvexcupossyn');
  1188. var check = model.getValue("/root/main/examcurecdlist/item["+iRow+"]/rsrvexcupossyn");
  1189. if ( check == "N" ) {
  1190. model.setValue("/root/main/examcurecdlist/item["+iRow+"]/rsrvexcuroomposscd", "");
  1191. model.setValue("/root/main/examcurecdlist/item["+iRow+"]/rsrvplceflag", "");
  1192. model.setValue("/root/main/examcurecdlist/item["+iRow+"]/excutm", "");
  1193. model.setValue("/root/main/examcurecdlist/item["+iRow+"]/rsrvexmptmplcd", "");
  1194. }
  1195. }
  1196. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvexcuroomposscd") {
  1197. //alert('rsrvexcuroomposscd');
  1198. grd_examcurecdlist.addStatus(iRow, "update");
  1199. }
  1200. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvexmptmplcd") {
  1201. //alert('rsrvexmptmplcd');
  1202. grd_examcurecdlist.addStatus(iRow, "update");
  1203. }
  1204. if(grd_examcurecdlist.colAttribute(colidx, "ref") == "rsrvaprvtmplcd") {
  1205. //alert('rsrvaprvtmplcd');
  1206. grd_examcurecdlist.addStatus(iRow, "update");
  1207. }
  1208. //2014/11/19 이정택 추가(원무과, 원무팀, PAM)
  1209. if(getUserInfo("dutplcecd")=='4040300000' || getUserInfo("dutplcecd")=='4040326000' || getUserInfo("userid")=='PAM'){
  1210. //이정택 추가(검사일수납 클릭시 미수예약도 같이 움직이도록 프로그램 수정)
  1211. if(grd_examcurecdlist.col==grd_examcurecdlist.colRef("prcptdayrcptyn")){
  1212. var row = grd_examcurecdlist.row;
  1213. grd_examcurecdlist.valueMatrix(row, grd_examcurecdlist.colRef("rcptrsrvyn"))=grd_examcurecdlist.valueMatrix(row, grd_examcurecdlist.colRef("prcptdayrcptyn"));
  1214. }
  1215. // 이정택 추가(미수예약 클릭시 검사일 수납항목을 체크하도록 프로그램 수정)
  1216. if(grd_examcurecdlist.col==grd_examcurecdlist.colRef("rcptrsrvyn")){
  1217. var row = grd_examcurecdlist.row;
  1218. if(grd_examcurecdlist.valueMatrix(row, grd_examcurecdlist.colRef("rcptrsrvyn"))=="N"){
  1219. if(grd_examcurecdlist.valueMatrix(row, grd_examcurecdlist.colRef("prcptdayrcptyn"))=="Y"){
  1220. messageBox("검사일 수납에 체크가 되어 있을시, 미수예약은 체크해제가\n불가능합니다.", "E");
  1221. grd_examcurecdlist.valueMatrix(row, grd_examcurecdlist.colRef("rcptrsrvyn"))=grd_examcurecdlist.valueMatrix(row, grd_examcurecdlist.colRef("prcptdayrcptyn"));
  1222. return;
  1223. }
  1224. }
  1225. }
  1226. }
  1227. //2014/11/19 이정택 추가
  1228. model.refresh();
  1229. ]]>
  1230. </script>
  1231. <script type="javascript" ev:event="onaftersort">
  1232. <![CDATA[
  1233. grd_examcurecdlist.gridToInstance();
  1234. ]]>
  1235. </script>
  1236. </datagrid>
  1237. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:146px; height:14px; ">검사/치료 코드 현황</caption>
  1238. <button id="btn_grdcopy" class="btn2_letter3" style="left:1018px; top:49px; width:53px; height:19px; ">
  1239. <caption>행복사</caption>
  1240. <script type="javascript" ev:event="DOMActivate">
  1241. <![CDATA[
  1242. model.resetInstanceNode("/root/hidden/item");
  1243. var grdrow = grd_examcurecdlist.row-1;
  1244. if (grdrow < 0){
  1245. messageBox("복사할 행을 선택하시기 바랍니다.", "E999", "");
  1246. return;
  1247. }
  1248. model.copyNode("/root/hidden/item","/root/main/examcurecdlist/item["+ grdrow +"]");
  1249. grd_examcurecdlist.insertItem(grdrow+1);
  1250. model.setValue("/root/hidden/item/excucd", "");
  1251. model.setValue("/root/hidden/item/excucdnm", "");
  1252. model.copyNode("/root/main/examcurecdlist/item["+ grdrow +"]","/root/hidden/item");
  1253. grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"insert");
  1254. grd_examcurecdlist.dispatch("xforms-value-changed");
  1255. model.refresh();
  1256. ]]>
  1257. </script>
  1258. </button>
  1259. <button id="btn_grdadd" class="btn2_letter3" visibility="hidden" style="left:644px; top:49px; width:53px; height:19px; ">
  1260. <caption>행추가</caption>
  1261. <script type="javascript" ev:event="DOMActivate">
  1262. <![CDATA[
  1263. // grd_examcurecdlist.addItem();
  1264. grd_examcurecdlist.addRow();
  1265. grd_examcurecdlist.cellStyle("background-image", grd_examcurecdlist.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  1266. //alert(model.getValue("/root/send/globalinstance/instance1"));
  1267. var cnt = parseInt(grd_examcurecdlist.row) - 1;
  1268. //alert('row->'+ cnt );
  1269. //alert(model.getValue("/root/main/examcurecdlist/item[" + cnt + "]/basesuppdeptcd"));
  1270. model.setValue("/root/main/examcurecdlist/item[" + cnt + "]/basesuppdeptcd",
  1271. model.getValue("/root/send/globalinstance/instance1") );
  1272. model.setValue("/root/main/examcurecdlist/item[" + cnt + "]/anotestyn", "Y" );
  1273. model.setValue("/root/main/examcurecdlist/item[" + cnt + "]/sytserdispyn", "N" );
  1274. model.setValue("/root/main/examcurecdlist/item[" + cnt + "]/sytshealdispyn", "N" );
  1275. model.setValue("/root/main/examcurecdlist/item[" + cnt + "]/excutodd", "99991231");
  1276. var irow = grd_examcurecdlist.row;
  1277. grd_examcurecdlist.row = irow;
  1278. grd_examcurecdlist.topRow = irow;
  1279. //model.refresh();
  1280. ]]>
  1281. </script>
  1282. </button>
  1283. <button id="btn_grddel" class="btn2_letter3" style="left:1072px; top:49px; width:53px; height:19px; ">
  1284. <caption>행삭제</caption>
  1285. <script type="javascript" ev:event="DOMActivate">
  1286. <![CDATA[
  1287. // grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"delete");
  1288. var row = grd_examcurecdlist.row;
  1289. grd_examcurecdlist.addStatus(row, "delete");
  1290. grd_examcurecdlist.cellStyle("background-image", grd_examcurecdlist.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  1291. ]]>
  1292. </script>
  1293. </button>
  1294. <button id="btn_selcalcscorcd" class="btn2_letter9" style="left:897px; top:49px; width:119px; height:19px; ">
  1295. <caption>검사코드조회및추가</caption>
  1296. <script type="javascript" ev:event="DOMActivate">
  1297. <![CDATA[
  1298. model.removenode("/root/temp/templst/list");
  1299. var sessiondept = model.getValue("/root/send/globalinstance/instance1");
  1300. fGetCalScorCd( "cd", "", "Y"/*bMultiyn*/ , "/root/temp/templst" /*vMultiDestXPath*/, "" /*vCdDestXPath*/, "" /*vNmDestXPath*/, "" /*vAmtDestXPath*/);
  1301. // 2010.11.19 c y w 검사코드 추가시 기본값셋팅
  1302. var tempcnt = getNodesetCount("/root/temp/templst");
  1303. for( var i = 1 ; i <= tempcnt ; i++ ) {
  1304. model.makeValue("/root/temp/templst/list["+ i +"]/rsltdispgbn" , model.getValue("/root/main/examcurecdlist/item[1]/rsltdispgbn") );
  1305. model.makeValue("/root/temp/templst/list["+ i +"]/prcpexecdeptcd" , model.getValue("/root/main/examcurecdlist/item[1]/prcpexecdeptcd") );
  1306. model.makeValue("/root/temp/templst/list["+ i +"]/prcpexecdeptcd1" , model.getValue("/root/main/examcurecdlist/item[1]/prcpexecdeptcd") );
  1307. // alert( model.getValue("/root/main/examcurecdlist/item[1]/prcpexecdeptcd") );
  1308. }
  1309. fSetOcd(grd_examcurecdlist , "/root/temp/templst/list" , 2, "Y", "excucd", "excucdnm", sessiondept, "1" );
  1310. model.refresh();
  1311. ]]>
  1312. </script>
  1313. </button>
  1314. <button id="button2" class="btn2_letter9" style="left:776px; top:49px; width:119px; height:19px; ">
  1315. <caption>수가코드조회-보험</caption>
  1316. <script type="javascript" ev:event="DOMActivate">
  1317. <![CDATA[
  1318. open("SMPIC00700");
  1319. ]]>
  1320. </script>
  1321. </button>
  1322. <button id="button6" class="btn2_letter5" style="left:699px; top:49px; width:75px; height:19px; ">
  1323. <caption>마스터검증</caption>
  1324. <script type="javascript" ev:event="DOMActivate">
  1325. <![CDATA[
  1326. modal("SMAEA04300","","","","","","");
  1327. ]]>
  1328. </script>
  1329. </button>
  1330. <group id="grp_excupatrem" visibility="hidden" style="left:435px; top:265px; width:445px; height:245px; ">
  1331. <textarea id="textarea1" ref="/root/send/excupatrem" style="left:5px; top:30px; width:435px; height:180px; "/>
  1332. <button id="btn_cls" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  1333. <caption>닫기</caption>
  1334. <script type="javascript" ev:event="DOMActivate">
  1335. <![CDATA[
  1336. grp_excupatrem.visible = false;
  1337. ]]>
  1338. </script>
  1339. </button>
  1340. <button id="button3" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  1341. <caption>적용</caption>
  1342. <script type="javascript" ev:event="DOMActivate">
  1343. <![CDATA[
  1344. var rownum = grd_examcurecdlist.row - 1;
  1345. var excupatrem = model.getValue("/root/send/excupatrem");
  1346. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/excupatrem",excupatrem);
  1347. grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"update");
  1348. grd_examcurecdlist.dispatch("xforms-value-changed");
  1349. model.setValue("/root/send/excupatrem","");
  1350. grp_excupatrem.visible = false;
  1351. model.refresh();
  1352. ]]>
  1353. </script>
  1354. </button>
  1355. <caption id="caption32" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">검사 주의사항</caption>
  1356. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  1357. </group>
  1358. <group id="grp_excucdrem" visibility="hidden" style="left:435px; top:265px; width:445px; height:245px; ">
  1359. <textarea id="textarea2" ref="/root/send/excucdrem" style="left:5px; top:30px; width:435px; height:180px; "/>
  1360. <button id="button4" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  1361. <caption>닫기</caption>
  1362. <script type="javascript" ev:event="DOMActivate">
  1363. <![CDATA[
  1364. grp_excucdrem.visible = false;
  1365. ]]>
  1366. </script>
  1367. </button>
  1368. <button id="button5" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  1369. <caption>적용</caption>
  1370. <script type="javascript" ev:event="DOMActivate">
  1371. <![CDATA[
  1372. var rownum = grd_examcurecdlist.row - 1;
  1373. var excucdrem = model.getValue("/root/send/excucdrem");
  1374. model.setValue("/root/main/examcurecdlist/item["+rownum+"]/excucdrem",excucdrem);
  1375. grd_examcurecdlist.addStatus(grd_examcurecdlist.row,"update");
  1376. grd_examcurecdlist.dispatch("xforms-value-changed");
  1377. model.setValue("/root/send/excucdrem","");
  1378. grp_excucdrem.visible = false;
  1379. model.refresh();
  1380. ]]>
  1381. </script>
  1382. </button>
  1383. <caption id="caption8" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">분류 상세내역</caption>
  1384. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  1385. </group>
  1386. </group>
  1387. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  1388. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  1389. <caption>저장</caption>
  1390. <script type="javascript" ev:event="DOMActivate">
  1391. <![CDATA[
  1392. if ( messageBox("검사코드를","Q002")==6 ) {
  1393. var check = fCheckExCuCd();
  1394. if ( check == "1" ) return;
  1395. //alert(grd_examcurecdlist.getUpdateData());
  1396. model.makeValue("/root/send/req/data1", grd_examcurecdlist.getUpdateData());
  1397. if( submit("TXAEB00201") ) {
  1398. model.setValue("/root/send/srchexamcurecd","%");
  1399. model.setValue("/root/send/srchexamcurenm","%");
  1400. /*
  1401. submit("TRAEB00201");
  1402. model.setValue("/root/send/srchexamcurecd","");
  1403. model.setValue("/root/send/srchexamcurenm","");
  1404. model.refresh();
  1405. */
  1406. btn_sea.dispatch("DOMActivate");
  1407. grd_examcurecdlist.topRow = 1;
  1408. }
  1409. model.refresh();
  1410. }
  1411. ]]>
  1412. </script>
  1413. </button>
  1414. </group>
  1415. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1416. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:126px; height:14px; ">검사/치료코드관리</caption>
  1417. </group>
  1418. <button id="button12" class="btn2_letter4" style="left:1126px; top:62px; width:64px; height:19px; ">
  1419. <caption>엑셀저장</caption>
  1420. <script type="javascript" ev:event="DOMActivate">
  1421. <![CDATA[
  1422. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  1423. grd_examcurecdlist.saveExcel(file);
  1424. ]]>
  1425. </script>
  1426. </button>
  1427. </xhtml:body>
  1428. </xhtml:html>