SMAHA03500_유형별 계산기준.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  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. <ahbmcalcinfo>
  11. <item>
  12. <healexamflag/>
  13. <healexamdetlflag/>
  14. <todd/>
  15. <instcd/>
  16. <fromdd/>
  17. <basecalcscorappflag/>
  18. <addcalcscorappflag/>
  19. <corpactaddrate/>
  20. <corpactaddrate2/>
  21. </item>
  22. </ahbmcalcinfo>
  23. </main>
  24. <send>
  25. <save>
  26. <instcd/>
  27. <savecalc/>
  28. </save>
  29. <srch>
  30. <srchhealexamflag/>
  31. <srchhealexamdetlflag/>
  32. <srchcalcstat/>
  33. </srch>
  34. </send>
  35. <init>
  36. <baseinfo>
  37. <healexamflaglst>
  38. <cdid/>
  39. <cdnm/>
  40. </healexamflaglst>
  41. <healexamdetlflaglst>
  42. <item>
  43. <cdid/>
  44. <cdnm/>
  45. </item>
  46. </healexamdetlflaglst>
  47. <chedetlflaglst/>
  48. <ghedetlflaglst/>
  49. <srchhealexamflaglst>
  50. <item/>
  51. </srchhealexamflaglst>
  52. <srchhealexamflaglst>
  53. <item/>
  54. </srchhealexamflaglst>
  55. </baseinfo>
  56. </init>
  57. <hidden/>
  58. <temp/>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  64. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  65. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. fInit();
  72. fGetBaseInfo();
  73. //fGetCalcList();
  74. ]]>
  75. </script>
  76. <submission id="TRAHA03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/ahbmcalcinfo"/>
  77. <submission id="TXAHA03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  78. <submission id="TRZBC00101"/>
  79. </model>
  80. <script type="javascript">
  81. <![CDATA[
  82. var m_vHealexamflag = "";
  83. var m_vHealexamdetlflag = "";
  84. /*
  85. * 공통코드에서 건진구분 가져오기
  86. */
  87. function fGetBaseInfo(){
  88. // 선택된화면의 건진구분자를 가져온다.
  89. var vHeFgLen = fGetHealExamFlag().length;
  90. var vHeFg = fGetHealExamFlag();
  91. var vHeFgCd = "";
  92. if( vHeFg.substr(0,1) == "C" ){
  93. vHeFgCd = "A0069";
  94. }
  95. else{
  96. vHeFgCd = "A0070";
  97. }
  98. zbcfGetCodeList( new Array("A0068" ,"A0068" ,"A0069","A0070")
  99. ,new Array("/root/init/baseinfo/healexamflaglst"
  100. ,"/root/init/baseinfo/srchhealexamflaglst"
  101. , "/root/init/baseinfo/chedetlflaglst"
  102. , "/root/init/baseinfo/ghedetlflaglst") );
  103. //건진구분 콤보에 전체가 들어가게 한다.
  104. addComboItem("cmb_healexamflag","전체","","above");
  105. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item" , "/root/init/baseinfo/chedetlflaglst/A0069","replace");
  106. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item" , "/root/init/baseinfo/ghedetlflaglst/A0070","after");
  107. submit("TRZBC00101");
  108. // 선택된 화면의 건진구분을 setting
  109. cmb_healexamflag.value = vHeFg.substr(0,1);
  110. cmb_healexamflag.dispatch("xforms-value-changed");
  111. }
  112. /**=================================================================================
  113. @desc : 선택된 건진 구분을 가져온다.
  114. *=================================================================================*/
  115. function fGetHealExamFg(){
  116. return model.getValue("/root/send/srchhealexamflag");
  117. }
  118. /**=================================================================================
  119. @desc : 건진상세구분바꾸기
  120. *=================================================================================*/
  121. function fSetHealExamDetlFlag(){
  122. var vItem = "";
  123. var vHealexamflag = cmb_healexamflag.value;
  124. //건진구분 선택시 건진상세분류가 '전체'로 값이 셋팅되게한다.
  125. cmb_srchhealexamdetlflag.value = "";
  126. if(vHealexamflag == "C"){
  127. copyNodesetType("/root/init/baseinfo/srchhealexamflaglst/item" , "/root/init/baseinfo/chedetlflaglst/A0069","replace");
  128. }
  129. else if(vHealexamflag == "G"){
  130. copyNodesetType("/root/init/baseinfo/srchhealexamflaglst/item" , "/root/init/baseinfo/ghedetlflaglst/A0070","replace");
  131. }else {
  132. model.resetInstanceNode(cmb_srchhealexamdetlflag.choices.itemset.attribute("nodeset")); //
  133. }
  134. }
  135. /**=================================================================================
  136. @desc : 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  137. *=================================================================================*/
  138. function fInit() {
  139. model.resetInstanceNode("/root/main/ahbmcalcinfo/item");
  140. model.resetInstanceNode("/root/send");
  141. model.refresh();
  142. }
  143. /**=================================================================================
  144. @desc : 부담율조회
  145. *=================================================================================*/
  146. function fGetCalcList(){
  147. var updtdata = getGridUpdateData(grd_ahbmcalclist);
  148. if(submit("TRAHA03501")) {
  149. }
  150. }
  151. /**=================================================================================
  152. @desc : 데이터체크
  153. *=================================================================================*/
  154. function fDatacheck(){
  155. var rsv_cnt = grd_ahbmcalclist.rows ;
  156. var sNode = grd_ahbmcalclist.nodeset+ "[";
  157. var scdid1 = "";
  158. var scdid2 = "";
  159. for( var i = 1; i < rsv_cnt ; i++){
  160. if( model.getValue(sNode + i + "]/healexamflag" ) == "") {
  161. alert("건진구분의 값이 비어있습니다.");
  162. return false;
  163. }
  164. // 건진구분과 건진상세분를 서로 비교하여 다르면 Error Check
  165. if (grd_ahbmcalclist.valueMatrix(i, grd_ahbmcalclist.colRef("healexamflag")) !=
  166. grd_ahbmcalclist.valueMatrix(i, grd_ahbmcalclist.colRef("healexamdetlflag")).substr(0,1)) {
  167. if (grd_ahbmcalclist.valueMatrix(i, grd_ahbmcalclist.colRef("healexamflag")) == "C" ) {
  168. alert("종합건진의 건진상세분류만 가능합니다");
  169. } else {
  170. alert("일반건진의 건진상세분류만 가능합니다");
  171. }
  172. grd_ahbmcalclist.row = i;
  173. return false;
  174. }
  175. if( model.getValue(sNode + i + "]/todd" ) == "") {
  176. alert("종료일자의 값이 비어있습니다.");
  177. return false;
  178. }
  179. if( model.getValue(sNode + i + "]/fromdd" ) == "") {
  180. alert("적용시작일의 값이 비어있습니다.");
  181. return false;
  182. }
  183. if( model.getValue(sNode + i + "]/basecalcscorappflag" ) == "") {
  184. alert("기본검사적용수가의 값이 비어있습니다.");
  185. return false;
  186. }
  187. if( model.getValue(sNode + i + "]/addcalcscorappflag" ) == "") {
  188. alert("추가검사적용수가의 값이 비어있습니다.");
  189. return false;
  190. }
  191. if( model.getValue(sNode + i + "]/corpactaddrate" ) == "") {
  192. alert("행위가산율의 값이 비어있습니다.");
  193. return false;
  194. }
  195. //if( eval(model.getValue(sNode + i + "]/corpactaddrate" )) > 100) {
  196. //alert("행위가산율 값이 100위로 올라갈수 없습니다.");
  197. //return ;
  198. //}
  199. scdid1 = model.getValue("/root/main/ahbmcalcinfo/item[" + i + "]/healexamdetlflag");
  200. var k = i + 1;
  201. for (var j = k; j < grd_ahbmcalclist.rows; j++){
  202. scdid2 = model.getValue("/root/main/ahbmcalcinfo/item[" + j + "]/healexamdetlflag");
  203. if (i != j){
  204. if (scdid1 == scdid2){
  205. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  206. return false;
  207. }
  208. }
  209. }
  210. }
  211. return true;
  212. }
  213. /**=================================================================================
  214. @desc : 저장
  215. *=================================================================================*/
  216. function fSaveCalc() {
  217. if( messageBox("조합코드정보를","Q002") == 6){
  218. model.setValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
  219. model.setValue("/root/send/save/savecalc", grd_ahbmcalclist.getUpdateData());
  220. if (submit("TXAHA03501")){
  221. fGetCalcList();
  222. }
  223. }
  224. }
  225. ]]>
  226. </script>
  227. </xhtml:head>
  228. <xhtml:body guideline="1,1200;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  229. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  230. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">유형별 계산기준</caption>
  231. </group>
  232. <group id="grp_biz" scroll="auto" style="left:0px; top:14px; width:1195px; height:681px; ">
  233. <group id="grp_sea" style="left:0px; top:10px; width:1190px; height:45px; vertical-align:top; ">
  234. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  235. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; ">
  236. <caption>조회</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. fGetCalcList();
  240. //alert(grd_ahbmcalclist.colflag.choices.itemset.attribute("nodeset"));
  241. /*if(fCheckKey())
  242. {
  243. return;
  244. }*/
  245. ]]>
  246. </script>
  247. </button>
  248. <caption id="caption7" class="search_name" style="left:10px; top:12px; width:87px; height:17px; ">건진구분 :</caption>
  249. <line id="line3" class="line_4" style="x1:1115px; y1:9px; x2:1115px; y2:33px; border-color:#ffe4bb; border-left-style:solid; "/>
  250. <select id="checkbox1" ref="/root/send/srch/srchcalcstat" overflow="visible" appearance="full" cols="1" style="left:310px; top:12px; width:45px; height:20px; border-style:none; ">
  251. <choices>
  252. <item>
  253. <label>포함</label>
  254. <value>Y</value>
  255. </item>
  256. </choices>
  257. <script type="javascript" ev:event="xforms-value-changed">
  258. <![CDATA[
  259. fGetCalcList();
  260. ]]>
  261. </script>
  262. </select>
  263. <caption id="caption2" class="search_name" style="left:220px; top:12px; width:90px; height:17px; ">삭제포함 :</caption>
  264. <select1 id="cmb_healexamflag" ref="/root/send/srch/srchhealexamflag" appearance="minimal" style="left:100px; top:12px; width:100px; height:19px; ">
  265. <choices>
  266. <itemset nodeset="/root/init/baseinfo/healexamflaglst/A0068">
  267. <label ref="cdnm"/>
  268. <value ref="cdid"/>
  269. </itemset>
  270. </choices>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. fGetCalcList();
  274. //fSetHealExamDetlFlag();
  275. ]]>
  276. </script>
  277. </select1>
  278. </group>
  279. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1190px; y2:80px; "/>
  280. <caption id="cap_titlist" class="tit_2" style="left:3px; top:65px; width:190px; height:14px; ">청구방법별 부담율</caption>
  281. <button id="btn_grdadd" class="btn2_letter3" style="left:1081px; top:60px; width:53px; height:19px; ">
  282. <caption>행추가</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. grd_ahbmcalclist.addRow();
  286. var cur_date = getCurrentDate();
  287. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamflag", model.getValue("/root/send/srchhealexamflag"));
  288. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamdetlflag", model.getValue("/root/send/srchhealexamdetlflag"));
  289. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/fromdd", cur_date);
  290. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/todd", "29991231");
  291. if (model.getValue("/root/send/srch/srchhealexamflag") == "") {
  292. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamflag", "C");
  293. } else {
  294. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/healexamflag", model.getValue("/root/send/srch/srchhealexamflag"));
  295. }
  296. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/corpactaddrate", "0");
  297. model.setValue("/root/main/ahbmcalcinfo/item[" + grd_ahbmcalclist.row + "]/corpactaddrate2", "0");
  298. //행추가를 누를시 기간코드,청구구분,청구부서 값을 자동으로 Detail 그리드에 저장한다.
  299. // grd_ahbmuncolist.valueMatrix(grd_ahbmuncolist.row, grd_ahbmuncolist.colRef("instcd")) = opt_instcd.value;
  300. ]]>
  301. </script>
  302. </button>
  303. <button id="btn_grddel" class="btn2_letter3" style="left:1136px; top:60px; width:53px; height:19px; ">
  304. <caption>행삭제</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. deleteSelectedRows(grd_ahbmcalclist,true);
  308. //grd_ahbmuncolist.deleteRow(grd_ahbmuncolist.row);
  309. ]]>
  310. </script>
  311. </button>
  312. <datagrid id="grd_ahbmcalclist" nodeset="/root/main/ahbmcalcinfo/item" caption="건진구분^건진상세분류^종료일자^기관코드^적용시작일^기본검사적용수가^추가검사적용수가^행위가산율1^행위가산율2" colsep="^" colwidth="134, 171, 120, 2, 120, 120, 120, 120, 120" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:1190px; height:550px; ">
  313. <col disabled="true" ref="healexamflag" type="combo">
  314. <choices>
  315. <itemset nodeset="/root/init/baseinfo/srchhealexamflaglst/A0068">
  316. <label ref="cdnm"/>
  317. <value ref="cdid"/>
  318. </itemset>
  319. </choices>
  320. </col>
  321. <col id="colflag" disabled="true" ref="healexamdetlflag" type="combo">
  322. <choices>
  323. <itemset nodeset="/root/init/baseinfo/healexamdetlflaglst/item">
  324. <label ref="cdnm"/>
  325. <value ref="cdid"/>
  326. </itemset>
  327. </choices>
  328. </col>
  329. <col ref="todd" type="input" format="yyyy-mm-dd"/>
  330. <col ref="instcd" visibility="hidden"/>
  331. <col ref="fromdd" type="input" format="yyyy-mm-dd"/>
  332. <col ref="basecalcscorappflag" type="input"/>
  333. <col ref="addcalcscorappflag" type="input"/>
  334. <col ref="corpactaddrate" type="input"/>
  335. <col ref="corpactaddrate2" type="input"/>
  336. <script type="javascript" ev:event="onaftersort">
  337. <![CDATA[
  338. grd_ahbmcalclist.gridToInstance();
  339. ]]>
  340. </script>
  341. </datagrid>
  342. </group>
  343. <group id="group1" style="left:0px; top:645px; width:1195px; height:37px; ">
  344. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1190px; y2:0px; "/>
  345. <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  346. <caption>저장</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. if (fDatacheck() == false){
  350. return;
  351. }
  352. fSaveCalc();
  353. ]]>
  354. </script>
  355. </button>
  356. <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  357. <caption>초기화</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. var updtdata = getGridUpdateData(grd_ahbmcalclist);
  361. if (updtdata != "") {
  362. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  363. if (ret != 6) { // not OK
  364. return;
  365. }
  366. }
  367. fInit();
  368. fGetCalcList();
  369. ]]>
  370. </script>
  371. </button>
  372. </group>
  373. </xhtml:body>
  374. </xhtml:html>