SMRSD07900_처방집계청구처리(경북대).xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>처방집계 청구처리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <sumlist/>
  11. </main>
  12. <send>
  13. <search>
  14. <instcd/>
  15. <sumddfr/>
  16. <sumddto/>
  17. <mainusedeptcd/>
  18. <wareflag/>
  19. </search>
  20. <reqcond>
  21. <instcd/>
  22. <sumdd/>
  23. <mainusedeptcd/>
  24. <wareflag/>
  25. </reqcond>
  26. <save/>
  27. </send>
  28. <init>
  29. </init>
  30. <hidden/>
  31. <temp>
  32. </temp>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. //화면 Control을 초기화한다
  38. misfGridInit(grd_sum);
  39. misfMsterDetailSet(grd_sum, null, "TRRSD07901" ,"Y");
  40. //화면에 repor 형식으로 보여줄 경우
  41. //makeReportPreview(0,123,1195,637);
  42. //model.removenode( "/root/main/sumlist");
  43. //misfComboComCdListMulti("Z0007","cmb_instcd"); //기관코드
  44. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  45. misfComboComCdList("030M0001",cmb_wareflag, "Y"); //창고 (Y: 전체 item 추가시)
  46. misfComboComCdList("R0450",cmb_mainusedeptcd, "Y"); //사용부서 (Y: 전체 item 추가시)
  47. cmb_mainusedeptcd.value = "2"; //중앙공급실로 초기값 설정
  48. //misfComboComCdListMulti("R0450","grd_sum.mainusedeptcd");
  49. //misfGridComboComCdList("R0450", "grd_sum", "mainusedeptcd");
  50. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
  51. model.setValue("/root/send/search/sumddfr" , getCurrentDate().toDate().getAddDate(-7, "D").getDateFormat("YYYYMMDD"));
  52. model.setValue("/root/send/search/sumddto" , getCurrentDate()); //기간 설정 //.substr(0,6));
  53. //test -> 향후 삭제할 것
  54. //model.setValue("/root/send/search/reqdd", "20110816");
  55. model.refresh();
  56. ]]>
  57. </script>
  58. <submission id="TRRSD07901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/"/>
  59. <submission id="TXRSD07901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqcond" resultref="/root/temp"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">처방집계 청구처리</caption>
  75. </group>
  76. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  77. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
  78. <button id="btn_cust" class="btn3_letter6" style="left:1088px; top:3px; width:104px; height:22px; ">
  79. <caption>청구자료생성</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. //조회된 자료가 없으면 먼저 조회하라고 message
  83. if(grd_sum.rows < 3) {
  84. messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 작업하십시요.", "E999", "");
  85. return;
  86. }
  87. //이미 청구된 것은 청구나 청구자료생성이 불가한다.
  88. if(grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("reqdd")) != "") {
  89. messageBox("선택한 처방집계건에 대해 이미 청구자료가 생성되었으므로 처리가 불가합니다 ", "E999", "");
  90. return;
  91. }
  92. // confirm
  93. if (messageBox( "해당 처방집계건에 대해 청구자료를 생성하시겠습니까? \n\n" +
  94. "집계일자 : " + grd_sum.labelMatrix(grd_sum.row, grd_sum.colRef("sumdd")) + "\n" +
  95. "사용부서 : " + grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("mainusedeptnm")) + "\n" +
  96. "창고구분 : " + grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("wareflagnm")) + "\n" +
  97. "순번 : 전체"
  98. , "Q999","") != 6){
  99. return;
  100. }
  101. //청구자료생성을 위한 조건값을 instance에 setting한다.
  102. model.setValue("/root/send/reqcond/instcd", cmb_instcd.value);
  103. model.setValue("/root/send/reqcond/sumdd", grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("sumdd")) );
  104. model.setValue("/root/send/reqcond/mainusedeptcd", grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("mainusedeptcd")) );
  105. model.setValue("/root/send/reqcond/wareflag", grd_sum.valueMatrix(grd_sum.row, grd_sum.colRef("wareflag")) );
  106. if(submit("TXRSD07901")) {
  107. misfMsterDetailRetrieve();
  108. messageBox("청구자료가 생성되었습니다.", "I999", "");
  109. }
  110. ]]>
  111. </script>
  112. </button>
  113. </group>
  114. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  115. <group id="grp_search" style="left:0px; top:9px; width:1195px; height:46px; vertical-align:top; ">
  116. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  117. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1079px; top:9px; width:56px; height:22px; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. //2012.08.14 박준범 - 창고 "전체" 를 추가하면서 comment처리
  122. /*
  123. //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
  124. if(cmb_wareflag.value == "") {
  125. messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
  126. model.setFocus("cmb_wareflag");
  127. return;
  128. }
  129. */
  130. //년월에 입력된 값이 올바르지 않으면, 년월을 선택하라고 alert함
  131. if(ipt_sumddfr.value.length < 8) {
  132. messageBox("집계일자가 올바로 선택되지 않았습니다. \n\n먼저 집계일자을 선택하십시요.", "E999", "");
  133. model.setFocus("ipt_sumddfr");
  134. return;
  135. }
  136. if(ipt_sumddto.value.length < 8) {
  137. messageBox("집계일자가 올바로 선택되지 않았습니다. \n\n먼저 집계일자을 선택하십시요.", "E999", "");
  138. model.setFocus("ipt_sumddto");
  139. return;
  140. }
  141. misfMsterDetailRetrieve();
  142. ]]>
  143. </script>
  144. </button>
  145. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:132px; top:10px; width:158px; height:19px; ">
  146. <choices>
  147. <itemset nodeset="/root/main/init">
  148. <label ref="cnstnm"/>
  149. <value ref="cnstcd"/>
  150. </itemset>
  151. </choices>
  152. </select1>
  153. <caption id="cap_instcd" class="search_name" style="left:53px; top:10px; width:77px; height:17px; ">기관코드</caption>
  154. <input id="ipt_sumddfr" ref="/root/send/search/sumddfr" navindex="5" inputtype="date" format="yyyy-mm-dd" style="left:394px; top:10px; width:87px; height:19px; "/>
  155. <line id="line30" class="line_4" style="x1:1060px; y1:7px; x2:1060px; y2:34px; "/>
  156. <caption id="caption9" class="search_name" style="left:314px; top:10px; width:79px; height:17px; ">집계일자</caption>
  157. <caption id="caption4" style="left:483px; top:10px; width:10px; height:20px; font-weight:bold; ">-</caption>
  158. <input id="ipt_sumddto" ref="/root/send/search/sumddto" navindex="6" inputtype="date" format="yyyy-mm-dd" style="left:495px; top:10px; width:87px; height:19px; "/>
  159. <caption id="caption2" class="search_name" style="left:840px; top:10px; width:79px; height:17px; ">창고구분</caption>
  160. <select1 id="cmb_wareflag" ref="/root/send/search/wareflag" class="combo_default" navindex="4" appearance="minimal" style="left:919px; top:10px; width:99px; height:19px; ">
  161. <choices>
  162. <itemset nodeset="/root/init/wareflag">
  163. <label ref="cdnm"/>
  164. <value ref="cdid"/>
  165. </itemset>
  166. </choices>
  167. </select1>
  168. <caption id="caption3" class="search_name" style="left:611px; top:10px; width:76px; height:17px; ">사용부서</caption>
  169. <select1 id="cmb_mainusedeptcd" ref="/root/send/search/mainusedeptcd" class="combo_default" disabled="true" navindex="4" appearance="minimal" style="left:690px; top:10px; width:125px; height:19px; ">
  170. <choices>
  171. <itemset nodeset="/root/init/mainusedeptcd">
  172. <label ref="cdnm"/>
  173. <value ref="cdid"/>
  174. </itemset>
  175. </choices>
  176. </select1>
  177. </group>
  178. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
  179. <caption id="caption1" class="tit_2" style="left:0px; top:58px; width:201px; height:13px; ">처방집계 이력조회 및 청구내역</caption>
  180. <datagrid id="grd_sum" nodeset="/root/main/sumlist" caption="집계일자^회차^사용부서^사용부서^창고구분^창고구분^집계^집계^출력^출력^청구^청구^청구^청구^청구^청구^출고^출고|집계일자^회차^사용부서^사용부서^창고구분^창고구분^처리일시^처리자^처리일시^처리자^청구일자^청구번호^물품구분^청구부서^처리일시^처리자^출고일자^출고번호" colsep="^" colwidth="72, 18, 53, 91, 40, 84, 104, 54, 104, 54, 76, 56, 81, 96, 104, 54, 69, 56" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:1195px; height:620px; ">
  181. <col ref="sumdd" format="yyyy-mm-dd" style="text-align:center; "/>
  182. <col ref="sumseq" style="text-align:center; "/>
  183. <col ref="mainusedeptcd" visibility="hidden"/>
  184. <col ref="mainusedeptnm"/>
  185. <col ref="wareflag" visibility="hidden"/>
  186. <col ref="wareflagnm"/>
  187. <col ref="sumdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  188. <col ref="sumnm" style="text-align:center; "/>
  189. <col ref="prndt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  190. <col ref="prnnm" style="text-align:center; "/>
  191. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  192. <col ref="reqno" style="text-align:center; "/>
  193. <col ref="reqflagnm"/>
  194. <col ref="reqdeptnm"/>
  195. <col ref="reqdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  196. <col ref="reqnm" style="text-align:center; "/>
  197. <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  198. <col ref="deliveno" style="text-align:center; "/>
  199. </datagrid>
  200. </group>
  201. </xhtml:body>
  202. </xhtml:html>