SMPIR31100_심사청구.xrw 87 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <obtmlist>
  11. <gridpirhobtm>
  12. <obtappyn/>
  13. <orddeptcd/>
  14. <docuseqno/>
  15. <pid/>
  16. <patnm/>
  17. <judgdg/>
  18. <clamno/>
  19. <acptno/>
  20. <obtappflag/>
  21. <instcd/>
  22. <judgclamendflag/>
  23. <bfobtappflag/>
  24. <check/>
  25. <notidd/>
  26. <obtappdd/>
  27. <obtappdocuno/>
  28. </gridpirhobtm>
  29. <acptinfo>
  30. <claminfo/>
  31. <adjtamt/>
  32. <obtappamt/>
  33. <abdamt/>
  34. </acptinfo>
  35. <deptinfo>
  36. <cd/>
  37. <nm/>
  38. </deptinfo>
  39. <doctinfo>
  40. <cd/>
  41. <nm/>
  42. </doctinfo>
  43. <judgrinfo>
  44. <cd/>
  45. <nm/>
  46. </judgrinfo>
  47. </obtmlist>
  48. <patinfodata>
  49. <gridpatinfo>
  50. <pid/>
  51. <patnm/>
  52. <sexage/>
  53. <orddrid/>
  54. <insukind/>
  55. <payownbrate/>
  56. <indd/>
  57. <dschdd/>
  58. <ordfromdd/>
  59. <ordtodd/>
  60. <chosindayno/>
  61. <medcaredayno/>
  62. <obtapprem/>
  63. <rem/>
  64. <docuseqnorem/>
  65. <corpactaddrate/>
  66. <clamobtapprem/>
  67. <attdocu/>
  68. <preday/>
  69. </gridpatinfo>
  70. <gridadjtord>
  71. <obtappyn/>
  72. <lnno/>
  73. <item/>
  74. <adjtresncd/>
  75. <obtappflag/>
  76. <snglcalcscorcd/>
  77. <hngnm/>
  78. <unitcost/>
  79. <nrecogoneqty/>
  80. <nrecogdayqty/>
  81. <nrecogtotqty/>
  82. <judgclamoneqty/>
  83. <judgclamdayqty/>
  84. <judgclamtotqty/>
  85. <judgclamamt/>
  86. <clamoneqty/>
  87. <clamdayqty/>
  88. <clamtotqty/>
  89. <adjtoneqty/>
  90. <adjtdayqty/>
  91. <adjttotqty/>
  92. <adjtamt/>
  93. <obtapponeqty/>
  94. <obtappdayqty/>
  95. <obtapptotqty/>
  96. <obtappamt/>
  97. <detladjtflag/>
  98. <adjtresndesc/>
  99. <abdresncd/>
  100. <abdresncdmemo/>
  101. <judgdg/>
  102. <clamno/>
  103. <acptno/>
  104. <docuseqno/>
  105. <mpsno/>
  106. <instcd/>
  107. </gridadjtord>
  108. <gridlnnoadjtresncd>
  109. <lnno/>
  110. <adjtresncd/>
  111. </gridlnnoadjtresncd>
  112. <gridmemo>
  113. <judgmemo/>
  114. <edimemo/>
  115. <judgdg/>
  116. <clamno/>
  117. <acptno/>
  118. <docuseqno/>
  119. <obtappflag/>
  120. </gridmemo>
  121. <griddiag>
  122. <diagkindcd/>
  123. <diagcd/>
  124. <diagnm/>
  125. <clamdeptcd/>
  126. <ordfromdd/>
  127. <estmspclcd/>
  128. <wundresncd/>
  129. <toot/>
  130. </griddiag>
  131. <gridclsp>
  132. <rowstat/>
  133. <unitflag/>
  134. <edilnno/>
  135. <edicd/>
  136. <spclcd/>
  137. <spclnm/>
  138. <spclspec/>
  139. <spclformat/>
  140. <detldesc/>
  141. </gridclsp>
  142. </patinfodata>
  143. <temp>
  144. <gridadjtord/>
  145. </temp>
  146. <result/>
  147. </main>
  148. <send>
  149. <send_obtmlist>
  150. <clamno/>
  151. <acptno/>
  152. <judgdg/>
  153. <setno/>
  154. <notidd/>
  155. <rejudgflag/>
  156. <obtappflag/>
  157. <docuseqno/>
  158. <item/>
  159. </send_obtmlist>
  160. <send_clamno>
  161. <judgdg/>
  162. <acptno/>
  163. </send_clamno>
  164. <send_patinfo>
  165. <judgdg/>
  166. <clamno/>
  167. <acptno/>
  168. <docuseqno/>
  169. <obtappflag/>
  170. <instcd/>
  171. <bfobtappflag/>
  172. </send_patinfo>
  173. <send_judgclamrem>
  174. <judgdg/>
  175. <clamno/>
  176. <acptno/>
  177. <docuseqno/>
  178. <obtappflag/>
  179. <instcd/>
  180. <judgclamrem/>
  181. <attdocu/>
  182. <preday/>
  183. </send_judgclamrem>
  184. <send_docusearch>
  185. <docuseqno/>
  186. </send_docusearch>
  187. <send_prnt>
  188. <judgdg/>
  189. <clamno/>
  190. <acptno/>
  191. <obtappflag/>
  192. <instcd/>
  193. <judgrid/>
  194. <prtseq/>
  195. <insukind/>
  196. </send_prnt>
  197. <updatedata>
  198. <datalist/>
  199. </updatedata>
  200. <send_afjudg>
  201. <workflag/>
  202. <clamym/>
  203. <clamdg/>
  204. <pid/>
  205. <pidsn/>
  206. <ioflag/>
  207. </send_afjudg>
  208. </send>
  209. <init>
  210. <P0287list>
  211. <P0287>
  212. <cdid/>
  213. <cdnm/>
  214. </P0287>
  215. </P0287list>
  216. <P0264list>
  217. <P0264>
  218. <cdid/>
  219. <cdnm/>
  220. </P0264>
  221. </P0264list>
  222. <P0277list>
  223. <P0277>
  224. <cdid/>
  225. <cdnm/>
  226. </P0277>
  227. </P0277list>
  228. <P0250list>
  229. <P0250>
  230. <cdid/>
  231. <cdnm/>
  232. </P0250>
  233. </P0250list>
  234. <P0117list>
  235. <P0117>
  236. <cdid/>
  237. <cdnm/>
  238. </P0117>
  239. </P0117list>
  240. <P0123list>
  241. <P0123>
  242. <cdid/>
  243. <cdnm/>
  244. </P0123>
  245. </P0123list>
  246. </init>
  247. <temp>
  248. <obtappflag/>
  249. <gridselectedrow/>
  250. </temp>
  251. <hidden>
  252. <obtmlist>
  253. <claminfo>
  254. <clamno/>
  255. </claminfo>
  256. </obtmlist>
  257. <filterlist>
  258. <filter>
  259. <orddeptcd/>
  260. <orddrid/>
  261. <judgrid/>
  262. </filter>
  263. </filterlist>
  264. <enddate>
  265. <notidd/>
  266. <obtappdd/>
  267. <obtappdocuno/>
  268. </enddate>
  269. <smaer00800>
  270. <cond>
  271. <srchdata1/>
  272. <srchdata2/>
  273. <srchpid/>
  274. <wardcd/>
  275. <roomcd/>
  276. <listflag/>
  277. <deptcd/>
  278. <drid/>
  279. <chkcheck/>
  280. <chkcheck1/>
  281. <chkcheck2/>
  282. <chkcheck3/>
  283. <chkcheck4/>
  284. <chkcheck5/>
  285. <chkcheck6/>
  286. <chkcheck7/>
  287. <chkcheck8/>
  288. <tabflag/>
  289. <mdlcd/>
  290. <examgubun/>
  291. </cond>
  292. </smaer00800>
  293. </hidden>
  294. <source_AbdResnCdRgst>
  295. <status/>
  296. <judgdg/>
  297. <clamno/>
  298. <acptno/>
  299. <docuseqno/>
  300. <obtappflag/>
  301. <mpsno/>
  302. <lnno/>
  303. <adjtresncd/>
  304. <abdresncd/>
  305. <abdresnmemo/>
  306. </source_AbdResnCdRgst>
  307. </root>
  308. </instance>
  309. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  310. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  311. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  312. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  313. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  314. <submission id="TRPIR31101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_clamno" resultref="/root/hidden/obtmlist"/>
  315. <submission id="TRPIR31102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_obtmlist" resultref="/root/main/obtmlist"/>
  316. <submission id="TRPIR31103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_patinfo" resultref="/root/main/patinfodata"/>
  317. <submission id="TXPIR31101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/gridadjtord"/>
  318. <submission id="TXPIR31102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_judgclamrem"/>
  319. <submission id="TRPIR30400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_obtmlist" resultref="/root/main/obtmlist"/>
  320. <submission id="TXPIR31103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
  321. <submission id="TXPIR31104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
  322. <submission id="TXPIR31105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/gridadjtord"/>
  323. </model>
  324. </xhtml:head>
  325. <script type="javascript" ev:event="xforms-ready">
  326. <![CDATA[
  327. CommCode_Load();
  328. // 다른화면에서 팝업으로 이 화면을 열었을때 넘어온 파라미터로 대상목록을 조회한다.
  329. // 조회필수 항목인 심사차수, 접수번호로 CHECK한다.
  330. if (checkOpener()){
  331. if(ipt_judgdg.value != '' && ipt_acptno.value != '' ) {
  332. submit("TRPIR31102");
  333. }
  334. // var bfobtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/bfobtappflag");
  335. // model.setValue("/root/send/send_patinfo/bfobtappflag", bfobtappflag);
  336. if (grd_pirhobtm.rows > grd_pirhobtm.fixedrows) {
  337. grd_pirhobtm.row = 1;
  338. var rtn = null;
  339. var row = grd_pirhobtm.selectedRow(0);
  340. var t1= grd_pirhobtm.textmatrix(row,9);
  341. var t2= grd_pirhobtm.textmatrix(row,10);
  342. var t3= grd_pirhobtm.textmatrix(row,11);
  343. var t4= grd_pirhobtm.textmatrix(row,4);
  344. var t5= grd_pirhobtm.textmatrix(row,12);
  345. var t6= grd_pirhobtm.textmatrix(row,13);
  346. var t7= grd_pirhobtm.textmatrix(row,16);
  347. model.setValue( "instance('instance1')/send/send_patinfo/judgdg", t1 );
  348. model.setValue( "instance('instance1')/send/send_patinfo/clamno", t2 );
  349. model.setValue( "instance('instance1')/send/send_patinfo/acptno", t3 );
  350. model.setValue( "instance('instance1')/send/send_patinfo/docuseqno", t4 );
  351. model.setValue( "instance('instance1')/send/send_patinfo/obtappflag", t5 );
  352. model.setValue( "instance('instance1')/send/send_patinfo/instcd", t6 );
  353. model.setValue( "instance('instance1')/send/send_patinfo/bfobtappflag", t7 );
  354. rtn = submit("TRPIR31103");
  355. grd_adjtord.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  356. setRowStyle("grd_adjtord", "6","Y","abdyn","equal");
  357. grd_adjtord.rebuild();
  358. var obtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/obtappflag");
  359. if (obtappflag == "22") {
  360. checkbox2.attribute("visibility") = "visible";
  361. caption17.attribute("visibility") = "visible";
  362. input3.attribute("visibility") = "visible";
  363. chk_attdocu.attribute("visibility") = "hidden";
  364. } else {
  365. checkbox2.attribute("visibility") = "hidden";
  366. caption17.attribute("visibility") = "hidden";
  367. input3.attribute("visibility") = "hidden";
  368. chk_attdocu.attribute("visibility") = "visible";
  369. }
  370. }
  371. setEndFinitialize();
  372. var currentdate = getCurrentDate();
  373. ipt_obtappdd.value = currentdate;
  374. grd_adjtord.frozenCols = grd_adjtord.colRef("hngnm");
  375. }else{
  376. finitialize();
  377. }
  378. ]]>
  379. </script>
  380. <script type="javascript">
  381. <![CDATA[
  382. // 공통코드 Load작업
  383. function CommCode_Load() {
  384. // 관련 Control 초기화
  385. zbcfGetCodeList(new Array("P0287","P0264","P0277","P0250","P0117","P0123")
  386. , new Array("/root/init/P0287list", "/root/init/P0264list","/root/init/P0277list", "/root/init/P0250list", "/root/init/P0117list","/root/init/P0123list"));
  387. model.refresh();
  388. }
  389. // 조회조건 확인
  390. function fChkSend(){
  391. if(ipt_judgdg.value == ""){
  392. alert("심사차수를 입력해 주세요");
  393. model.setFocus("ipt_judgdg");
  394. return false;
  395. }
  396. if(ipt_acptno.value == ""){
  397. alert("접수번호를 입력해 주세요");
  398. model.setFocus("ipt_acptno");
  399. return false;
  400. }
  401. model.resetInstanceNode("/root/main/obtmlist");
  402. //model.resetInstanceNode("/root/main/patinfodata");
  403. return true;
  404. model.refresh();
  405. }
  406. ]]>
  407. </script>
  408. <script type="javascript">
  409. <![CDATA[
  410. function finitialize() {
  411. // 처방코드, EDI코드 입력조건 초기화
  412. //ipt_snglcalcscorcd.attribute("_chartype") = "upper"; // tfHelper.js를 include 해야 한다.
  413. //ipt_edicd.attribute("_chartype") = "upper"; // tfHelper.js를 include 해야 한다.
  414. // form load시에 Default 이신구분을 전체를 선택한다.
  415. cmb_obtappflag.select(06); //r ef="/root/send/send_obtmlist/obtappflag" class
  416. rdo_obtappflag.select(-1);
  417. setEndFinitialize();
  418. }
  419. // 의사전달삭감처방등록관리
  420. function fGridCutOrdRgst() {
  421. model.setValue("/root/source/judgdg", model.getValue("/root/main/patinfodata/gridadjtord/judgdg"));
  422. model.setValue("/root/source/clamno", model.getValue("/root/main/patinfodata/gridadjtord/clamno"));
  423. model.setValue("/root/source/acptno", model.getValue("/root/main/patinfodata/gridadjtord/acptno"));
  424. model.setValue("/root/source/docuseqno", model.getValue("/root/main/patinfodata/gridadjtord/docuseqno"));
  425. // 이의신청구분
  426. model.setValue("/root/source/mpsno", model.getValue("/root/main/patinfodata/gridadjtord/mpsno"));
  427. model.setValue("/root/source/lnno", model.getValue("/root/main/patinfodata/gridadjtord/lnno"));
  428. model.setValue("/root/source/adjtresn", model.getValue("/root/main/patinfodata/gridadjtord/adjtresncd"));
  429. model.setValue("/root/source/workflag", "obtapprgst");
  430. //팝업창
  431. modal("SPPIR30320", 1, "", "", "SPPIR30320", "/root/source", "/root/send/send_adjtord");
  432. //window.load("SPPIR30310_의사삭감전달처방등록관리.xrw", "modal", "pop1","width:570px; height:430px; align:center;");
  433. /*
  434. var selectCnt = grd_adjtord.selectedRows
  435. var grd_nodeSet = grd_adjtord.nodeset;
  436. var destNode = instance1.selectSingleNode("/root/source_CutOrdRgst");
  437. var srcNode;
  438. for( var i = 0; i < selectCnt; i++ ){
  439. srcNode = instance1.selectSingleNode(grd_nodeSet + "[" + (grd_adjtord.selectedRow(i) - grd_adjtord.fixedRows + 1) + "]");
  440. model.duplicate(destNode, srcNode);
  441. }
  442. window.load("../../../pam/edimngtweb/xrw/SPPIR30310_의사삭감전달처방등록관리.xrw", "modeless", "pop", "", "/root/source_CutOrdRgst", "/root/main/cuodlist");
  443. */
  444. }
  445. // 필터
  446. function fGetSelectedData() {
  447. var orddeptcd = model.getValue("/root/hidden/filterlist/filter/orddeptcd");
  448. var orddrid = model.getValue("/root/hidden/filterlist/filter/orddrid");
  449. var judgrid = model.getValue("/root/hidden/filterlist/filter/judgrid");
  450. var rows = grd_pirhobtm.rows;
  451. var frows = grd_pirhobtm.fixedRows;
  452. var nrows = rows - frows;
  453. for(var i = 1; i <= nrows; i++) {
  454. grd_pirhobtm.rowHidden(i) = false;
  455. alert("row번호::" + i + "==진료과::" + orddeptcd + "==진료의:: " + orddrid + "==심사자::" + judgrid );
  456. // 진료과 필터
  457. if (orddeptcd == "" && orddrid == "" && judgrid == "") {
  458. } else {
  459. if(orddeptcd != ""){
  460. if (grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("orddeptabbr")) != orddeptcd) {
  461. grd_pirhobtm.rowHidden(i) = true;
  462. }
  463. }
  464. }
  465. // 주치의 필터
  466. if (orddeptcd == "" && orddrid == "" && judgrid == "" ) {
  467. } else {
  468. if(orddrid != ""){
  469. if (grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("atdoctid")) != orddrid) {
  470. grd_pirhobtm.rowHidden(i) = true;
  471. }
  472. }
  473. }
  474. // 심사자 필터
  475. if (orddeptcd == "" && orddrid == "" && judgrid == "") {
  476. } else {
  477. if(orddrid != ""){
  478. if (grd_pirhobtm.valueMatrix(i, grd_pirhobtm.colRef("judgrid")) != judgrid) {
  479. grd_pirhobtm.rowHidden(i) = true;
  480. }
  481. }
  482. }
  483. }
  484. }
  485. function fInitFilter() {
  486. // 조회부의 Radio 초기값을 "전체"로 설정한다.
  487. model.setValue("/root/hidden/filterlist/filter/orddeptcd", "");
  488. model.setValue("/root/hidden/filterlist/filter/orddrid", "");
  489. model.setValue("/root/hidden/filterlist/filter/judgrid", "");
  490. model.refresh();
  491. fGetSelectedData();
  492. }
  493. function fSearch(){
  494. model.resetInstanceNode("/root/main/obtmlist/gridpirhobtm");
  495. model.resetInstanceNode("/root/main/patinfodata/gridadjtord");
  496. if(fChkSend()){
  497. submit("TRPIR31102");
  498. // grd_pirhobtm.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  499. // setRowStyle("grd_pirhobtm", "2","Y","judgclamendflag","equal"); //row의 색상을 변경한다.
  500. // grd_pirhobtm.rebuild();
  501. }
  502. //return;
  503. // var bfobtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/bfobtappflag");
  504. // model.setValue("/root/send/send_patinfo/bfobtappflag", bfobtappflag);
  505. //model.alert(model.getValue("/root/send/send_patinfo/bfobtappflag"));
  506. if (grd_pirhobtm.rows > grd_pirhobtm.fixedrows) {
  507. var gridselectedrow = model.getValue("/root/temp/gridselectedrow");
  508. if (gridselectedrow != "") {
  509. grd_pirhobtm.row = gridselectedrow;
  510. } else {
  511. grd_pirhobtm.row = 1;
  512. }
  513. var rtn = null;
  514. var row = grd_pirhobtm.selectedRow(0);
  515. var t1= grd_pirhobtm.textmatrix(row,9);
  516. var t2= grd_pirhobtm.textmatrix(row,10);
  517. var t3= grd_pirhobtm.textmatrix(row,11);
  518. var t4= grd_pirhobtm.textmatrix(row,4);
  519. var t5= grd_pirhobtm.textmatrix(row,12);
  520. var t6= grd_pirhobtm.textmatrix(row,13);
  521. var t7= grd_pirhobtm.textmatrix(row,16);
  522. model.setValue( "instance('instance1')/send/send_patinfo/judgdg", t1 );
  523. model.setValue( "instance('instance1')/send/send_patinfo/clamno", t2 );
  524. model.setValue( "instance('instance1')/send/send_patinfo/acptno", t3 );
  525. model.setValue( "instance('instance1')/send/send_patinfo/docuseqno", t4 );
  526. model.setValue( "instance('instance1')/send/send_patinfo/obtappflag", t5 );
  527. model.setValue( "instance('instance1')/send/send_patinfo/instcd", t6 );
  528. model.setValue( "instance('instance1')/send/send_patinfo/bfobtappflag", t7 );
  529. rtn = submit("TRPIR31103");
  530. grd_adjtord.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  531. setRowStyle("grd_adjtord", "6","Y","abdyn","equal");
  532. grd_adjtord.rebuild();
  533. }
  534. var obtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/obtappflag");
  535. if (obtappflag == "22") {
  536. checkbox2.attribute("visibility") = "visible";
  537. caption17.attribute("visibility") = "visible";
  538. input3.attribute("visibility") = "visible";
  539. chk_attdocu.attribute("visibility") = "hidden";
  540. } else {
  541. checkbox2.attribute("visibility") = "hidden";
  542. caption17.attribute("visibility") = "hidden";
  543. input3.attribute("visibility") = "hidden";
  544. chk_attdocu.attribute("visibility") = "visible";
  545. }
  546. }
  547. function setEndFinitialize(){
  548. var curDate = getCurrentDate();
  549. model.setValue("/root/hidden/enddate/obtappdd", curDate);
  550. var notidd = model.getValue("/root/send/send_obtmlist/notidd");
  551. model.setValue("/root/hidden/enddate/notidd", notidd);
  552. // 이의신청문서번호 값 조정 ( '보험'을 찍어준다)
  553. var obtappdocuno = model.getValue("/root/hidden/enddate/obtappdocuno");
  554. if (obtappdocuno == "" || obtappdocuno == "-") {
  555. model.setValue("/root/hidden/enddate/obtappdocuno", "보험");
  556. ipt_obtappdocuno.refresh();
  557. }
  558. grp_memo.visible = false;
  559. }
  560. ]]>
  561. </script>
  562. <xhtml:body>
  563. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  564. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:129px; height:14px; ">심사청구</caption>
  565. </group>
  566. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:748px; ">
  567. <caption id="caption27" class="cell_1" style="left:305px; top:176px; width:68px; height:23px; text-align:left; vertical-align:middle; ">성별/나이</caption>
  568. <caption id="caption1" class="tit_2" style="left:3px; top:104px; width:60px; height:13px; ">대상자</caption>
  569. <line id="line1" class="line_1" style="x1:0px; y1:123px; x2:302px; y2:123px; "/>
  570. <datagrid id="grd_pirhobtm" nodeset="/root/main/obtmlist/gridpirhobtm" class="datagrid2" caption="선택^마감여부^이신여부^명일련^과^진료과^등록번호^수진자^심사차수^청구번호^접수번호^이신구분^기관코드^진료의^심사자^이전이의신구분^통보일자^신청일자^문서번호^ioflag^clamym^clamdg^pidsn" colsep="^" colwidth="19, 30, 30, 43, 43, 43, 55, 60, 100, 100, 100, 100, 100, 100, 100, 100, 60, 60, 68, 40, 45, 45, 40" dataheight="25" defaultrows="1" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:128px; width:302px; height:274px; ">
  571. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  572. <col checkvalue="Y,N" disabled="true" ref="judgclamendflag" type="checkbox" style="color:#ff0000; "/>
  573. <col checkvalue="Y,N" disabled="true" ref="obtappyn" type="checkbox" style="color:#ff0000; "/>
  574. <col ref="docuseqno"/>
  575. <col ref="orddeptcd" visibility="hidden"/>
  576. <col ref="orddeptabbr"/>
  577. <col ref="pid"/>
  578. <col ref="patnm"/>
  579. <col ref="judgdg" visibility="hidden"/>
  580. <col ref="clamno" visibility="hidden"/>
  581. <col ref="acptno" visibility="hidden"/>
  582. <col ref="obtappflag" visibility="hidden"/>
  583. <col ref="instcd" visibility="hidden"/>
  584. <col ref="orddrid" visibility="hidden"/>
  585. <col ref="judgrid" visibility="hidden"/>
  586. <col ref="bfobtappflag" visibility="hidden"/>
  587. <col ref="notidd" visibility="hidden"/>
  588. <col ref="obtappdd" visibility="hidden"/>
  589. <col ref="obtappdocuno" visibility="hidden"/>
  590. <col ref="ioflag" visibility="hidden"/>
  591. <col ref="clamym" visibility="hidden"/>
  592. <col ref="clamdg" visibility="hidden"/>
  593. <col ref="pidsn" visibility="hidden"/>
  594. <script type="javascript" ev:event="ondblclick">
  595. <![CDATA[
  596. var bfobtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/bfobtappflag");
  597. model.setValue("/root/send/send_patinfo/bfobtappflag", bfobtappflag);
  598. var rtn = null;
  599. if( grd_pirhobtm.isCell(event.target) && grd_pirhobtm.row >= grd_pirhobtm.fixedRows ){
  600. var row = grd_pirhobtm.selectedRow(0);
  601. // var bfobtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm/bfobtappflag");
  602. // model.setValue("/root/send/send_patinfo/bfobtappflag", bfobtappflag);
  603. var t1= grd_pirhobtm.textmatrix(row,9);
  604. var t2= grd_pirhobtm.textmatrix(row,10);
  605. var t3= grd_pirhobtm.textmatrix(row,11);
  606. var t4= grd_pirhobtm.textmatrix(row,4);
  607. var t5= grd_pirhobtm.textmatrix(row,12);
  608. var t6= grd_pirhobtm.textmatrix(row,13);
  609. var t7= grd_pirhobtm.textmatrix(row,16);
  610. model.setValue( "instance('instance1')/send/send_patinfo/judgdg", t1 );
  611. model.setValue( "instance('instance1')/send/send_patinfo/clamno", t2 );
  612. model.setValue( "instance('instance1')/send/send_patinfo/acptno", t3 );
  613. model.setValue( "instance('instance1')/send/send_patinfo/docuseqno", t4 );
  614. model.setValue( "instance('instance1')/send/send_patinfo/obtappflag", t5 );
  615. model.setValue( "instance('instance1')/send/send_patinfo/instcd", t6 );
  616. model.setValue( "instance('instance1')/send/send_patinfo/bfobtappflag", t7 );
  617. rtn = submit("TRPIR31103");
  618. grd_adjtord.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  619. setRowStyle("grd_adjtord", "6","Y","abdyn","equal");
  620. grd_adjtord.rebuild();
  621. //var corpactaddrate = model.getValue("/root/main/patinfodata/gridpatinfo/corpactaddrate");
  622. //model.alert(corpactaddrate);
  623. }
  624. ]]>
  625. </script>
  626. <script type="javascript" ev:event="onclick">
  627. <![CDATA[
  628. var row = grd_pirhobtm.row
  629. var check = model.getValue("/root/main/obtmlist/gridpirhobtm[" + row+ "]/check");
  630. if (check == "Y") {
  631. grd_pirhobtm.rowstatus(grd_pirhobtm.row) = 2;
  632. } else if (check == "N") {
  633. grd_pirhobtm.rowstatus(grd_pirhobtm.row) = 0;
  634. }
  635. model.setValue("/root/temp/gridselectedrow",grd_pirhobtm.row);
  636. ]]>
  637. </script>
  638. </datagrid>
  639. <caption id="caption15" class="tit_2" style="left:602px; top:104px; width:74px; height:13px; ">상병내역</caption>
  640. <line id="line4" class="line_1" style="x1:600px; y1:123px; x2:1194px; y2:123px; "/>
  641. <datagrid id="datagrid2" nodeset="/root/main/patinfodata/griddiag" caption="R/O^상병코드^상병명^과^진료개시일^특정^상해^치식" colsep="^" colwidth="41, 57, 191, 36, 75, 46, 41, 72" dataheight="25" defaultrows="1" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:600px; top:128px; width:594px; height:139px; ">
  642. <col ref="diagkindcd"/>
  643. <col ref="diagcd"/>
  644. <col ref="diagnm"/>
  645. <col ref="clamdeptcd"/>
  646. <col ref="ordfromdd"/>
  647. <col ref="estmspclcd"/>
  648. <col ref="wundresncd"/>
  649. <col ref="toot"/>
  650. </datagrid>
  651. <caption id="caption23" class="cell_1" style="left:305px; top:128px; width:68px; height:23px; text-align:left; vertical-align:middle; ">등록번호</caption>
  652. <output id="output7" ref="/root/main/patinfodata/gridpatinfo/pid" class="output_fix" appearance="output" style="left:375px; top:129px; width:70px; height:19px; "/>
  653. <output id="output11" ref="/root/main/patinfodata/gridpatinfo/indd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:129px; width:78px; height:19px; "/>
  654. <caption id="caption24" class="cell_1" style="left:448px; top:128px; width:70px; height:23px; text-align:left; vertical-align:middle; ">입원일</caption>
  655. <output id="output15" ref="/root/main/patinfodata/gridpatinfo/dschdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:153px; width:78px; height:19px; "/>
  656. <output id="output16" ref="/root/main/patinfodata/gridpatinfo/patnm" class="output_fix" appearance="output" style="left:375px; top:153px; width:70px; height:19px; "/>
  657. <caption id="caption25" class="cell_1" style="left:305px; top:152px; width:68px; height:23px; text-align:left; vertical-align:middle; ">수진자</caption>
  658. <caption id="caption26" class="cell_1" style="left:448px; top:152px; width:70px; height:23px; text-align:left; vertical-align:middle; ">퇴원일</caption>
  659. <output id="output17" ref="/root/main/patinfodata/gridpatinfo/ordfromdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:177px; width:78px; height:19px; "/>
  660. <output id="output18" ref="/root/main/patinfodata/gridpatinfo/sexage" class="output_fix" appearance="output" style="left:375px; top:177px; width:70px; height:19px; "/>
  661. <caption id="caption28" class="cell_1" style="left:448px; top:176px; width:70px; height:23px; text-align:left; vertical-align:middle; ">개시일</caption>
  662. <caption id="caption31" class="tit_2" style="left:3px; top:413px; width:131px; height:13px; ">삭감항목</caption>
  663. <line id="line11" class="line_1" style="x1:0px; y1:428px; x2:1194px; y2:428px; "/>
  664. <datagrid id="grd_adjtord" nodeset="/root/main/patinfodata/gridadjtord" class="datagrid2" caption="선택^신청&#xA;여부^줄번호^항^사유^I/II&#xA;구분^구분^처방코드^처방명칭^단가^ 이신 일회량^이신일투^이신총투^ 이의신청 금액^불인정&#xA;일회량^불인정&#xA;일투^불인정&#xA;총투^심사청구&#xA;일회량^심사청&#xA;구일투^심사청&#xA;구총투^심사청구액^청구&#xA;일회량^청구&#xA;일투^청구&#xA;총투^삭감&#xA;일회량^삭감&#xA;일투^삭감&#xA;총투^삭감액^상세&#xA;조정&#xA;구분^조정&#xA;사유&#xA;설명^부제기&#xA;사유코드^부제기&#xA;사유메모^심사&#xA;차수^청구&#xA;번호^접수&#xA;번호^명일련^처방전&#xA;교부번호^기관&#xA;코드^부재기&#xA;여부|선택^신청&#xA;여부^줄번호^항^사유^I/II&#xA;구분^구분^처방코드^처방명칭^단가^ 이신 일회량^이신일투^이신총투^ 이의신청 금액^불인정&#xA;일회량^불인정&#xA;일투^불인정&#xA;총투^심사청구&#xA;일회량^심사청&#xA;구일투^심사청&#xA;구총투^심사청구액^청구&#xA;일회량^청구&#xA;일투^청구&#xA;총투^삭감&#xA;일회량^삭감&#xA;일투^삭감&#xA;총투^삭감액^상세&#xA;조정&#xA;구분^조정&#xA;사유&#xA;설명^부제기&#xA;사유코드^부제기&#xA;사유메모^심사&#xA;차수^청구&#xA;번호^접수&#xA;번호^명일련^처방전&#xA;교부번호^기관&#xA;코드^부재기&#xA;여부" colsep="^" colwidth="30, 30, 48, 30, 30, 30, 30, 80, 205, 70, 50, 35, 35, 65, 46, 46, 46, 60, 52, 46, 71, 50, 35, 35, 50, 35, 35, 70, 50, 50, 80, 150, 50, 50, 50, 70, 80, 50, 50" dataheight="25" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:433px; width:1194px; height:155px; ">
  665. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  666. <col checkvalue="Y,N" disabled="true" ref="obtappyn" type="checkbox"/>
  667. <col ref="lnno"/>
  668. <col ref="item"/>
  669. <col ref="adjtresncd"/>
  670. <col ref="matractflag"/>
  671. <col ref="obtappflag"/>
  672. <col ref="snglcalcscorcd"/>
  673. <col ref="hngnm"/>
  674. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  675. <col ref="obtapponeqty"/>
  676. <col ref="obtappdayqty" format="#,###.#" style="text-align:right; "/>
  677. <col ref="obtapptotqty" format="#,###" style="text-align:right; "/>
  678. <col ref="obtappamt" format="#,###" style="text-align:right; "/>
  679. <col ref="nrecogoneqty"/>
  680. <col ref="nrecogdayqty" format="#,###"/>
  681. <col ref="nrecogtotqty" format="#,###"/>
  682. <col ref="judgclamoneqty" type="input"/>
  683. <col ref="judgclamdayqty" type="input" format="#,###.#"/>
  684. <col ref="judgclamtotqty" type="input" format="#,###"/>
  685. <col ref="judgclamamt" type="input" format="#,###"/>
  686. <col ref="clamoneqty"/>
  687. <col ref="clamdayqty" format="#,###" style="text-align:right; "/>
  688. <col ref="clamtotqty" format="#,###" style="text-align:right; "/>
  689. <col ref="adjtoneqty"/>
  690. <col ref="adjtdayqty" format="#,###" style="text-align:right; "/>
  691. <col ref="adjttotqty" format="#,###" style="text-align:right; "/>
  692. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  693. <col ref="detladjtflag" visibility="hidden"/>
  694. <col ref="adjtresndesc" visibility="hidden"/>
  695. <col ref="abdresncd" visibility="hidden"/>
  696. <col ref="abdresnmemo" type="inputbutton"/>
  697. <col ref="judgdg" visibility="hidden"/>
  698. <col ref="clamno" visibility="hidden"/>
  699. <col ref="acptno" visibility="hidden"/>
  700. <col ref="docuseqno" visibility="hidden"/>
  701. <col ref="mpsno" visibility="hidden"/>
  702. <col ref="instcd" visibility="hidden"/>
  703. <col ref="abdyn"/>
  704. <script type="javascript" ev:event="onmousedown">
  705. <![CDATA[
  706. if(event.button == 3){
  707. if(grd_adjtord.isCell(event.target) && grd_adjtord.mouseRow >= grd_adjtord.fixedrows){
  708. window.setPopupMenu(true, "/root/popupdata/popupmenu/gridadjtord/item", "name", "func", false);
  709. }else{
  710. window.setPopupMenu(false);
  711. }
  712. }
  713. ]]>
  714. </script>
  715. <script type="javascript" ev:event="onbuttonclick">
  716. <![CDATA[
  717. var col = grd_adjtord.col;
  718. var row = grd_adjtord.row;
  719. row = row-1;
  720. if(col == "32"){
  721. //var i = startRow; i < endRow; i++){
  722. var status = "update";
  723. model.setValue("/root/source_AbdResnCdRgst/status", status);
  724. model.setValue("/root/source_AbdResnCdRgst/judgdg", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/judgdg"));
  725. model.setValue("/root/source_AbdResnCdRgst/clamno", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/clamno"));
  726. model.setValue("/root/source_AbdResnCdRgst/acptno", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/acptno"));
  727. model.setValue("/root/source_AbdResnCdRgst/docuseqno", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/docuseqno"));
  728. model.setValue("/root/source_AbdResnCdRgst/obtappflag", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/obtappflag"));
  729. model.setValue("/root/source_AbdResnCdRgst/mpsno", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/mpsno"));
  730. model.setValue("/root/source_AbdResnCdRgst/lnno", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/lnno"));
  731. model.setValue("/root/source_AbdResnCdRgst/adjtresncd", model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/adjtresncd"));
  732. model.setValue("/root/source_AbdResnCdRgst/abdresncd", model.getValue("/root/main/patinfodata/gridadjtord[" + row +"]/abdresncd"));
  733. model.setValue("/root/source_AbdResnCdRgst/abdresnmemo", "");
  734. modal("SPPIR30340", 1, "", "", "SPPIR30340", "/root/source_AbdResnCdRgst", "/root/send");
  735. var abdresnmemo = getParameter("SMPIR31100_abdresnmemo");
  736. var abdresncd = getParameter("SMPIR31100_abdresncd");
  737. //model.alert(abdresnmemo);
  738. //model.alert(abdresncd);
  739. model.setValue("/root/main/patinfodata/gridadjtord[" + row + "]/abdresnmemo", abdresnmemo);
  740. }
  741. var abdresncd = model.getValue("/root/main/patinfodata/gridadjtord[" + row + "]/abdresncd");
  742. var abdresncdmemo = model.getValue("/root/main/patinfodata/gridadjtord[ " + row + "]/abdresncdmemo");
  743. if(abdresncd != "" && abdresncdmemo != ""){
  744. model.setValue("/root/main/patinfodata/gridadjtord[" + row + "]/judgclamoneqty",0);
  745. model.setValue("/root/main/patinfodata/gridadjtord[" + row + "]/judgclamdayqty",0);
  746. model.setValue("/root/main/patinfodata/gridadjtord[" + row + "]/judgclamtotqty",0);
  747. model.setValue("/root/main/patinfodata/gridadjtord[" + row + "]/judgclamamt",0);
  748. }
  749. fSearch();
  750. model.refresh();
  751. ]]>
  752. </script>
  753. <script type="javascript" ev:event="onkeydown">
  754. <![CDATA[
  755. if(event.keyCode== "13"){
  756. var col = grd_adjtord.col;
  757. var row = grd_adjtord.row;
  758. if(col == "12" || col =="13" || col == "14"){
  759. grd_adjtord.endEditCell();
  760. var judgclamoneqty = model.getValue("/root/main/patinfodata/gridadjtord/judgclamoneqty");
  761. var judgclamdayqty = model.getValue("/root/main/patinfodata/gridadjtord/judgclamdayqty");
  762. var judgclamtotqty = model.getValue("/root/main/patinfodata/gridadjtord/judgclamtotqty");
  763. var judgclamamt = judgclamoneqty * judgclamdayqty * judgclamtotqty;
  764. // var judgclamoneqty1 = grd_adjtord.valueMatrix(row, 12);
  765. // var judgclamdayqty1 = grd_adjtord.valueMatrix(row, 13);
  766. // var judgclamtotqty1 = grd_adjtord.valueMatrix(row, 14);
  767. // var judgclamamt1 = judgclamoneqty1 * judgclamdayqty1 * judgclamtotqty1;
  768. model.setValue("/root/main/patinfodata/gridadjtord/judgclamamt",judgclamamt);
  769. }
  770. model.refresh();
  771. }
  772. ]]>
  773. </script>
  774. <script type="javascript" ev:event="xforms-value-changed">
  775. <![CDATA[
  776. var curr_row = grd_adjtord.row;
  777. var row = grd_adjtord.row;
  778. row = row-1;
  779. //model.alert(curr_row);
  780. var matractflag = model.getValue("/root/main/patinfodata/gridadjtord[" + row +"]/matractflag");
  781. var judgclamoneqty = Number(grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamoneqty")));
  782. var judgclamdayqty = Number(grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamdayqty")));
  783. var judgclamtotqty = Number(grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamtotqty")));
  784. var judgclamamt = Number(grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamamt")));
  785. var unitcost = Number(grd_adjtord.valueMatrix(curr_row, grd_adjtord.colRef("unitcost")));
  786. var corpactaddrate = model.getValue("/root/main/patinfodata/gridpatinfo/corpactaddrate");
  787. //할인률
  788. //model.alert(corpactaddrate);
  789. //model.alert(matractflag);
  790. if(matractflag == '2'){
  791. // 이의신청1회
  792. if (grd_adjtord.col == grd_adjtord.colRef("judgclamoneqty")) {
  793. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamoneqty")) != "") {
  794. grd_adjtord.rowStatus(curr_row) = 2; // update
  795. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamamt")) = Math.round((unitcost * judgclamoneqty * judgclamdayqty * judgclamtotqty) * (1 + (corpactaddrate/100))); // 이의신청액
  796. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  797. }
  798. }
  799. // 이의신청일투
  800. if (grd_adjtord.col == grd_adjtord.colRef("judgclamdayqty")) {
  801. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamdayqty")) != "") {
  802. grd_adjtord.rowStatus(curr_row) = 2; // update
  803. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamamt")) = Math.round((unitcost * judgclamoneqty * judgclamdayqty * judgclamtotqty) * (1 + (corpactaddrate/100))); // 이의신청액
  804. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  805. }
  806. }
  807. // 이의신청총투
  808. if (grd_adjtord.col == grd_adjtord.colRef("judgclamtotqty")) {
  809. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamtotqty")) != "") {
  810. grd_adjtord.rowStatus(curr_row) = 2; // update
  811. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamamt")) = Math.round((unitcost * judgclamoneqty * judgclamdayqty * judgclamtotqty) * (1 + (corpactaddrate/100))); // 이의신청액
  812. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  813. }
  814. }
  815. // model.alert("aa");
  816. }else{
  817. if (grd_adjtord.col == grd_adjtord.colRef("judgclamoneqty")) {
  818. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamoneqty")) != "") {
  819. grd_adjtord.rowStatus(curr_row) = 2; // update
  820. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamamt")) = Math.round((unitcost * judgclamoneqty * judgclamdayqty * judgclamtotqty)); // 이의신청액
  821. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  822. }
  823. }
  824. // 이의신청일투
  825. if (grd_adjtord.col == grd_adjtord.colRef("judgclamdayqty")) {
  826. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamdayqty")) != "") {
  827. grd_adjtord.rowStatus(curr_row) = 2; // update
  828. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamamt")) = Math.round((unitcost * judgclamoneqty * judgclamdayqty * judgclamtotqty)); // 이의신청액
  829. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  830. }
  831. }
  832. // 이의신청총투
  833. if (grd_adjtord.col == grd_adjtord.colRef("judgclamtotqty")) {
  834. if (grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamtotqty")) != "") {
  835. grd_adjtord.rowStatus(curr_row) = 2; // update
  836. grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("judgclamamt")) = Math.round((unitcost * judgclamoneqty * judgclamdayqty * judgclamtotqty)); // 이의신청액
  837. //grd_adjtord.valueMatrix(curr_row,grd_adjtord.colRef("workflag")) = "appinfo"; // workflag = "appinfo" set
  838. }
  839. }
  840. }
  841. model.refresh();
  842. ]]>
  843. </script>
  844. <script type="javascript" ev:event="onclick">
  845. <![CDATA[
  846. var row = grd_adjtord.row
  847. row = row-1;
  848. var chk = model.getValue("/root/main/patinfodata/gridadjtord[" + row+ "]/check");
  849. if (chk == "Y") {
  850. grd_adjtord.rowstatus(grd_adjtord.row) = 2;
  851. } else if (chk == "N") {
  852. grd_adjtord.rowstatus(grd_adjtord.row) = 0;
  853. }
  854. ]]>
  855. </script>
  856. </datagrid>
  857. <caption id="caption32" class="tit_2" style="left:551px; top:595px; width:100px; height:13px; ">심사청구사유</caption>
  858. <line id="line12" class="line_1" style="x1:551px; y1:610px; x2:1194px; y2:610px; "/>
  859. <textarea id="textarea3" ref="/root/main/patinfodata/gridpatinfo/clamobtapprem" style="left:551px; top:615px; width:643px; height:104px; "/>
  860. <line id="line10" class="line_3" style="x1:0px; y1:404px; x2:1194px; y2:404px; "/>
  861. <caption id="caption36" class="tit_2" style="left:306px; top:104px; width:131px; height:13px; ">환자정보</caption>
  862. <line id="line2" class="line_1" style="x1:304px; y1:123px; x2:598px; y2:123px; "/>
  863. <caption id="caption38" class="tit_2" style="left:2px; top:595px; width:157px; height:13px; ">이의신청사유 및 비고란</caption>
  864. <line id="line3" class="line_1" style="x1:0px; y1:610px; x2:548px; y2:610px; "/>
  865. <line id="line16" class="line_3" style="x1:0px; y1:745px; x2:1194px; y2:745px; "/>
  866. <textarea id="textarea4" ref="/root/main/patinfodata/gridpatinfo/obtapprem" style="left:0px; top:615px; width:548px; height:88px; "/>
  867. <output id="output1" ref="/root/main/patinfodata/gridpatinfo/orddrid" class="output_fix" appearance="output" style="left:375px; top:201px; width:70px; height:19px; "/>
  868. <output id="output2" ref="/root/main/patinfodata/gridpatinfo/ordtodd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:520px; top:201px; width:78px; height:19px; "/>
  869. <output id="output3" ref="/root/main/patinfodata/gridpatinfo/chosindayno" class="output_fix" appearance="output" style="left:520px; top:225px; width:78px; height:19px; "/>
  870. <caption id="caption22" class="cell_1" style="left:305px; top:200px; width:68px; height:23px; text-align:left; vertical-align:middle; ">진료의</caption>
  871. <output id="output4" ref="/root/main/patinfodata/gridpatinfo/insukind" class="output_fix" appearance="output" style="left:375px; top:225px; width:70px; height:19px; "/>
  872. <caption id="caption30" class="cell_1" style="left:448px; top:200px; width:70px; height:23px; text-align:left; vertical-align:middle; ">종료일</caption>
  873. <output id="output5" ref="/root/main/patinfodata/gridpatinfo/medcaredayno" class="output_fix" appearance="output" style="left:520px; top:249px; width:78px; height:19px; "/>
  874. <caption id="caption37" class="cell_1" style="left:305px; top:224px; width:68px; height:23px; text-align:left; vertical-align:middle; ">보험유형</caption>
  875. <output id="output6" ref="/root/main/patinfodata/gridpatinfo/payownbrate" class="output_fix" appearance="output" style="left:375px; top:249px; width:70px; height:19px; "/>
  876. <caption id="caption41" class="cell_1" style="left:448px; top:224px; width:70px; height:23px; text-align:left; vertical-align:middle; ">내원일수</caption>
  877. <caption id="caption42" class="cell_1" style="left:305px; top:248px; width:68px; height:23px; text-align:left; vertical-align:middle; ">적용요율</caption>
  878. <caption id="caption43" class="cell_1" style="left:448px; top:248px; width:70px; height:23px; text-align:left; vertical-align:middle; ">투약일수</caption>
  879. <textarea id="textarea6" ref="/root/main/patinfodata/gridpatinfo/rem" style="left:0px; top:705px; width:548px; height:38px; "/>
  880. <button id="button51" class="btn_sw" group="tab" selected="true" style="left:389px; top:275px; width:85px; height:22px; ">
  881. <caption>EDI메모</caption>
  882. <toggle case="edirem" ev:event="onclick"/>
  883. </button>
  884. <button id="button52" class="btn_sw" group="tab" style="left:474px; top:275px; width:85px; height:22px; ">
  885. <caption>심사자메모</caption>
  886. <toggle case="judgridrem" ev:event="onclick"/>
  887. </button>
  888. <switch id="switch2" style="left:304px; top:297px; width:515px; height:105px; border-color:#c7a3cf; border-style:solid; ">
  889. <case id="spcd" selected="true" style="left:0px; top:0px; width:511px; height:103px; ">
  890. <datagrid id="grd_clsphist" nodeset="/root/main/patinfodata/gridclsp" caption="X^구분^줄^EDI코드^특정코드^특정코드명^내역^형식^상세설명" colsep="^" colwidth="15, 30, 18, 66, 55, 80, 137, 55, 370" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:2px; top:2px; width:508px; height:98px; ">
  891. <col ref="rowstat"/>
  892. <col ref="unitflag" style="text-align:center; "/>
  893. <col ref="edilnno"/>
  894. <col ref="edicd"/>
  895. <col ref="spclcd"/>
  896. <col ref="spclnm"/>
  897. <col ref="spclspec" type="input"/>
  898. <col ref="spclformat"/>
  899. <col ref="detldesc"/>
  900. <script type="javascript" ev:event="onmousedown">
  901. <![CDATA[
  902. setPopupMenu("grd_clsphist", false, "/root/hidden/popupmenu/gridclsp/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  903. if (event.button != 3) {
  904. var row = grd_clsphist.mouseRow;
  905. if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  906. // 해당 특정코드의 기재형식이 Message 용 output 컨트롤에 표시된다.
  907. var spclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  908. if (spclcd == "JT001") {
  909. var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  910. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  911. model.setValue("/root/hidden/list3/msgspclformat", "확인코드 - "+ spclcd +" / 입력코드내역 : "+ spclspec +" / 기재형식 : "+ spclformat);
  912. model.refresh();
  913. } else if (spclcd) {
  914. var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  915. var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  916. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  917. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ spclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat);
  918. model.refresh();
  919. }
  920. }
  921. }
  922. ]]>
  923. </script>
  924. <script type="javascript" ev:event="xforms-value-changed">
  925. <![CDATA[
  926. var row = grd_clsphist.row;
  927. var newspclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  928. var newspclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  929. if (grd_clsphist.col == grd_clsphist.colRef("spclcd")) {
  930. var unitflag = model.getValue("/root/main/list3/clsp["+ row +"]/unitflag");
  931. if (unitflag == "M" && newspclcd != "") { // 명세서 단위
  932. if (newspclcd == "MT004" || newspclcd == "MT015" || newspclcd == "MT016" || newspclcd == "MX999") {
  933. // 중복된 특정코드가 있는지를 확인한다.
  934. for (var i = 1; i < grd_clsphist.rows; i++) {
  935. var oth_spclcd = model.getValue("/root/main/list3/clsp["+ i +"]/spclcd");
  936. if (row != i && newspclcd == oth_spclcd) {
  937. if (grd_clsphist.rowstatus(i) != 4) {
  938. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclcd");
  939. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclspec");
  940. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclformat");
  941. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/cdnm");
  942. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/detldesc");
  943. model.setValue("/root/hidden/list3/msgspclformat", "명세서 단위 특정코드 '"+ newspclcd +"'가 중복되었습니다.");
  944. model.refresh();
  945. return;
  946. }
  947. }
  948. }
  949. }
  950. // 특정코드 MT015, MT016, MT004 정보가 입력된 환자인지를 확인한다.
  951. fCheckSpclSpecData();
  952. } else {
  953. if (newspclcd == "JX999" || newspclcd == "JT001") {
  954. // 중복된 특정코드가 있는지를 확인한다.
  955. var spclLnNo = model.getValue("/root/main/list3/clsp["+ row +"]/edilnno");
  956. for (var i = 1; i < grd_clsphist.rows; i++) {
  957. var oth_spclcd = model.getValue("/root/main/list3/clsp["+ i +"]/spclcd");
  958. var oth_spclLnNo = model.getValue("/root/main/list3/clsp["+ i +"]/edilnno");
  959. if (spclLnNo == oth_spclLnNo && row != i && newspclcd == oth_spclcd) {
  960. if (grd_clsphist.rowstatus(i) != 4) {
  961. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclcd");
  962. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclspec");
  963. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclformat");
  964. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/cdnm");
  965. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/detldesc");
  966. model.setValue("/root/hidden/list3/msgspclformat", "줄번호 "+ spclLnNo +"의 줄단위 특정코드 '"+ newspclcd +"'가 중복되었습니다.");
  967. model.refresh();
  968. return;
  969. }
  970. }
  971. }
  972. }
  973. }
  974. var p0117list = instance1.selectSingleNode("/root/init/P0117list");
  975. if (p0117list != null) {
  976. var p0117 = p0117list.childNodes;
  977. for (var i = 1; i <= p0117.length; i++) {
  978. var cdid = model.getValue("/root/init/P0117list/P0117["+ i +"]/cdid");
  979. if (cdid == newspclcd) {
  980. model.setValue("/root/main/list3/clsp["+ row +"]/cdnm", model.getValue("/root/init/P0117list/P0117["+ i +"]/cdnm"));
  981. model.setValue("/root/main/list3/clsp["+ row +"]/spclformat", model.getValue("/root/init/P0117list/P0117["+ i +"]/cdval"));
  982. model.setValue("/root/main/list3/clsp["+ row +"]/detldesc", model.getValue("/root/init/P0117list/P0117["+ i +"]/detldesc"));
  983. i = p0117.length + 1;
  984. }
  985. }
  986. }
  987. var rowstatus = grd_clsphist.rowstatus(row);
  988. // 특정코드, 특정내역이 변경되었거나 삭제된 특정코드를 조회하여 "확인"을 선택한 경우
  989. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  990. } else {
  991. grd_clsphist.rowstatus(row) = 2; // 2 : update 상태로 stat를 변경한다.
  992. }
  993. var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  994. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  995. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ newspclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ newspclspec +" / 기재형식: "+ spclformat);
  996. model.refresh();
  997. } else { // grd_clsphist.colRef("spclcd") 가 아닌 경우
  998. var unitflag = model.getValue("/root/main/list3/clsp["+ row +"]/unitflag");
  999. if (unitflag == "J") {
  1000. if (newspclcd == "JT001") {
  1001. var clsplnno = model.getValue("/root/main/list3/clsp["+ row +"]/edilnno");
  1002. for (var j = 1; j < grd_clodhist.rows; j++) {
  1003. var clodlnno = model.getValue("/root/main/list2/clod["+ j +"]/edilnno");
  1004. if (clsplnno == clodlnno) {
  1005. model.setValue("/root/main/list2/clod["+ j +"]/cnfmcd", newspclspec);
  1006. }
  1007. }
  1008. if (newspclspec == "") { // 확인코드의 특정내역이 삭제된 경우임
  1009. for (var j = 1; j < grd_clsphist.rows; j++) {
  1010. var unitflag = model.getValue("/root/main/list3/clsp["+ j +"]/unitflag");
  1011. if (unitflag == "J") {
  1012. var spclLnno = model.getValue("/root/main/list3/clsp["+ j +"]/edilnno");
  1013. var spclSpclcd = model.getValue("/root/main/list3/clsp["+ j +"]/spclcd");
  1014. if (spclLnno == clsplnno && spclSpclcd == "JT001") {
  1015. var rowstatus = grd_clsphist.rowstatus(j);
  1016. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  1017. grd_clsphist.deleteRow(j, true); // 해당 라인을 Grid에서 삭제한다.
  1018. } else {
  1019. grd_clsphist.rowstatus(j) = 4;
  1020. }
  1021. }
  1022. }
  1023. }
  1024. model.setValue("/root/hidden/list3/msgspclformat", "입력된 확인코드 내역이 없습니다.");
  1025. model.refresh();
  1026. // 처방 행 삭제 or 삭제취소 후에 특정내역 sorting 작업
  1027. fSortSpclNo();
  1028. return;
  1029. }
  1030. }
  1031. }
  1032. var rowstatus = grd_clsphist.rowstatus(row);
  1033. // 특정코드, 특정내역이 변경되었거나 삭제된 특정코드를 조회하여 "확인"을 선택한 경우
  1034. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  1035. } else {
  1036. grd_clsphist.rowstatus(row) = 2; // 2 : update 상태로 stat를 변경한다.
  1037. }
  1038. var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  1039. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  1040. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ newspclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ newspclspec +" / 기재형식: "+ spclformat);
  1041. model.refresh();
  1042. // 처방 행 삭제 or 삭제취소 후에 특정내역 sorting 작업
  1043. fSortSpclNo();
  1044. }
  1045. ]]>
  1046. </script>
  1047. <script type="javascript" ev:event="onmouseover">
  1048. <![CDATA[
  1049. var row = grd_clsphist.mouseRow;
  1050. if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  1051. var rowstatus = grd_clsphist.rowstatus(grd_clsphist.mouseRow);
  1052. if (rowstatus == 0 || rowstatus == 2 || rowstatus == 4) { // DB에 저장된 data인 경우
  1053. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = true;
  1054. grd_clsphist.colDisabled(grd_clsphist.colRef("spclspec")) = false;
  1055. } else { // 신규로 추가한 경우
  1056. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = false;
  1057. grd_clsphist.colDisabled(grd_clsphist.colRef("spclspec")) = false;
  1058. var unitflag = model.getValue("/root/main/list3/clsp["+ grd_clsphist.mouseRow +"]/unitflag");
  1059. if (unitflag == "J") {
  1060. if (model.getValue("/root/main/list3/clsp["+ grd_clsphist.mouseRow +"]/spclcd") == "JT001") {
  1061. // 확인코드의 경우 전용 팝업창을 사용하므로 특정내역 Grid에서 수정하지 않는다.
  1062. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = true;
  1063. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[cdid = 'JT001']";
  1064. } else {
  1065. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[cdid != 'JT001' and dispseq >= '27']";
  1066. }
  1067. } else {
  1068. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[dispseq < '27' and cdid != 'MX999']";
  1069. }
  1070. }
  1071. }
  1072. ]]>
  1073. </script>
  1074. <script type="javascript" ev:event="DOMFocusOut">
  1075. <![CDATA[
  1076. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  1077. ]]>
  1078. </script>
  1079. <script type="javascript" ev:event="ondblclick">
  1080. <![CDATA[
  1081. // 특정내역 Grid 에서 선택한 줄단위 특정내역을 조회하고, 명세서단위 특정내역을 수정/입력한다.
  1082. if (grd_clsphist.isCell(event.target) && grd_clsphist.mouseRow >= grd_clsphist.fixedRows) {
  1083. var row = grd_clsphist.mouseRow;
  1084. if (model.getValue("/root/main/list3/clsp["+ row +"]/spclcd") == "JT001") {
  1085. fSetCnfmCdSpclSpec();
  1086. } else {
  1087. fSetDocRefLnSpclSpec();
  1088. }
  1089. }
  1090. ]]>
  1091. </script>
  1092. <script type="javascript" ev:event="onentercell">
  1093. <![CDATA[
  1094. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  1095. if (event.button != 3 && grd_clsphist.colType(grd_clsphist.col) == "input") {
  1096. grd_clsphist.editCell();
  1097. }
  1098. ]]>
  1099. </script>
  1100. </datagrid>
  1101. </case>
  1102. <case id="edirem">
  1103. <textarea id="textarea1" ref="/root/main/patinfodata/gridmemo/edimemo" scroll="vertical" style="left:2px; top:2px; width:508px; height:99px; "/>
  1104. </case>
  1105. <case id="judgridrem">
  1106. <textarea id="textarea2" ref="/root/main/patinfodata/gridmemo/judgmemo" scroll="vertical" style="left:2px; top:2px; width:508px; height:99px; "/>
  1107. </case>
  1108. </switch>
  1109. <button id="button9" class="btn2_letter2" style="left:1152px; top:590px; width:42px; height:19px; ">
  1110. <caption>저장</caption>
  1111. <script type="javascript" ev:event="DOMActivate">
  1112. <![CDATA[
  1113. var judgclamrem = model.getValue("/root/main/patinfodata/gridpatinfo/clamobtapprem");
  1114. var attdocu = model.getValue("/root/main/patinfodata/gridpatinfo/attdocu");
  1115. var preday = model.getValue("/root/main/patinfodata/gridpatinfo/preday");
  1116. var row = grd_pirhobtm.row;
  1117. var judgdg = model.getValue("/root/main/obtmlist/gridpirhobtm[" + row + "]/judgdg");
  1118. var clamno = model.getValue("/root/main/obtmlist/gridpirhobtm[" + row + "]/clamno");
  1119. var acptno = model.getValue("/root/main/obtmlist/gridpirhobtm[" + row + "]/acptno");
  1120. var docuseqno = model.getValue("/root/main/obtmlist/gridpirhobtm[" + row + "]/docuseqno");
  1121. var obtappflag = model.getValue("/root/main/obtmlist/gridpirhobtm[" + row + "]/obtappflag");
  1122. var instcd = model.getValue("/root/main/obtmlist/gridpirhobtm[" + row + "]/instcd");
  1123. model.setValue("/root/send/send_judgclamrem/judgdg",judgdg);
  1124. model.setValue("/root/send/send_judgclamrem/clamno",clamno);
  1125. model.setValue("/root/send/send_judgclamrem/acptno",acptno);
  1126. model.setValue("/root/send/send_judgclamrem/docuseqno",docuseqno);
  1127. model.setValue("/root/send/send_judgclamrem/obtappflag",obtappflag);
  1128. model.setValue("/root/send/send_judgclamrem/instcd",instcd);
  1129. model.setValue("/root/send/send_judgclamrem/judgclamrem",judgclamrem);
  1130. model.setValue("/root/send/send_judgclamrem/attdocu",attdocu);
  1131. model.setValue("/root/send/send_judgclamrem/preday",preday);
  1132. //model.alert(model.getValue("/root/send/send_judgclamrem/judgclamrem"));
  1133. submit("TXPIR31102");
  1134. ]]>
  1135. </script>
  1136. </button>
  1137. <button id="button2" class="btn_sw" group="tab" selected="true" style="left:304px; top:275px; width:85px; height:22px; ">
  1138. <caption>특정내역</caption>
  1139. <toggle case="spcd" ev:event="onclick"/>
  1140. </button>
  1141. <button id="button10" class="btn_sw" group="tab" selected="true" style="left:820px; top:272px; width:160px; height:22px; ">
  1142. <caption>심평원문서내용(명일련)</caption>
  1143. <toggle case="lnnorem" ev:event="onclick"/>
  1144. </button>
  1145. <button id="button11" class="btn_sw" group="tab" style="left:980px; top:272px; width:85px; height:22px; ">
  1146. <caption>줄번호사유</caption>
  1147. <toggle case="docurem" ev:event="onclick"/>
  1148. </button>
  1149. <switch id="switch3" style="left:820px; top:293px; width:374px; height:109px; border-color:#c7a3cf; border-style:solid; ">
  1150. <case id="lnnorem" selected="true">
  1151. <textarea id="textarea5" ref="/root/main/patinfodata/gridpatinfo/docuseqnorem" scroll="vertical" maxlength="1750" style="left:3px; top:3px; width:364px; height:102px; "/>
  1152. </case>
  1153. <case id="docurem">
  1154. <datagrid id="datagrid1" nodeset="/root/main/patinfodata/gridlnnoadjtresncd" caption="줄번호^사유내용" colsep="^" colwidth="48, 299" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:2px; width:365px; height:97px; ">
  1155. <col ref="lnno"/>
  1156. <col ref="adjtresncd"/>
  1157. </datagrid>
  1158. </case>
  1159. </switch>
  1160. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:57px; vertical-align:top; ">
  1161. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  1162. <caption id="caption2" class="search_name" style="left:15px; top:5px; width:96px; height:17px; ">청구번호 :</caption>
  1163. <button id="button1" class="btn1_letter2" style="left:1130px; top:30px; width:56px; height:22px; ">
  1164. <caption>조회</caption>
  1165. <script type="javascript" ev:event="DOMActivate">
  1166. <![CDATA[
  1167. fSearch();
  1168. ]]>
  1169. </script>
  1170. </button>
  1171. <line id="line13" class="line_4" style="x1:1115px; y1:30px; x2:1115px; y2:52px; "/>
  1172. <select1 id="cmb_obtappflag" ref="/root/send/send_obtmlist/obtappflag" class="combo_search" navindex="3" appearance="minimal" style="left:1110px; top:5px; width:73px; height:19px; ">
  1173. <choices>
  1174. <itemset nodeset="/root/init/P0264list/P0264">
  1175. <label ref="cdnm"/>
  1176. <value ref="cdid"/>
  1177. </itemset>
  1178. </choices>
  1179. <script type="javascript" ev:event="xforms-select">
  1180. <![CDATA[
  1181. rdo_obtappflag.deselect(1);
  1182. rdo_obtappflag.deselect(2);
  1183. ]]>
  1184. </script>
  1185. </select1>
  1186. <caption id="caption19" class="search_name" style="left:15px; top:33px; width:83px; height:17px; ">명일련 :</caption>
  1187. <input id="input1" ref="/root/send/send_obtmlist/docuseqno" class="input_search" style="left:90px; top:32px; width:73px; height:19px; "/>
  1188. <caption id="caption3" class="search_name" style="left:195px; top:5px; width:96px; height:17px; ">접수번호 :</caption>
  1189. <caption id="caption4" class="search_name" style="left:380px; top:7px; width:88px; height:17px; ">심사차수 :</caption>
  1190. <caption id="caption5" class="search_name" style="left:900px; top:6px; width:96px; height:17px; ">이신구분 :</caption>
  1191. <caption id="caption21" class="search_name" style="left:564px; top:6px; width:88px; height:17px; ">묶음번호 :</caption>
  1192. <input id="input7" ref="/root/send/send_obtmlist/setno" class="input_search" style="left:656px; top:5px; width:66px; height:19px; "/>
  1193. <output id="output8" ref="/root/main/obtmlist/acptinfo/claminfo" class="output_search" style="left:297px; top:32px; width:248px; height:19px; "/>
  1194. <caption id="caption9" class="search_name" style="left:749px; top:33px; width:99px; height:17px; ">이의신청액:</caption>
  1195. <caption id="caption10" class="search_name" style="left:564px; top:33px; width:115px; height:17px; ">총삭감액:</caption>
  1196. <caption id="caption11" class="search_name" style="left:941px; top:33px; width:75px; height:17px; ">부제기:</caption>
  1197. <input id="input11" ref="/root/send/send_obtmlist/notidd" class="input_search" format="yyyy-mm-dd" style="left:826px; top:5px; width:66px; height:19px; "/>
  1198. <caption id="caption12" class="search_name" style="left:734px; top:6px; width:110px; height:17px; ">도착일자 :</caption>
  1199. <caption id="caption13" class="search_name" style="left:171px; top:33px; width:50px; height:17px; ">항 :</caption>
  1200. <select1 id="combo3" ref="/root/send/send_obtmlist/item" class="combo_search" appearance="minimal" style="left:220px; top:33px; width:60px; height:19px; ">
  1201. <choices>
  1202. <itemset nodeset="/root/init/P0123list/P0123">
  1203. <label ref="cdnm"/>
  1204. <value ref="cdid"/>
  1205. </itemset>
  1206. </choices>
  1207. </select1>
  1208. <input id="ipt_clamno" ref="/root/send/send_obtmlist/clamno" class="input_search" style="left:105px; top:5px; width:73px; height:19px; "/>
  1209. <input id="ipt_acptno" ref="/root/send/send_obtmlist/acptno" class="input_s_essential" navindex="1" inputtype="button" style="left:286px; top:5px; width:73px; height:19px; "/>
  1210. <output id="output9" ref="/root/main/obtmlist/acptinfo/obtappamt" class="output_search" format="#,###" style="left:843px; top:32px; width:90px; height:19px; text-align:right; "/>
  1211. <output id="output10" ref="/root/main/obtmlist/acptinfo/abdamt" class="output_search" format="#,###" style="left:1009px; top:32px; width:90px; height:19px; text-align:right; "/>
  1212. <output id="output12" ref="/root/main/obtmlist/acptinfo/adjtamt" class="output_search" format="#,###" style="left:645px; top:32px; width:91px; height:19px; text-align:right; "/>
  1213. <input id="ipt_judgdg" ref="/root/send/send_obtmlist/judgdg" class="input_s_essential" navindex="2" style="left:471px; top:7px; width:73px; height:19px; ">
  1214. <script type="javascript" ev:event="DOMFocusOut">
  1215. <![CDATA[
  1216. var retVal = null;
  1217. // 접수번호와 심사차수로 청구번호(ClamNo)정보를 조회한다.
  1218. var judgdg = model.getValue("/root/send/send_obtmlist/judgdg");
  1219. var acptno = model.getValue("/root/send/send_obtmlist/acptno");
  1220. model.setValue("/root/send/send_clamno/judgdg", judgdg);
  1221. model.setValue("/root/send/send_clamno/acptno", acptno);
  1222. // 심사차수, 접수번호로 청구번호를 조회하는 Sub.....
  1223. submit("TRPIR31101");
  1224. //alert("1111 : " + model.getValue("/root/hidden/list01/claminfo/clamno"));
  1225. model.setValue("/root/send/send_obtmlist/clamno", model.getValue("/root/hidden/obtmlist/claminfo/clamno"));
  1226. model.refresh();
  1227. // var node = instance1.selectSingleNode("/root/hidden/list01");
  1228. // node.replaceChild(instance1.root.hidden.list01.claminfo, instance1.root.send);
  1229. ]]>
  1230. </script>
  1231. </input>
  1232. <select1 id="rdo_obtappflag" ref="/root/send/send_obtmlist/rejudgflag" class="radio_search" navindex="4" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:992px; top:7px; width:114px; height:15px; border-style:none; ">
  1233. <choices>
  1234. <item>
  1235. <label>전체</label>
  1236. <value>1</value>
  1237. </item>
  1238. <item>
  1239. <label>재심제외</label>
  1240. <value>2</value>
  1241. </item>
  1242. </choices>
  1243. <script type="javascript" ev:event="onclick">
  1244. <![CDATA[
  1245. cmb_obtappflag.deselect(1);
  1246. ]]>
  1247. </script>
  1248. </select1>
  1249. </group>
  1250. <button id="button3" class="btn2_letter2" style="left:1108px; top:408px; width:42px; height:19px; ">
  1251. <caption>저장</caption>
  1252. <script type="javascript" ev:event="DOMActivate">
  1253. <![CDATA[
  1254. var startRow = grd_adjtord.fixedRows;
  1255. var endRow = grd_adjtord.rows;
  1256. //model.alert(startRow);
  1257. startRow = startRow-1;
  1258. endRow = endRow-1;
  1259. for( var i = startRow; i < endRow; i++){
  1260. if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/check") == 'Y' ){
  1261. if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/obtappyn") == 'Y'){
  1262. messageBox("삭감항목중 이미 신청한 항목이 존재 합니다. 확인 후 다시 시도해 주세요. ","E999");
  1263. return;
  1264. }
  1265. }
  1266. if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/judgclamamt") == '' || model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/judgclamamt") == '-' || model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/judgclamamt") == ' '){
  1267. if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/abdyn") != 'Y'){
  1268. messageBox("심사청구액 혹은 부재기 사유메모항목이 누락되어 저장을 할 수 없습니다. 입력후 저장해 주세요!","E999");
  1269. return;
  1270. }
  1271. }
  1272. }
  1273. var obtm_row = grd_pirhobtm.row
  1274. var obtm_check = model.getValue("/root/main/obtmlist/gridpirhobtm["+ obtm_row +"]/judgclamendflag");
  1275. if(obtm_check == 'Y'){
  1276. messageBox("해당 대상자는 이미 심사마감 되어 저장 할 수 없습니다. 확인 후 다시 시도해 주세요. ","E999");
  1277. return false;
  1278. }
  1279. //var judgclamamt = model.getValue("/root/main/patinfodata/gridadjtord/judgclamamt");
  1280. //var abdresnmemo = model.getValue("/root/main/patinfodata/gridadjtord/abdresnmemo");
  1281. /*
  1282. if(judgclamamt == '0'){
  1283. if( messageBox("이의신청금액이 0원입니다. 계속 진행 하시겠습니까?", "Q999", "") != 6 ){
  1284. return false;
  1285. }
  1286. }
  1287. if(judgclamamt == '' || judgclamamt == '-' || judgclamamt == ' '){
  1288. if(abdresnmemo == '' || abdresnmemo == '-' || abdresnmemo == ' ' ){
  1289. messageBox("심사청구액 혹은 부재기 사유메모항목이 누락되어 저장을 할 수 없습니다. 입력후 저장해 주세요!","E999");
  1290. return;
  1291. }
  1292. }
  1293. */
  1294. model.setValue("/root/main/temp/gridadjtord", grd_adjtord.getUpdateData());
  1295. //model.alert(model.getValue("/root/main/temp/gridadjtord"));
  1296. submit("TXPIR31101"); // 삭감항목 update된거 저장
  1297. fSearch();
  1298. ]]>
  1299. </script>
  1300. </button>
  1301. <group id="group1" style="left:0px; top:68px; width:1195px; height:33px; vertical-align:top; ">
  1302. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:31px; background-color:#fffbf2; border-color:#ffd799; "/>
  1303. <line id="line5" class="line_4" style="x1:1116px; y1:5px; x2:1116px; y2:27px; "/>
  1304. <select1 id="combo1" ref="/root/hidden/filterlist/filter/orddeptcd" class="combo_search" appearance="minimal" style="left:100px; top:6px; width:73px; height:19px; ">
  1305. <!-- 원래 공통 P0287-->
  1306. <choices>
  1307. <itemset nodeset="/root/main/obtmlist/deptinfo">
  1308. <label ref="nm"/>
  1309. <value ref="cd"/>
  1310. </itemset>
  1311. </choices>
  1312. </select1>
  1313. <caption id="caption33" class="search_name" style="left:15px; top:7px; width:83px; height:17px; ">진 료 과 :</caption>
  1314. <caption id="caption34" class="search_name" style="left:195px; top:7px; width:73px; height:17px; ">진료의 :</caption>
  1315. <caption id="caption35" class="search_name" style="left:364px; top:7px; width:93px; height:17px; ">심 사 자 :</caption>
  1316. <button id="button6" class="btn1_letter2" style="left:1130px; top:5px; width:56px; height:22px; ">
  1317. <caption>필터</caption>
  1318. <script type="javascript" ev:event="onclick">
  1319. <![CDATA[
  1320. // 필터
  1321. fGetSelectedData();
  1322. ]]>
  1323. </script>
  1324. </button>
  1325. <button id="btn_initfilter" class="btn2_letter5" style="left:1036px; top:7px; width:75px; height:19px; ">
  1326. <caption>필터초기화</caption>
  1327. <script type="javascript" ev:event="DOMActivate">
  1328. <![CDATA[
  1329. // 필터용 조회조건을 초기화한다. 하하하
  1330. fInitFilter();
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. <select1 id="combo2" ref="/root/hidden/filterlist/filter/orddrid" class="combo_search" appearance="minimal" style="left:272px; top:7px; width:73px; height:19px; ">
  1335. <choices>
  1336. <itemset nodeset="/root/main/obtmlist/doctinfo">
  1337. <label ref="nm"/>
  1338. <value ref="cd"/>
  1339. </itemset>
  1340. </choices>
  1341. </select1>
  1342. <select1 id="combo4" ref="/root/hidden/filterlist/filter/judgrid" class="combo_search" appearance="minimal" style="left:450px; top:7px; width:95px; height:19px; ">
  1343. <choices>
  1344. <itemset nodeset="/root/main/obtmlist/judgrinfo">
  1345. <label ref="nm"/>
  1346. <value ref="cd"/>
  1347. </itemset>
  1348. </choices>
  1349. </select1>
  1350. </group>
  1351. <output id="opt_obtappdocuno" class="output_fix" style="left:230px; top:103px; width:60px; height:19px; "/>
  1352. <caption id="caption7" style="left:178px; top:106px; width:50px; height:14px; ">문서번호</caption>
  1353. <button id="button8" class="btn5_letter2" style="left:1152px; top:408px; width:42px; height:19px; ">
  1354. <caption>취소</caption>
  1355. <script type="javascript" ev:event="DOMActivate">
  1356. <![CDATA[
  1357. var startRow = grd_adjtord.fixedRows;
  1358. var endRow = grd_adjtord.rows;
  1359. //model.alert(startRow);
  1360. startRow = startRow-1;
  1361. endRow = endRow-1;
  1362. for( var i = startRow; i < endRow; i++){
  1363. if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/check") == 'Y' ){
  1364. if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/obtappyn") == 'N'){
  1365. messageBox("삭감항목중 취소할 항목이 존재 하지 않는 항이 존재합니다. 확인 후 다시 시도해 주세요. ","E999");
  1366. return;
  1367. }
  1368. }
  1369. }
  1370. var obtm_row = grd_pirhobtm.row
  1371. var obtm_check = model.getValue("/root/main/obtmlist/gridpirhobtm["+ obtm_row +"]/judgclamendflag");
  1372. if(obtm_check == 'Y'){
  1373. messageBox("해당 대상자는 이미 심사마감 되어 취소할 수 없습니다. 확인 후 다시 시도해 주세요. ","E999");
  1374. return false;
  1375. }
  1376. model.setValue("/root/main/temp/gridadjtord", grd_adjtord.getUpdateData());
  1377. submit("TXPIR31105"); // 삭감항목 update된거 저장
  1378. fSearch();
  1379. ]]>
  1380. </script>
  1381. </button>
  1382. <button id="button12" class="btn2_letter4" style="left:954px; top:408px; width:64px; height:19px; ">
  1383. <caption>결과조회</caption>
  1384. <script type="javascript" ev:event="DOMActivate">
  1385. <![CDATA[
  1386. model.makevalue("/root/hidden/smaer00800/cond/srchdate1", "");
  1387. model.makevalue("/root/hidden/smaer00800/cond/srchdate2", "");
  1388. model.makevalue("/root/hidden/smaer00800/cond/srchpid", model.getValue("/root/main/patinfodata/gridpatinfo/pid"));
  1389. model.makevalue("/root/hidden/smaer00800/cond/wardcd", "");
  1390. model.makevalue("/root/hidden/smaer00800/cond/roomcd", "");
  1391. model.makevalue("/root/hidden/smaer00800/cond/listflag", "P");
  1392. model.makevalue("/root/hidden/smaer00800/cond/deptcd", "");
  1393. model.makevalue("/root/hidden/smaer00800/cond/drid", "");
  1394. model.makevalue("/root/hidden/smaer00800/cond/chkcheck", "");
  1395. model.makevalue("/root/hidden/smaer00800/cond/chkcheck1", "A");
  1396. model.makevalue("/root/hidden/smaer00800/cond/chkcheck2", "B");
  1397. model.makevalue("/root/hidden/smaer00800/cond/chkcheck3", "C");
  1398. model.makevalue("/root/hidden/smaer00800/cond/chkcheck4", "D");
  1399. model.makevalue("/root/hidden/smaer00800/cond/chkcheck5", "E");
  1400. model.makevalue("/root/hidden/smaer00800/cond/chkcheck6", "F");
  1401. model.makevalue("/root/hidden/smaer00800/cond/chkcheck7", "G");
  1402. model.makevalue("/root/hidden/smaer00800/cond/chkcheck8", "");
  1403. model.makevalue("/root/hidden/smaer00800/cond/tabflag", "");
  1404. model.makevalue("/root/hidden/smaer00800/cond/mdlcd", "");
  1405. model.makevalue("/root/hidden/smaer00800/cond/examgubun", "");
  1406. open("SMAER00800" ,"", "10", "10", "SMAER00800", "/root/hidden/smaer00800/cond", "/root/send/data/singdata", "", "");
  1407. ]]>
  1408. </script>
  1409. </button>
  1410. <button id="button13" class="btn2_letter6" style="left:1020px; top:408px; width:86px; height:19px; ">
  1411. <caption>심사화면보기</caption>
  1412. <script type="javascript" ev:event="onclick">
  1413. <![CDATA[
  1414. var row = grd_pirhobtm.row;
  1415. if (grd_pirhobtm.row >= grd_pirhobtm.fixedRows ) {
  1416. if (grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")) == "I") {
  1417. var preDocuWindow = getChildWindow("SMPID20300");
  1418. } else {
  1419. var preDocuWindow = getChildWindow("SMPID20500");
  1420. }
  1421. if (preDocuWindow == null) {
  1422. model.setValue("/root/send/send_afjudg/workflag", "12");
  1423. model.setValue("/root/send/send_afjudg/clamym",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamym")));
  1424. model.setValue("/root/send/send_afjudg/clamdg",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamdg")));
  1425. model.setValue("/root/send/send_afjudg/pid",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pid")));
  1426. model.setValue("/root/send/send_afjudg/pidsn",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pidsn")));
  1427. model.setValue("/root/send/send_afjudg/ioflag",grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")));
  1428. if (grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")) == "I") {
  1429. open("SMPID20300", "2", "10", "10", "SMPID20300", "/root/send/send_afjudg","/root/send/item1/clbs", "", "");
  1430. } else {
  1431. open("SMPID20500", "2", "10", "10", "SMPID20500", "/root/send/send_afjudg","/root/send/item1/clbs", "", "");
  1432. }
  1433. } else {
  1434. if (grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")) == "I") {
  1435. model.setValue("/root/hidden/smpid20300/cond/workflag", "12");
  1436. model.setValue("/root/hidden/smpid20300/cond/clamym", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamym")));
  1437. model.setValue("/root/hidden/smpid20300/cond/clamdg", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamdg")));
  1438. model.setValue("/root/hidden/smpid20300/cond/pid", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pid")));
  1439. model.setValue("/root/hidden/smpid20300/cond/pidsn", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pidsn")));
  1440. model.setValue("/root/hidden/smpid20300/cond/ioflag", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")));
  1441. preDocuWindow.javascript.fActivatePreDocuWindow();
  1442. activateChild("SMPID20300");
  1443. } else {
  1444. model.setValue("/root/hidden/smpid20500/cond/workflag", "12");
  1445. model.setValue("/root/hidden/smpid20500/cond/clamym", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamym")));
  1446. model.setValue("/root/hidden/smpid20500/cond/clamdg", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("clamdg")));
  1447. model.setValue("/root/hidden/smpid20500/cond/pid", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pid")));
  1448. model.setValue("/root/hidden/smpid20500/cond/pidsn", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("pidsn")));
  1449. model.setValue("/root/hidden/smpid20500/cond/ioflag", grd_pirhobtm.valueMatrix(row,grd_pirhobtm.colRef("ioflag")));
  1450. preDocuWindow.javascript.fActivatePreDocuWindow();
  1451. activateChild("SMPID20500");
  1452. }
  1453. }
  1454. }
  1455. ]]>
  1456. </script>
  1457. </button>
  1458. <select id="chk_attdocu" ref="/root/main/patinfodata/gridpatinfo/attdocu" overflow="visible" appearance="full" cellspacing="1" cols="5" sep="," vcellspacing="10" style="left:619px; top:721px; width:568px; height:20px; border-style:none; ">
  1459. <choices>
  1460. <item>
  1461. <label>심사결과통보문서 사본</label>
  1462. <value>1</value>
  1463. </item>
  1464. <item>
  1465. <label>이의신청 및 처리결과통보문서 사본</label>
  1466. <value>2</value>
  1467. </item>
  1468. <item>
  1469. <label>심사청구이유서 및 부속서</label>
  1470. <value>3</value>
  1471. </item>
  1472. <item>
  1473. <label>소견서</label>
  1474. <value>4</value>
  1475. </item>
  1476. </choices>
  1477. </select>
  1478. <caption id="caption16" class="tit_2" style="left:552px; top:727px; width:69px; height:13px; ">첨부문서</caption>
  1479. <line id="line8" class="line_3" style="x1:551px; y1:722px; x2:1194px; y2:722px; "/>
  1480. <select id="checkbox2" ref="/root/main/patinfodata/gridpatinfo/attdocu" visibility="hidden" overflow="visible" appearance="full" cellspacing="1" cols="7" sep="," vcellspacing="10" style="left:620px; top:720px; width:535px; height:20px; border-style:none; ">
  1481. <choices>
  1482. <item>
  1483. <label>5.기타</label>
  1484. <value>5</value>
  1485. </item>
  1486. <item>
  1487. <label>6.진료기록부사본</label>
  1488. <value>6</value>
  1489. </item>
  1490. <item>
  1491. <label>7.CD</label>
  1492. <value>7</value>
  1493. </item>
  1494. <item>
  1495. <label>8.필름</label>
  1496. <value>8</value>
  1497. </item>
  1498. <item>
  1499. <label>9.기타</label>
  1500. <value>9</value>
  1501. </item>
  1502. <item>
  1503. <label>10.신규</label>
  1504. <value>10</value>
  1505. </item>
  1506. <item>
  1507. <label>11.변경</label>
  1508. <value>11</value>
  1509. </item>
  1510. </choices>
  1511. </select>
  1512. <caption id="caption17" class="tit_2" style="left:835px; top:595px; width:100px; height:14px; ">예치일 :</caption>
  1513. <input id="input3" ref="/root/main/patinfodata/gridpatinfo/preday" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:910px; top:590px; width:100px; height:19px; "/>
  1514. </group>
  1515. <group id="grp_btn" style="left:0px; top:760px; width:1195px; height:24px; ">
  1516. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1517. <button id="button7" class="btn3_letter7" style="left:0px; top:2px; width:116px; height:22px; ">
  1518. <caption>심사청구서 출력</caption>
  1519. <script type="javascript" ev:event="onclick">
  1520. <![CDATA[
  1521. model.setValue("/root/send/send_prnt/judgdg",model.getValue("/root/send/send_obtmlist/judgdg"));
  1522. model.setValue("/root/send/send_prnt/clamno",model.getValue("/root/send/send_obtmlist/clamno"));
  1523. model.setValue("/root/send/send_prnt/acptno",model.getValue("/root/send/send_obtmlist/acptno"));
  1524. model.setValue("/root/send/send_prnt/obtappflag",model.getValue("/root/send/send_obtmlist/obtappflag"));
  1525. var insukind = model.getValue("/root/main/patinfodata/gridpatinfo/insukind");
  1526. model.setValue("/root/send/send_prnt/insukind",insukind.substr(0,2));
  1527. modal("SPPIR30500", 1, 1, 1, "SPPIR30500", "/root/send/send_prnt", "/root/receiveref");
  1528. ]]>
  1529. </script>
  1530. </button>
  1531. <button id="button4" class="btn3_letter4" style="left:119px; top:2px; width:80px; height:22px; ">
  1532. <caption>심사마감</caption>
  1533. <script type="javascript" ev:event="DOMActivate">
  1534. <![CDATA[
  1535. model.makeNode("/root/hidden/enddate/obtappdd");
  1536. model.makeNode("/root/hidden/enddate/notidd");
  1537. model.makeNode("/root/hidden/enddate/obtappdocuno");
  1538. var curDate = getCurrentDate();
  1539. model.setValue("/root/hidden/enddate/obtappdd", curDate);
  1540. var notidd = model.getValue("/root/send/send_obtmlist/notidd");
  1541. model.setValue("/root/hidden/enddate/notidd", notidd);
  1542. // 이의신청문서번호 값 조정 ( '보험'을 찍어준다)
  1543. var obtappdocuno = model.getValue("/root/hidden/enddate/obtappdocuno");
  1544. if (obtappdocuno == "" || obtappdocuno == "-") {
  1545. model.setValue("/root/hidden/enddate/obtappdocuno", "보험");
  1546. ipt_obtappdocuno.refresh();
  1547. }
  1548. var endRow = grd_pirhobtm.rows;
  1549. var a = 0;
  1550. for( var i = 0; i < endRow; i++){
  1551. if(model.getValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/check") == 'Y' ){
  1552. a++;
  1553. }
  1554. }
  1555. if( a == '0'){
  1556. messageBox("심사 마감할 항목이 선택되지 않았습니다. 대상자를 선택 후 다시 시도해 주세요. ","E999");
  1557. return;
  1558. }
  1559. grp_memo.visible = true;
  1560. ]]>
  1561. </script>
  1562. </button>
  1563. <button id="button5" class="btn3_letter6" style="left:201px; top:1px; width:104px; height:22px; ">
  1564. <caption>심사마감취소</caption>
  1565. <script type="javascript" ev:event="DOMActivate">
  1566. <![CDATA[
  1567. if( messageBox("선택하신 대상자를 마감취소 하시겠습니까 ?", "Q999", "") != 6){
  1568. return false;
  1569. }
  1570. var endRow = grd_pirhobtm.rows;
  1571. var a = 0;
  1572. for( var i = 0; i < endRow; i++){
  1573. if(model.getValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/check") == 'Y' ){
  1574. a++;
  1575. }
  1576. }
  1577. if( a == '0'){
  1578. messageBox("심사 마감취소할 항목이 선택되지 않았습니다. 대상자를 선택 후 다시 시도해 주세요. ","E999");
  1579. return;
  1580. }
  1581. var cur_row = grd_pirhobtm.row
  1582. if( cur_row > 0 ){
  1583. model.setValue("/root/send/updatedata/datalist",grd_pirhobtm.getUpdateData());
  1584. submit("TXPIR31104")
  1585. grd_pirhobtm.clearStatus();
  1586. model.removeNodeset("/root/send/updatedata/datalist");
  1587. model.makeNode("/root/send/updatedata/datalist");
  1588. model.refresh();
  1589. }
  1590. fSearch();
  1591. ]]>
  1592. </script>
  1593. </button>
  1594. </group>
  1595. <group id="grp_memo" visibility="hidden" style="left:435px; top:361px; width:285px; height:144px; border-color:#c7a3cf; border-style:solid; ">
  1596. <caption id="cpt_text" class="tit_2" style="left:5px; top:0px; width:118px; height:14px; ">심사청구 마감</caption>
  1597. <line id="line6" class="line_1" style="x1:0px; y1:15px; x2:277px; y2:15px; "/>
  1598. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:275px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  1599. <button id="btn_cancel" class="btn4_letter2" style="left:217px; top:113px; width:56px; height:22px; ">
  1600. <caption>닫기</caption>
  1601. <script type="javascript" ev:event="DOMActivate">
  1602. <![CDATA[
  1603. model.destroy("/root/hidden/enddate");
  1604. model.makeNode("/root/hidden/enddate");
  1605. grp_memo.visible = false;
  1606. ]]>
  1607. </script>
  1608. </button>
  1609. <button id="btn_end" class="btn4_letter2" style="left:159px; top:113px; width:56px; height:22px; ">
  1610. <caption>마감</caption>
  1611. <script type="javascript" ev:event="DOMActivate">
  1612. <![CDATA[
  1613. var startRow = grd_adjtord.fixedRows;
  1614. var endRow = grd_adjtord.rows;
  1615. //model.alert(startRow);
  1616. startRow = startRow-1;
  1617. endRow = endRow-1;
  1618. for( var i = startRow; i < endRow; i++){
  1619. if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/obtappyn") != 'Y' && model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/abdyn") != 'Y'){
  1620. // if(model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/abdyn") == '' || model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/obtappyn") == '-' || model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/obtappyn") == ' ' ){ //model.getValue("/root/main/patinfodata/gridadjtord["+ startRow +"]/obtappyn") == ''){
  1621. messageBox("삭감항목중 이의신청 혹은 부재기 처리되지 않은 항목이 존재 합니다. 확인 후 다시 시도해 주세요. ","E999");
  1622. return;
  1623. // }
  1624. }
  1625. }
  1626. var row = grd_pirhobtm.row;
  1627. var rows = grd_pirhobtm.rows;
  1628. //rows = rows;
  1629. //model.alert(row);
  1630. //model.makeValue("/root/main/obtmlist/gridpirhobtm/check");
  1631. var check = model.getValue("/root/main/obtmlist/gridpirhobtm["+ row +"]/check");
  1632. var judgclamendflag = model.getValue("/root/main/obtmlist/gridpirhobtm["+ row +"]/judgclamendflag");
  1633. var obtappyn = model.getValue("/root/main/obtmlist/gridpirhobtm["+ row +"]/obtappyn");
  1634. /*
  1635. if( obtappyn == 'N'){
  1636. messageBox("이의신청이 확인이 안된 대상자는 마감을 할 수 없습니다.. ","E999");
  1637. //model.setValue("/root/main/obtmlist/gridpirhobtm["+ row +"]/check", 'N');
  1638. return;
  1639. }
  1640. */
  1641. if(judgclamendflag == 'Y'){
  1642. messageBox("이미 심사마감이 되어 있는 대상자 입니다. 확인 후 다시 시도해 주세요. ","E999");
  1643. //model.setValue("/root/main/obtmlist/gridpirhobtm["+ row +"]/check", 'N');
  1644. return;
  1645. }
  1646. if( messageBox("선택하신 대상자를 마감 하시겠습니까 ?", "Q999", "") != 6){
  1647. return false;
  1648. }
  1649. for( var i = 1; i < rows; i++){
  1650. if(model.getValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/check") == 'Y'){
  1651. model.setValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/notidd", model.getValue("/root/hidden/enddate/notidd"));
  1652. model.setValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/obtappdd", model.getValue("/root/hidden/enddate/obtappdd"));
  1653. model.setValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/obtappdocuno", model.getValue("/root/hidden/enddate/obtappdocuno"));
  1654. // model.alert(model.getValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/notidd"));
  1655. // model.alert(model.getValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/obtappdd"));
  1656. // model.alert(model.getValue("/root/main/obtmlist/gridpirhobtm["+ i +"]/obtappdocuno"));
  1657. }
  1658. }
  1659. var cur_row = grd_pirhobtm.row
  1660. if( cur_row > 0 ){
  1661. model.setValue("/root/send/updatedata/datalist",grd_pirhobtm.getUpdateData());
  1662. //model.alert(model.getValue("/root/send/updatedata/datalist"));
  1663. submit("TXPIR31103")
  1664. grd_pirhobtm.clearStatus();
  1665. model.removeNodeset("/root/send/updatedata/datalist");
  1666. model.makeNode("/root/send/updatedata/datalist");
  1667. fSearch();
  1668. model.refresh();
  1669. }
  1670. // model.destroy("/root/hidden/enddate");
  1671. // model.makeNode("/root/hidden/enddate");
  1672. grp_memo.visible = false;
  1673. ]]>
  1674. </script>
  1675. </button>
  1676. <caption id="caption8" class="search_name" style="left:15px; top:84px; width:138px; height:17px; ">심사청구문서번호 :</caption>
  1677. <caption id="caption14" class="search_name" style="left:15px; top:29px; width:138px; height:17px; ">심사결과통보일자 :</caption>
  1678. <input id="ipt_obtappdd" ref="/root/hidden/enddate/obtappdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:160px; top:55px; width:100px; height:19px; "/>
  1679. <input id="ipt_notidd" ref="/root/hidden/enddate/notidd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:160px; top:28px; width:100px; height:19px; "/>
  1680. <input id="ipt_obtappdocuno" ref="/root/hidden/enddate/obtappdocuno" class="input_search" style="left:160px; top:83px; width:100px; height:19px; "/>
  1681. <caption id="caption29" class="search_name" style="left:15px; top:56px; width:163px; height:17px; ">심사청구신청일자 :</caption>
  1682. <input id="input2" ref="/root/hidden/enddate/obtappdocuno" class="input_search" style="left:160px; top:83px; width:100px; height:19px; "/>
  1683. </group>
  1684. </xhtml:body>
  1685. </xhtml:html>