SPPIJ03302_DRG진단별중증도점수관리.xrw 10 KB

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