SPPIJ03303_DRGzero중증도관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID33000_DRG 0포인트 주진단코드 기준자료 관리.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>DRG 0포인트 주진단코드 기준자료 관리</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <zpcdlist>
  16. <zpcd/>
  17. </zpcdlist>
  18. </main>
  19. <send>
  20. <zpcdlist>
  21. </zpcdlist>
  22. <diagcd/>
  23. <mdiagcd/>
  24. <instcd>031</instcd>
  25. </send>
  26. <init>
  27. </init>
  28. <hidden>
  29. <popupmenu>
  30. <clcj>
  31. <item>
  32. <name>행 추가</name>
  33. <func>fSpclGridInsertRow</func>
  34. </item>
  35. <item>
  36. <name>-</name>
  37. <func/>
  38. </item>
  39. <item>
  40. <name>행 삭제</name>
  41. <func>fSpclGridDeleteRow</func>
  42. </item>
  43. </clcj>
  44. </popupmenu>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. // 화면을 초기화한다.
  51. fInitialize();
  52. ]]>
  53. </script>
  54. <submission id="TRPIJ03303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  55. <submission id="TXPIJ03303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  63. <script type="javascript">
  64. <![CDATA[
  65. var gToday = new Date();
  66. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  67. var gBasemonth = gToday.getDateFormat("MM");
  68. var gBaseday = gToday.getDateFormat("DD");
  69. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  70. var gCurrentym = gBaseyear + gBasemonth;
  71. // -----------------------
  72. // ▶ 화면초기화
  73. // -----------------------
  74. function fInitialize() {
  75. grd_zpcdlist.mergeCol(grd_zpcdlist.colRef("diagcd")) = true;
  76. grd_zpcdlist.mergeCol(grd_zpcdlist.colRef("diagnm")) = true;
  77. grd_zpcdlist.mergeCol(5) = false;
  78. grd_zpcdlist.mergeCol(6) = false;
  79. grd_zpcdlist.mergeCol(7) = false;
  80. grd_zpcdlist.mergeCol(8) = false;
  81. grd_zpcdlist.mergeCol(9) = false
  82. grd_zpcdlist.mergeCol(10) = false
  83. //model.setValue("/root/send/orddd", getCurrentDate());
  84. //model.refresh();
  85. //btn_select.dispatch("DOMActivate");
  86. }
  87. // ----------------------------------------------------------------------
  88. // ▶ 동일진료일 명세서조회
  89. // ----------------------------------------------------------------------
  90. function fGetDocuList() {
  91. var chk = true;
  92. if (model.getValue("/root/send/diagcd") == "" && model.getValue("/root/send/mdiagcd") == "" ) {
  93. chk = false;
  94. messageBox("조회조건 1개이상은", "I003"); //I003=필수입력입니다.
  95. model.setFocus("ipt_diagcd");
  96. }
  97. if (chk == true) {
  98. submit("TRPIJ03303");
  99. }
  100. }
  101. // 화면을 초기화한다.
  102. function fSpclGridInsertRow(){
  103. grd_zpcdlist.AddRow();
  104. grd_zpcdlist.bottomRow = grd_zpcdlist.rows;
  105. }
  106. function fSpclGridDeleteRow(){
  107. for (var i = 0; i < grd_zpcdlist.selectedRows; i++) {
  108. var sel = grd_zpcdlist.selectedRow(i);
  109. grd_zpcdlist.rowstatus(sel) = "4";
  110. }
  111. }
  112. ]]>
  113. </script>
  114. </xhtml:head>
  115. <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; ">
  116. <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
  117. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">DRG 0포인트 주진단코드 기준자료 관리</caption>
  118. </group>
  119. <group id="grp_biz" scroll="auto" style="left:0px; top:28px; width:942px; height:592px; ">
  120. <datagrid id="grd_zpcdlist" nodeset="/root/main/zpcdlist/zpcd" class="datagrid3" caption="진단코드^진단코드명^주진단코드^주진단코드명^시작일자^종료일자^등록자^등록일자^수정자^수정일자" colsep="^" colwidth="61, 153, 81, 111, 85, 85, 60, 100, 60, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecells="bycol" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:940px; height:514px; ">
  121. <col disabled="true" ref="diagcd" type="input" maxlength="5" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
  122. <col ref="diagnm"/>
  123. <col disabled="true" ref="mdiagcd" type="input" style="text-align:left; "/>
  124. <col ref="mdiagnm"/>
  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_zpcdlist.isCell(event.target) && grd_zpcdlist.mouseRow >= grd_zpcdlist.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 0포인트 주진단코드 기준자료 리스트</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. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:875px; top:10px; width:56px; height:22px; ">
  154. <caption>조회</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. fGetDocuList();
  158. ]]>
  159. </script>
  160. </button>
  161. <line id="line3" class="line_4" style="x1:860px; y1:5px; x2:860px; y2:38px; "/>
  162. <input id="ipt_diagcd" ref="/root/send/diagcd" imemode="disabled" _chartype="upper" style="left:100px; top:10px; width:100px; height:19px; ">
  163. <script type="javascript" ev:event="onkeypress">
  164. <![CDATA[
  165. if (event.keyCode == 13) {
  166. setInputNodeCurText(",");
  167. fGetDocuList();
  168. }
  169. ]]>
  170. </script>
  171. </input>
  172. <caption id="caption30" class="search_name" style="left:8px; top:11px; width:87px; height:17px; ">진단코드 :</caption>
  173. <input id="ipt_mdiagcd" ref="/root/send/mdiagcd" imemode="disabled" _chartype="upper" style="left:330px; top:10px; width:100px; height:19px; ">
  174. <script type="javascript" ev:event="onkeypress">
  175. <![CDATA[
  176. if (event.keyCode == 13) {
  177. setInputNodeCurText(",");
  178. fGetDocuList();
  179. }
  180. ]]>
  181. </script>
  182. </input>
  183. <caption id="caption1" class="search_name" style="left:223px; top:11px; width:99px; height:17px; ">주진단코드 :</caption>
  184. </group>
  185. <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:725px; top:52px; width:64px; height:19px; ">
  186. <caption>엑셀저장</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. grd_zpcdlist.gridToInstance();
  190. if (grd_zpcdlist.rows > 1) {
  191. var fileName = window.fileDialog("save", "", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  192. if (fileName != "") {
  193. grd_zpcdlist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
  194. }
  195. } else {
  196. messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  197. }
  198. ]]>
  199. </script>
  200. </button>
  201. <button id="button1" class="btn5_letter2" _auth="P" style="left:898px; top:52px; width:42px; height:19px; ">
  202. <caption>저장</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. var updtdata = getGridUpdateData(grd_zpcdlist);
  206. if (updtdata == "") {
  207. messageBox("변경된 데이터가","I004");
  208. return;
  209. }
  210. for (var i=0; i < grd_zpcdlist.rows; i++){
  211. if ((grd_zpcdlist.rowStatus(i) == 1 || grd_zpcdlist.rowStatus(i) == 2 || grd_zpcdlist.rowStatus(i) == 3) &&
  212. (grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("diagcd")).length == 0
  213. || grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("mdiagcd")).length ==0
  214. || grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("fromdd")).length ==0
  215. || grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("todd")).length ==0))
  216. {
  217. var errmsg = "";
  218. if (grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("todd")).length ==0)
  219. {
  220. errmsg = grd_zpcdlist.labelMatrix(0,grd_zpcdlist.colRef("todd"));
  221. }
  222. if (grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("fromdd")).length ==0)
  223. {
  224. errmsg = grd_zpcdlist.labelMatrix(0,grd_zpcdlist.colRef("fromdd"));
  225. }
  226. if (grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("mdiagcd")).length ==0)
  227. {
  228. errmsg = grd_zpcdlist.labelMatrix(0,grd_zpcdlist.colRef("mdiagcd"));
  229. }
  230. if (grd_zpcdlist.valueMatrix(i,grd_zpcdlist.colRef("diagcd")).length == 0 )
  231. {
  232. errmsg = grd_zpcdlist.labelMatrix(0,grd_zpcdlist.colRef("diagcd"));
  233. }
  234. messageBox(errmsg.split("\n").join("")+"는","I003");
  235. return false;
  236. }
  237. }
  238. if (messageBox("저장", "S001") == 6) {
  239. model.setValue("/root/send/zpcdlist",grd_zpcdlist.getUpdateData());
  240. if ( submit("TXPIJ03303") ) {
  241. messageBox("저장이","I002");
  242. }
  243. }
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="button2" class="btn2_letter3" _auth="P" style="left:790px; top:52px; width:53px; height:19px; ">
  248. <caption>행종료</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fSpclGridDeleteRow();
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="button3" class="btn2_letter3" _auth="P" style="left:844px; top:52px; width:53px; height:19px; ">
  256. <caption>행추가</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. fSpclGridInsertRow();
  260. ]]>
  261. </script>
  262. </button>
  263. </group>
  264. <button id="btn_cancel" class="btn4_letter2" style="left:884px; top:622px; width:56px; height:22px; ">
  265. <caption>종료</caption>
  266. <close ev:event="DOMActivate"/>
  267. </button>
  268. </xhtml:body>
  269. </xhtml:html>