SPPIJ03301_대표DRG번호관리.xrw 12 KB

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