SMPMB01400_미수코드관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  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. <uncocdspec>
  11. <uncocdspeclist/>
  12. </uncocdspec>
  13. <result/>
  14. <P0072list>
  15. <P0072>
  16. <cdnm/>
  17. <cdid/>
  18. </P0072>
  19. </P0072list>
  20. </main>
  21. <send>
  22. <srchcond>A</srchcond>
  23. <srchcnts/>
  24. <basedd/>
  25. <clsflag/>
  26. <discuncoflag/>
  27. <updatedata>
  28. <discuncocd/>
  29. <discunconm/>
  30. <earncls/>
  31. <calcscorcd/>
  32. <outpayapprate/>
  33. <outnopyapprate/>
  34. <outspecapprate/>
  35. <inpayapprate/>
  36. <innopyapprate/>
  37. <inspecapprate/>
  38. <basehealexamapprate/>
  39. <addhealexamapprate/>
  40. <fromdd/>
  41. <todd/>
  42. <discuncocls/>
  43. <autappyn/>
  44. <seqno/>
  45. <workflag/>
  46. <discuncoflag/>
  47. <medfeeapprate/>
  48. <aftrcptyn/>
  49. <kioskpossyn/>
  50. <realuseyn/>
  51. <orderbyseq/>
  52. </updatedata>
  53. </send>
  54. <hidden>
  55. <desc>
  56. <discuncocd/>
  57. <discunconm/>
  58. <earncls/>
  59. <calcscorcd/>
  60. <outpayapprate/>
  61. <outnopyapprate/>
  62. <outspecapprate/>
  63. <inpayapprate/>
  64. <innopyapprate/>
  65. <inspecapprate/>
  66. <basehealexamapprate/>
  67. <addhealexamapprate/>
  68. <fromdd/>
  69. <todd/>
  70. <discuncocls/>
  71. <autappyn/>
  72. <seqno/>
  73. <discuncoflag/>
  74. <realuseyn/>
  75. <orderbyseq/>
  76. </desc>
  77. </hidden>
  78. <init>
  79. <earncls>
  80. <cdnm/>
  81. <cdid/>
  82. </earncls>
  83. </init>
  84. </root>
  85. </instance>
  86. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  87. <submission id="TRPMB01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/uncocdspec"/>
  88. <submission id="TXPMB01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
  89. <submission id="TRPMB01402" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init"/>
  90. </model>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  94. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. fInitialize();
  98. ipt_srchcnts.disabled = true;
  99. ]]>
  100. </script>
  101. <script type="javascript">
  102. <![CDATA[
  103. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  104. //조회조건부,입력부,조회부
  105. function fInitialize() {
  106. model.resetInstanceNode("/root/send");
  107. model.resetInstanceNode("/root/hidden/desc");
  108. model.removeNodeset("/root/main/uncocdspec/uncocdspeclist");
  109. model.setFocus("cmb_srchcond");
  110. model.setValue("/root/send/srchcond","A");
  111. zbcfGetCodeList( new Array("P0072"), new Array("/root/main/P0072list") );
  112. submit("TRPMB01402");
  113. model.refresh();
  114. }
  115. //입력창의 내용이 기존내용과 비교하여 변경된 내역이 있는지 체크한다.
  116. //return : 변경된 경우 True, 변경된 내역이 없을 경우 False
  117. function fCheckModify() {
  118. //입력창에 매핑된 send Node 와 변경 전 데이타인 hidden Node 를 비교한다.
  119. //변경되었으면, return true
  120. if ( (model.getValue("/root/hidden/desc/discuncocd") ) != ( model.getValue("/root/send/updatedata/discuncocd")) ) return true; //할인코드
  121. if ( (model.getValue("/root/hidden/desc/discunconm") ) != ( model.getValue("/root/send/updatedata/discunconm")) ) return true; //할인코드명
  122. if ( (model.getValue("/root/hidden/desc/earncls") ) != ( model.getValue("/root/send/updatedata/earncls")) ) return true; //수익분류
  123. if ( (model.getValue("/root/hidden/desc/calcscorcd") ) != ( model.getValue("/root/send/updatedata/calcscorcd")) ) return true; //수가코드
  124. if ( (model.getValue("/root/hidden/desc/outpayapprate") ) != ( model.getValue("/root/send/updatedata/outpayapprate")) ) return true; //외래급여할인률
  125. if ( (model.getValue("/root/hidden/desc/outnopyapprate") ) != ( model.getValue("/root/send/updatedata/outnopyapprate")) ) return true; //외래비급여할인률
  126. if ( (model.getValue("/root/hidden/desc/outspecapprate") ) != ( model.getValue("/root/send/updatedata/outspecapprate")) ) return true; //외래특진료할인률
  127. if ( (model.getValue("/root/hidden/desc/inpayapprate") ) != ( model.getValue("/root/send/updatedata/inpayapprate")) ) return true; //입원급여할인률
  128. if ( (model.getValue("/root/hidden/desc/innopyapprate") ) != ( model.getValue("/root/send/updatedata/innopyapprate")) ) return true; //입원비급여할인률
  129. if ( (model.getValue("/root/hidden/desc/inspecapprate") ) != ( model.getValue("/root/send/updatedata/inspecapprate")) ) return true; //입원특진료할인률
  130. if ( (model.getValue("/root/hidden/desc/basehealexamapprate") ) != ( model.getValue("/root/send/updatedata/basehealexamapprate")) ) return true; //기본건진할인률
  131. if ( (model.getValue("/root/hidden/desc/addhealexamapprate") ) != ( model.getValue("/root/send/updatedata/addhealexamapprate")) ) return true; //추가건진할인률
  132. if ( (model.getValue("/root/hidden/desc/fromdd") ) != ( model.getValue("/root/send/updatedata/fromdd")) ) return true; //시작일자
  133. if ( (model.getValue("/root/hidden/desc/todd") ) != ( model.getValue("/root/send/updatedata/todd")) ) return true; //종료일자
  134. if ( (model.getValue("/root/hidden/desc/discuncocls") ) != ( model.getValue("/root/send/updatedata/discuncocls")) ) return true; //분류구분
  135. if ( (model.getValue("/root/hidden/desc/autappyn") ) != ( model.getValue("/root/send/updatedata/autappyn")) ) return true; //자동산정여부
  136. if ( (model.getValue("/root/hidden/desc/realuseyn") ) != ( model.getValue("/root/send/updatedata/realuseyn")) ) return true; //자동산정여부
  137. if ( (model.getValue("/root/hidden/desc/orderbyseq") ) != ( model.getValue("/root/send/updatedata/orderbyseq")) ) return true; //자동산정여부
  138. return false;
  139. }
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  145. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">미수코드관리</caption>
  146. </group>
  147. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  148. <line id="line2" class="line_2" style="x1:0px; y1:145px; x2:1194px; y2:145px; "/>
  149. <line id="line6" class="line_2" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
  150. <group id="group2" style="left:0px; top:10px; width:1194px; height:59px; vertical-align:top; ">
  151. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  152. <caption id="caption2" class="search_name" style="left:16px; top:18px; width:86px; height:17px; ">검색조건 :</caption>
  153. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  154. <caption id="caption21" class="search_name" style="left:722px; top:8px; width:86px; height:17px; ">기준일자 :</caption>
  155. <caption id="caption17" class="search_name" style="left:722px; top:32px; width:86px; height:17px; ">분류구분 :</caption>
  156. <select1 id="cmb_srchcond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:105px; top:18px; width:155px; height:19px; ">
  157. <choices>
  158. <item>
  159. <label>전체</label>
  160. <value>A</value>
  161. </item>
  162. <item>
  163. <label>코드</label>
  164. <value>C</value>
  165. </item>
  166. <item>
  167. <label>명칭</label>
  168. <value>N</value>
  169. </item>
  170. </choices>
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. if (model.getValue("/root/send/srchcond") == "A") {
  174. ipt_srchcnts.disabled = true;
  175. } else {
  176. ipt_srchcnts.disabled = false;
  177. }
  178. ]]>
  179. </script>
  180. </select1>
  181. <input id="ipt_srchcnts" ref="/root/send/srchcnts" class="input_s_essential" style="left:263px; top:18px; width:327px; height:19px; ">
  182. <script type="javascript" ev:event="onkeypress">
  183. <![CDATA[
  184. if (event.keyCode == "13") {
  185. var vsrchcnts = ipt_srchcnts.currentText;
  186. model.setValue("/root/send/srchcnts", vsrchcnts);
  187. btn_search.dispatch("DOMActivate");
  188. }
  189. ]]>
  190. </script>
  191. </input>
  192. <input id="ipt_basedd" ref="/root/send/basedd" class="input_search" inputtype="date" style="left:811px; top:8px; width:155px; height:19px; "/>
  193. <select1 id="cmb_clsflag" ref="/root/send/clsflag" class="combo_search" appearance="minimal" style="left:811px; top:32px; width:155px; height:19px; ">
  194. <choices>
  195. <itemset nodeset="/root/main/P0072list/P0072">
  196. <label ref="cdnm"/>
  197. <value ref="cdid"/>
  198. </itemset>
  199. </choices>
  200. </select1>
  201. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  202. <caption>조회</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. //입력부, 조회부 초기화 후, 조회
  206. model.removeNodeset("/root/main/uncocdspec/uncocdspeclist");
  207. model.resetInstanceNode("/root/send/updatedata");
  208. model.resetInstanceNode("/root/hidden/desc");
  209. model.setValue("/root/send/discuncoflag","U");
  210. submit("TRPMB01401");
  211. ]]>
  212. </script>
  213. </button>
  214. </group>
  215. <caption id="caption1" class="tit_2" style="left:5px; top:79px; width:95px; height:14px; ">미수코드내역</caption>
  216. <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
  217. <caption id="caption7" class="cell_1" style="left:0px; top:99px; width:127px; height:23px; ">미수코드</caption>
  218. <caption id="caption8" class="cell_1" style="left:365px; top:99px; width:164px; height:23px; ">외래미수률(급여/비급/특진)</caption>
  219. <caption id="caption3" class="cell_1" style="left:0px; top:123px; width:127px; height:23px; ">미수코드명</caption>
  220. <caption id="caption5" class="cell_1" style="left:365px; top:123px; width:164px; height:23px; ">입원미수률(급여/비급/특진)</caption>
  221. <caption id="caption9" class="cell_1" style="left:0px; top:147px; width:127px; height:23px; ">수익분류/수가코드</caption>
  222. <caption id="caption10" class="cell_1" style="left:365px; top:147px; width:164px; height:23px; ">시작일자/종료일자</caption>
  223. <caption id="caption13" class="cell_1" style="left:757px; top:147px; width:135px; height:23px; ">자동산정여부</caption>
  224. <caption id="caption14" class="cell_1" style="left:757px; top:123px; width:135px; height:23px; ">진찰료적용률/분류구분</caption>
  225. <caption id="caption20" class="tit_2" style="left:5px; top:180px; width:139px; height:14px; ">미수코드내역 리스트</caption>
  226. <line id="line8" class="line_1" style="x1:0px; y1:195px; x2:1194px; y2:195px; "/>
  227. <line id="line7" class="line_3" style="x1:1px; y1:169px; x2:1195px; y2:169px; "/>
  228. <caption id="caption4" style="left:587px; top:100px; width:19px; height:19px; ">%</caption>
  229. <caption id="caption11" style="left:661px; top:100px; width:16px; height:19px; ">%</caption>
  230. <button id="button54" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
  231. <caption>신규</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. // 신규 입력을 위해 입력창을 초기화한다.
  235. // 입력창은 send Node와 매핑되어 있으므로, send Node를 초기화한다.
  236. // 입력전 데이터와 비교하기 위해, hidden Node 를 초기화한다.
  237. model.resetInstanceNode("/root/hidden/desc");
  238. model.resetInstanceNode("/root/send/updatedata");
  239. //신규입력 작업구분 : I 세팅
  240. model.makeValue("/root/send/updatedata/workflag","I");
  241. model.makeValue("/root/send/updatedata/aftrcptyn","N");
  242. model.makeValue("/root/send/updatedata/kioskpossyn","N");
  243. model.setValue("/root/send/updatedata/autappyn","N");
  244. model.setValue("/root/send/updatedata/fromdd", getCurrentDate());
  245. model.setValue("/root/send/updatedata/todd", "99991231");
  246. model.refresh();
  247. ]]>
  248. </script>
  249. </button>
  250. <caption id="caption15" style="left:736px; top:100px; width:16px; height:19px; vertical-align:middle; ">%</caption>
  251. <caption id="caption18" style="left:661px; top:124px; width:16px; height:19px; vertical-align:middle; ">%</caption>
  252. <caption id="caption19" style="left:587px; top:124px; width:19px; height:19px; vertical-align:middle; ">%</caption>
  253. <caption id="caption22" style="left:736px; top:124px; width:16px; height:19px; vertical-align:middle; ">%</caption>
  254. <caption id="caption12" style="left:949px; top:100px; width:25px; height:19px; vertical-align:middle; ">%</caption>
  255. <caption id="caption16" class="cell_1" style="left:757px; top:99px; width:135px; height:23px; vertical-align:middle; ">건진미수률(기본/추가)</caption>
  256. <caption id="caption23" style="left:1022px; top:100px; width:25px; height:19px; vertical-align:middle; ">%</caption>
  257. <input id="ipt_discuncocd" ref="/root/send/updatedata/discuncocd" class="input_default" appearance="input" style="left:130px; top:100px; width:230px; height:19px; "/>
  258. <input id="ipt_discunconm" ref="/root/send/updatedata/discunconm" class="input_default" style="left:130px; top:124px; width:230px; height:19px; "/>
  259. <input id="ipt_calcscorcd" ref="/root/send/updatedata/calcscorcd" class="input_default" style="left:249px; top:148px; width:89px; height:19px; "/>
  260. <button id="btn_calcscorcd" class="icon_search" style="left:341px; top:149px; width:16px; height:16px; ">
  261. <caption/>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. setParameter("iParam_mother_view", "SMPMB00400_할인코드관리");
  265. open("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
  266. //open("SMPIC00200", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
  267. //modal("../../../pam/calcscormngtweb/xrw/SMPIC00200", "1","150", "150", "SMPIC00200", "/root/source", "/root/send");
  268. //window.load ("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회.xrw","xrw","","");
  269. ]]>
  270. </script>
  271. </button>
  272. <select1 id="cmb_earncls" ref="/root/send/updatedata/earncls" class="combo_search" appearance="minimal" style="left:130px; top:148px; width:115px; height:19px; ">
  273. <choices>
  274. <itemset nodeset="/root/init/earncls">
  275. <label ref="cdnm"/>
  276. <value ref="cdid"/>
  277. </itemset>
  278. </choices>
  279. </select1>
  280. <input id="ipt_fromdd" ref="/root/send/updatedata/fromdd" class="input_default" disabled="false" inputtype="date" appearance="input" style="left:531px; top:148px; width:101px; height:19px; ">
  281. <script type="javascript" ev:event="xforms-value-changed">
  282. <![CDATA[
  283. var fromdd = model.getValue("/root/send/updatedata/fromdd");
  284. var todd = model.getValue("/root/send/updatedata/todd");
  285. var today = getCurrentDate();
  286. if (fromdd < today) {
  287. messageBox("시작일자를 금일 이전으로 설정할 수 없습니다.", "E");
  288. model.setValue("/root/send/updatedata/fromdd", today);
  289. model.refresh();
  290. } else if ( fromdd > todd ) {
  291. messageBox("시작일자를 종료일자 이후로 설정할 수 없습니다.", "E");
  292. model.setValue("/root/send/updatedata/fromdd", today);
  293. model.refresh();
  294. }
  295. ]]>
  296. </script>
  297. </input>
  298. <input id="ipt_todd" ref="/root/send/updatedata/todd" class="input_default" disabled="false" inputtype="date" appearance="input" style="left:651px; top:148px; width:101px; height:19px; ">
  299. <script type="javascript" ev:event="xforms-value-changed">
  300. <![CDATA[
  301. var fromdd = model.getValue("/root/send/updatedata/fromdd");
  302. var todd = model.getValue("/root/send/updatedata/todd");
  303. var today = getCurrentDate();
  304. if (todd < today) {
  305. messageBox("종료일자를 금일 이전으로 설정할 수 없습니다.", "E");
  306. model.setValue("/root/send/updatedata/todd", "99991231");
  307. model.refresh();
  308. } else if ( fromdd > todd ) {
  309. messageBox("종료일자를 시작일자 이전으로 설정할 수 없습니다.", "E");
  310. model.setValue("/root/send/updatedata/todd", "99991231");
  311. model.refresh();
  312. }
  313. ]]>
  314. </script>
  315. </input>
  316. <input id="ipt_outpayapprate" ref="/root/send/updatedata/outpayapprate" class="input_default" appearance="input" style="left:532px; top:100px; width:52px; height:19px; text-align:right; "/>
  317. <input id="ipt_outnopyapprate" ref="/root/send/updatedata/outnopyapprate" class="input_default" appearance="input" style="left:606px; top:100px; width:52px; height:19px; text-align:right; "/>
  318. <input id="ipt_outspecapprate" ref="/root/send/updatedata/outspecapprate" class="input_default" appearance="input" style="left:682px; top:100px; width:52px; height:19px; text-align:right; "/>
  319. <input id="ipt_inpayapprate" ref="/root/send/updatedata/inpayapprate" class="input_default" appearance="input" style="left:532px; top:124px; width:52px; height:19px; text-align:right; "/>
  320. <input id="ipt_innopyapprate" ref="/root/send/updatedata/innopyapprate" class="input_default" appearance="input" style="left:606px; top:124px; width:52px; height:19px; text-align:right; "/>
  321. <input id="ipt_inspecapprate" ref="/root/send/updatedata/inspecapprate" class="input_default" appearance="input" style="left:682px; top:124px; width:52px; height:19px; text-align:right; "/>
  322. <input id="ipt_basehealexamapprate" ref="/root/send/updatedata/basehealexamapprate" class="input_default" appearance="input" style="left:895px; top:100px; width:52px; height:19px; text-align:right; "/>
  323. <input id="ipt_addhealexamapprate" ref="/root/send/updatedata/addhealexamapprate" class="input_default" appearance="input" style="left:968px; top:100px; width:52px; height:19px; text-align:right; "/>
  324. <select1 id="cmb_discuncocls" ref="/root/send/updatedata/discuncocls" class="combo_default" appearance="minimal" style="left:968px; top:124px; width:69px; height:19px; ">
  325. <choices>
  326. <itemset nodeset="/root/main/P0072list/P0072">
  327. <label ref="cdnm"/>
  328. <value ref="cdid"/>
  329. </itemset>
  330. </choices>
  331. </select1>
  332. <select1 id="rdo_autappyn" ref="/root/send/updatedata/autappyn" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:895px; top:149px; width:118px; height:15px; border-style:none; ">
  333. <choices>
  334. <item>
  335. <label>Yes</label>
  336. <value>Y</value>
  337. </item>
  338. <item>
  339. <label>No</label>
  340. <value>N</value>
  341. </item>
  342. </choices>
  343. </select1>
  344. <datagrid id="grd_uncocdlist" nodeset="/root/main/uncocdspec/uncocdspeclist" caption="미수코드^미수명^수익분류^수가코드^외래미수률^외래미수률^외래미수률^입원미수률^입원미수률^입원미수률^기본건진미수률^추가건진미수률^진찰료&#xA;적용률^시작일자^종료일자^분류구분^자동산정^실사용&#xA;여부^표시&#xA;순서^수정일시^수정자^caption1|미수코드^미수명^수익분류^수가코드^급여^비급여^특진료^급여^비급여^특진료^기본건진미수률^추가건진미수률^진찰료&#xA;적용률^시작일자^종료일자^분류구분^자동산정^실사용&#xA;여부^표시&#xA;순서^수정일시^수정자^caption1" colsep="^" colwidth="57, 190, 57, 63, 42, 42, 42, 42, 42, 42, 55, 57, 57, 75, 75, 32, 35, 50, 50, 134, 70, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:200px; width:1195px; height:531px; ">
  345. <col class="text_center" ref="discuncocd"/>
  346. <col class="text_left" ref="discunconm"/>
  347. <col class="text_center" ref="earncls"/>
  348. <col class="text_center" ref="calcscorcd"/>
  349. <col class="text_right" ref="outpayapprate"/>
  350. <col class="text_right" ref="outnopyapprate"/>
  351. <col class="text_right" ref="outspecapprate"/>
  352. <col class="text_right" ref="inpayapprate"/>
  353. <col class="text_right" ref="innopyapprate"/>
  354. <col class="text_right" ref="inspecapprate"/>
  355. <col class="text_right" ref="basehealexamapprate"/>
  356. <col class="text_right" ref="addhealexamapprate"/>
  357. <col class="text_right" ref="medfeeapprate"/>
  358. <col class="text_center" ref="fromdd" format="yyyy-mm-dd"/>
  359. <col class="text_center" ref="todd" format="yyyy-mm-dd"/>
  360. <col class="text_center" disabled="true" ref="discuncocls" type="combo">
  361. <choices>
  362. <itemset nodeset="/root/main/P0072list/P0072">
  363. <label ref="cdnm"/>
  364. <value ref="cdid"/>
  365. </itemset>
  366. </choices>
  367. </col>
  368. <col class="text_center" ref="autappyn"/>
  369. <col/>
  370. <col/>
  371. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="left:1118px; top:25px; width:150px; height:25px; "/>
  372. <col class="text_center" ref="lastupdtrid"/>
  373. <col ref="seqno" visibility="hidden"/>
  374. <script type="javascript" ev:event="onclick">
  375. <![CDATA[
  376. //조회된 리스트를 선택 시, hidden Node 와 입력창(send Node)에 세팅한다.
  377. //입력창은 send Node 와 매핑된다.
  378. if ( grd_uncocdlist.row-1 > 0 ) {
  379. model.resetInstanceNode("/root/send/updatedata");
  380. model.resetInstanceNode("/root/hidden/desc");
  381. var vtodd = model.getValue("/root/main/uncocdspec/uncocdspeclist["+(grd_uncocdlist.row-1)+"]/todd");
  382. if (vtodd == "") {
  383. vtodd = "99991231"
  384. }
  385. if (vtodd <= getCurrentDate()) {
  386. messageBox("이미 종료된 내역은 수정하실 수 없습니다. 수정이 필요한 경우 정보지원팀으로 연락 바랍니다","I999","");
  387. return;
  388. }
  389. model.copyNode("/root/send/updatedata","/root/main/uncocdspec/uncocdspeclist["+(grd_uncocdlist.row-1)+"]");
  390. model.copyNode("/root/hidden/desc","/root/main/uncocdspec/uncocdspeclist["+(grd_uncocdlist.row-1)+"]");
  391. //seqno 세팅
  392. model.makeValue("/root/send/updatedata/seqno",model.getValue("/root/hidden/desc/seqno"));
  393. //기존내역 수정, 작업구분 : U 세팅
  394. model.makeValue("/root/send/updatedata/workflag","U");
  395. model.refresh();
  396. }
  397. ]]>
  398. </script>
  399. </datagrid>
  400. <input id="input1" ref="/root/send/updatedata/medfeeapprate" class="input_default" appearance="input" style="left:895px; top:124px; width:52px; height:19px; text-align:right; "/>
  401. <caption id="caption24" style="left:949px; top:124px; width:25px; height:19px; vertical-align:middle; ">%</caption>
  402. <caption id="caption25" style="left:637px; top:148px; width:14px; height:19px; font-weight:bold; vertical-align:middle; ">~</caption>
  403. <caption id="caption26" class="cell_1" style="left:1042px; top:123px; width:75px; height:23px; vertical-align:middle; ">표시순서</caption>
  404. <caption id="caption27" class="cell_1" style="left:1042px; top:99px; width:75px; height:23px; vertical-align:middle; ">실사용여부</caption>
  405. <caption id="caption28" class="cell_1" style="left:1042px; top:147px; width:75px; height:23px; vertical-align:middle; "/>
  406. <select1 id="rdo_realuseyn" ref="/root/send/updatedata/realuseyn" appearance="full" cols="2" overflow="visible" style="left:1119px; top:100px; width:76px; height:20px; border-style:none; ">
  407. <choices>
  408. <item>
  409. <label>Yes</label>
  410. <value>Y</value>
  411. </item>
  412. <item>
  413. <label>No</label>
  414. <value>N</value>
  415. </item>
  416. </choices>
  417. </select1>
  418. <input id="ipt_orderbyseq" ref="/root/send/updatedata/orderbyseq" class="input_default" appearance="input" style="left:1120px; top:124px; width:74px; height:19px; text-align:right; "/>
  419. </group>
  420. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  421. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  422. <button id="btn_update" class="btn4_letter2" style="left:1010px; top:5px; width:56px; height:22px; ">
  423. <caption>저장</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. if( model.getValue("/root/send/updatedata/workflag") == '' || model.getValue("/root/send/updatedata/workflag") == ' ' ){
  427. model.makeValue("/root/send/updatedata/workflag","I");
  428. }
  429. //처음 세팅된 데이타와 비교하여 변경된 내역이 있는지 확인한다.
  430. // return 값이 false 이면, 변경된 내역이 없다.
  431. if ( fCheckModify() == false ) {
  432. messageBox("변경된 내역이 없어, 저장하지", "E007"); //변경된 내역이 없어, 저장하지 않았습니다.
  433. return;
  434. }
  435. //빈값 채움
  436. var vcalcscorcd = model.getValue("/root/send/updatedata/calcscorcd");
  437. var vearncls = model.getValue("/root/send/updatedata/earncls");
  438. if (vcalcscorcd == null || vcalcscorcd == "" ||vcalcscorcd== " " ) {
  439. model.setValue("/root/send/updatedata/calcscorcd","-");
  440. }
  441. if (vearncls == null || vearncls =="" || vearncls==" " ) {
  442. model.setValue("/root/send/updatedata/earncls","-");
  443. }
  444. //필수사항과 입력타입을 체크한다.
  445. if(isRequiredControls("ipt_discuncocd","ipt_discunconm","cmb_earncls","ipt_calcscorcd","ipt_outpayapprate","ipt_outnopyapprate","ipt_outspecapprate",
  446. "ipt_inpayapprate","ipt_innopyapprate","ipt_inspecapprate","ipt_basehealexamapprate","ipt_addhealexamapprate",
  447. "ipt_fromdd","cmb_discuncocls")) {
  448. //messageBox("모든 필수값이 입력이","I002");
  449. }
  450. else {
  451. return;
  452. }
  453. model.setValue("/root/send/updatedata/discuncoflag","U");
  454. model.makeNode("/root/send/updatedata/reductexptexptyn");
  455. model.setValue("/root/send/updatedata/reductexptexptyn","N");
  456. //실사용여부 체크
  457. if( model.getValue("/root/send/updatedata/realuseyn") != 'N' ){
  458. model.makeNode("/root/send/updatedata/realuseyn");
  459. model.setValue("/root/send/updatedata/realuseyn", "Y");
  460. }
  461. //할인코드 저장 처리
  462. if (submit("TXPMB01401") == true) {
  463. btn_search.dispatch("DOMActivate"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
  464. }
  465. ]]>
  466. </script>
  467. </button>
  468. <button id="btn_delete" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
  469. <caption>삭제</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. //삭제확인-선택하신 미수코드를 삭제하시겠습니까? Yes(6),No(7)
  473. if (messageBox("선택하신 미수코드를 ", "Q001") == '6') {
  474. //Yes 이면, 미수코드 삭제처리
  475. //삭제 작업구분 : D 세팅
  476. model.makeValue("/root/send/updatedata/workflag","D");
  477. model.setValue("/root/send/updatedata/discuncoflag","U");
  478. if (submit("TXPMB01401") == true) {
  479. btn_search.dispatch("DOMActivate"); //삭제처리 후, 내역 재조회(조회 이벤트 호출)
  480. }
  481. }
  482. ]]>
  483. </script>
  484. </button>
  485. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  486. <caption>초기화</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. //화면 초기화
  490. fInitialize();
  491. ]]>
  492. </script>
  493. </button>
  494. </group>
  495. </xhtml:body>
  496. </xhtml:html>