SPPIJ03305_DRG처방추출기준자료관리.xrw 12 KB

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