SPPAO00403_현금영수증전표.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPAO00401_카드매출전표출력.xrw
  4. * 설 명 : 현금매출전표출력
  5. * 설 계 자 : 유정란
  6. * 작 성 자 : 유정란
  7. * 작 성 일 : 2008.10.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <h_svan>
  20. <svan>
  21. <svan_pid/>
  22. <svan_aprvflag/>
  23. <svan_aprvdd/>
  24. <svan_aprvtm/>
  25. <svan_aprvno/>
  26. <svan_instcd/>
  27. <svan_vancd/>
  28. <svan_keyinptflag/>
  29. <svan_indinstflag/>
  30. <svan_qualcnfmflag/>
  31. <svan_qualcnfmno/>
  32. <svan_cashamt/>
  33. <svan_trmnno/>
  34. <svan_rcptexecdd/>
  35. <svan_rcpttm/>
  36. <svan_rcptrid/>
  37. <svan_remfact/>
  38. <svan_fstrgstrid/>
  39. <svan_fstrgstdt/>
  40. <svan_lastupdtrid/>
  41. <svan_lastupdtdt/>
  42. </svan>
  43. </h_svan>
  44. </main>
  45. <send>
  46. <pid/>
  47. <aprvfromdd/>
  48. <aprvtodd/>
  49. <aprvsrchflag/>
  50. <ioflag/>
  51. <rcptrid/>
  52. </send>
  53. <init>
  54. <P0390list>
  55. <P0390>
  56. <cdid/>
  57. <cdnm/>
  58. </P0390>
  59. </P0390list>
  60. <P0073list>
  61. <P0073>
  62. <cdid/>
  63. <cdnm/>
  64. </P0073>
  65. </P0073list>
  66. <P0354list>
  67. <P0354>
  68. <cdid/>
  69. <cdnm/>
  70. </P0354>
  71. </P0354list>
  72. </init>
  73. <hidden/>
  74. </root>
  75. </instance>
  76. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  77. <submission id="TRPAO00552" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/h_svan"/>
  78. </model>
  79. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  80. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. fInit();
  89. fComCDInit();
  90. if (checkOpener())
  91. {
  92. var SPPAO00401_PID_PARM = opener.javascript.getParameter("SPPAO00401_PID_PARM");
  93. opener.javascript.setParameter("SPPAO00401_PID_PARM","");
  94. if (SPPAO00401_PID_PARM != null && SPPAO00401_PID_PARM != "" && SPPAO00401_PID_PARM != " " && SPPAO00401_PID_PARM != "-")
  95. {
  96. model.setValue("/root/send/pid",SPPAO00401_PID_PARM);
  97. model.refresh();
  98. fCvanRef();
  99. }
  100. var SMPAS00172_PARM = opener.javascript.getParameter("SMPAS00172_PARM");
  101. opener.javascript.setParameter("SMPAS00172_PARM","");
  102. if (SMPAS00172_PARM != null && SMPAS00172_PARM != "" && SMPAS00172_PARM != " " && SMPAS00172_PARM != "-")
  103. {
  104. var array_parm = SMPAS00172_PARM.split("▦");
  105. model.setValue("/root/send/pid" , "");
  106. model.setValue("/root/send/aprvfromdd" , array_parm[0]); //시작일자
  107. model.setValue("/root/send/aprvtodd" , array_parm[1]); //종료일자
  108. model.setValue("/root/send/rcptrid" , array_parm[2]); //수납자ID
  109. fCvanRef();
  110. model.refresh();
  111. }
  112. }
  113. ]]>
  114. </script>
  115. <script type="javascript">
  116. <![CDATA[
  117. function fInit(){
  118. model.resetInstanceNode("/root/send");
  119. model.removeNodeset("/root/main/h_svan/svan");
  120. model.setValue("/root/send/aprvfromdd",getCurrentDate());
  121. model.setValue("/root/send/aprvtodd",getCurrentDate());
  122. model.setValue("/root/send/ioflag","O");
  123. datagrid1.rebuild();
  124. model.refresh();
  125. }
  126. function fComCDInit(){
  127. zbcfGetCodeList(
  128. new Array("P0073","P0390","P0354"),
  129. new Array("/root/init/P0073list"
  130. ,"/root/init/P0390list"
  131. ,"/root/init/P0354list"
  132. )
  133. );
  134. }
  135. function fCvanRef(){
  136. var pid = model.getValue("/root/send/pid");
  137. var rcptrid = model.getValue("/root/send/rcptrid");
  138. if (rcptrid == null){
  139. if (pid == null || pid == "" || pid == " " || pid == "-"){
  140. messageBox("환자번호 입력후 조회하십시요!","E999","");
  141. return false;
  142. }
  143. }
  144. model.removeNodeset("/root/main/h_svan/svan");
  145. datagrid1.rebuild();
  146. submit("TRPAO00552");
  147. }
  148. ]]>
  149. </script>
  150. </xhtml:head>
  151. <xhtml:body pagewidth="1100" pageheight="500">
  152. <group id="group2" style="left:0px; top:18px; width:1095px; height:35px; vertical-align:top; background-color:#fffbf2; border-color:#ffd799; ">
  153. <shape id="roundrect1" style="left:0px; top:0px; width:1095px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  154. <line id="line13" class="line_4" style="x1:915px; y1:6px; x2:915px; y2:28px; "/>
  155. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:91px; height:17px; ">환자번호 :</caption>
  156. <input id="input1" ref="/root/send/pid" maxlength="10" style="left:110px; top:9px; width:100px; height:19px; ">
  157. <script type="javascript" ev:event="onkeypress">
  158. <![CDATA[
  159. if(event.keyCode == "13") {
  160. setInputNodeCurText();
  161. fCvanRef();
  162. }
  163. ]]>
  164. </script>
  165. </input>
  166. <caption id="caption1" class="search_name" style="left:220px; top:10px; width:91px; height:17px; ">승인일자 :</caption>
  167. <input id="input2" ref="/root/send/aprvfromdd" inputtype="date" style="left:315px; top:9px; width:100px; height:19px; "/>
  168. <select1 id="radio1" ref="/root/send/ioflag" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:780px; top:10px; width:90px; height:20px; border-style:none; ">
  169. <choices>
  170. <item>
  171. <label>외래</label>
  172. <value>O</value>
  173. </item>
  174. <item>
  175. <label>입원</label>
  176. <value>I</value>
  177. </item>
  178. </choices>
  179. </select1>
  180. <caption id="caption2" style="left:420px; top:10px; width:20px; height:20px; ">~</caption>
  181. <input id="input3" ref="/root/send/aprvtodd" inputtype="date" style="left:435px; top:9px; width:100px; height:19px; "/>
  182. <button id="button1" class="btn1_letter2" style="left:926px; top:7px; width:56px; height:22px; ">
  183. <caption>조회</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. fCvanRef();
  187. ]]>
  188. </script>
  189. </button>
  190. <button id="button2" class="btn4_letter6" style="left:985px; top:7px; width:104px; height:22px; ">
  191. <caption>승인전표출력</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. //선택후 출력하도록 체크
  195. var currow = datagrid1.row;
  196. if (currow < 1){
  197. messageBox("내역을 선택하신 후에 출력하십시요!","E999","");
  198. return;
  199. }
  200. model.removeNodeset("/root/temp/receipt");
  201. model.makeNode("/root/temp/receipt/pid");
  202. model.makeNode("/root/temp/receipt/aprvflag");
  203. model.makeNode("/root/temp/receipt/aprvdd");
  204. model.makeNode("/root/temp/receipt/aprvtm");
  205. model.makeNode("/root/temp/receipt/aprvno");
  206. model.makeNode("/root/temp/receipt/ordtype");
  207. model.makeNode("/root/temp/receipt/instcd");
  208. model.makeNode("/root/temp/receipt/ordtype");
  209. model.setvalue("/root/temp/receipt/pid" , model.getValue("/root/main/h_svan/svan["+ currow +"]/svan_pid"));
  210. model.setvalue("/root/temp/receipt/aprvflag" , model.getValue("/root/main/h_svan/svan["+ currow +"]/svan_aprvflag"));
  211. model.setvalue("/root/temp/receipt/aprvdd" , model.getValue("/root/main/h_svan/svan["+ currow +"]/svan_aprvdd"));
  212. model.setvalue("/root/temp/receipt/aprvtm" , model.getValue("/root/main/h_svan/svan["+ currow +"]/svan_aprvtm"));
  213. model.setvalue("/root/temp/receipt/aprvno" , model.getValue("/root/main/h_svan/svan["+ currow +"]/svan_aprvno"));
  214. model.setvalue("/root/temp/receipt/ordtype" , model.getValue("/root/main/h_svan/svan["+ currow +"]/svan_ordtype"));
  215. model.setvalue("/root/temp/receipt/instcd" , model.getValue("/root/main/h_svan/svan["+ currow +"]/svan_instcd"));
  216. model.setValue("/root/temp/receipt/ordtype", "카드전표재출력");
  217. modal("SPPAO01900", "1", "200", "200", "SPPAO01900", "", "");
  218. ]]>
  219. </script>
  220. </button>
  221. <caption id="caption4" class="search_name" style="left:548px; top:10px; width:86px; height:17px; ">수납자ID :</caption>
  222. <input id="input4" ref="/root/send/rcptrid" style="left:645px; top:9px; width:105px; height:19px; "/>
  223. </group>
  224. <datagrid id="datagrid1" nodeset="/root/main/h_svan/svan" caption="환자번호^승인구분^신분확인구분^신분확인번호^결제금액^개인/법인^승인번호^승인일자^시간^승인자^최종작업시간" colsep="^" colwidth="80, 57, 90, 122, 74, 62, 79, 74, 54, 88, 120" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:60px; width:1095px; height:430px; ">
  225. <col ref="svan_pid"/>
  226. <col disabled="true" ref="svan_aprvflag" type="combo">
  227. <choices>
  228. <itemset nodeset="/root/init/P0390list/P0390">
  229. <label ref="cdnm"/>
  230. <value ref="cdid"/>
  231. </itemset>
  232. </choices>
  233. </col>
  234. <col disabled="true" ref="svan_qualcnfmflag" type="combo" format="hh:nn:ss">
  235. <choices>
  236. <itemset nodeset="/root/init/P0073list/P0073">
  237. <label ref="cdnm"/>
  238. <value ref="cdid"/>
  239. </itemset>
  240. </choices>
  241. </col>
  242. <col ref="svan_qualcnfmno"/>
  243. <col ref="svan_cashamt" format="(-)#,###" style="text-align:right; "/>
  244. <col disabled="true" ref="svan_indinstflag" type="combo">
  245. <choices>
  246. <itemset nodeset="/root/init/P0354list/P0354">
  247. <label ref="cdnm"/>
  248. <value ref="cdid"/>
  249. </itemset>
  250. </choices>
  251. </col>
  252. <col ref="svan_aprvno"/>
  253. <col ref="svan_aprvdd" format="yyyy-mm-dd"/>
  254. <col ref="svan_aprvtm" format="hh:nn:ss"/>
  255. <col ref="svan_fstrgstrid"/>
  256. <col ref="svan_lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  257. </datagrid>
  258. <line id="line1" class="line_1" style="x1:0px; y1:55px; x2:1097px; y2:55px; "/>
  259. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:191px; height:14px; ">현금영수증전표출력</caption>
  260. </xhtml:body>
  261. </xhtml:html>