SMPMB00200_보험유형관리.xrw 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>보험유형관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <desc>
  11. <insukind/>
  12. <suppkind/>
  13. <fromdd/>
  14. <todd/>
  15. <calcscorappflag/>
  16. <ioflag/>
  17. <fixflag/>
  18. <corpactaddrate/>
  19. <outpayownbrate/>
  20. <childoutpayownbrate/>
  21. <inpayownbrate/>
  22. <medownbrate/>
  23. <childmedownbrate/>
  24. <ctownbrate/>
  25. <mriownbrate/>
  26. <sonoownbrate/>
  27. <petctownbrate/>
  28. <basemealownbrate/>
  29. <addmealownbrate/>
  30. <drugexptownbrate/>
  31. <fixbaseamt/>
  32. <fixminamt/>
  33. <fixmaxamt/>
  34. <insukindnm/>
  35. <suppkindnm/>
  36. <ostomyownbrate/>
  37. <ownbmaxamt/>
  38. <prcptdayrcptyn/>
  39. <prockindflag/>
  40. <sunaownbrate/>
  41. <sunbownbrate/>
  42. <fourpayownbrate/>
  43. <rgstcmt/>
  44. <comrate/>
  45. <inpayownbrate2/>
  46. <inpayownbrate3/>
  47. <isoroomrate/>
  48. <ownbmaxappyn/>
  49. <etc1ownbrate/>
  50. <etc2ownbrate/>
  51. <etc3ownbrate/>
  52. <etc4ownbrate/>
  53. <etc5ownbrate/>
  54. <etc6ownbrate/>
  55. <etc7ownbrate/>
  56. <etc8ownbrate/>
  57. <etc9ownbrate/>
  58. <etc10ownbrate/>
  59. </desc>
  60. <result/>
  61. <insukindcdspec>
  62. <insukindcdspeclist/>
  63. </insukindcdspec>
  64. </main>
  65. <send>
  66. <insukind/>
  67. <fromdd/>
  68. <todd/>
  69. <allyn/>
  70. <updatedata>
  71. <datalist/>
  72. </updatedata>
  73. <savedata>
  74. </savedata>
  75. <baseinsukind/>
  76. <basesuppkind/>
  77. <basetodd/>
  78. <newfromdd/>
  79. <newtodd/>
  80. <endflag/>
  81. <iudflag/>
  82. <ioflag/>
  83. <baseseqno/>
  84. </send>
  85. <init>
  86. <P0008list>
  87. <P0008>
  88. <cdnm/>
  89. <cdid/>
  90. </P0008>
  91. </P0008list>
  92. <P0010list>
  93. <P0010>
  94. <cdnm/>
  95. <cdid/>
  96. </P0010>
  97. </P0010list>
  98. <P0009list>
  99. <P0009>
  100. <cdnm/>
  101. <cdid/>
  102. </P0009>
  103. </P0009list>
  104. <P0080list>
  105. <P0080>
  106. <cdnm/>
  107. <cdid/>
  108. </P0080>
  109. </P0080list>
  110. <P0261list>
  111. <P0261>
  112. <cdnm/>
  113. <cdid/>
  114. </P0261>
  115. </P0261list>
  116. </init>
  117. <hidden>
  118. <item1/>
  119. </hidden>
  120. </root>
  121. </instance>
  122. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  123. <submission id="TRPMB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/insukindcdspec"/>
  124. <submission id="TXPMB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
  125. <submission id="TXPMB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/item1"/>
  126. <submission id="TXPMB00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden/item1"/>
  127. </model>
  128. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  131. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  132. <script type="javascript" ev:event="xforms-ready">
  133. <![CDATA[
  134. zbcfGetCodeList(new Array("P0008", "P0010", "P0009", "P0080", "P0261"),
  135. new Array("/root/init/P0008list", "/root/init/P0010list", "/root/init/P0009list", "/root/init/P0080list", "/root/init/P0261list"));
  136. //초기화 및 날자 입력 항목에 오늘 날자 세팅
  137. fInitialize();
  138. //이력포함 버튼 초기에 클릭
  139. checkbox1.dispatch("xforms-select");
  140. ]]>
  141. </script>
  142. <script type="javascript">
  143. <![CDATA[
  144. //화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  145. function fInitialize() {
  146. model.resetInstanceNode("/root/send");
  147. model.resetInstanceNode("/root/main/desc");
  148. model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
  149. //날자 입력 항목에 오늘 날자 세팅
  150. var curDate = getCurrentDate();
  151. model.setValue("/root/send/fromdd", curDate);
  152. model.setFocus("cmb_insukind");
  153. model.refresh();
  154. }
  155. //시스템코드, 메시지종료, 메시지 번호가 입력되면 이들을 조합하여 메시지코드를 설정한다.
  156. function fSetMessageCode() {
  157. var syscd = model.getValue("/root/main/item/syscd");
  158. var msgkind = model.getValue("/root/main/item/msgkind");
  159. var msgno = model.getValue("/root/main/item/msgno");
  160. var msgcd = syscd + "." + msgkind + "." + msgno;
  161. model.setValue("/root/main/item/msgcd",msgcd);
  162. model.refresh();
  163. }
  164. function fcheckSrchDD(){
  165. var fromdd = model.getValue("/root/send/fromdd");
  166. var todd = model.getValue("/root/send/todd");
  167. if( fromdd == "" ){
  168. messageBox("적용 시작일자를 넣어주세요.", "E999", "" );
  169. return false;
  170. }else if( todd == "" ){
  171. messageBox("적용 종료일자를 넣어주세요.", "E999", "" );
  172. return false;
  173. }else{
  174. if( fromdd > todd ){
  175. messageBox("적용 시작일자가 종료일자보다 큽니다. 다시 입력해 주세요.", "E999", "");
  176. return false;
  177. }else{
  178. return true;
  179. }
  180. }
  181. }
  182. //"보험유형코드종료" 기능
  183. function fSetInsuEnd() {
  184. var new_todd = model.getValue("/root/main/desc/todd");
  185. var fromdd = model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/fromdd");
  186. var insukind = model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/insukind");
  187. var suppkind = model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/suppkind");
  188. var oldtodd = model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/todd");
  189. var oldseqno = model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/seqno");
  190. // 2016/09/19 이정택 수정
  191. //fendAlert();
  192. if(!fendAlert()){
  193. return;
  194. }
  195. // 2016/09/19 이정택 수정
  196. if (new_todd == '99991231' && oldtodd == '99991231') {
  197. // 현재 화면에 설정된 종료일자와 검색한 수가코드의 종료일자가 모두 99991231인 경우
  198. var rtn = messageBox("오늘날짜로 보험유형코드를 종료하시겠습니까?", "Q999"); ///오늘날짜로 수가코드를 종료 하시려면 예(Yes)\n아니면 아니오(No)
  199. // Yes : 6 / No : 7 / Cancel : 2
  200. if (rtn == 6) { // ==> 오늘날짜로 종료 처리를 한다.
  201. if ( fromdd >= getCurrentDate() ) {
  202. window.alert("시작일자가 오늘보다 이후이므로 오늘날짜로 종료할수없습니다.", "경고", "48");
  203. return;
  204. }
  205. model.setValue("/root/send/baseinsukind" , insukind); // 보험유형
  206. model.setValue("/root/send/basesuppkind", suppkind); // 보조유형
  207. model.setValue("/root/send/basetodd" , oldtodd); // 종료일자
  208. model.setValue("/root/send/baseseqno", oldseqno); // 일련번호
  209. model.setValue("/root/send/newtodd" , getCurrentDate()); // 새로 입력할 종료일자
  210. rtn = submit("TXPMB00202");
  211. if (rtn) {
  212. messageBox("보험유형코드가 종료되었습니다.", "I999");
  213. }
  214. }
  215. }else {
  216. // 시작일자 보다 더 이전 날짜로 종료 설정을 하지 않았는지 확인한다.
  217. if (fromdd >= new_todd) {
  218. window.alert("종료일자가 시작일자 보다 이전이거나 같습니다.", "경고", "48");
  219. return;
  220. }
  221. var rtn = messageBox("보험유형코드를 \'"+new_todd+"\'로 종료하시겠습니까?", "Q999"); ///수가코드를 (입력된 종료날짜)로 종료 하시려면 예(Yes)\n아니면 아니오(No)
  222. if (rtn != 6) { return;}
  223. //입력된 날짜로 종료 처리를 한다.
  224. model.setValue("/root/send/baseinsukind" , insukind); // 보험유형
  225. model.setValue("/root/send/basesuppkind", suppkind); // 보조유형
  226. model.setValue("/root/send/basetodd" , oldtodd); // 종료일자
  227. model.setValue("/root/send/ioflag", oldseqno); // 일련번호
  228. model.setValue("/root/send/newtodd" , new_todd); // 새로 입력할 종료일자
  229. rtn = submit("TXPMB00202");
  230. if (rtn) {
  231. messageBox("수가코드가 종료되었습니다.", "I999");
  232. }
  233. }
  234. //종료후 단축조회 refresh함
  235. submit("TRPMB00201");
  236. model.refresh();
  237. }
  238. function fsaveAlert(){
  239. if ( model.getValue("/root/main/desc/fromdd") < getCurrentDate() ) {
  240. messageBox("새로 시작할 일자가 오늘 이전으로 되었습니다.", "E999"); ///종료일자가 입력되지 않았습니다.
  241. return false;
  242. }
  243. if(model.getvalue("/root/main/desc/fromdd") <= model.getvalue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/fromdd")){
  244. messageBox("새로 시작할 일자는 기존 시작일자보다 커야합니다. 시작일자를 확인해주십시요!", "E999");
  245. return false;
  246. }
  247. if ( model.getValue("/root/main/desc/insukind") == "" || model.getValue("/root/main/desc/insukind") == null ) {
  248. messageBox("보험유형이 입력되지", "E007");
  249. return false;
  250. }
  251. if ( model.getValue("/root/main/desc/suppkind") == "" || model.getValue("/root/main/desc/suppkind") == null ) {
  252. messageBox("유형보조가 입력되지", "E007");
  253. return false;
  254. }
  255. if ( model.getValue("/root/main/desc/fromdd") == "" || model.getValue("/root/main/desc/fromdd") == null ) {
  256. messageBox("시작일자가 입력되지", "E007");
  257. return false;
  258. }
  259. if ( model.getValue("/root/main/desc/todd") == "" || model.getValue("/root/main/desc/todd") == null ) {
  260. messageBox("종료일자가 입력되지", "E007");
  261. return false;
  262. }
  263. if ( model.getValue("/root/main/desc/calcscorappflag") == "" || model.getValue("/root/main/desc/calcscorappflag") == null ) {
  264. messageBox("수가적용구분이 입력되지", "E007");
  265. return false;
  266. }
  267. if ( model.getValue("/root/main/desc/ioflag") == "" || model.getValue("/root/main/desc/ioflag") == null ) {
  268. messageBox("입원외래구분이 입력되지", "E007");
  269. return false;
  270. }
  271. if ( model.getValue("/root/main/desc/fixflag") == "" || model.getValue("/root/main/desc/fixflag") == null ) {
  272. messageBox("정액구분이 입력되지", "E007");
  273. return false;
  274. }
  275. if ( model.getValue("/root/main/desc/corpactaddrate") == "" || model.getValue("/root/main/desc/corpactaddrate") == null ) {
  276. messageBox("요양기관행위가산률이 입력되지", "E007");
  277. return false;
  278. }
  279. if ( model.getValue("/root/main/desc/outpayownbrate") == "" || model.getValue("/root/main/desc/outpayownbrate") == null ) {
  280. messageBox("외래급여본인부담률이 입력되지", "E007");
  281. return false;
  282. }
  283. if ( model.getValue("/root/main/desc/childoutpayownbrate") == "" || model.getValue("/root/main/desc/childoutpayownbrate") == null ) {
  284. messageBox("6세미만외래급여본인부담률이 입력되지", "E007");
  285. return false;
  286. }
  287. if ( model.getValue("/root/main/desc/inpayownbrate") == "" || model.getValue("/root/main/desc/inpayownbrate") == null ) {
  288. messageBox("입원급여본인부담률이 입력되지", "E007");
  289. return false;
  290. }
  291. if ( model.getValue("/root/main/desc/medownbrate") == "" || model.getValue("/root/main/desc/medownbrate") == null ) {
  292. messageBox("진찰료본인부담률이 입력되지", "E007");
  293. return false;
  294. }
  295. if ( model.getValue("/root/main/desc/childmedownbrate") == "" || model.getValue("/root/main/desc/childmedownbrate") == null ) {
  296. messageBox("6세미만진찰료본인부담률이 입력되지", "E007");
  297. return false;
  298. }
  299. if ( model.getValue("/root/main/desc/ctownbrate") == "" || model.getValue("/root/main/desc/ctownbrate") == null ) {
  300. messageBox("CT본인부담률이 입력되지", "E007");
  301. return false;
  302. }
  303. if ( model.getValue("/root/main/desc/mriownbrate") == "" || model.getValue("/root/main/desc/mriownbrate") == null ) {
  304. messageBox("MRI본인부담률이 입력되지", "E007");
  305. return false;
  306. }
  307. if ( model.getValue("/root/main/desc/sonoownbrate") == "" || model.getValue("/root/main/desc/sonoownbrate") == null ) {
  308. messageBox("SONO본인부담률이 입력되지", "E007");
  309. return false;
  310. }
  311. if ( model.getValue("/root/main/desc/petctownbrate") == "" || model.getValue("/root/main/desc/petctownbrate") == null ) {
  312. messageBox("PETCT본인부담률이 입력되지", "E007");
  313. return false;
  314. }
  315. if ( model.getValue("/root/main/desc/basemealownbrate") == "" || model.getValue("/root/main/desc/basemealownbrate") == null ) {
  316. messageBox("기본식대부담률이 입력되지", "E007");
  317. return false;
  318. }
  319. if ( model.getValue("/root/main/desc/addmealownbrate") == "" || model.getValue("/root/main/desc/addmealownbrate") == null ) {
  320. messageBox("가산식대본인부담률이 입력되지", "E007");
  321. return false;
  322. }
  323. if ( model.getValue("/root/main/desc/drugexptownbrate") == "" || model.getValue("/root/main/desc/drugexptownbrate") == null ) {
  324. messageBox("분업예외약가총액본인부담률이 입력되지", "E007");
  325. return false;
  326. }
  327. if ( model.getValue("/root/main/desc/fixbaseamt") == "" || model.getValue("/root/main/desc/fixbaseamt") == null ) {
  328. messageBox("기준금액이 입력되지", "E007");
  329. return false;
  330. }
  331. if ( model.getValue("/root/main/desc/fixminamt") == "" || model.getValue("/root/main/desc/fixminamt") == null ) {
  332. messageBox("정액 MIN금액이 입력되지", "E007");
  333. return false;
  334. }
  335. if ( model.getValue("/root/main/desc/fixmaxamt") == "" || model.getValue("/root/main/desc/fixmaxamt") == null ) {
  336. messageBox("정액 MAX금액이 입력되지", "E007");
  337. return false;
  338. }
  339. if ( model.getValue("/root/main/desc/prcptdayrcptyn") == "" || model.getValue("/root/main/desc/prcptdayrcptyn") == null ) {
  340. messageBox("당일선수납 사용여부가 입력되지", "E007");
  341. return false;
  342. }
  343. if ( model.getValue("/root/main/desc/todd") < getCurrentDate() ) {
  344. messageBox("종료일자가 오늘 이전으로 되었습니다.", "E999"); ///종료일자가 입력되지 않았습니다.
  345. return false;
  346. }
  347. if (model.getValue("/root/main/desc/inpayownbrate2") == "" || model.getValue("/root/main/desc/inpayownbrate2") == null) {
  348. messageBox("장기재원본인부담률(16일~30일)이 입력되지", "E007");
  349. return false;
  350. }
  351. if (model.getValue("/root/main/desc/inpayownbrate3") == "" || model.getValue("/root/main/desc/inpayownbrate3") == null) {
  352. messageBox("장기재원본인부담률(31일 이후)이 입력되지", "E007");
  353. return false;
  354. }
  355. if ( model.getValue("/root/main/desc/ownbmaxappyn") == "" || model.getValue("/root/main/desc/ownbmaxappyn")== null ) {
  356. messageBox("본인부담상한적용여부가 입력되지", "E007");
  357. return false;
  358. }
  359. if ( model.getValue("/root/main/desc/isoroomrate") == "" || model.getValue("/root/main/desc/isoroomrate")== null ) {
  360. messageBox("격리병실본인부담률이 입력되지", "E007");
  361. return false;
  362. }
  363. if ( model.getValue("/root/main/desc/fourpayownbrate") == "" || model.getValue("/root/main/desc/fourpayownbrate")== null ) {
  364. messageBox("4인실 급여본인부담률이 입력되지", "E007");
  365. return false;
  366. }
  367. return true;
  368. }
  369. function fendAlert(){
  370. if ( model.getValue("/root/main/desc/insukind") == "" || model.getValue("/root/main/desc/insukind") == null ) {
  371. messageBox("보험유형이 입력되지", "E007");
  372. return false;
  373. }
  374. if ( model.getValue("/root/main/desc/suppkind") == "" || model.getValue("/root/main/desc/suppkind") == null ) {
  375. messageBox("유형보조가 입력되지", "E007");
  376. return false;
  377. }
  378. if ( model.getValue("/root/main/desc/fromdd") == "" || model.getValue("/root/main/desc/fromdd") == null ) {
  379. messageBox("시작일자가 입력되지", "E007");
  380. return false;
  381. }
  382. if ( model.getValue("/root/main/desc/todd") == "" || model.getValue("/root/main/desc/todd") == null ) {
  383. messageBox("종료일자가 입력되지", "E007");
  384. return false;
  385. }
  386. if ( model.getValue("/root/main/desc/calcscorappflag") == "" || model.getValue("/root/main/desc/calcscorappflag") == null ) {
  387. messageBox("수가적용구분이 입력되지", "E007");
  388. return false;
  389. }
  390. if ( model.getValue("/root/main/desc/ioflag") == "" || model.getValue("/root/main/desc/ioflag") == null ) {
  391. messageBox("입원외래구분이 입력되지", "E007");
  392. return false;
  393. }
  394. if ( model.getValue("/root/main/desc/fixflag") == "" || model.getValue("/root/main/desc/fixflag") == null ) {
  395. messageBox("정액구분이 입력되지", "E007");
  396. return false;
  397. }
  398. if ( model.getValue("/root/main/desc/corpactaddrate") == "" || model.getValue("/root/main/desc/corpactaddrate") == null ) {
  399. messageBox("요양기관행위가산률이 입력되지", "E007");
  400. return false;
  401. }
  402. if ( model.getValue("/root/main/desc/outpayownbrate") == "" || model.getValue("/root/main/desc/outpayownbrate") == null ) {
  403. messageBox("외래급여본인부담률이 입력되지", "E007");
  404. return false;
  405. }
  406. if ( model.getValue("/root/main/desc/childoutpayownbrate") == "" || model.getValue("/root/main/desc/childoutpayownbrate") == null ) {
  407. messageBox("6세미만외래급여본인부담률이 입력되지", "E007");
  408. return false;
  409. }
  410. if ( model.getValue("/root/main/desc/inpayownbrate") == "" || model.getValue("/root/main/desc/inpayownbrate") == null ) {
  411. messageBox("입원급여본인부담률이 입력되지", "E007");
  412. return false;
  413. }
  414. if ( model.getValue("/root/main/desc/medownbrate") == "" || model.getValue("/root/main/desc/medownbrate") == null ) {
  415. messageBox("진찰료본인부담률이 입력되지", "E007");
  416. return false;
  417. }
  418. if ( model.getValue("/root/main/desc/childmedownbrate") == "" || model.getValue("/root/main/desc/childmedownbrate") == null ) {
  419. messageBox("6세미만진찰료본인부담률이 입력되지", "E007");
  420. return false;
  421. }
  422. if ( model.getValue("/root/main/desc/ctownbrate") == "" || model.getValue("/root/main/desc/ctownbrate") == null ) {
  423. messageBox("CT본인부담률이 입력되지", "E007");
  424. return false;
  425. }
  426. if ( model.getValue("/root/main/desc/mriownbrate") == "" || model.getValue("/root/main/desc/mriownbrate") == null ) {
  427. messageBox("MRI본인부담률이 입력되지", "E007");
  428. return false;
  429. }
  430. if ( model.getValue("/root/main/desc/sonoownbrate") == "" || model.getValue("/root/main/desc/sonoownbrate") == null ) {
  431. messageBox("SONO본인부담률이 입력되지", "E007");
  432. return false;
  433. }
  434. if ( model.getValue("/root/main/desc/petctownbrate") == "" || model.getValue("/root/main/desc/petctownbrate") == null ) {
  435. messageBox("PETCT본인부담률이 입력되지", "E007");
  436. return false;
  437. }
  438. if ( model.getValue("/root/main/desc/basemealownbrate") == "" || model.getValue("/root/main/desc/basemealownbrate") == null ) {
  439. messageBox("기본식대부담률이 입력되지", "E007");
  440. return false;
  441. }
  442. if ( model.getValue("/root/main/desc/addmealownbrate") == "" || model.getValue("/root/main/desc/addmealownbrate") == null ) {
  443. messageBox("가산식대본인부담률이 입력되지", "E007");
  444. return false;
  445. }
  446. if ( model.getValue("/root/main/desc/drugexptownbrate") == "" || model.getValue("/root/main/desc/drugexptownbrate") == null ) {
  447. messageBox("분업예외약가총액본인부담률이 입력되지", "E007");
  448. return false;
  449. }
  450. if ( model.getValue("/root/main/desc/fixbaseamt") == "" || model.getValue("/root/main/desc/fixbaseamt") == null ) {
  451. messageBox("기준금액이 입력되지", "E007");
  452. return false;
  453. }
  454. if ( model.getValue("/root/main/desc/fixminamt") == "" || model.getValue("/root/main/desc/fixminamt") == null ) {
  455. messageBox("정액 MIN금액이 입력되지", "E007");
  456. return false;
  457. }
  458. if ( model.getValue("/root/main/desc/fixmaxamt") == "" || model.getValue("/root/main/desc/fixmaxamt") == null ) {
  459. messageBox("정액 MAX금액이 입력되지", "E007");
  460. return false;
  461. }
  462. if ( model.getValue("/root/main/desc/prcptdayrcptyn") == "" || model.getValue("/root/main/desc/prcptdayrcptyn") == null ) {
  463. messageBox("당일선수납 사용여부가 입력되지", "E007");
  464. return false;
  465. }
  466. if ( model.getValue("/root/main/desc/todd") < getCurrentDate() ) {
  467. messageBox("종료일자가 오늘 이전으로 되었습니다.", "E999"); ///종료일자가 입력되지 않았습니다.
  468. return false;
  469. }
  470. if (model.getValue("/root/main/desc/inpayownbrate2") == "" || model.getValue("/root/main/desc/inpayownbrate2") == null) {
  471. messageBox("장기재원본인부담률(16일~30일)이 입력되지", "E007");
  472. return false;
  473. }
  474. if (model.getValue("/root/main/desc/inpayownbrate3") == "" || model.getValue("/root/main/desc/inpayownbrate3") == null) {
  475. messageBox("장기재원본인부담률(31일 이후)이 입력되지", "E007");
  476. return false;
  477. }
  478. if ( model.getValue("/root/main/desc/ownbmaxappyn") == "" || model.getValue("/root/main/desc/ownbmaxappyn")== null ) {
  479. messageBox("본인부담상한적용여부가 입력되지", "E007");
  480. return false;
  481. }
  482. if ( model.getValue("/root/main/desc/isoroomrate") == "" || model.getValue("/root/main/desc/isoroomrate")== null ) {
  483. messageBox("격리병실본인부담률이 입력되지", "E007");
  484. return false;
  485. }
  486. if ( model.getValue("/root/main/desc/fourpayownbrate") == "" || model.getValue("/root/main/desc/fourpayownbrate")== null ) {
  487. messageBox("4인실 급여본인부담률이 입력되지", "E007");
  488. return false;
  489. }
  490. return true;
  491. }
  492. ]]>
  493. </script>
  494. </xhtml:head>
  495. <xhtml:body margin-rigaht="8" style="margin-left:8; margin-top:0; margin-bottom:0; ">
  496. <line id="line11" class="line_2" style="x1:0px; y1:270px; x2:1195px; y2:270px; "/>
  497. <line id="line10" class="line_2" style="x1:0px; y1:246px; x2:1195px; y2:246px; "/>
  498. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  499. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:135px; height:13px; ">보험유형코드관리</caption>
  500. <group id="group2" style="left:0px; top:15px; width:1195px; height:35px; vertical-align:top; ">
  501. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  502. <caption id="caption2" class="search_name" style="left:6px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
  503. <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_s_essential" navindex="1" appearance="minimal" style="left:100px; top:8px; width:140px; height:19px; ">
  504. <choices>
  505. <itemset nodeset="/root/init/P0008list/P0008">
  506. <label ref="cdnm"/>
  507. <value ref="cdid"/>
  508. </itemset>
  509. </choices>
  510. </select1>
  511. <caption id="caption21" class="search_name" style="left:277px; top:9px; width:86px; height:17px; ">적용일자 :</caption>
  512. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:368px; top:8px; width:90px; height:19px; "/>
  513. <select id="checkbox1" ref="/root/send/allyn" navindex="3" overflow="visible" appearance="full" style="left:465px; top:10px; width:75px; height:20px; border-style:none; ">
  514. <choices>
  515. <item>
  516. <label>이력포함</label>
  517. <value>Y</value>
  518. </item>
  519. </choices>
  520. <script type="javascript" ev:event="xforms-select">
  521. <![CDATA[
  522. model.setValue("/root/send/allyn","Y");
  523. model.setValue("/root/send/todd","");
  524. model.refresh();
  525. ]]>
  526. </script>
  527. <script type="javascript" ev:event="xforms-deselect">
  528. <![CDATA[
  529. model.setValue("/root/send/allyn","");
  530. if (model.getValue("/root/send/todd") == "" || model.getValue("/root/send/todd") == " " ||
  531. model.getValue("/root/send/todd") == null || model.getValue("/root/send/todd") == "-"){
  532. model.setValue("/root/send/todd",getCurrentDate());
  533. }
  534. model.refresh();
  535. ]]>
  536. </script>
  537. </select>
  538. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" visibility="hidden" inputtype="date" style="left:552px; top:8px; width:90px; height:19px; "/>
  539. <caption id="caption10" visibility="hidden" style="left:645px; top:8px; width:15px; height:19px; text-align:center; vertical-align:middle; ">~</caption>
  540. <line id="line13" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  541. <button id="btn_search" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  542. <caption>조회</caption>
  543. <script type="javascript" ev:event="DOMActivate">
  544. <![CDATA[
  545. model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
  546. grd_insukind.rebuild();; // 20100630 트리구조 때문에 다음 조회시 오류발생하여 추가
  547. model.resetInstanceNode("/root/main/desc");
  548. // if( fcheckSrchDD() ){
  549. submit("TRPMB00201");
  550. // }
  551. // 2009.12.21 강태훈 트리구조로 보여지게...
  552. setTree(grd_insukind, 1, 1, true);
  553. model.refresh();
  554. ]]>
  555. </script>
  556. </button>
  557. </group>
  558. <caption id="caption1" class="tit_2" style="left:6px; top:60px; width:121px; height:13px; ">보험유형코드내역</caption>
  559. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
  560. <line id="line6" class="line_2" style="x1:0px; y1:102px; x2:1195px; y2:102px; "/>
  561. <line id="line2" class="line_2" style="x1:0px; y1:126px; x2:1195px; y2:126px; "/>
  562. <line id="line3" class="line_2" style="x1:0px; y1:150px; x2:1195px; y2:150px; "/>
  563. <line id="line5" class="line_2" style="x1:0px; y1:174px; x2:1195px; y2:174px; "/>
  564. <line id="line4" class="line_2" style="x1:0px; y1:198px; x2:1195px; y2:198px; "/>
  565. <line id="line9" class="line_2" style="x1:0px; y1:222px; x2:1195px; y2:222px; "/>
  566. <caption id="caption29" class="cell_1" style="left:0px; top:80px; width:98px; height:23px; vertical-align:middle; ">보험유형</caption>
  567. <select1 id="combo7" ref="/root/main/desc/insukind" class="combo_default" navindex="4" appearance="minimal" style="left:100px; top:81px; width:137px; height:19px; ">
  568. <choices>
  569. <itemset nodeset="/root/init/P0008list/P0008">
  570. <label ref="cdnm"/>
  571. <value ref="cdid"/>
  572. </itemset>
  573. </choices>
  574. </select1>
  575. <caption id="caption11" class="cell_1" style="left:239px; top:80px; width:66px; height:23px; vertical-align:middle; ">유형보조</caption>
  576. <select1 id="combo9" ref="/root/main/desc/suppkind" class="combo_default" navindex="5" appearance="minimal" style="left:307px; top:81px; width:169px; height:19px; ">
  577. <choices>
  578. <itemset nodeset="/root/init/P0010list/P0010">
  579. <label ref="cdnm"/>
  580. <value ref="cdid"/>
  581. </itemset>
  582. </choices>
  583. </select1>
  584. <caption id="caption16" class="cell_1" style="left:478px; top:80px; width:135px; height:23px; vertical-align:middle; ">시작일자</caption>
  585. <input id="input23" ref="/root/main/desc/fromdd" class="input_default" navindex="6" inputtype="date" appearance="input" style="left:615px; top:81px; width:100px; height:19px; "/>
  586. <caption id="caption9" class="cell_1" style="left:717px; top:80px; width:135px; height:23px; vertical-align:middle; ">종료일자</caption>
  587. <input id="input30" ref="/root/main/desc/todd" class="input_default" navindex="7" inputtype="date" style="left:854px; top:81px; width:100px; height:19px; "/>
  588. <caption id="caption40" class="cell_1" style="left:956px; top:80px; width:135px; height:23px; vertical-align:middle; ">수가적용구분</caption>
  589. <select1 id="combo1" ref="/root/main/desc/calcscorappflag" class="combo_default" navindex="8" appearance="minimal" style="left:1093px; top:81px; width:102px; height:19px; ">
  590. <choices>
  591. <itemset nodeset="/root/init/P0009list/P0009">
  592. <label ref="cdnm"/>
  593. <value ref="cdid"/>
  594. </itemset>
  595. </choices>
  596. </select1>
  597. <caption id="caption14" class="cell_1" style="left:0px; top:104px; width:145px; height:23px; vertical-align:middle; ">입원외래구분</caption>
  598. <select1 id="combo8" ref="/root/main/desc/ioflag" class="combo_default" navindex="9" appearance="minimal" style="left:147px; top:105px; width:90px; height:19px; ">
  599. <choices>
  600. <itemset nodeset="/root/init/P0080list/P0080">
  601. <label ref="cdnm"/>
  602. <value ref="cdid"/>
  603. </itemset>
  604. </choices>
  605. </select1>
  606. <caption id="caption23" class="cell_1" style="left:239px; top:104px; width:171px; height:23px; vertical-align:middle; ">정액구분</caption>
  607. <select1 id="combo2" ref="/root/main/desc/fixflag" navindex="10" appearance="minimal" style="left:412px; top:105px; width:64px; height:19px; ">
  608. <choices>
  609. <item>
  610. <label>해당없음</label>
  611. <value>-</value>
  612. </item>
  613. <item>
  614. <label>정액</label>
  615. <value>Y</value>
  616. </item>
  617. <item>
  618. <label>정률</label>
  619. <value>N</value>
  620. </item>
  621. </choices>
  622. </select1>
  623. <caption id="caption7" class="cell_1" style="left:478px; top:104px; width:155px; height:23px; vertical-align:middle; ">요양기관행위가산률</caption>
  624. <input id="input24" ref="/root/main/desc/corpactaddrate" class="input_default" navindex="11" format="###%" style="left:635px; top:105px; width:80px; height:19px; text-align:right; "/>
  625. <caption id="caption4" class="cell_1" style="left:717px; top:104px; width:135px; height:23px; vertical-align:middle; ">외래급여본인부담률</caption>
  626. <input id="input27" ref="/root/main/desc/outpayownbrate" class="input_default" navindex="12" style="left:854px; top:105px; width:100px; height:19px; text-align:right; "/>
  627. <caption id="caption25" class="cell_1" style="left:956px; top:104px; width:162px; height:23px; vertical-align:middle; ">6세미만외래급여본인부담률</caption>
  628. <input id="input5" ref="/root/main/desc/childoutpayownbrate" navindex="13" style="left:1120px; top:105px; width:75px; height:19px; text-align:right; "/>
  629. <caption id="caption17" class="cell_1" style="left:0px; top:128px; width:145px; height:23px; vertical-align:middle; ">입원급여본인부담률</caption>
  630. <input id="input19" ref="/root/main/desc/inpayownbrate" class="input_default" navindex="14" style="left:147px; top:129px; width:90px; height:19px; text-align:right; "/>
  631. <caption id="caption33" class="cell_1" style="left:239px; top:128px; width:171px; height:23px; vertical-align:middle; ">장기재원본인부담률 (16~30)</caption>
  632. <input id="input10" ref="/root/main/desc/inpayownbrate2" class="input_default" navindex="15" style="left:412px; top:129px; width:64px; height:19px; text-align:right; "/>
  633. <caption id="caption38" class="cell_1" style="left:478px; top:128px; width:155px; height:23px; vertical-align:middle; ">장기재원본인부담률 (31~)</caption>
  634. <input id="input11" ref="/root/main/desc/inpayownbrate3" class="input_default" navindex="16" style="left:635px; top:129px; width:80px; height:19px; text-align:right; "/>
  635. <caption id="caption48" class="cell_1" style="left:717px; top:128px; width:135px; height:23px; vertical-align:middle; ">진찰료본인부담률</caption>
  636. <input id="input21" ref="/root/main/desc/medownbrate" class="input_default" navindex="17" style="left:854px; top:129px; width:100px; height:19px; text-align:right; "/>
  637. <caption id="caption26" class="cell_1" style="left:956px; top:128px; width:162px; height:23px; vertical-align:middle; ">6세미만진찰료본인부담률</caption>
  638. <input id="input6" ref="/root/main/desc/childmedownbrate" class="input_default" navindex="18" style="left:1120px; top:129px; width:75px; height:19px; text-align:right; "/>
  639. <caption id="caption15" class="cell_1" style="left:0px; top:152px; width:145px; height:23px; vertical-align:middle; ">CT본인부담률</caption>
  640. <input id="input25" ref="/root/main/desc/ctownbrate" class="input_default" navindex="19" style="left:147px; top:153px; width:90px; height:19px; text-align:right; "/>
  641. <caption id="caption3" class="cell_1" style="left:239px; top:152px; width:171px; height:23px; vertical-align:middle; ">MRI본인부담률</caption>
  642. <input id="input29" ref="/root/main/desc/mriownbrate" class="input_default" navindex="20" style="left:412px; top:153px; width:64px; height:19px; text-align:right; "/>
  643. <caption id="caption24" class="cell_1" style="left:478px; top:152px; width:155px; height:23px; vertical-align:middle; ">SONO본인부담률</caption>
  644. <input id="input20" ref="/root/main/desc/sonoownbrate" class="input_default" navindex="21" style="left:635px; top:153px; width:80px; height:19px; text-align:right; "/>
  645. <caption id="caption18" class="cell_1" style="left:717px; top:152px; width:135px; height:23px; vertical-align:middle; ">PETCT본인부담률</caption>
  646. <input id="input1" ref="/root/main/desc/petctownbrate" class="input_default" navindex="22" style="left:854px; top:153px; width:100px; height:19px; text-align:right; "/>
  647. <caption id="caption22" class="cell_1" style="left:956px; top:152px; width:162px; height:23px; vertical-align:middle; ">기본식대본인부담률</caption>
  648. <input id="input26" ref="/root/main/desc/basemealownbrate" class="input_default" navindex="23" style="left:1120px; top:153px; width:75px; height:19px; text-align:right; "/>
  649. <caption id="caption12" class="cell_1" style="left:0px; top:176px; width:145px; height:23px; vertical-align:middle; ">가산식대본인부담률</caption>
  650. <input id="input28" ref="/root/main/desc/addmealownbrate" class="input_default" navindex="24" appearance="input" style="left:147px; top:177px; width:90px; height:19px; text-align:right; "/>
  651. <caption id="caption8" class="cell_1" style="left:239px; top:176px; width:171px; height:23px; vertical-align:middle; ">분업예외약가총액본인부담률</caption>
  652. <input id="input7" ref="/root/main/desc/drugexptownbrate" class="input_default" navindex="25" appearance="input" style="left:412px; top:177px; width:64px; height:19px; text-align:right; "/>
  653. <caption id="caption5" class="cell_1" style="left:478px; top:176px; width:155px; height:23px; vertical-align:middle; ">기준금액</caption>
  654. <input id="input22" ref="/root/main/desc/fixbaseamt" class="input_default" navindex="26" appearance="input" style="left:635px; top:177px; width:80px; height:19px; text-align:right; "/>
  655. <caption id="caption13" class="cell_1" style="left:717px; top:176px; width:135px; height:23px; vertical-align:middle; ">정액 MIN 금액</caption>
  656. <input id="input2" ref="/root/main/desc/fixminamt" class="input_default" navindex="27" style="left:854px; top:177px; width:100px; height:19px; text-align:right; "/>
  657. <caption id="caption19" class="cell_1" style="left:956px; top:176px; width:162px; height:23px; vertical-align:middle; ">정액 MAX 금액</caption>
  658. <input id="input3" ref="/root/main/desc/fixmaxamt" class="input_default" navindex="28" appearance="input" style="left:1120px; top:177px; width:75px; height:19px; text-align:right; "/>
  659. <caption id="caption27" class="cell_1" style="left:0px; top:200px; width:145px; height:23px; vertical-align:middle; ">장루요루재료본인부담률</caption>
  660. <input id="input4" ref="/root/main/desc/ostomyownbrate" class="input_default" navindex="29" appearance="input" style="left:147px; top:201px; width:90px; height:19px; text-align:right; "/>
  661. <caption id="caption28" class="cell_1" style="left:239px; top:248px; width:155px; height:23px; vertical-align:middle; ">본인부담상한제한금액</caption>
  662. <input id="input8" ref="/root/main/desc/ownbmaxamt" class="input_default" navindex="36" format="#,###" appearance="input" style="left:396px; top:249px; width:80px; height:19px; text-align:right; "/>
  663. <caption id="caption30" class="cell_1" style="left:239px; top:200px; width:153px; height:23px; vertical-align:middle; ">당일선수납 사용여부</caption>
  664. <select1 id="rdo_rcptyn" ref="/root/main/desc/prcptdayrcptyn" navindex="30" appearance="full" cols="2" overflow="visible" style="left:395px; top:203px; width:80px; height:15px; border-style:none; ">
  665. <choices>
  666. <item>
  667. <label>Yes</label>
  668. <value>Y</value>
  669. </item>
  670. <item>
  671. <label>No</label>
  672. <value>N</value>
  673. </item>
  674. </choices>
  675. </select1>
  676. <caption id="caption31" class="cell_1" style="left:478px; top:200px; width:155px; height:23px; vertical-align:middle; ">의료급여종별구분</caption>
  677. <select1 id="combo3" ref="/root/main/desc/prockindflag" class="combo_default" navindex="31" appearance="minimal" style="left:635px; top:201px; width:80px; height:19px; ">
  678. <choices>
  679. <itemset nodeset="/root/init/P0261list/P0261">
  680. <label ref="cdnm"/>
  681. <value ref="cdid"/>
  682. </itemset>
  683. </choices>
  684. </select1>
  685. <caption id="caption35" class="cell_1" style="left:716px; top:200px; width:135px; height:23px; vertical-align:middle; ">4인실 급여본인부담률</caption>
  686. <input id="input9" ref="/root/main/desc/fourpayownbrate" class="input_default" navindex="32" format="#,###" appearance="input" style="left:853px; top:201px; width:102px; height:19px; text-align:right; "/>
  687. <caption id="caption32" class="cell_1" style="left:0px; top:224px; width:145px; height:23px; vertical-align:middle; ">선별급여 본인부담률 A</caption>
  688. <input id="ipt_suna" ref="/root/main/desc/sunaownbrate" class="input_default" navindex="34" maxlength="3" format="#" appearance="input" style="left:147px; top:225px; width:90px; height:19px; text-align:right; "/>
  689. <caption id="caption34" class="cell_1" style="left:239px; top:224px; width:171px; height:23px; vertical-align:middle; ">선별급여 본인부담률 B</caption>
  690. <input id="ipt_sunb" ref="/root/main/desc/sunbownbrate" class="input_default" navindex="35" maxlength="3" format="#" appearance="input" style="left:412px; top:225px; width:64px; height:19px; text-align:right; "/>
  691. <caption id="caption37" class="cell_1" style="left:956px; top:200px; width:162px; height:23px; text-align:left; vertical-align:middle; ">수수료</caption>
  692. <input id="ipt_comrate" ref="/root/main/desc/comrate" navindex="33" style="left:1120px; top:201px; width:75px; height:19px; text-align:right; "/>
  693. <caption id="caption36" class="cell_1" style="left:0px; top:296px; width:145px; height:23px; text-align:left; vertical-align:middle; ">참고사항</caption>
  694. <input id="ipt_cmt" ref="/root/main/desc/rgstcmt" navindex="49" maxbyte="4000" style="left:147px; top:298px; width:1049px; height:19px; "/>
  695. <line id="line7" class="line_3" style="top:220; x1:1px; y1:320px; x2:1196px; y2:320px; "/>
  696. <button id="btn_insert" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:944px; top:55px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
  697. <caption>신규</caption>
  698. <script type="javascript" ev:event="DOMActivate">
  699. <![CDATA[
  700. if( model.getValue("/root/main/desc/insukind") == "" ||
  701. model.getValue("/root/main/desc/suppkind") == "" ||
  702. model.getValue("/root/main/desc/fromdd") == "" ||
  703. model.getValue("/root/main/desc/todd") == "" ||
  704. model.getValue("/root/main/desc/calcscorappflag") == "" ||
  705. model.getValue("/root/main/desc/ioflag") == "" ||
  706. model.getValue("/root/main/desc/fixflag") == "" ||
  707. model.getValue("/root/main/desc/corpactaddrate") == "" ||
  708. model.getValue("/root/main/desc/outpayownbrate") == "" ||
  709. model.getValue("/root/main/desc/childoutpayownbrate") == "" ||
  710. model.getValue("/root/main/desc/inpayownbrate") == "" ||
  711. model.getValue("/root/main/desc/medownbrate") == "" ||
  712. model.getValue("/root/main/desc/childmedownbrate") == "" ||
  713. model.getValue("/root/main/desc/ctownbrate") == "" ||
  714. model.getValue("/root/main/desc/mriownbrate") == "" ||
  715. model.getValue("/root/main/desc/sonoownbrate") == "" ||
  716. model.getValue("/root/main/desc/petctownbrate") == "" ||
  717. model.getValue("/root/main/desc/basemealownbrate") == "" ||
  718. model.getValue("/root/main/desc/addmealownbrate") == "" ||
  719. model.getValue("/root/main/desc/drugexptownbrate") == "" ||
  720. model.getValue("/root/main/desc/fixbaseamt") == "" ||
  721. model.getValue("/root/main/desc/fixminamt") == "" ||
  722. model.getValue("/root/main/desc/fixmaxamt") == "" ||
  723. model.getValue("/root/main/desc/ownbmaxamt") == "" ||
  724. model.getValue("/root/main/desc/prcptdayrcptyn") == "" ||
  725. model.getValue("/root/main/desc/sunaownbrate") == "" ||
  726. model.getValue("/root/main/desc/sunbownbrate") == "" ||
  727. model.getValue("/root/main/desc/fourpayownbrate") == "" ||
  728. model.getValue("/root/main/desc/inpayownbrate2") == "" ||
  729. model.getValue("/root/main/desc/inpayownbrate3") == "" ||
  730. model.getValue("/root/main/desc/isoroomrate") == "" ||
  731. model.getValue("/root/main/desc/ownbmaxappyn") == ""
  732. ){
  733. messageBox("추가하려는 보험유형에 입력하지 않은 데이터가 있습니다.", "E999", "");
  734. }else{
  735. /*
  736. grd_insukind.addItem(); // 입력할 행 추가.
  737. var cur_row = grd_insukind.row; // 추가된 행 번호 가져오기
  738. // 그리드에 추가
  739. model.copyNode("/root/main/insukindcdspec/insukindcdspeclist["+cur_row+"]","/root/main/desc");
  740. model.refresh();
  741. */
  742. // 보험유형 및 보조유형명칭 추가
  743. model.setValue("/root/main/desc/insukindnm", combo7.label);
  744. model.setValue("/root/main/desc/suppkindnm", combo9.label);
  745. model.copyNode("/root/send/updatedata/datalist","/root/main/desc");
  746. model.makeNode("/root/send/updatedata/datalist/m");
  747. model.setValue("/root/send/updatedata/datalist/m", "i");
  748. if ( submit("TXPMB00201") ) {
  749. //grd_insukind.clearStatus(); // submit() 성공하면 그리드의 i,u 상태 제거
  750. submit("TRPMB00201");
  751. }
  752. }
  753. ]]>
  754. </script>
  755. <hint>
  756. <![CDATA[입력한 값으로 신규데이터 생성]]>
  757. </hint>
  758. </button>
  759. <button id="btn_save" class="btn5_letter4" style="left:988px; top:55px; width:64px; height:19px; ">
  760. <caption>이력저장</caption>
  761. <script type="javascript" ev:event="DOMActivate">
  762. <![CDATA[
  763. //2015/02/23 이정택 수정
  764. if(!fsaveAlert()){
  765. return;
  766. }
  767. //2015/02/23 이정택 수정
  768. var rtn = window.alert("이력저장 하시겠습니까?", "선택", "4");
  769. if (rtn != 6) { return;}
  770. //위에서 기존자료 종료일 받아서 새로운 보험유형코드내역에 시작일로 박아줌
  771. var oldfromdd = model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/fromdd");
  772. var oldtodd = model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/todd");
  773. var oldtodd2 = "";
  774. var new_fromdd = model.getValue("/root/main/desc/fromdd");
  775. var new_todd = model.getValue("/root/main/desc/todd");
  776. var thisYear = new_fromdd.substring(0,4); // 현재 입력된 연
  777. var thisMonth = new_fromdd.substring(4,6); // 현재 입력된 월
  778. var thisDay = new_fromdd.substring(6,8); // 현재 입력된 일
  779. var preDate = new Date(thisYear, (thisMonth - 1), thisDay);
  780. preDate.setHours(-24); // 24시간 뒤인 다음날 날짜를 구한다.
  781. var thisYear = "";
  782. oldtodd2 += preDate.getYear();
  783. if ((preDate.getMonth() + 1) < 10) {
  784. oldtodd2 += "0" + (preDate.getMonth() + 1);
  785. }else {
  786. oldtodd2 += (preDate.getMonth() + 1);
  787. }
  788. if (preDate.getDate() < 10) {
  789. oldtodd2 += "0" + preDate.getDate();
  790. }else {
  791. oldtodd2 += preDate.getDate();
  792. }
  793. //기존자료 종료처리
  794. if(model.getvalue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/insukind") != "" &&
  795. model.getvalue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/insukind") != "") {
  796. model.copyNode("/root/send/savedata","/root/main/desc");
  797. model.setValue("/root/send/baseinsukind", model.getvalue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/insukind")); // 보험유형
  798. model.setValue("/root/send/basesuppkind", model.getvalue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/suppkind")); // 유형보조
  799. model.setValue("/root/send/baseseqno", model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/seqno")); // 일련번호
  800. model.setValue("/root/send/basetodd", oldtodd); // 기존 종료일자(99991231)
  801. model.setValue("/root/send/newtodd", oldtodd2); // 새로운 종료일자(20090709)
  802. submit("TXPMB00202");
  803. }
  804. //기존자료 종료처리 끝
  805. //새로운 자료 등록
  806. //보험유형 및 보조유형명칭 추가
  807. model.setValue("/root/main/desc/insukindnm", combo7.label);
  808. model.setValue("/root/main/desc/suppkindnm", combo9.label);
  809. model.copyNode("/root/send/savedata","/root/main/desc");
  810. model.setvalue("/root/send/savedata/fromdd", new_fromdd);
  811. model.setvalue("/root/send/savedata/todd", new_todd);
  812. var rslt = submit("TXPMB00203");
  813. //새로운 자료 등록처리 끝
  814. if (rslt) {
  815. messageBox("이력저장 되었습니다.", "I999"); ///보험유형코드 신규 등록이 처리되었습니다.
  816. }
  817. //이력저장후 단축조회 refresh함
  818. submit("TRPMB00201");
  819. model.refresh();
  820. ]]>
  821. </script>
  822. <hint>
  823. <![CDATA[수정된 시작일자를 기준으로 기존의 데이터 이력처리(종료일자 : 수정된 시작일자 -1일) 후 수정된 데이터로 생성]]>
  824. </hint>
  825. </button>
  826. <button id="btn_update" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:1054px; top:55px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
  827. <caption>수정</caption>
  828. <script type="javascript" ev:event="DOMActivate">
  829. <![CDATA[
  830. if( model.getValue("/root/main/desc/insukind") == "" ||
  831. model.getValue("/root/main/desc/suppkind") == "" ||
  832. model.getValue("/root/main/desc/fromdd") == "" ||
  833. model.getValue("/root/main/desc/todd") == "" ||
  834. model.getValue("/root/main/desc/calcscorappflag") == "" ||
  835. model.getValue("/root/main/desc/ioflag") == "" ||
  836. model.getValue("/root/main/desc/fixflag") == "" ||
  837. model.getValue("/root/main/desc/corpactaddrate") == "" ||
  838. model.getValue("/root/main/desc/outpayownbrate") == "" ||
  839. model.getValue("/root/main/desc/childoutpayownbrate") == "" ||
  840. model.getValue("/root/main/desc/inpayownbrate") == "" ||
  841. model.getValue("/root/main/desc/medownbrate") == "" ||
  842. model.getValue("/root/main/desc/childmedownbrate") == "" ||
  843. model.getValue("/root/main/desc/ctownbrate") == "" ||
  844. model.getValue("/root/main/desc/mriownbrate") == "" ||
  845. model.getValue("/root/main/desc/sonoownbrate") == "" ||
  846. model.getValue("/root/main/desc/petctownbrate") == "" ||
  847. model.getValue("/root/main/desc/basemealownbrate") == "" ||
  848. model.getValue("/root/main/desc/addmealownbrate") == "" ||
  849. model.getValue("/root/main/desc/drugexptownbrate") == "" ||
  850. model.getValue("/root/main/desc/fixbaseamt") == "" ||
  851. model.getValue("/root/main/desc/fixminamt") == "" ||
  852. model.getValue("/root/main/desc/fixmaxamt") == "" ||
  853. model.getValue("/root/main/desc/ownbmaxamt") == "" ||
  854. model.getValue("/root/main/desc/prcptdayrcptyn") == "" ||
  855. model.getValue("/root/main/desc/sunaownbrate") == "" ||
  856. model.getValue("/root/main/desc/sunbownbrate") == "" ||
  857. model.getValue("/root/main/desc/fourpayownbrate") == "" ||
  858. model.getValue("/root/main/desc/inpayownbrate2") == "" ||
  859. model.getValue("/root/main/desc/inpayownbrate3") == "" ||
  860. model.getValue("/root/main/desc/isoroomrate") == "" ||
  861. model.getValue("/root/main/desc/ownbmaxappyn") == ""
  862. ){
  863. messageBox("수정하려는 보험유형에 입력하지 않은 데이터가 있습니다.", "E999", "");
  864. }else{
  865. /*
  866. grd_insukind.addItem(); // 입력할 행 추가.
  867. var cur_row = grd_insukind.row; // 추가된 행 번호 가져오기
  868. // 그리드에 추가
  869. model.copyNode("/root/main/insukindcdspec/insukindcdspeclist["+cur_row+"]","/root/main/desc");
  870. model.refresh();
  871. */
  872. // 수정 제어대상
  873. // 1. 시작일자 수정 시 기존의 시작일자가 미래인 경우에만 시작일자 수정가능
  874. // 2. 종료일자 수정 시 기존의 시작일자가 미래인 경우에만 종료일자 수정가능
  875. // 3. 보험유형 변경 시 기존의 시작일자가 미래인 경우에만 보험유형 수정가능
  876. // 4. 보조유형 변경 시 기존의 시작일자가 미래인 경우에만 보조유형 수정가능
  877. var curDate = getCurrentDate();
  878. // 시작일자가 과거인 경우 데이터 수정금지 제어 추가 by 조중래 20170221
  879. if (model.getValue("/root/main/desc/fromdd") < getCurrentDate()) {
  880. messageBox("시작일자를 과거일자로 수정할 수 없습니다.", "C000");
  881. return false;
  882. }
  883. if (model.getValue("/root/main/desc/todd") < getCurrentDate()) {
  884. messageBox("종료일자를 과거일자로 수정할 수 없습니다.", "C000");
  885. return false;
  886. }
  887. if (model.getValue("/root/main/desc/fromdd") > model.getValue("/root/main/desc/todd")) {
  888. messageBox("종료일자를 시작일자보다 과거일자로 수정할 수 없습니다.", "C000");
  889. return false;
  890. }
  891. // 보험유형 / 보조유형 / 시작일자 / 종료일자 변경은
  892. // 기존 데이터의 시작일자가 미래인 경우에만 가능하도록 제어 추가 by 조중래 20170221
  893. if (model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/insukind") != model.getValue("/root/main/desc/insukind")
  894. || model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/suppkind") != model.getValue("/root/main/desc/suppkind")
  895. || model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/fromdd") != model.getValue("/root/main/desc/fromdd")
  896. || model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/todd") != model.getValue("/root/main/desc/todd")) {
  897. if (curDate >= model.getValue("/root/main/desc/fromdd")) {
  898. messageBox("보험유형 / 보조유형 / 시작일자 / 종료일자의 수정은 \w\n시작일자가 미래일자의 경우에만 가능합니다.", "C000");
  899. return false;
  900. }
  901. }
  902. // 보험유형 및 보조유형명칭 추가
  903. model.setValue("/root/main/desc/insukindnm", combo7.label);
  904. model.setValue("/root/main/desc/suppkindnm", combo9.label);
  905. model.copyNode("/root/send/updatedata/datalist", "/root/main/desc");
  906. model.makeNode("/root/send/updatedata/datalist/m");
  907. model.setValue("/root/send/updatedata/datalist/m", "u");
  908. model.makeValue("/root/send/updatedata/datalist/baseinsukind", model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/insukind"));
  909. model.makeValue("/root/send/updatedata/datalist/basesuppkind", model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/suppkind"));
  910. model.makeValue("/root/send/updatedata/datalist/basefromdd", model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/fromdd"));
  911. model.makeValue("/root/send/updatedata/datalist/basetodd", model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/todd"));
  912. model.makeValue("/root/send/updatedata/datalist/baseseqno", model.getValue("/root/main/insukindcdspec/insukindcdspeclist["+grd_insukind.row+"]/seqno"));
  913. if ( submit("TXPMB00201") ) {
  914. //grd_insukind.clearStatus(); // submit() 성공하면 그리드의 i,u 상태 제거
  915. submit("TRPMB00201");
  916. }
  917. }
  918. ]]>
  919. </script>
  920. <hint>
  921. <![CDATA[선택된 데이터 수정]]>
  922. </hint>
  923. </button>
  924. <button id="btn_end" class="btn5_letter2" style="left:1098px; top:55px; width:42px; height:19px; ">
  925. <caption>종료</caption>
  926. <script type="javascript" ev:event="DOMActivate">
  927. <![CDATA[
  928. // 종료기능
  929. fSetInsuEnd();
  930. ]]>
  931. </script>
  932. <hint>
  933. <![CDATA[기존 수가에 대해 종료일자 처리]]>
  934. </hint>
  935. </button>
  936. <button id="btn_clear" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1142px; top:55px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  937. <caption>초기화</caption>
  938. <script type="javascript" ev:event="DOMActivate">
  939. <![CDATA[
  940. model.resetInstanceNode("/root/main/desc");
  941. model.refresh();
  942. ]]>
  943. </script>
  944. </button>
  945. <caption id="caption20" class="tit_2" style="left:5px; top:327px; width:165px; height:13px; ">보험유형코드내역 리스트</caption>
  946. <line id="line8" class="line_1" style="x1:0px; y1:345px; x2:1195px; y2:345px; "/>
  947. <datagrid id="grd_insukind" nodeset="/root/main/insukindcdspec/insukindcdspeclist" class="datagrid2" caption="±^보험유형코드^보험유형^유형보조코드^유형보조^시작일자^종료일자^수가적용구분^입원외래구분^정액구분^요양기관행위가산율^외래급여본인부담률^6세미만외래급여본인부담률^입원급여본인부담률^장기재원본인부담률(16~30)^장기재원본인부담률(31~)^진찰료본인부담률^6세미만진찰료본인부담률^CT본인부담률^MRI본인부담률^SONO본인부담률^PETCT본인부담률^기본식대부담률^가산식대본인부담률^의약분업예외환자약가총액본인부담률^정액기준금액^정액 MIN&#xA;금액^정액 MAX&#xA;금액^장루요루재료본인부담률^본인부담&#xA;상한제한금액^본인부담&#xA;상한적용여부^당일선수납&#xA;사용여부^의료급여종별구분^선별급여A항&#xA;본인부담률^선별급여B항&#xA;본인부담률^선별급여D항&#xA;본인부담률^선별급여E항&#xA;본인부담률^4인실&#xA;급여본인부담률^수수료^격리병실&#xA;본인부담률^특정약제&#xA;본인부담률^참고사항^최종수정자^최종수정자^최종수정일시^최초등록자^최초등록자^최초등록일시^예비용2^예비용3^예비용4^예비용5^예비용6^예비용7^예비용8^예비용9^예비용10^일련번호^caption3" colsep="^" colwidth="24, 55, 94, 55, 110, 85, 85, 57, 57, 65, 80, 80, 100, 80, 85, 80, 70, 82, 52, 53, 67, 73, 60, 83, 119, 60, 65, 65, 80, 100, 88, 80, 150, 80, 80, 100, 100, 100, 60, 100, 100, 200, 50, 60, 120, 50, 60, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:350px; width:1195px; height:385px; ">
  948. <col ref="dpt"/>
  949. <col ref="insukind" style="text-align:center; "/>
  950. <col disabled="true" ref="insukind" type="combo">
  951. <choices>
  952. <itemset nodeset="/root/init/P0008list/P0008">
  953. <label ref="cdnm"/>
  954. <value ref="cdid"/>
  955. </itemset>
  956. </choices>
  957. </col>
  958. <col ref="suppkind" style="text-align:center; "/>
  959. <col ref="suppkindnm" style="text-align:center; "/>
  960. <!-- 2017/06/13 기준자료 읽는거에서 실 디비에 명시된 데이터를 읽도록 수정(이정택)
  961. <col disabled="true" ref="suppkind" type="combo">
  962. <choices>
  963. <itemset nodeset="/root/init/P0010list/P0010">
  964. <label ref="cdnm"/>
  965. <value ref="cdid"/>
  966. </itemset>
  967. </choices>
  968. </col>
  969. -->
  970. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  971. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  972. <col disabled="true" ref="calcscorappflag" type="combo" style="text-align:center; ">
  973. <choices>
  974. <itemset nodeset="/root/init/P0009list/P0009">
  975. <label ref="cdnm"/>
  976. <value ref="cdid"/>
  977. </itemset>
  978. </choices>
  979. </col>
  980. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  981. <choices>
  982. <itemset nodeset="/root/init/P0080list/P0080">
  983. <label ref="cdnm"/>
  984. <value ref="cdid"/>
  985. </itemset>
  986. </choices>
  987. </col>
  988. <col ref="fixflag" style="left:642px; top:32px; width:65px; height:23px; text-align:center; "/>
  989. <col ref="corpactaddrate" style="text-align:right; "/>
  990. <col ref="outpayownbrate" style="text-align:right; "/>
  991. <col ref="childoutpayownbrate" style="text-align:right; "/>
  992. <col ref="inpayownbrate" style="text-align:right; "/>
  993. <col ref="inpayownbrate2" style="text-align:right; "/>
  994. <col ref="inpayownbrate3" style="text-align:right; "/>
  995. <col ref="medownbrate" style="text-align:right; "/>
  996. <col ref="childmedownbrate" style="text-align:right; "/>
  997. <col ref="ctownbrate" style="text-align:right; "/>
  998. <col ref="mriownbrate" style="text-align:right; "/>
  999. <col ref="sonoownbrate" style="text-align:right; "/>
  1000. <col ref="petctownbrate" style="text-align:right; "/>
  1001. <col ref="basemealownbrate" style="text-align:right; "/>
  1002. <col ref="addmealownbrate" style="text-align:right; "/>
  1003. <col ref="drugexptownbrate" style="text-align:right; "/>
  1004. <col ref="fixbaseamt" style="text-align:right; "/>
  1005. <col ref="fixminamt" style="text-align:right; "/>
  1006. <col ref="fixmaxamt" style="text-align:right; "/>
  1007. <col ref="ostomyownbrate" style="text-align:right; "/>
  1008. <col ref="ownbmaxamt" format="#,###" style="text-align:right; "/>
  1009. <col ref="ownbmaxappyn" style="text-align:center; "/>
  1010. <col ref="prcptdayrcptyn" style="text-align:center; "/>
  1011. <col disabled="true" ref="prockindflag" type="combo" style="text-align:center; ">
  1012. <choices>
  1013. <itemset nodeset="/root/init/P0261list/P0261">
  1014. <label ref="cdnm"/>
  1015. <value ref="cdid"/>
  1016. </itemset>
  1017. </choices>
  1018. </col>
  1019. <col ref="sunaownbrate" style="text-align:right; "/>
  1020. <col ref="sunbownbrate" style="text-align:right; "/>
  1021. <col ref="etc2ownbrate" style="text-align:right; "/>
  1022. <col ref="etc3ownbrate" style="text-align:right; "/>
  1023. <col ref="fourpayownbrate" style="text-align:right; "/>
  1024. <col ref="comrate" style="text-align:right; "/>
  1025. <col ref="isoroomrate" style="text-align:right; "/>
  1026. <col ref="etc1ownbrate" style="text-align:right; "/>
  1027. <col ref="rgstcmt"/>
  1028. <col ref="lastupdtrid" style="text-align:center; "/>
  1029. <col ref="lastupdtrnm" style="text-align:center; "/>
  1030. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1031. <col ref="fstrgstrid" style="text-align:center; "/>
  1032. <col ref="fstrgstrnm" style="text-align:center; "/>
  1033. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1034. <col ref="etc2ownbrate" visibility="hidden" style="text-align:right; "/>
  1035. <col ref="etc3ownbrate" visibility="hidden" style="text-align:right; "/>
  1036. <col ref="etc4ownbrate" visibility="hidden" style="text-align:right; "/>
  1037. <col ref="etc5ownbrate" visibility="hidden" style="text-align:right; "/>
  1038. <col ref="etc6ownbrate" visibility="hidden" style="text-align:right; "/>
  1039. <col ref="etc7ownbrate" visibility="hidden" style="text-align:right; "/>
  1040. <col ref="etc8ownbrate" visibility="hidden" style="text-align:right; "/>
  1041. <col ref="etc9ownbrate" visibility="hidden" style="text-align:right; "/>
  1042. <col ref="etc10ownbrate" visibility="hidden" style="text-align:right; "/>
  1043. <col ref="seqno" visibility="hidden"/>
  1044. <script type="javascript" ev:event="onrowchanged">
  1045. <![CDATA[
  1046. var cur_row = grd_insukind.row;
  1047. if ( cur_row > 0 ) {
  1048. model.copyNode("/root/main/desc","/root/main/insukindcdspec/insukindcdspeclist["+cur_row+"]");
  1049. model.refresh();
  1050. }
  1051. ]]>
  1052. </script>
  1053. </datagrid>
  1054. <button id="btn_delete" class="btn5_letter5" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn5_letter5.gif" style="left:1120px; top:324px; width:75px; height:19px; background-image:../../../com/commonweb/images/btn5_letter5.gif; ">
  1055. <caption>선택행삭제</caption>
  1056. <script type="javascript" ev:event="DOMActivate">
  1057. <![CDATA[
  1058. if(messageBox("선택된 행의 진료일정기준자료를", "Q001") != 6) return;
  1059. var cur_row = grd_insukind.row; // 행 번호 가져오기
  1060. if( cur_row > 0 ){
  1061. //디비에 저장되지 않은 데이타는 그냥 삭제한다. 1: insert , 3 : insert and update
  1062. if (grd_insukind.rowStatus(cur_row) == "1" || grd_insukind.rowStatus(cur_row) == "3"){
  1063. grd_insukind.deleteItem(cur_row);
  1064. return;
  1065. }
  1066. //'delete' 상태값을 세팅한다.
  1067. grd_insukind.addStatus(cur_row, "delete");
  1068. //삭제할 행의 정보를 send에 넣는다.
  1069. model.setValue("root/send/updatedata/datalist", grd_insukind.getUpdateData("delete"));
  1070. if ( submit("TXPMB00201") ) {
  1071. grd_insukind.deleteRow( cur_row );
  1072. //grd_insukind.rebuild();
  1073. //model.refresh();
  1074. }else{
  1075. grd_insukind.removeStatus(cur_row, "delete");
  1076. //messageBox("삭제를 실패하였습니다.");
  1077. }
  1078. }else{
  1079. messageBox("삭제할 행을 다시", "C002");
  1080. grd_insukind.removeStatus(cur_row, "delete");
  1081. }
  1082. ]]>
  1083. </script>
  1084. </button>
  1085. <button id="button1" class="btn1_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1043px; top:740px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  1086. <caption>엑셀저장</caption>
  1087. <script type="javascript" ev:event="DOMActivate">
  1088. <![CDATA[
  1089. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1090. if(fileName != ""){
  1091. grd_insukind.saveExcel(fileName, "SheetName", true, true, "", "", "true");
  1092. }
  1093. ]]>
  1094. </script>
  1095. </button>
  1096. <button id="btn_init" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1127px; top:740px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  1097. <caption>초기화</caption>
  1098. <script type="javascript" ev:event="DOMActivate">
  1099. <![CDATA[
  1100. fInitialize();
  1101. ]]>
  1102. </script>
  1103. </button>
  1104. <caption id="caption39" class="cell_1" style="left:956px; top:224px; width:162px; height:23px; text-align:left; vertical-align:middle; ">격리병실본인부담률</caption>
  1105. <input id="input12" ref="/root/main/desc/isoroomrate" navindex="38" style="left:1120px; top:225px; width:75px; height:19px; text-align:right; "/>
  1106. <caption id="caption41" class="cell_1" style="left:478px; top:248px; width:135px; height:23px; vertical-align:middle; ">본인부담상한적용여부</caption>
  1107. <select1 id="radio1" ref="/root/main/desc/ownbmaxappyn" navindex="37" appearance="full" cols="2" overflow="visible" style="left:615px; top:251px; width:100px; height:15px; border-style:none; ">
  1108. <choices>
  1109. <item>
  1110. <label>Yes</label>
  1111. <value>Y</value>
  1112. </item>
  1113. <item>
  1114. <label>No</label>
  1115. <value>N</value>
  1116. </item>
  1117. </choices>
  1118. </select1>
  1119. <input id="input13" ref="/root/main/desc/etc1ownbrate" class="input_default" navindex="39" maxlength="3" format="#" appearance="input" style="left:147px; top:249px; width:90px; height:19px; text-align:right; "/>
  1120. <caption id="caption42" class="cell_1" style="left:0px; top:248px; width:145px; height:23px; vertical-align:middle; ">특정약제 본인부담률</caption>
  1121. <caption id="caption43" class="cell_1" style="left:478px; top:224px; width:156px; height:23px; vertical-align:middle; ">선별급여 본인부담률 D</caption>
  1122. <input id="input14" ref="/root/main/desc/etc2ownbrate" class="input_default" disabled="false" navindex="40" maxlength="3" format="#" appearance="input" style="left:635px; top:225px; width:80px; height:19px; text-align:right; "/>
  1123. <caption id="caption44" class="cell_1" style="left:716px; top:224px; width:135px; height:23px; vertical-align:middle; ">선별급여 본인부담률 E</caption>
  1124. <input id="input15" ref="/root/main/desc/etc3ownbrate" class="input_default" disabled="false" navindex="41" maxlength="3" format="#" appearance="input" style="left:852px; top:225px; width:102px; height:19px; text-align:right; "/>
  1125. <caption id="caption45" class="cell_1" style="left:716px; top:248px; width:135px; height:23px; vertical-align:middle; ">예비용</caption>
  1126. <input id="input16" ref="/root/main/desc/etc4ownbrate" class="input_default" disabled="true" navindex="42" maxlength="3" format="#" appearance="input" style="left:853px; top:249px; width:100px; height:19px; text-align:right; "/>
  1127. <caption id="caption46" class="cell_1" style="left:956px; top:248px; width:162px; height:23px; vertical-align:middle; ">예비용</caption>
  1128. <input id="input17" ref="/root/main/desc/etc5ownbrate" class="input_default" disabled="true" navindex="43" maxlength="3" format="#" appearance="input" style="left:1120px; top:249px; width:75px; height:19px; text-align:right; "/>
  1129. <line id="line12" class="line_2" style="x1:0px; y1:294px; x2:1195px; y2:294px; "/>
  1130. <caption id="caption47" class="cell_1" style="left:0px; top:272px; width:145px; height:23px; vertical-align:middle; ">예비용</caption>
  1131. <caption id="caption49" class="cell_1" style="left:239px; top:272px; width:171px; height:23px; vertical-align:middle; ">예비용</caption>
  1132. <caption id="caption50" class="cell_1" style="left:478px; top:272px; width:155px; height:23px; vertical-align:middle; ">예비용</caption>
  1133. <caption id="caption51" class="cell_1" style="left:716px; top:272px; width:135px; height:23px; vertical-align:middle; ">예비용</caption>
  1134. <input id="input18" ref="/root/main/desc/etc6ownbrate" class="input_default" disabled="true" navindex="44" maxlength="3" format="#" appearance="input" style="left:147px; top:273px; width:90px; height:19px; text-align:right; "/>
  1135. <caption id="caption52" class="cell_1" style="left:956px; top:272px; width:162px; height:23px; vertical-align:middle; ">예비용</caption>
  1136. <input id="input31" ref="/root/main/desc/etc7ownbrate" class="input_default" disabled="true" navindex="45" maxlength="3" format="#" appearance="input" style="left:412px; top:273px; width:64px; height:19px; text-align:right; "/>
  1137. <input id="input32" ref="/root/main/desc/etc8ownbrate" class="input_default" disabled="true" navindex="46" maxlength="3" format="#" appearance="input" style="left:635px; top:273px; width:80px; height:19px; text-align:right; "/>
  1138. <input id="input33" ref="/root/main/desc/etc9ownbrate" class="input_default" disabled="true" navindex="47" maxlength="3" format="#" appearance="input" style="left:853px; top:273px; width:100px; height:19px; text-align:right; "/>
  1139. <input id="input34" ref="/root/main/desc/etc10ownbrate" class="input_default" disabled="true" navindex="48" maxlength="3" format="#" appearance="input" style="left:1120px; top:273px; width:75px; height:19px; text-align:right; "/>
  1140. </xhtml:body>
  1141. </xhtml:html>