SPPID28000_요양기관별가산율기준관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPID28000_요양기관별가산율기준관리.xrw
  4. * 수정이력
  5. * - 2013.01.19 / 최초작성 / 이경민
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>요양기관별가산율기준관리</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <drgclist>
  16. <drgc/>
  17. </drgclist>
  18. </main>
  19. <send>
  20. <cnstcdlist/>
  21. <gbn/>
  22. <insukind/>
  23. <instcd>031</instcd>
  24. </send>
  25. <init>
  26. <PAM>
  27. <PK110list/>
  28. </PAM>
  29. <COM>
  30. <P0008list/>
  31. </COM>
  32. </init>
  33. <hidden>
  34. <popupmenu>
  35. <clcj>
  36. <item>
  37. <name>행 추가</name>
  38. <func>fSpclGridInsertRow</func>
  39. </item>
  40. <item>
  41. <name>-</name>
  42. <func/>
  43. </item>
  44. <item>
  45. <name>행 삭제</name>
  46. <func>fSpclGridDeleteRow</func>
  47. </item>
  48. </clcj>
  49. </popupmenu>
  50. </hidden>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. // 화면을 초기화한다.
  56. fInitialize();
  57. ]]>
  58. </script>
  59. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  60. <submission id="TRPID28000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  61. <submission id="TXPID28000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  69. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  70. <script type="javascript">
  71. <![CDATA[
  72. var gToday = new Date();
  73. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  74. var gBasemonth = gToday.getDateFormat("MM");
  75. var gBaseday = gToday.getDateFormat("DD");
  76. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  77. var gCurrentym = gBaseyear + gBasemonth;
  78. // -----------------------
  79. // ▶ 화면초기화
  80. // -----------------------
  81. function fInitialize() {
  82. // 2013.02.19 - 부가코드 원무공통코드조회
  83. pamfGetCodeList(new Array(
  84. "PK110"
  85. ),
  86. new Array("/root/init/PAM/PK110list"
  87. ));
  88. zbcfGetCodeList(new Array("P0008") , new Array("/root/init/COM/P0008list" //자격여부
  89. ));
  90. addComboItem("combo1", "-전체-", "", "above");
  91. addComboItem("combo2", "-전체-", "", "above");
  92. fGetDocuList();
  93. }
  94. // ----------------------------------------------------------------------
  95. // ▶ 동일진료일 명세서조회
  96. // ----------------------------------------------------------------------
  97. function fGetDocuList() {
  98. var chk = true;
  99. // if (model.getValue("/root/send/orddd") == "") {
  100. // chk = false;
  101. // messageBox("기준년월은", "I003"); //I003=필수입력입니다.
  102. // model.setFocus("ipt_orddd");
  103. // }
  104. if (chk == true) {
  105. submit("TRPID28000");
  106. }
  107. }
  108. // 화면을 초기화한다.
  109. function fSpclGridInsertRow(){
  110. grd_drgclist.AddRow();
  111. grd_drgclist.bottomRow = grd_drgclist.rows;
  112. }
  113. function fSpclGridDeleteRow(){
  114. for (var i = 0; i < grd_drgclist.selectedRows; i++) {
  115. var sel = grd_drgclist.selectedRow(i);
  116. grd_drgclist.rowstatus(sel) = "4";
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body pagewidth="960" pageheight="660" guideline="1,1163;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
  124. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">요양기관별가산율기준관리</caption>
  125. </group>
  126. <group id="grp_biz" scroll="auto" style="left:0px; top:28px; width:942px; height:592px; ">
  127. <datagrid id="grd_drgclist" nodeset="/root/main/cnstcdlist/cnstcd" class="datagrid3" caption="구분^보험유형^가산율^시작일자^종료일자^등록자^등록일자^수정자^수정일자" colsep="^" colwidth="120, 102, 104, 97, 106, 60, 100, 60, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:940px; height:514px; ">
  128. <col autonext="true" disabled="true" ref="gbn" type="combo" maxlength="1" style="text-align:center; ">
  129. <choices>
  130. <itemset nodeset="/root/init/PAM/PK110list/PK110">
  131. <label ref="cdnm"/>
  132. <value ref="cdid"/>
  133. </itemset>
  134. </choices>
  135. </col>
  136. <col autonext="true" disabled="true" ref="insukind" type="combo" maxlength="2" style="text-align:center; ">
  137. <choices>
  138. <itemset nodeset="/root/init/COM/P0008list/P0008">
  139. <label ref="cdnm"/>
  140. <value ref="cdid"/>
  141. </itemset>
  142. </choices>
  143. </col>
  144. <col autonext="true" ref="addrate" type="input" maxlength="2" style="text-align:right; "/>
  145. <col autonext="true" disabled="true" ref="fromdd" type="inputdate" format="yyyy-mm-dd" maxlength="8"/>
  146. <col autonext="true" ref="todd" type="inputdate" format="yyyy-mm-dd" maxlength="8"/>
  147. <col ref="fstrgstrid" type="output" style="text-align:center; "/>
  148. <col ref="fstrgstdt" type="output" format="yyyy-mm-dd hh:nn"/>
  149. <col ref="lastupdtrid" style="text-align:center; "/>
  150. <col ref="lastupdtdt" visibility="visible" format="yyyy-mm-dd hh:nn"/>
  151. <script type="javascript" ev:event="onmousedown">
  152. <![CDATA[
  153. if (event.button == 3) { // 3 : 오른쪽 버튼
  154. if (grd_drgclist.isCell(event.target) && grd_drgclist.mouseRow >= grd_drgclist.fixedrows) {
  155. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  156. } else {
  157. window.showPopupMenu(true);
  158. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  159. }
  160. }
  161. ]]>
  162. </script>
  163. <script type="javascript" ev:event="DOMFocusOut">
  164. <![CDATA[
  165. window.setPopupMenu(false);
  166. ]]>
  167. </script>
  168. </datagrid>
  169. <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:56px; width:234px; height:15px; ">요양기관별가산율 리스트</caption>
  170. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:940px; y2:72px; "/>
  171. <group id="group1" style="left:0px; top:5px; width:940px; height:40px; vertical-align:top; ">
  172. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:940px; height:40px; "/>
  173. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:875px; top:10px; width:56px; height:22px; ">
  174. <caption>조회</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. fGetDocuList();
  178. ]]>
  179. </script>
  180. </button>
  181. <line id="line3" class="line_4" style="x1:860px; y1:5px; x2:860px; y2:38px; "/>
  182. <caption id="caption30" class="search_name" style="left:8px; top:11px; width:95px; height:17px; ">구분코드 :</caption>
  183. <select1 id="combo1" ref="/root/send/gbn" appearance="minimal" style="left:95px; top:10px; width:100px; height:19px; ">
  184. <choices>
  185. <itemset nodeset="/root/init/PAM/PK110list/PK110">
  186. <label ref="cdnm"/>
  187. <value ref="cdid"/>
  188. </itemset>
  189. </choices>
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. fGetDocuList();
  193. ]]>
  194. </script>
  195. </select1>
  196. <caption id="caption1" class="search_name" style="left:213px; top:11px; width:95px; height:17px; ">보험유형 :</caption>
  197. <select1 id="combo2" ref="/root/send/insukind" appearance="minimal" style="left:300px; top:10px; width:100px; height:19px; ">
  198. <choices>
  199. <itemset nodeset="/root/init/COM/P0008list/P0008">
  200. <label ref="cdnm"/>
  201. <value ref="cdid"/>
  202. </itemset>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. fGetDocuList();
  207. ]]>
  208. </script>
  209. </select1>
  210. </group>
  211. <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:725px; top:52px; width:64px; height:19px; ">
  212. <caption>엑셀저장</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. grd_drgclist.gridToInstance();
  216. if (grd_drgclist.rows > 1) {
  217. var fileName = window.fileDialog("save", "", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  218. if (fileName != "") {
  219. grd_drgclist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
  220. }
  221. } else {
  222. messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  223. }
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="button1" class="btn5_letter2" _auth="P" style="left:898px; top:52px; width:42px; height:19px; ">
  228. <caption>저장</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. var updtdata = getGridUpdateData(grd_drgclist);
  232. if (updtdata == "") {
  233. messageBox("변경된 데이터가","I004");
  234. return;
  235. }
  236. for (var i=1; i < grd_drgclist.rows; i++){
  237. if ((grd_drgclist.rowStatus(i) == 1 || grd_drgclist.rowStatus(i) == 2 || grd_drgclist.rowStatus(i) == 3) &&
  238. (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("gbn")).length == 0
  239. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("insukind")).length ==0
  240. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("addrate")).length ==0
  241. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("fromdd")).length ==0
  242. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("todd")).length ==0))
  243. {
  244. var errmsg = "";
  245. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("todd")).length ==0)
  246. {
  247. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("todd"));
  248. }
  249. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("fromdd")).length ==0)
  250. {
  251. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("fromdd"));
  252. }
  253. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("addrate")).length ==0)
  254. {
  255. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("addrate"));
  256. }
  257. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("insukind")).length == 0 )
  258. {
  259. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("insukind"));
  260. }
  261. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("gbn")).length ==0)
  262. {
  263. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("gbn"));
  264. }
  265. messageBox(errmsg.split("\n").join("") +"는","I003");
  266. return false;
  267. }
  268. }
  269. if (messageBox("저장", "S001") == 6) {
  270. model.setValue("/root/send/cnstcdlist",grd_drgclist.getUpdateData());
  271. if ( submit("TXPID28000") ) {
  272. messageBox("저장이","I002");
  273. }
  274. }
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="button2" class="btn2_letter3" _auth="P" style="left:790px; top:52px; width:53px; height:19px; ">
  279. <caption>행종료</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. fSpclGridDeleteRow();
  283. ]]>
  284. </script>
  285. </button>
  286. <button id="button3" class="btn2_letter3" _auth="P" style="left:844px; top:52px; width:53px; height:19px; ">
  287. <caption>행추가</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. fSpclGridInsertRow();
  291. ]]>
  292. </script>
  293. </button>
  294. </group>
  295. <button id="btn_cancel" class="btn4_letter2" style="left:884px; top:622px; width:56px; height:22px; ">
  296. <caption>종료</caption>
  297. <close ev:event="DOMActivate"/>
  298. </button>
  299. </xhtml:body>
  300. </xhtml:html>