SMPAS03200_반환사유조회.xrw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>반환사유조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <rtnresnlist>
  11. <rtnresn>
  12. <pid/>
  13. <patnm/>
  14. <orddeptcd/>
  15. <orddrid/>
  16. <prcpdt/>
  17. <prcpcd/>
  18. <prcpnm/>
  19. <ioflag/>
  20. <actorddd/>
  21. <rtnresn/>
  22. <rtndt/>
  23. <rtndeptnm/>
  24. <rtnnm/>
  25. </rtnresn>
  26. </rtnresnlist>
  27. </main>
  28. <send>
  29. <date>
  30. <fromdd/>
  31. <todd/>
  32. <flag/>
  33. </date>
  34. </send>
  35. <init>
  36. <P0404list>
  37. <P0404>
  38. <cdnm/>
  39. <cdid/>
  40. </P0404>
  41. </P0404list>
  42. <orddeptcd>
  43. <orddeptcdlist>
  44. <cd/>
  45. <nm/>
  46. </orddeptcdlist>
  47. </orddeptcd>
  48. <orddrid>
  49. <orddridlist>
  50. <cd/>
  51. <nm/>
  52. <dp/>
  53. <sp/>
  54. </orddridlist>
  55. </orddrid>
  56. </init>
  57. <hidden>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  62. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. zbcfGetCodeList(new Array("P0404"), new Array("/root/init/P0404list"));
  66. pamGetDeptCDDrIDList();
  67. flag.select(0);
  68. model.refresh();
  69. fInitialize();
  70. ]]>
  71. </script>
  72. <submission id="TRPAS03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/date" resultref="/root/main/rtnresnlist"/>
  73. </model>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript">
  81. <![CDATA[
  82. function fInitialize(){
  83. model.resetInstanceNode("/root/send/date/fromdd");
  84. model.resetInstanceNode("/root/send/date/todd");
  85. model.resetInstanceNode("/root/main/rtnresnlist/rtnresn");
  86. //날자 입력 항목에 오늘 날자 세팅
  87. var curDate = getCurrentDate();
  88. model.setValue("/root/send/date/fromdd",curDate);
  89. model.setValue("/root/send/date/todd",curDate);
  90. model.refresh();
  91. }
  92. function fSearchChk() {
  93. var fromdd = model.getValue("/root/send/date/fromdd");
  94. var todd = model.getValue("/root/send/date/todd");
  95. if(fromdd > todd) {
  96. messageBox("시작일이 종료일을 앞설수","C001");
  97. return false;
  98. }
  99. return true;
  100. }
  101. ]]>
  102. </script>
  103. </xhtml:head>
  104. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  105. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  106. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">반환사유조회</caption>
  107. </group>
  108. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  109. <group id="group4" style="left:0px; top:14px; width:1194px; height:35px; vertical-align:top; ">
  110. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  111. <button id="btn_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
  112. <caption>조회</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. if(fSearchChk()){
  116. submit("TRPAS03201");
  117. }
  118. ]]>
  119. </script>
  120. </button>
  121. <caption id="caption10" style="left:195px; top:7px; width:15px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
  122. <caption id="caption2" class="search_name" style="left:18px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
  123. <input id="ipt_fromdd" ref="/root/send/date/fromdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:85px; height:19px; "/>
  124. <input id="ipt_todd" ref="/root/send/date/todd" class="input_search" inputtype="date" style="left:210px; top:8px; width:85px; height:19px; "/>
  125. <select1 id="flag" ref="/root/send/date/flag" class="combo_search" appearance="minimal" style="left:400px; top:8px; width:100px; height:19px; ">
  126. <choices>
  127. <item>
  128. <label>전체</label>
  129. <value>00</value>
  130. </item>
  131. <item>
  132. <label>동월 반환</label>
  133. <value>01</value>
  134. </item>
  135. <item>
  136. <label>이월 반환</label>
  137. <value>02</value>
  138. </item>
  139. </choices>
  140. </select1>
  141. <caption id="caption1" class="search_name" style="left:328px; top:9px; width:66px; height:17px; ">구 분 :</caption>
  142. </group>
  143. <caption id="caption4" class="tit_2" style="left:6px; top:72px; width:131px; height:13px; ">반환사유내역</caption>
  144. <line id="line3" class="line_1" style="x1:0px; y1:87px; x2:1194px; y2:87px; "/>
  145. <datagrid id="grd_rtnresn" nodeset="/root/main/rtnresnlist/rtnresn" class="datagrid2" caption="등록번호^성명^진료과^진료의사^처방일시^처방코드^처방명^구분(외/입)^시행일자^반환사유^반환일시^반환부서^반환자" colsep="^" colwidth="66, 80, 105, 80, 100, 100, 133, 80, 80, 80, 80, 105, 80" dataheight="23" defaultrows="2" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:90px; width:1194px; height:650px; font-weight:normal; ">
  146. <col ref="pid" type="output"/>
  147. <col ref="patnm" type="output"/>
  148. <col disabled="true" ref="orddeptcd" type="combo">
  149. <choices>
  150. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  151. <label ref="nm"/>
  152. <value ref="cd"/>
  153. </itemset>
  154. </choices>
  155. </col>
  156. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  157. <choices>
  158. <itemset nodeset="/root/init/orddrid/orddridlist">
  159. <label ref="nm"/>
  160. <value ref="cd"/>
  161. </itemset>
  162. </choices>
  163. </col>
  164. <col ref="prcpdt" type="output" format="yyyy-mm-dd"/>
  165. <col ref="prcpcd" type="output"/>
  166. <col ref="prcpnm" type="output"/>
  167. <col ref="ioflag" type="output"/>
  168. <col ref="actorddd" type="output" format="yyyy-mm-dd"/>
  169. <col disabled="true" ref="rtnresn"/>
  170. <col ref="rtndt" type="output" format="yyyy-mm-dd"/>
  171. <col ref="rtndeptnm" type="output"/>
  172. <col ref="rtnnm" type="output"/>
  173. <script type="javascript" ev:event="onaftersort">
  174. <![CDATA[
  175. grd_rtnresn.gridToInstance();
  176. ]]>
  177. </script>
  178. </datagrid>
  179. <button id="btn_excel" class="btn2_letter4" navindex="5" style="left:1126px; top:68px; width:64px; height:19px; ">
  180. <caption>엑셀저장</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  184. if (fileName != "")
  185. {
  186. grd_uncomonthendproc.saveExcel(fileName, "반환사유조회", true, true, "", "", true);
  187. }
  188. ]]>
  189. </script>
  190. </button>
  191. </group>
  192. <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  193. <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  194. <caption>초기화</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. fInitialize();
  198. ]]>
  199. </script>
  200. </button>
  201. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  202. </group>
  203. </xhtml:body>
  204. </xhtml:html>