SMPMB00400_할인코드관리.xrw 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>할인코드관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <disccdspec>
  11. <disccdspeclist>
  12. </disccdspeclist>
  13. </disccdspec>
  14. <result/>
  15. <P0004list>
  16. <P0004>
  17. <cdnm/>
  18. <cdid/>
  19. </P0004>
  20. </P0004list>
  21. <PK027list/>
  22. <P6572list/>
  23. </main>
  24. <send>
  25. <srchcond>A</srchcond>
  26. <srchcnts/>
  27. <basedd/>
  28. <clsflag/>
  29. <discuncoflag/>
  30. <updatedata>
  31. <discuncocd/>
  32. <discunconm/>
  33. <medfeeapprate/>
  34. <earncls/>
  35. <calcscorcd/>
  36. <outpayapprate/>
  37. <outnopyapprate/>
  38. <outspecapprate/>
  39. <inpayapprate/>
  40. <innopyapprate/>
  41. <inspecapprate/>
  42. <basehealexamapprate/>
  43. <addhealexamapprate/>
  44. <fromdd/>
  45. <todd/>
  46. <discuncocls/>
  47. <autappyn/>
  48. <seqno/>
  49. <workflag/>
  50. <discuncoflag/>
  51. <prity/>
  52. <aftrcptyn/>
  53. <kioskpossyn/>
  54. <reductexptexptyn/>
  55. <realuseyn/>
  56. <orderbyseq/>
  57. <fmlychkyn/>
  58. <holyordflag/>
  59. <famyown/>
  60. <famymate/>
  61. <famyacdt/>
  62. <reference/>
  63. </updatedata>
  64. </send>
  65. <hidden>
  66. <desc>
  67. <discuncocd/>
  68. <discunconm/>
  69. <medfeeapprate/>
  70. <earncls/>
  71. <calcscorcd/>
  72. <outpayapprate/>
  73. <outnopyapprate/>
  74. <outspecapprate/>
  75. <inpayapprate/>
  76. <innopyapprate/>
  77. <inspecapprate/>
  78. <basehealexamapprate/>
  79. <addhealexamapprate/>
  80. <fromdd/>
  81. <todd/>
  82. <discuncocls/>
  83. <autappyn/>
  84. <seqno/>
  85. <discuncoflag/>
  86. <prity/>
  87. <aftrcptyn/>
  88. <kioskpossyn/>
  89. <reductexptexptyn/>
  90. <realuseyn/>
  91. <orderbyseq/>
  92. <fmlychkyn/>
  93. </desc>
  94. </hidden>
  95. <init>
  96. <earncls>
  97. <cdnm/>
  98. <cdid/>
  99. </earncls>
  100. </init>
  101. <temp>
  102. <calcscorcd/>
  103. </temp>
  104. </root>
  105. </instance>
  106. <submission id="TRPMB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/disccdspec"/>
  107. <submission id="TXPMB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
  108. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  109. <submission id="TRPMB00402" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init"/>
  110. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  111. </model>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  117. <script type="javascript" ev:event="xforms-ready">
  118. <![CDATA[
  119. fInitialize();
  120. ipt_srchcnts.disabled = true;
  121. ]]>
  122. </script>
  123. <script type="javascript">
  124. <![CDATA[
  125. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  126. //조회조건부,입력부,조회부
  127. function fInitialize() {
  128. model.resetInstanceNode("/root/send");
  129. model.resetInstanceNode("/root/hidden/desc");
  130. model.removeNodeset("/root/main/disccdspec/disccdspeclist");
  131. model.setFocus("cmb_srchcond");
  132. model.setValue("/root/send/srchcond","A");
  133. zbcfGetCodeList( new Array("P0004"), new Array("/root/main/P0004list") );
  134. pamfGetCodeList( new Array("PK027", "P6572"), new Array("/root/main/PK027list", "/root/main/P6572list"));
  135. submit("TRPMB00402");
  136. model.refresh();
  137. }
  138. //입력창의 내용이 기존내용과 비교하여 변경된 내역이 있는지 체크한다.
  139. //return : 변경된 경우 True, 변경된 내역이 없을 경우 False
  140. function fCheckModify() {
  141. //입력창에 매핑된 send Node 와 변경 전 데이타인 hidden Node 를 비교한다.
  142. //변경되었으면, return true
  143. if ( (model.getValue("/root/hidden/desc/discuncocd") ) != ( model.getValue("/root/send/updatedata/discuncocd")) ) return true; //할인코드
  144. if ( (model.getValue("/root/hidden/desc/discunconm") ) != ( model.getValue("/root/send/updatedata/discunconm")) ) return true; //할인코드명
  145. if ( (model.getValue("/root/hidden/desc/medfeeapprate") ) != ( model.getValue("/root/send/updatedata/medfeeapprate")) ) return true; //할인코드명
  146. if ( (model.getValue("/root/hidden/desc/earncls") ) != ( model.getValue("/root/send/updatedata/earncls")) ) return true; //수익분류
  147. if ( (model.getValue("/root/hidden/desc/calcscorcd") ) != ( model.getValue("/root/send/updatedata/calcscorcd")) ) return true; //수가코드
  148. if ( (model.getValue("/root/hidden/desc/outpayapprate") ) != ( model.getValue("/root/send/updatedata/outpayapprate")) ) return true; //외래급여할인률
  149. if ( (model.getValue("/root/hidden/desc/outnopyapprate") ) != ( model.getValue("/root/send/updatedata/outnopyapprate")) ) return true; //외래비급여할인률
  150. if ( (model.getValue("/root/hidden/desc/outspecapprate") ) != ( model.getValue("/root/send/updatedata/outspecapprate")) ) return true; //외래특진료할인률
  151. if ( (model.getValue("/root/hidden/desc/inpayapprate") ) != ( model.getValue("/root/send/updatedata/inpayapprate")) ) return true; //입원급여할인률
  152. if ( (model.getValue("/root/hidden/desc/innopyapprate") ) != ( model.getValue("/root/send/updatedata/innopyapprate")) ) return true; //입원비급여할인률
  153. if ( (model.getValue("/root/hidden/desc/inspecapprate") ) != ( model.getValue("/root/send/updatedata/inspecapprate")) ) return true; //입원특진료할인률
  154. if ( (model.getValue("/root/hidden/desc/basehealexamapprate") ) != ( model.getValue("/root/send/updatedata/basehealexamapprate")) ) return true; //기본건진할인률
  155. if ( (model.getValue("/root/hidden/desc/addhealexamapprate") ) != ( model.getValue("/root/send/updatedata/addhealexamapprate")) ) return true; //추가건진할인률
  156. if ( (model.getValue("/root/hidden/desc/fromdd") ) != ( model.getValue("/root/send/updatedata/fromdd")) ) return true; //시작일자
  157. if ( (model.getValue("/root/hidden/desc/todd") ) != ( model.getValue("/root/send/updatedata/todd")) ) return true; //종료일자
  158. if ( (model.getValue("/root/hidden/desc/discuncocls") ) != ( model.getValue("/root/send/updatedata/discuncocls")) ) return true; //분류구분
  159. if ( (model.getValue("/root/hidden/desc/autappyn") ) != ( model.getValue("/root/send/updatedata/autappyn")) ) return true; //자동산정여부
  160. if ( (model.getValue("/root/hidden/desc/aftrcptyn") ) != ( model.getValue("/root/send/updatedata/aftrcptyn")) ) return true; //수납VIP
  161. if ( (model.getValue("/root/hidden/desc/kioskpossyn") ) != ( model.getValue("/root/send/updatedata/kioskpossyn")) ) return true; //무인수납여부
  162. if ( (model.getValue("/root/hidden/desc/realuseyn") ) != ( model.getValue("/root/send/updatedata/realuseyn")) ) return true; //자동산정여부
  163. if ( (model.getValue("/root/hidden/desc/orderbyseq") ) != ( model.getValue("/root/send/updatedata/orderbyseq")) ) return true; //자동산정여부
  164. if ( (model.getValue("/root/hidden/desc/reductexptexptyn") ) != ( model.getValue("/root/send/updatedata/reductexptexptyn")) ) return true; //감면예외의 예외
  165. if ( (model.getValue("/root/hidden/desc/prity") ) != ( model.getValue("/root/send/updatedata/prity")) ) return true; // 우선순위
  166. if ( (model.getValue("/root/hidden/desc/fmlychkyn") ) != ( model.getValue("/root/send/updatedata/fmlychkyn")) ) return true; // 감면정보 예외
  167. if ( (model.getValue("/root/hidden/desc/holyordflag") ) != ( model.getValue("/root/send/updatedata/holyordflag")) ) return true; // 직원구분
  168. if ( (model.getValue("/root/hidden/desc/famyown") ) != ( model.getValue("/root/send/updatedata/famyown")) ) return true; // 관계구분 본인
  169. if ( (model.getValue("/root/hidden/desc/famymate") ) != ( model.getValue("/root/send/updatedata/famymate")) ) return true; // 관계구분 배우자
  170. if ( (model.getValue("/root/hidden/desc/famyacdt") ) != ( model.getValue("/root/send/updatedata/famyacdt")) ) return true; // 관계구분 존비속
  171. if ( (model.getValue("/root/hidden/desc/reference") ) != ( model.getValue("/root/send/updatedata/reference")) ) return true; // 참고사항
  172. return false;
  173. }
  174. /**
  175. * 기준자료에 등록된 사용자라면 과거 자료의 참고사항에 입력 가능하도록 수정
  176. * 2015.01.05
  177. * 이정택
  178. */
  179. function fUserCheck(){
  180. var cnt = getNodeSetCnt("/root/main/P6572list/P6572[cdid='" + getUserInfo("userid") + "']");
  181. var vtodd = model.getValue("/root/main/disccdspec/disccdspeclist["+(grd_disccdlist.row-1)+"]/todd");
  182. if (vtodd == "") {
  183. vtodd = "99991231"
  184. }
  185. if(cnt==0){
  186. if (vtodd <= getCurrentDate()) {
  187. messageBox("이미 종료된 내역은 수정하실 수 없습니다.","I999","");
  188. return false;
  189. }else{
  190. return true;
  191. }
  192. }else{
  193. if (vtodd <= getCurrentDate()) {
  194. ipt_discuncocd.disabled=true;
  195. input1.disabled=true;
  196. ipt_fromdd.disabled=true;
  197. ipt_todd.disabled=true;
  198. radio1.disabled=true;
  199. ipt_discunconm.disabled=true;
  200. ipt_outpayapprate.disabled=true;
  201. ipt_outnopyapprate.disabled=true;
  202. ipt_outspecapprate.disabled=true;
  203. ipt_basehealexamapprate.disabled=true;
  204. ipt_addhealexamapprate.disabled=true;
  205. radio2.disabled=true;
  206. cmb_earncls.disabled=true;
  207. ipt_calcscorcd.disabled=true;
  208. ipt_inpayapprate.disabled=true;
  209. ipt_innopyapprate.disabled=true;
  210. ipt_inspecapprate.disabled=true;
  211. cmb_discuncocls.disabled=true;
  212. rdo_autappyn.disabled=true;
  213. checkbox1.disabled=true;
  214. input2.disabled=true;
  215. radio3.disabled=true;
  216. input3.disabled=true;
  217. radio4.disabled=true;
  218. radio5.disabled=true;
  219. checkbox2.disabled=true;
  220. checkbox3.disabled=true;
  221. checkbox4.disabled=true;
  222. return true;
  223. }else{
  224. ipt_discuncocd.disabled=false;
  225. input1.disabled=false;
  226. ipt_fromdd.disabled=false;
  227. ipt_todd.disabled=false;
  228. radio1.disabled=false;
  229. ipt_discunconm.disabled=false;
  230. ipt_outpayapprate.disabled=false;
  231. ipt_outnopyapprate.disabled=false;
  232. ipt_outspecapprate.disabled=false;
  233. ipt_basehealexamapprate.disabled=false;
  234. ipt_addhealexamapprate.disabled=false;
  235. radio2.disabled=false;
  236. cmb_earncls.disabled=false;
  237. ipt_calcscorcd.disabled=false;
  238. ipt_inpayapprate.disabled=false;
  239. ipt_innopyapprate.disabled=false;
  240. ipt_inspecapprate.disabled=false;
  241. cmb_discuncocls.disabled=false;
  242. rdo_autappyn.disabled=false;
  243. checkbox1.disabled=false;
  244. input2.disabled=false;
  245. radio3.disabled=false;
  246. input3.disabled=false;
  247. radio4.disabled=false;
  248. radio5.disabled=false;
  249. checkbox2.disabled=false;
  250. checkbox3.disabled=false;
  251. checkbox4.disabled=false;
  252. return true;
  253. }
  254. }
  255. }
  256. // 노드셋 갯수 카운트를 구함
  257. // 2015/01/05 이정택
  258. function getNodeSetCnt(path){
  259. var insXml = model.instances(0);
  260. var nodeList = insXml.selectNodes(path);
  261. return nodeList.length;
  262. }
  263. ]]>
  264. </script>
  265. </xhtml:head>
  266. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  267. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  268. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">할인코드관리</caption>
  269. </group>
  270. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  271. <input id="ipt_outspecapprate" ref="/root/send/updatedata/outspecapprate" class="input_default" appearance="input" style="left:633px; top:124px; width:40px; height:19px; text-align:right; "/>
  272. <input id="ipt_outnopyapprate" ref="/root/send/updatedata/outnopyapprate" class="input_default" appearance="input" style="left:571px; top:124px; width:40px; height:19px; text-align:right; "/>
  273. <line id="line2" class="line_2" style="x1:0px; y1:145px; x2:1194px; y2:145px; "/>
  274. <line id="line6" class="line_2" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
  275. <group id="group2" style="left:0px; top:10px; width:1194px; height:59px; vertical-align:top; ">
  276. <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; "/>
  277. <caption id="caption2" class="search_name" style="left:16px; top:18px; width:86px; height:17px; ">검색조건 :</caption>
  278. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  279. <caption id="caption21" class="search_name" style="left:722px; top:8px; width:86px; height:17px; ">기준일자 :</caption>
  280. <caption id="caption17" class="search_name" style="left:722px; top:32px; width:86px; height:17px; ">분류구분 :</caption>
  281. <select1 id="cmb_srchcond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:105px; top:18px; width:155px; height:19px; ">
  282. <choices>
  283. <item>
  284. <label>전체</label>
  285. <value>A</value>
  286. </item>
  287. <item>
  288. <label>코드</label>
  289. <value>C</value>
  290. </item>
  291. <item>
  292. <label>명칭</label>
  293. <value>N</value>
  294. </item>
  295. </choices>
  296. <script type="javascript" ev:event="xforms-value-changed">
  297. <![CDATA[
  298. if (model.getValue("/root/send/srchcond") == "A") {
  299. ipt_srchcnts.disabled = true;
  300. } else {
  301. ipt_srchcnts.disabled = false;
  302. }
  303. ]]>
  304. </script>
  305. </select1>
  306. <input id="ipt_srchcnts" ref="/root/send/srchcnts" class="input_s_essential" style="left:263px; top:18px; width:327px; height:19px; ">
  307. <script type="javascript" ev:event="onkeypress">
  308. <![CDATA[
  309. if (event.keyCode == "13") {
  310. var vsrchcnts = ipt_srchcnts.currentText;
  311. model.setValue("/root/send/srchcnts", vsrchcnts);
  312. btn_search.dispatch("DOMActivate");
  313. }
  314. ]]>
  315. </script>
  316. </input>
  317. <input id="ipt_basedd" ref="/root/send/basedd" class="input_search" inputtype="date" style="left:811px; top:8px; width:155px; height:19px; "/>
  318. <select1 id="cmb_clsflag" ref="/root/send/clsflag" class="combo_search" appearance="minimal" style="left:811px; top:32px; width:155px; height:19px; ">
  319. <choices>
  320. <itemset nodeset="/root/main/P0004list/P0004">
  321. <label ref="cdnm"/>
  322. <value ref="cdid"/>
  323. </itemset>
  324. </choices>
  325. </select1>
  326. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  327. <caption>조회</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. //입력부, 조회부 초기화 후, 조회
  331. model.removeNodeset("/root/main/disccdspec/disccdspeclist");
  332. model.resetInstanceNode("/root/send/updatedata");
  333. model.resetInstanceNode("/root/hidden/desc");
  334. model.setValue("/root/send/discuncoflag","D");
  335. submit("TRPMB00401");
  336. ]]>
  337. </script>
  338. </button>
  339. </group>
  340. <caption id="caption1" class="tit_2" style="left:5px; top:79px; width:95px; height:14px; ">할인코드내역</caption>
  341. <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
  342. <caption id="caption7" class="cell_1" style="left:0px; top:99px; width:127px; height:23px; ">할인코드</caption>
  343. <caption id="caption8" class="cell_1" style="left:348px; top:123px; width:164px; height:23px; ">외래할인률(급여/비급/선택)</caption>
  344. <caption id="caption3" class="cell_1" style="left:0px; top:123px; width:127px; height:23px; ">할인코드명</caption>
  345. <caption id="caption5" class="cell_1" style="left:348px; top:147px; width:164px; height:23px; ">입원할인률(급여/비급/선택)</caption>
  346. <caption id="caption9" class="cell_1" style="left:0px; top:147px; width:127px; height:23px; ">수익분류/수가코드</caption>
  347. <caption id="caption10" class="cell_1" style="left:693px; top:99px; width:135px; height:23px; ">시작일자/종료일자</caption>
  348. <caption id="caption13" class="cell_1" style="left:693px; top:147px; width:135px; height:23px; ">분류구분/자동산정여부</caption>
  349. <caption id="caption14" class="cell_1" style="left:348px; top:99px; width:164px; height:23px; ">진찰료 할인률</caption>
  350. <caption id="caption20" class="tit_2" style="left:5px; top:234px; width:139px; height:13px; ">할인코드내역 리스트</caption>
  351. <button id="btn_excsave" class="btn2_letter2" style="left:1152px; top:230px; width:42px; height:19px; ">
  352. <caption>엑셀</caption>
  353. <script type="javascript" ev:event="DOMActivate">
  354. <![CDATA[
  355. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  356. grd_disccdlist.saveExcel(file);
  357. ]]>
  358. </script>
  359. </button>
  360. <caption id="caption27" class="cell_1" style="left:1030px; top:99px; width:69px; height:23px; ">무인수납</caption>
  361. <line id="line8" class="line_1" style="x1:0px; y1:250px; x2:1194px; y2:250px; "/>
  362. <caption id="caption4" style="left:555px; top:124px; width:19px; height:19px; ">%</caption>
  363. <caption id="caption11" style="left:611px; top:124px; width:16px; height:19px; ">%</caption>
  364. <button id="button54" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
  365. <caption>신규</caption>
  366. <script type="javascript" ev:event="DOMActivate">
  367. <![CDATA[
  368. // 신규 입력을 위해 입력창을 초기화한다.
  369. // 입력창은 send Node와 매핑되어 있으므로, send Node를 초기화한다.
  370. // 입력전 데이터와 비교하기 위해, hidden Node 를 초기화한다.
  371. model.resetInstanceNode("/root/hidden/desc");
  372. model.resetInstanceNode("/root/send/updatedata");
  373. model.setValue("/root/send/updatedata/autappyn","N");
  374. model.setValue("/root/send/updatedata/aftrcptyn","N");
  375. model.setValue("/root/send/updatedata/kioskpossyn","N");
  376. //신규입력 작업구분 : I 세팅
  377. model.makeValue("/root/send/updatedata/workflag","I");
  378. model.setValue("/root/send/updatedata/fromdd", getCurrentDate());
  379. model.setValue("/root/send/updatedata/todd", "99991231");
  380. model.refresh();
  381. ]]>
  382. </script>
  383. </button>
  384. <caption id="caption15" style="left:673px; top:124px; width:16px; height:19px; vertical-align:middle; ">%</caption>
  385. <caption id="caption18" style="left:611px; top:148px; width:16px; height:19px; vertical-align:middle; ">%</caption>
  386. <caption id="caption19" style="left:555px; top:148px; width:19px; height:19px; vertical-align:middle; ">%</caption>
  387. <caption id="caption22" style="left:673px; top:148px; width:16px; height:19px; vertical-align:middle; ">%</caption>
  388. <caption id="caption12" style="left:862px; top:124px; width:25px; height:19px; vertical-align:middle; ">%</caption>
  389. <caption id="caption16" class="cell_1" style="left:693px; top:123px; width:135px; height:23px; vertical-align:middle; ">건진할인률(기본/추가)</caption>
  390. <caption id="caption23" style="left:911px; top:124px; width:25px; height:19px; vertical-align:middle; ">%</caption>
  391. <input id="ipt_discuncocd" ref="/root/send/updatedata/discuncocd" class="input_default" maxlength="4" appearance="input" style="left:130px; top:100px; width:210px; height:19px; "/>
  392. <input id="ipt_discunconm" ref="/root/send/updatedata/discunconm" class="input_default" style="left:130px; top:124px; width:210px; height:19px; "/>
  393. <input id="ipt_calcscorcd" ref="/root/send/updatedata/calcscorcd" class="input_default" style="left:227px; top:148px; width:93px; height:19px; "/>
  394. <button id="btn_calcscorcd" class="icon_search" style="left:324px; top:149px; width:16px; height:16px; ">
  395. <caption/>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. setParameter("iParam_mother_view", "SMPMB00400_할인코드관리");
  399. //이동재 2009-02-19 OLD
  400. //open("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
  401. //이동재 2009-02-19 NEW
  402. modal("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
  403. //open("SMPIC00200", "", "200", "200" ,"SMPIC00200_수가조회", "", "");
  404. //modal("../../../pam/calcscormngtweb/xrw/SMPIC00200", "1","150", "150", "SMPIC00200", "/root/source", "/root/send");
  405. //window.load ("../../../pam/calcscormngtweb/xrw/SMPIC00200_수가조회.xrw","xrw","","");
  406. var cur_row = grd_disccdlist.row;
  407. //이동재 2009-02-19 NEW
  408. if(model.getvalue("/root/temp/calcscorcd") != ""){
  409. model.setvalue("/root/send/updatedata/calcscorcd", model.getValue ("/root/temp/calcscorcd"));
  410. model.setvalue("/root/main/disccdspec/disccdspeclist[" + cur_row + "]/calcscorcd", model.getValue ("/root/temp/calcscorcd"));
  411. }
  412. model.refresh();
  413. ]]>
  414. </script>
  415. </button>
  416. <select1 id="cmb_earncls" ref="/root/send/updatedata/earncls" class="combo_search" appearance="minimal" style="left:130px; top:148px; width:93px; height:19px; ">
  417. <choices>
  418. <itemset nodeset="/root/init/earncls">
  419. <label ref="cdnm"/>
  420. <value ref="cdid"/>
  421. </itemset>
  422. </choices>
  423. </select1>
  424. <input id="ipt_fromdd" ref="/root/send/updatedata/fromdd" class="input_default" inputtype="date" appearance="input" style="left:831px; top:100px; width:85px; height:19px; ">
  425. <script type="javascript" ev:event="xforms-value-changed">
  426. <![CDATA[
  427. var fromdd = model.getValue("/root/send/updatedata/fromdd");
  428. var todd = model.getValue("/root/send/updatedata/todd");
  429. var today = getCurrentDate();
  430. if (fromdd < today) {
  431. messageBox("시작일자를 금일 이전으로 설정할 수 없습니다.", "E");
  432. model.setValue("/root/send/updatedata/fromdd", today);
  433. model.refresh();
  434. } else if ( fromdd > todd ) {
  435. messageBox("시작일자를 종료일자 이후로 설정할 수 없습니다.", "E");
  436. model.setValue("/root/send/updatedata/fromdd", today);
  437. model.refresh();
  438. }
  439. ]]>
  440. </script>
  441. </input>
  442. <input id="ipt_todd" ref="/root/send/updatedata/todd" class="input_default" inputtype="date" appearance="input" style="left:934px; top:100px; width:85px; height:19px; ">
  443. <script type="javascript" ev:event="xforms-value-changed">
  444. <![CDATA[
  445. var fromdd = model.getValue("/root/send/updatedata/fromdd");
  446. var todd = model.getValue("/root/send/updatedata/todd");
  447. var today = getCurrentDate();
  448. if (todd < today) {
  449. messageBox("종료일자를 금일 이전으로 설정할 수 없습니다.", "E");
  450. model.setValue("/root/send/updatedata/todd", "99991231");
  451. model.refresh();
  452. } else if ( fromdd > todd ) {
  453. messageBox("종료일자를 시작일자 이전으로 설정할 수 없습니다.", "E");
  454. model.setValue("/root/send/updatedata/todd", "99991231");
  455. model.refresh();
  456. }
  457. ]]>
  458. </script>
  459. </input>
  460. <input id="ipt_outpayapprate" ref="/root/send/updatedata/outpayapprate" class="input_default" appearance="input" style="left:515px; top:124px; width:40px; height:19px; text-align:right; "/>
  461. <input id="ipt_inpayapprate" ref="/root/send/updatedata/inpayapprate" class="input_default" appearance="input" style="left:515px; top:148px; width:40px; height:19px; text-align:right; "/>
  462. <input id="ipt_innopyapprate" ref="/root/send/updatedata/innopyapprate" class="input_default" appearance="input" style="left:571px; top:148px; width:40px; height:19px; text-align:right; "/>
  463. <input id="ipt_inspecapprate" ref="/root/send/updatedata/inspecapprate" class="input_default" appearance="input" style="left:633px; top:148px; width:40px; height:19px; text-align:right; "/>
  464. <input id="ipt_basehealexamapprate" ref="/root/send/updatedata/basehealexamapprate" class="input_default" appearance="input" style="left:831px; top:124px; width:30px; height:19px; text-align:right; "/>
  465. <input id="ipt_addhealexamapprate" ref="/root/send/updatedata/addhealexamapprate" class="input_default" appearance="input" style="left:880px; top:124px; width:30px; height:19px; text-align:right; "/>
  466. <select1 id="cmb_discuncocls" ref="/root/send/updatedata/discuncocls" class="combo_default" appearance="minimal" style="left:831px; top:148px; width:85px; height:19px; ">
  467. <choices>
  468. <itemset nodeset="/root/main/P0004list/P0004">
  469. <label ref="cdnm"/>
  470. <value ref="cdid"/>
  471. </itemset>
  472. </choices>
  473. </select1>
  474. <datagrid id="grd_disccdlist" nodeset="/root/main/disccdspec/disccdspeclist" caption="할인코드^할인명^수익분류^수가코드^진찰료할인률^외래할인률^외래할인률^외래할인률^입원할인률^입원할인률^입원할인률^기본(공단)&#xA;건진할인율^추가건진할인률^시작일자^종료일자^분류구분^직원구분^관계종류^관계종류^관계종류^우선순위^무인수납&#xA;여부^감면정보&#xA;예외^수납VIP^실사용&#xA;여부^표시&#xA;순서^참고사항^자동산정^수정일시^수정자^caption1|할인코드^할인명^수익분류^수가코드^진찰료할인률^급여^비급여^선택^급여^비급여^선택^기본(공단)&#xA;건진할인율^추가건진할인률^시작일자^종료일자^분류구분^직원구분^본인^배우자^존비속^우선순위^무인수납&#xA;여부^감면정보&#xA;예외^수납VIP^실사용&#xA;여부^표시&#xA;순서^참고사항^자동산정^수정일시^수정자^caption1" colsep="^" colwidth="57, 190, 57, 63, 47, 42, 42, 42, 42, 42, 42, 68, 57, 75, 75, 32, 60, 35, 45, 45, 35, 60, 60, 50, 50, 40, 261, 35, 128, 67, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:255px; width:1195px; height:485px; ">
  475. <col class="text_center" ref="discuncocd"/>
  476. <col class="text_left" ref="discunconm"/>
  477. <col class="text_center" ref="earncls"/>
  478. <col class="text_center" ref="calcscorcd"/>
  479. <col class="text_right" ref="medfeeapprate"/>
  480. <col class="text_right" ref="outpayapprate"/>
  481. <col class="text_right" ref="outnopyapprate"/>
  482. <col class="text_right" ref="outspecapprate"/>
  483. <col class="text_right" ref="inpayapprate"/>
  484. <col class="text_right" ref="innopyapprate"/>
  485. <col class="text_right" ref="inspecapprate"/>
  486. <col class="text_right" ref="basehealexamapprate"/>
  487. <col class="text_right" ref="addhealexamapprate"/>
  488. <col class="text_center" ref="fromdd" format="yyyy-mm-dd"/>
  489. <col class="text_center" ref="todd" format="yyyy-mm-dd"/>
  490. <col class="text_center" disabled="true" ref="discuncocls" type="combo">
  491. <choices>
  492. <itemset nodeset="/root/main/P0004list/P0004">
  493. <label ref="cdnm"/>
  494. <value ref="cdid"/>
  495. </itemset>
  496. </choices>
  497. </col>
  498. <col ref="holyordflag" type="combo">
  499. <choices>
  500. <itemset nodeset="/root/main/PK027list/PK027">
  501. <label ref="cdnm"/>
  502. <value ref="cdid"/>
  503. </itemset>
  504. </choices>
  505. </col>
  506. <col ref="famyown"/>
  507. <col ref="famymate"/>
  508. <col ref="famyacdt"/>
  509. <col ref="prity"/>
  510. <col ref="kioskpossyn"/>
  511. <col ref="fmlychkyn"/>
  512. <col ref="aftrcptyn"/>
  513. <col ref="realuseyn"/>
  514. <col ref="orderbyseq"/>
  515. <col ref="reference"/>
  516. <col class="text_center" ref="autappyn" visibility="hidden"/>
  517. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="left:1118px; top:25px; width:150px; height:25px; "/>
  518. <col class="text_center" ref="lastupdtrid"/>
  519. <col ref="seqno" visibility="hidden"/>
  520. <script type="javascript" ev:event="onclick">
  521. <![CDATA[
  522. //조회된 리스트를 선택 시, hidden Node 와 입력창(send Node)에 세팅한다.
  523. //입력창은 send Node 와 매핑된다.
  524. if ( grd_disccdlist.row-1 > 0 ) {
  525. model.resetInstanceNode("/root/send/updatedata");
  526. model.resetInstanceNode("/root/hidden/desc");
  527. if(!fUserCheck()){
  528. return;
  529. }
  530. model.copyNode("/root/send/updatedata","/root/main/disccdspec/disccdspeclist["+(grd_disccdlist.row-1)+"]");
  531. model.copyNode("/root/hidden/desc","/root/main/disccdspec/disccdspeclist["+(grd_disccdlist.row-1)+"]");
  532. //seqno 세팅
  533. model.makeValue("/root/send/updatedata/seqno",model.getValue("/root/hidden/desc/seqno"));
  534. //기존내역 수정, 작업구분 : U 세팅
  535. model.makeValue("/root/send/updatedata/workflag","U");
  536. model.refresh();
  537. }
  538. ]]>
  539. </script>
  540. </datagrid>
  541. <select1 id="rdo_autappyn" ref="/root/send/updatedata/autappyn" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:934px; top:149px; width:88px; height:15px; border-style:none; ">
  542. <choices>
  543. <item>
  544. <label>Yes</label>
  545. <value>Y</value>
  546. </item>
  547. <item>
  548. <label>No</label>
  549. <value>N</value>
  550. </item>
  551. </choices>
  552. </select1>
  553. <select1 id="radio1" ref="/root/send/updatedata/kioskpossyn" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:1103px; top:100px; width:88px; height:15px; border-style:none; ">
  554. <choices>
  555. <item>
  556. <label>Yes</label>
  557. <value>Y</value>
  558. </item>
  559. <item>
  560. <label>No</label>
  561. <value>N</value>
  562. </item>
  563. </choices>
  564. </select1>
  565. <caption id="caption24" style="left:920px; top:100px; width:21px; height:19px; vertical-align:middle; ">-</caption>
  566. <input id="input1" ref="/root/send/updatedata/medfeeapprate" class="input_default" appearance="input" style="left:515px; top:100px; width:40px; height:19px; text-align:right; "/>
  567. <caption id="caption25" style="left:555px; top:100px; width:19px; height:19px; ">%</caption>
  568. <input id="input2" ref="/root/send/updatedata/prity" class="input_default" appearance="input" style="left:130px; top:172px; width:93px; height:19px; "/>
  569. <caption id="caption28" class="cell_1" style="left:1030px; top:123px; width:69px; height:23px; ">수납VIP</caption>
  570. <select1 id="radio2" ref="/root/send/updatedata/aftrcptyn" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:1103px; top:125px; width:88px; height:15px; border-style:none; ">
  571. <choices>
  572. <item>
  573. <label>Yes</label>
  574. <value>Y</value>
  575. </item>
  576. <item>
  577. <label>No</label>
  578. <value>N</value>
  579. </item>
  580. </choices>
  581. </select1>
  582. <caption id="caption29" class="cell_1" style="left:1030px; top:147px; width:96px; height:23px; ">감면예외의 예외</caption>
  583. <select id="checkbox1" ref="/root/send/updatedata/reductexptexptyn" overflow="visible" appearance="full" style="left:1145px; top:148px; width:20px; height:20px; border-style:none; ">
  584. <choices>
  585. <item>
  586. <label>.</label>
  587. <value>Y</value>
  588. </item>
  589. </choices>
  590. <script type="javascript" ev:event="xforms-select">
  591. <![CDATA[
  592. model.resetInstanceNode("/root/send/updatedata/reductexptexptyn");
  593. model.setValue("/root/send/updatedata/reductexptexptyn","Y");
  594. checkbox1.refresh();
  595. ]]>
  596. </script>
  597. <script type="javascript" ev:event="xforms-deselect">
  598. <![CDATA[
  599. model.resetInstanceNode("/root/send/updatedata/reductexptexptyn");
  600. model.setValue("/root/send/updatedata/reductexptexptyn","");
  601. checkbox1.refresh();
  602. ]]>
  603. </script>
  604. </select>
  605. <line id="line3" class="line_2" style="x1:0px; y1:169px; x2:1194px; y2:169px; "/>
  606. <caption id="caption30" class="cell_1" style="left:0px; top:171px; width:127px; height:23px; ">우선순위</caption>
  607. <caption id="caption31" class="cell_1" style="left:348px; top:171px; width:164px; height:23px; ">실사용여부</caption>
  608. <caption id="caption32" class="cell_1" style="left:693px; top:171px; width:135px; height:23px; ">표시순서(정렬순서)</caption>
  609. <caption id="caption33" class="cell_1" style="left:1000px; top:171px; width:85px; height:23px; ">감면정보 예외</caption>
  610. <line id="line7" class="line_3" style="x1:1px; y1:221px; x2:1195px; y2:221px; "/>
  611. <select1 id="radio3" ref="/root/send/updatedata/realuseyn" appearance="full" cols="2" overflow="visible" style="left:515px; top:173px; width:165px; height:20px; border-style:none; ">
  612. <choices>
  613. <item>
  614. <label>Yes</label>
  615. <value>Y</value>
  616. </item>
  617. <item>
  618. <label>No</label>
  619. <value>N</value>
  620. </item>
  621. </choices>
  622. </select1>
  623. <input id="input3" ref="/root/send/updatedata/orderbyseq" class="input_default" style="left:831px; top:172px; width:85px; height:19px; "/>
  624. <select1 id="radio4" ref="/root/send/updatedata/fmlychkyn" appearance="full" cols="2" overflow="visible" style="left:1095px; top:175px; width:85px; height:15px; border-style:none; ">
  625. <choices>
  626. <item>
  627. <label>Yes</label>
  628. <value>Y</value>
  629. </item>
  630. <item>
  631. <label>No</label>
  632. <value>N</value>
  633. </item>
  634. </choices>
  635. </select1>
  636. <caption id="caption26" class="cell_1" style="left:0px; top:196px; width:60px; height:23px; ">직원구분</caption>
  637. <line id="line4" class="line_2" style="x1:0px; y1:194px; x2:1194px; y2:194px; "/>
  638. <caption id="caption34" class="cell_1" style="left:693px; top:196px; width:135px; height:23px; ">관계구분</caption>
  639. <select1 id="radio5" ref="/root/send/updatedata/holyordflag" appearance="full" cols="4" overflow="visible" style="left:65px; top:200px; width:200px; height:15px; border-style:none; ">
  640. <choices>
  641. <itemset nodeset="/root/main/PK027list/PK027">
  642. <label ref="cdnm"/>
  643. <value ref="cdid"/>
  644. </itemset>
  645. </choices>
  646. </select1>
  647. <select id="checkbox2" ref="/root/send/updatedata/famyown" overflow="visible" appearance="full" style="left:835px; top:200px; width:60px; height:15px; border-style:none; ">
  648. <choices>
  649. <item>
  650. <label>본인</label>
  651. <value>Y</value>
  652. </item>
  653. </choices>
  654. <script type="javascript" ev:event="xforms-select">
  655. <![CDATA[
  656. model.resetInstanceNode("/root/send/updatedata/famyown");
  657. model.setValue("/root/send/updatedata/famyown", "Y");
  658. checkbox2.refresh();
  659. ]]>
  660. </script>
  661. <script type="javascript" ev:event="xforms-deselect">
  662. <![CDATA[
  663. model.resetInstanceNode("/root/send/updatedata/famyown");
  664. model.setValue("/root/send/updatedata/famyown", "N");
  665. checkbox2.refresh();
  666. ]]>
  667. </script>
  668. </select>
  669. <select id="checkbox3" ref="/root/send/updatedata/famymate" overflow="visible" appearance="full" style="left:885px; top:200px; width:60px; height:15px; border-style:none; ">
  670. <choices>
  671. <item>
  672. <label>배우자</label>
  673. <value>Y</value>
  674. </item>
  675. </choices>
  676. <script type="javascript" ev:event="xforms-select">
  677. <![CDATA[
  678. model.resetInstanceNode("/root/send/updatedata/famymate");
  679. model.setValue("/root/send/updatedata/famymate", "Y");
  680. checkbox3.refresh();
  681. ]]>
  682. </script>
  683. <script type="javascript" ev:event="xforms-deselect">
  684. <![CDATA[
  685. model.resetInstanceNode("/root/send/updatedata/famymate");
  686. model.setValue("/root/send/updatedata/famymate", "N");
  687. checkbox3.refresh();
  688. ]]>
  689. </script>
  690. </select>
  691. <select id="checkbox4" ref="/root/send/updatedata/famyacdt" overflow="visible" appearance="full" style="left:945px; top:200px; width:65px; height:15px; border-style:none; ">
  692. <choices>
  693. <item>
  694. <label>존비속</label>
  695. <value>Y</value>
  696. </item>
  697. </choices>
  698. <script type="javascript" ev:event="xforms-select">
  699. <![CDATA[
  700. model.resetInstanceNode("/root/send/updatedata/famyacdt");
  701. model.setValue("/root/send/updatedata/famyacdt", "Y");
  702. checkbox4.refresh();
  703. ]]>
  704. </script>
  705. <script type="javascript" ev:event="xforms-deselect">
  706. <![CDATA[
  707. model.resetInstanceNode("/root/send/updatedata/famyacdt");
  708. model.setValue("/root/send/updatedata/famyacdt", "N");
  709. checkbox4.refresh();
  710. ]]>
  711. </script>
  712. </select>
  713. <caption id="caption35" class="cell_1" style="left:348px; top:195px; width:57px; height:23px; ">참고사항</caption>
  714. <input id="input4" ref="/root/send/updatedata/reference" style="left:406px; top:197px; width:284px; height:19px; "/>
  715. </group>
  716. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  717. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  718. <button id="btn_update" class="btn4_letter2" style="left:1010px; top:5px; width:56px; height:22px; ">
  719. <caption>저장</caption>
  720. <script type="javascript" ev:event="DOMActivate">
  721. <![CDATA[
  722. //처음 세팅된 데이타와 비교하여 변경된 내역이 있는지 확인한다.
  723. // return 값이 false 이면, 변경된 내역이 없다.
  724. if ( fCheckModify() == false ) {
  725. messageBox("변경된 내역이 없습니다", "E999","");
  726. return;
  727. }
  728. //빈값 채움
  729. var vcalcscorcd = model.getValue("/root/send/updatedata/calcscorcd");
  730. var vearncls = model.getValue("/root/send/updatedata/earncls");
  731. var vreductexptexptyn = model.getValue("/root/send/updatedata/reductexptexptyn");
  732. if (vcalcscorcd == null || vcalcscorcd == "" ||vcalcscorcd== " " ) {
  733. model.setValue("/root/send/updatedata/calcscorcd","-");
  734. }
  735. if (vearncls == null || vearncls =="" || vearncls==" " ) {
  736. model.setValue("/root/send/updatedata/earncls","-");
  737. }
  738. if (vreductexptexptyn == null || vreductexptexptyn =="" || vreductexptexptyn==" " ) {
  739. model.setValue("/root/send/updatedata/reductexptexptyn","N");
  740. }
  741. //필수사항과 입력타입을 체크한다.
  742. if(isRequiredControls("ipt_discuncocd","ipt_discunconm","cmb_earncls","ipt_calcscorcd","ipt_outpayapprate","ipt_outnopyapprate","ipt_outspecapprate",
  743. "ipt_inpayapprate","ipt_innopyapprate","ipt_inspecapprate","ipt_basehealexamapprate","ipt_addhealexamapprate",
  744. "ipt_fromdd","cmb_discuncocls")) {
  745. //messageBox("모든 필수값이 입력이","I002");
  746. }
  747. else {
  748. return;
  749. }
  750. model.setValue("/root/send/updatedata/discuncoflag","D");
  751. //실사용여부 체크
  752. if( model.getValue("/root/send/updatedata/realuseyn") != 'N' ){
  753. model.setValue("/root/send/updatedata/realuseyn", "Y");
  754. }
  755. //할인코드 저장 처리
  756. if (submit("TXPMB00401") == true) {
  757. btn_search.dispatch("DOMActivate"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
  758. }
  759. ]]>
  760. </script>
  761. </button>
  762. <button id="btn_delete" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
  763. <caption>삭제</caption>
  764. <script type="javascript" ev:event="DOMActivate">
  765. <![CDATA[
  766. //삭제확인-선택하신 할인코드를 삭제하시겠습니까? Yes(6),No(7)
  767. if (messageBox("선택하신 할인코드를 ", "Q001") == '6') {
  768. //Yes 이면, 할인코드 삭제처리
  769. //삭제 작업구분 : D 세팅
  770. model.makeValue("/root/send/updatedata/workflag","D");
  771. //model.setValue("/root/send/updatedata/discuncoflag","D");
  772. if (submit("TXPMB00401") == true) {
  773. btn_search.dispatch("DOMActivate"); //삭제처리 후, 내역 재조회(조회 이벤트 호출)
  774. }
  775. }
  776. ]]>
  777. </script>
  778. </button>
  779. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  780. <caption>초기화</caption>
  781. <script type="javascript" ev:event="DOMActivate">
  782. <![CDATA[
  783. //화면 초기화
  784. fInitialize();
  785. ]]>
  786. </script>
  787. </button>
  788. </group>
  789. </xhtml:body>
  790. </xhtml:html>