SPPIJ03800_복잡수술료사유조회.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID33000_복잡수술료 사유조회.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. <cplxoplist>
  16. <drga/>
  17. </cplxoplist>
  18. <patinfo>
  19. <patinfolist/>
  20. </patinfo>
  21. </main>
  22. <send>
  23. <cplxoplist>
  24. </cplxoplist>
  25. <pid/>
  26. <cretno/>
  27. <instcd>031</instcd>
  28. <orddd/>
  29. <ordtodd/>
  30. </send>
  31. <init>
  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. <sppmc02500>
  51. <cond>
  52. <srchcond/>
  53. <pid/>
  54. </cond>
  55. <rslt/>
  56. </sppmc02500>
  57. </hidden>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. // 화면을 초기화한다.
  63. fInitialize();
  64. ]]>
  65. </script>
  66. <submission id="TRPIJ03800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cplxop"/>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. var gToday = new Date();
  77. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  78. var gBasemonth = gToday.getDateFormat("MM");
  79. var gBaseday = gToday.getDateFormat("DD");
  80. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  81. var gCurrentym = gBaseyear + gBasemonth;
  82. // -----------------------
  83. // ▶ 화면초기화
  84. // -----------------------
  85. function fInitialize() {
  86. if (model.getValue("/root/send/orddd") == ""){
  87. model.makeValue("/root/send/orddd", getCurrentDate());
  88. model.makeValue("/root/send/ordtodd", getCurrentDate());
  89. }
  90. model.refresh();
  91. btn_select.dispatch("DOMActivate");
  92. }
  93. // ----------------------------------------------------------------------
  94. // ▶ 동일진료일 명세서조회
  95. // ----------------------------------------------------------------------
  96. function fGetDocuList() {
  97. var chk = true;
  98. // if (model.getValue("/root/send/orddd") == "") {
  99. // chk = false;
  100. // messageBox("기준년월은", "I003"); //I003=필수입력입니다.
  101. // model.setFocus("ipt_orddd");
  102. // }
  103. if (chk == true) {
  104. submit("TRPIJ03800");
  105. }
  106. }
  107. // 화면을 초기화한다.
  108. function fSpclGridInsertRow(){
  109. grd_cplxoplist.AddRow();
  110. grd_cplxoplist.bottomRow = grd_cplxoplist.rows;
  111. }
  112. function fSpclGridDeleteRow(){
  113. for (var i = 0; i < grd_cplxoplist.selectedRows; i++) {
  114. var sel = grd_cplxoplist.selectedRow(i);
  115. grd_cplxoplist.rowstatus(sel) = "4";
  116. }
  117. }
  118. ]]>
  119. </script>
  120. </xhtml:head>
  121. <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; ">
  122. <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
  123. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">복잡수술료 사유조회</caption>
  124. </group>
  125. <group id="grp_biz" scroll="auto" style="left:0px; top:28px; width:942px; height:592px; ">
  126. <datagrid id="grd_cplxoplist" nodeset="/root/main/cplxop/cplxoplist" class="datagrid3" autoresize="true" caption="환자번호^환자명^진료일자^처방코드^처방명^사유" colsep="^" colwidth="61, 64, 74, 81, 246, 439" 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; ">
  127. <col ref="pid" style="text-align:center; "/>
  128. <col ref="patnm" style="text-align:center; "/>
  129. <col ref="orddd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  130. <col ref="calcscorcd" type="output" style="text-align:center; "/>
  131. <col ref="calcscorcdnm"/>
  132. <col ref="resncnts" type="output" style="text-align:left; "/>
  133. <script type="javascript" ev:event="onmousedown">
  134. <![CDATA[
  135. if (event.button == 3) { // 3 : 오른쪽 버튼
  136. if (grd_cplxoplist.isCell(event.target) && grd_cplxoplist.mouseRow >= grd_cplxoplist.fixedrows) {
  137. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  138. } else {
  139. window.showPopupMenu(true);
  140. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  141. }
  142. }
  143. ]]>
  144. </script>
  145. <script type="javascript" ev:event="DOMFocusOut">
  146. <![CDATA[
  147. window.setPopupMenu(false);
  148. ]]>
  149. </script>
  150. </datagrid>
  151. <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:56px; width:234px; height:15px; ">복잡수술료 사유조회 리스트</caption>
  152. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:940px; y2:72px; "/>
  153. <group id="group1" style="left:0px; top:5px; width:940px; height:40px; vertical-align:top; ">
  154. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:940px; height:40px; "/>
  155. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:875px; top:10px; width:56px; height:22px; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. fGetDocuList();
  160. ]]>
  161. </script>
  162. </button>
  163. <line id="line3" class="line_4" style="x1:860px; y1:5px; x2:860px; y2:38px; "/>
  164. <input id="ipt_drgno" ref="/root/send/pid" imemode="disabled" _chartype="upper" style="left:100px; top:10px; width:65px; height:19px; ">
  165. <script type="javascript" ev:event="onkeypress">
  166. <![CDATA[
  167. if (event.keyCode == 13) {
  168. setInputNodeCurText(",");
  169. fGetDocuList();
  170. }
  171. ]]>
  172. </script>
  173. </input>
  174. <caption id="caption30" class="search_name" style="left:8px; top:11px; width:95px; height:17px; ">환자번호 :</caption>
  175. <caption id="caption1" class="search_name" style="left:223px; top:11px; width:99px; height:17px; ">진료일자 :</caption>
  176. <input id="ipt_fromdd" ref="/root/send/orddd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:310px; top:11px; width:85px; height:19px; "/>
  177. <button id="button27" class="icon_search" style="left:170px; top:10px; width:16px; height:16px; ">
  178. <caption/>
  179. <script type="javascript" ev:event="onclick">
  180. <![CDATA[
  181. var ipt_pid = model.getValue("/root/send/pid");
  182. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  183. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  184. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
  185. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  186. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  187. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  188. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  189. model.setValue("/root/send/pid", srch_pid);
  190. model.setValue("/root/send/cretno", "");
  191. model.refresh();
  192. }
  193. ]]>
  194. </script>
  195. </button>
  196. <input id="input1" ref="/root/send/ordtodd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:420px; top:11px; width:85px; height:19px; "/>
  197. <caption id="caption2" style="left:400px; top:12px; width:20px; height:20px; ">~</caption>
  198. </group>
  199. <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:875px; top:52px; width:64px; height:19px; ">
  200. <caption>엑셀저장</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. grd_cplxoplist.gridToInstance();
  204. if (grd_cplxoplist.rows > 1) {
  205. var fileName = window.fileDialog("save", "", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  206. if (fileName != "") {
  207. grd_cplxoplist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
  208. }
  209. } else {
  210. messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  211. }
  212. ]]>
  213. </script>
  214. </button>
  215. </group>
  216. <button id="btn_cancel" class="btn4_letter2" style="left:884px; top:622px; width:56px; height:22px; ">
  217. <caption>종료</caption>
  218. <close ev:event="DOMActivate"/>
  219. </button>
  220. </xhtml:body>
  221. </xhtml:html>