SMAVT01800_수익집계.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAVT01800_수익집계
  4. * 설 명 : 조직은행 수익집계
  5. * 설 계 자 : 최예원
  6. * 작 성 자 : 최예원
  7. * 작 성 일 : 2011.03.24
  8. * 수정이력 : 2011.03.24
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>조직은행 수익집계</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <avtmlist>
  20. <item>
  21. <recvno/>
  22. <pid/>
  23. <hngnm/>
  24. <opdd/>
  25. <opcd/>
  26. <ophngnm/>
  27. <opengnm/>
  28. </item>
  29. </avtmlist>
  30. <bscdlstdtl>
  31. <item>
  32. <clscd/>
  33. <etccd/>
  34. <etcdetlcd/>
  35. <etcdetlcdkey/>
  36. <etcdetlnm/>
  37. <etcitemcnts/>
  38. <etcitemcnts2/>
  39. <useyn/>
  40. </item>
  41. </bscdlstdtl>
  42. <selbscdlstdtl>
  43. <item>
  44. <clscd/>
  45. <etccd/>
  46. <etcdetlcd/>
  47. <etcdetlcdkey/>
  48. <etcdetlnm/>
  49. <etcitemcnts/>
  50. <etcitemcnts2/>
  51. <useyn/>
  52. </item>
  53. </selbscdlstdtl>
  54. <prcplist>
  55. <item>
  56. <prcpgenrflag/>
  57. <pid/>
  58. <prcpdd/>
  59. <rgsttm/>
  60. <prcpnm/>
  61. <prcpcd/>
  62. <prcpqty/>
  63. <prcpamt/>
  64. </item>
  65. </prcplist>
  66. </main>
  67. <send>
  68. <srchfromdd/>
  69. <srchtodd/>
  70. <srchdateflag/>
  71. <clscd/>
  72. <etccd/>
  73. <data>
  74. <srchprcpcd/>
  75. <srchpid/>
  76. <srchpickdd/>
  77. </data>
  78. <deldata>
  79. <srfromdd/>
  80. <srtodd/>
  81. <srpid/>
  82. </deldata>
  83. <srchinstcd/>
  84. <srchuid/>
  85. </send>
  86. <init>
  87. <combobscdlst/>
  88. <baseinfo>
  89. <initprcpgenrflagcd/>
  90. </baseinfo>
  91. </init>
  92. <hidden/>
  93. <temp/>
  94. <rexprnt>
  95. <benflist>
  96. <srchfromdd/>
  97. <srchtodd/>
  98. </benflist>
  99. </rexprnt>
  100. </root>
  101. </instance>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
  106. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  107. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  108. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  109. <script type="javascript" ev:event="xforms-ready">
  110. <![CDATA[
  111. fGetScreenInit();
  112. ]]>
  113. </script>
  114. <submission id="TRAVB00001"/>
  115. <submission id="TRAVT02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/benflist"/>
  116. <submission id="TRAVT01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dntglist"/>
  117. <submission id="TRAVB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
  118. <submission id="TRAVT01800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/avtmlist"/>
  119. <submission id="TRAVB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/bscdlstdtl"/>
  120. <submission id="TRAVT01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/schblist"/>
  121. <submission id="TXAVT01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  122. <submission id="TXAVT01800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  123. </model>
  124. <script type="javascript">
  125. <![CDATA[
  126. // 화면 초기화
  127. function fGetScreenInit(){
  128. model.setValue("/root/send/srchfromdd", getCurrentDate());
  129. model.setValue("/root/send/srchtodd", getCurrentDate());
  130. model.setValue("/root/send/srchdateflag", "1");
  131. model.removeNodeset("/root/main/avtmlist");
  132. model.removeNodeset("/root/main/bscdlstdtl/item");
  133. model.setValue("root/send/clscd","C");
  134. model.setValue("root/send/etccd","C26");
  135. submit("TRAVB00103");
  136. model.setValue("/root/send/srchdateflag" , "R");
  137. zbcfGetCodeList( new Array("M0010"), new Array("/root/init/baseinfo/initprcpgenrflagcd") );
  138. model.refresh();
  139. }
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body guideline="1,1194;2,784;1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  145. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">조직은행 수익집계</caption>
  146. </group>
  147. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  148. <line id="line1" class="line_1" style="x1:0px; y1:50px; x2:446px; y2:50px; "/>
  149. <datagrid id="dtg_schblist" nodeset="/root/main/schblst/item" scroll="auto" caption="입/외^환자번호^처방일자^처방일자^처방명^수량^단가^총계^처방코드" colsep="^" colwidth="40, 65, 80, 60, 170, 40, 90, 90, 90" dataheight="23" ellipsis="true" explorerbar="sortmove" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:450px; top:75px; width:743px; height:660px; text-align:center; ">
  150. <col disabled="true" ref="iogbn" type="combo" style="text-align:center; ">
  151. <choices>
  152. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  153. <label ref="cdnm"/>
  154. <value ref="cdid"/>
  155. </itemset>
  156. </choices>
  157. </col>
  158. <col ref="pid" type="output"/>
  159. <col ref="prcpdd" type="output" format="yyyy-mm-dd"/>
  160. <col ref="rgsttm" type="output" format="hh:nn:ss"/>
  161. <col ref="prcpnm" type="output" style="text-align:left; "/>
  162. <col ref="prcpqty" type="output"/>
  163. <col ref="costamt" type="output" format="#,###" style="text-align:right; padding-right:5; "/>
  164. <col ref="totamt" type="output" format="#,###" style="text-align:right; padding-right:5; "/>
  165. <col ref="prcpcd" type="output"/>
  166. <col ref="prcpno" type="output" visibility="hidden"/>
  167. <col ref="costamt" type="output" visibility="hidden"/>
  168. <script type="javascript" ev:event="onaftersort">
  169. <![CDATA[
  170. dtg_schblist.gridToInstance();
  171. ]]>
  172. </script>
  173. </datagrid>
  174. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  175. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1192px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  176. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">수술일자 :</caption>
  177. <caption id="caption5" class="search_no_b" style="left:207px; top:10px; width:12px; height:17px; ">~</caption>
  178. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:104px; top:9px; width:100px; height:19px; "/>
  179. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:222px; top:10px; width:100px; height:19px; "/>
  180. <button id="button1" class="btn1_letter2" style="left:345px; top:7px; width:56px; height:22px; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. if( model.getValue("/root/send/srchfromdd") == ""){
  185. messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  186. return;
  187. }
  188. if( model.getValue("/root/send/srchtodd") == "" ){
  189. messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  190. return;
  191. }
  192. if( submit("TRAVT01800") ){
  193. }
  194. model.refresh();
  195. ]]>
  196. </script>
  197. </button>
  198. <line id="line4" class="line_4" style="x1:334px; y1:7px; x2:334px; y2:29px; "/>
  199. </group>
  200. <datagrid id="dtg_avtmlist" nodeset="/root/main/avtmlist/item" scroll="auto" caption="이식번호^환자번호^환자명^수술일자^수술명" colsep="^" colwidth="58, 58, 64, 75, 167, 100" dataheight="23" ellipsis="true" explorerbar="sortmove" focuscolor="#b9e5fb" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:55px; width:445px; height:410px; text-align:center; ">
  201. <col ref="recvno" type="output"/>
  202. <col ref="pid" type="output"/>
  203. <col ref="hngnm" type="output"/>
  204. <col ref="opdd" type="output" format="yyyy-mm-dd"/>
  205. <col ref="opengnm" type="output" style="text-align:left; "/>
  206. <col ref="ophngnm" visibility="hidden"/>
  207. <script type="javascript" ev:event="onaftersort">
  208. <![CDATA[
  209. dtg_avtmlist.gridToInstance();
  210. ]]>
  211. </script>
  212. </datagrid>
  213. <datagrid id="dtg_prcdlst" nodeset="/root/main/bscdlstdtl/item" scroll="auto" caption="코드^명칭" colsep="^" colwidth="100, 321, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortmove" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:490px; width:445px; height:245px; text-align:center; ">
  214. <col ref="etcdetlcd" type="output"/>
  215. <col ref="etcdetlnm" type="output" style="text-align:left; "/>
  216. <col ref="clscd" visibility="hidden"/>
  217. <col ref="etccd" visibility="hidden"/>
  218. <col ref="etcdetlcdkey" visibility="hidden"/>
  219. <col ref="etcitemcnts" visibility="hidden"/>
  220. <col ref="etcitemcnts2" visibility="hidden"/>
  221. <col ref="useyn" visibility="hidden"/>
  222. <script type="javascript" ev:event="onaftersort">
  223. <![CDATA[
  224. dtg_prcdlst.gridToInstance();
  225. ]]>
  226. </script>
  227. </datagrid>
  228. <line id="line2" class="line_1" style="x1:0px; y1:485px; x2:446px; y2:485px; "/>
  229. <line id="line3" class="line_1" style="x1:450px; y1:70px; x2:1192px; y2:70px; "/>
  230. <caption id="caption1" class="tit_2" style="left:0px; top:470px; width:135px; height:13px; ">처방코드</caption>
  231. <button id="btn_excsave" class="btn2_letter4" style="left:1127px; top:49px; width:64px; height:19px; ">
  232. <caption>엑셀저장</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var filename = window.fileDialog("save",",",false,"조직은행 수익집계_"+getCurrentDate(),"xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  236. if (filename != "")
  237. {
  238. dtg_schblist.saveExcel(filename);
  239. }
  240. ]]>
  241. </script>
  242. </button>
  243. <button id="btn_etcisave" class="btn5_letter6" visibility="visible" style="left:450px; top:48px; width:86px; height:19px; ">
  244. <caption>수익자료생성</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. model.removeNodeset("/root/main/schblst");
  248. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  249. model.setValue("/root/send/srchuid", getUserId());
  250. submit("TXAVT01801");
  251. model.refresh();
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_srch" class="btn5_letter4" visibility="visible" style="left:539px; top:48px; width:64px; height:19px; ">
  256. <caption>자료조회</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. model.removeNodeset("/root/main/schblst");
  260. if(submit("TRAVT01801")){
  261. var Cnt = getNodesetCount("/root/main/schblst/item");
  262. if( Cnt > 0 ){
  263. dtg_schblist.subtotalposition = "below";
  264. dtg_schblist.multitotals = true;
  265. dtg_schblist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "font-weight:bold; background-color:#ffff99; color:#669900; ", 1, "합계", false);
  266. dtg_schblist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "font-weight:bold; background-color:#ffff99; color:#669900; ", 1, "합계", false);
  267. }
  268. }
  269. model.refresh();
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="button4" class="btn5_letter3" visibility="visible" style="left:606px; top:48px; width:53px; height:19px; ">
  274. <caption>삭 제</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. if ( messageBox("조회된 수익자료를", "Q001", "") == 6 ) {
  278. if( submit("TXAVT01800")){
  279. model.removeNodeset("/root/main/schblst");
  280. btn_srch.dispatch("DOMActivate");
  281. }
  282. model.refresh();
  283. }
  284. ]]>
  285. </script>
  286. </button>
  287. </group>
  288. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  289. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  290. <caption>출력</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. ]]>
  294. </script>
  295. </button>
  296. </group>
  297. </xhtml:body>
  298. </xhtml:html>