SMAHA03600_청구방법별 부담율.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. <ahbmuncoinfo>
  11. <item>
  12. <uncocd/>
  13. <todd/>
  14. <instcd/>
  15. <unconm/>
  16. <fromdd/>
  17. <cmpyrate/>
  18. <insurate/>
  19. <cntrrate/>
  20. <ownrate/>
  21. </item>
  22. </ahbmuncoinfo>
  23. </main>
  24. <send>
  25. <save>
  26. <instcd/>
  27. <saveunco/>
  28. </save>
  29. <req>
  30. <data/>
  31. </req>
  32. <srchtodd/>
  33. <save2/>
  34. <srch>
  35. <srchuncocd/>
  36. <srchunconm/>
  37. <srchuncostat>Y</srchuncostat>
  38. </srch>
  39. </send>
  40. <init>
  41. </init>
  42. <hidden/>
  43. <temp/>
  44. </root>
  45. </instance>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fInitialize();
  55. fGetUncocd();
  56. ]]>
  57. </script>
  58. <submission id="TXAHA03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  59. <submission id="TRAHA03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/ahbmuncoinfo"/>
  60. </model>
  61. <script type="javascript">
  62. <![CDATA[
  63. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  64. function fInitialize() {
  65. model.removeNodeset("/root/main/ahbmuncoinfo/item");
  66. model.resetInstanceNode("/root/send");
  67. fGetUncocd();
  68. model.refresh();
  69. }
  70. function fGetUncocd(){
  71. var updtdata = getGridUpdateData(grd_ahbmuncolist);
  72. if(submit("TRAHA03601")) {
  73. }
  74. }
  75. function fDatacheck(){
  76. var rsv_cnt = grd_ahbmuncolist.rows ;
  77. var sNode = grd_ahbmuncolist.nodeset+ "[";
  78. var scdid1 = "";
  79. var scdid2 = "";
  80. for( var i = 1; i < rsv_cnt ; i++){
  81. if( model.getValue(sNode + i + "]/uncocd" ) == "") {
  82. alert("청구방법코드의 값이 비어있습니다.");
  83. return false;
  84. }
  85. if( model.getValue(sNode + i + "]/todd" ) == "") {
  86. alert("종료일자의 값이 비어있습니다.");
  87. return false;
  88. }
  89. if( model.getValue(sNode + i + "]/unconm" ) == "") {
  90. alert("청구방법명칭의 값이 비어있습니다.");
  91. return false;
  92. }
  93. if( model.getValue(sNode + i + "]/fromdd" ) == "") {
  94. alert("적용일자의 값이 비어있습니다.");
  95. return false;
  96. }
  97. if( model.getValue(sNode + i + "]/cmpyrate" ) == "") {
  98. alert("계약처부담율의 값이 비어있습니다.");
  99. return false;
  100. }
  101. if( model.getValue(sNode + i + "]/insurate" ) == "") {
  102. alert("공단부담율의 값이 비어있습니다.");
  103. return false;
  104. }
  105. if( model.getValue(sNode + i + "]/cntrrate" ) == "") {
  106. alert("보건소부담율의 값이 비어있습니다.");
  107. return false;
  108. }
  109. if( model.getValue(sNode + i + "]/ownrate" ) == "") {
  110. alert("개인부담율의 값이 비어있습니다.");
  111. return false;
  112. }
  113. if( eval(model.getValue(sNode + i + "]/cmpyrate" )) > 100) {
  114. alert("부담율 값이 100위로 올라갈수 없습니다.");
  115. return false;
  116. }
  117. if( eval(model.getValue(sNode + i + "]/insurate" )) > 100) {
  118. alert("부담율 값이 100위로 올라갈수 없습니다.");
  119. return false;
  120. }
  121. if( eval(model.getValue(sNode + i + "]/cntrrate" )) > 100) {
  122. alert("부담율 값이 100위로 올라갈수 없습니다.");
  123. return false;
  124. }
  125. if( eval(model.getValue(sNode + i + "]/ownrate" )) > 100) {
  126. alert("부담율 값이 100위로 올라갈수 없습니다.");
  127. return false;
  128. }
  129. if( eval(model.getValue(sNode + i + "]/cmpyrate" ))
  130. +eval(model.getValue(sNode + i + "]/insurate" ))
  131. +eval(model.getValue(sNode + i + "]/cntrrate" ))
  132. +eval(model.getValue(sNode + i + "]/ownrate" )) > 100) {
  133. alert("부담율 값의 합이 100위로 올라갈수 없습니다.");
  134. return false;
  135. }
  136. scdid1 = model.getValue("/root/main/ahbmuncoinfo/item[" + i + "]/uncocd");
  137. var k = i + 1;
  138. for (var j = k; j < grd_ahbmuncolist.rows; j++){
  139. scdid2 = model.getValue("/root/main/ahbmuncoinfo/item[" + j + "]/uncocd");
  140. if (i != j){
  141. if (scdid1 == scdid2){
  142. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  143. return false;
  144. }
  145. }
  146. }
  147. }
  148. return true;
  149. }
  150. function fSaveUncocd() {
  151. if( messageBox("조합코드정보를","Q002") == 6){
  152. model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
  153. model.setValue("/root/send/save/saveunco", grd_ahbmuncolist.getUpdateData());
  154. if (submit("TXAHA03601")){
  155. fGetUncocd();
  156. }
  157. }
  158. }
  159. ]]>
  160. </script>
  161. </xhtml:head>
  162. <xhtml:body guideline="1,1200;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  163. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  164. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">청구방법별 부담율</caption>
  165. </group>
  166. <group id="grp_biz" scroll="auto" style="left:0px; top:14px; width:1195px; height:681px; ">
  167. <group id="grp_sea" style="left:0px; top:10px; width:1190px; height:45px; vertical-align:top; ">
  168. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  169. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; ">
  170. <caption>조회</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. fGetUncocd();
  174. /*if(fCheckKey())
  175. {
  176. return;
  177. }*/
  178. ]]>
  179. </script>
  180. </button>
  181. <input id="ipt_srchunconm" ref="/root/send/srch/srchunconm" class="input_fix" appearance="input" style="left:420px; top:12px; width:135px; height:19px; text-align:left; ">
  182. <script type="javascript" ev:event="onkeyup">
  183. <![CDATA[
  184. inputEnterKey("btn_search", "DOMActivate");
  185. ]]>
  186. </script>
  187. </input>
  188. <caption id="caption7" class="search_name" style="left:10px; top:12px; width:112px; height:17px; ">청구방법코드 :</caption>
  189. <line id="line3" class="line_4" style="x1:1115px; y1:9px; x2:1115px; y2:33px; border-color:#ffe4bb; border-left-style:solid; "/>
  190. <caption id="caption1" class="search_name" style="left:305px; top:12px; width:112px; height:17px; ">청구방법명칭 :</caption>
  191. <input id="ipt_srchuncocd" ref="/root/send/srch/srchuncocd" class="input_fix" appearance="input" style="left:125px; top:12px; width:135px; height:19px; text-align:left; ">
  192. <script type="javascript" ev:event="onkeyup">
  193. <![CDATA[
  194. inputEnterKey("btn_search", "DOMActivate");
  195. ]]>
  196. </script>
  197. </input>
  198. <select id="checkbox1" ref="/root/send/srch/srchuncostat" overflow="visible" appearance="full" cols="1" style="left:685px; top:12px; width:45px; height:20px; border-style:none; ">
  199. <choices>
  200. <item>
  201. <label>포함</label>
  202. <value>Y</value>
  203. </item>
  204. </choices>
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. fGetUncocd();
  208. ]]>
  209. </script>
  210. </select>
  211. <caption id="caption2" class="search_name" style="left:595px; top:12px; width:90px; height:17px; ">삭제포함 :</caption>
  212. </group>
  213. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1190px; y2:80px; "/>
  214. <caption id="cap_titlist" class="tit_2" style="left:3px; top:65px; width:190px; height:14px; ">청구방법별 부담율</caption>
  215. <button id="btn_grdadd" class="btn2_letter3" style="left:1081px; top:60px; width:53px; height:19px; ">
  216. <caption>행추가</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. grd_ahbmuncolist.addRow();
  220. var cur_date = getCurrentDate();
  221. model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/fromdd", cur_date);
  222. model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/todd", "29991231");
  223. model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/cmpyrate", "0");
  224. model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/insurate", "0");
  225. model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/cntrrate", "0");
  226. model.setValue("/root/main/ahbmuncoinfo/item[" + grd_ahbmuncolist.row + "]/ownrate", "0");
  227. //행추가를 누를시 기간코드,청구구분,청구부서 값을 자동으로 Detail 그리드에 저장한다.
  228. // grd_ahbmuncolist.valueMatrix(grd_ahbmuncolist.row, grd_ahbmuncolist.colRef("instcd")) = opt_instcd.value;
  229. ]]>
  230. </script>
  231. </button>
  232. <button id="btn_grddel" class="btn2_letter3" style="left:1136px; top:60px; width:53px; height:19px; ">
  233. <caption>행삭제</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. deleteSelectedRows(grd_ahbmuncolist,true);
  237. //grd_ahbmuncolist.deleteRow(grd_ahbmuncolist.row);
  238. ]]>
  239. </script>
  240. </button>
  241. <datagrid id="grd_ahbmuncolist" nodeset="/root/main/ahbmuncoinfo/item" caption="청구방법코드^종료일자^기관코드^청구방법명칭^적용일자^계약처부담율^공단부담율^보건소(국고)부담율^개인부담율" colsep="^" colwidth="100, 120, 3, 250, 120, 100, 100, 118, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:1190px; height:590px; ">
  242. <col ref="uncocd" type="input"/>
  243. <col ref="todd" type="input" format="yyyy-mm-dd"/>
  244. <col ref="instcd" visibility="hidden"/>
  245. <col ref="unconm" type="input"/>
  246. <col ref="fromdd" type="input" format="yyyy-mm-dd"/>
  247. <col ref="cmpyrate" type="input"/>
  248. <col ref="insurate" type="input"/>
  249. <col ref="cntrrate" type="input"/>
  250. <col ref="ownrate" type="input"/>
  251. <script type="javascript" ev:event="onaftersort">
  252. <![CDATA[
  253. grd_ahbmuncolist.gridToInstance();
  254. ]]>
  255. </script>
  256. </datagrid>
  257. </group>
  258. <group id="group1" style="left:0px; top:690px; width:1195px; height:27px; ">
  259. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1075px; y2:0px; "/>
  260. <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  261. <caption>저장</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. if (fDatacheck() == false){
  265. return;
  266. }
  267. fSaveUncocd();
  268. ]]>
  269. </script>
  270. </button>
  271. <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  272. <caption>초기화</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. var updtdata = getGridUpdateData(grd_ahbmuncolist);
  276. if (updtdata != "") {
  277. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  278. if (ret != 6) { // not OK
  279. return;
  280. }
  281. }
  282. fInitialize();
  283. ]]>
  284. </script>
  285. </button>
  286. </group>
  287. </xhtml:body>
  288. </xhtml:html>