SPPAO00401_카드매출전표출력.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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_cvan>
  20. <cvan>
  21. <cvan_pid/>
  22. <cvan_aprvflag/>
  23. <cvan_aprvdd/>
  24. <cvan_aprvtm/>
  25. <cvan_aprvno/>
  26. <cvan_ordtype/>
  27. <cvan_instcd/>
  28. <cvan_keyinptflag/>
  29. <cvan_cardcmpycd/>
  30. <cvan_cardno/>
  31. <cvan_vancd/>
  32. <cvan_allotmm/>
  33. <cvan_cardamt/>
  34. <cvan_valiterm/>
  35. <cvan_trmnno/>
  36. <cvan_rcptexecdd/>
  37. <cvan_rcpttm/>
  38. <cvan_rcptrid/>
  39. <cvan_remfact/>
  40. <cvan_fstrgstrid/>
  41. <cvan_fstrgstdt/>
  42. <cvan_lastupdtrid/>
  43. <cvan_lastupdtdt/>
  44. <cvan_elctsignkey/>
  45. <cvan_elctsigncnts/>
  46. <cvan_carddepoamt/>
  47. <cvan_coms/>
  48. <cvan_deporid/>
  49. <cvan_depodd/>
  50. <cvan_depotm/>
  51. <cvan_mig/>
  52. <cvan_swipedata/>
  53. <cvan_datalength/>
  54. </cvan>
  55. </h_cvan>
  56. </main>
  57. <send>
  58. <pid/>
  59. <aprvfromdd/>
  60. <aprvtodd/>
  61. <aprvsrchflag/>
  62. <ioflag/>
  63. </send>
  64. <init>
  65. <P0076list>
  66. <P0076>
  67. <cdid/>
  68. <cdnm/>
  69. </P0076>
  70. </P0076list>
  71. <P0390list>
  72. <P0390>
  73. <cdid/>
  74. <cdnm/>
  75. </P0390>
  76. </P0390list>
  77. </init>
  78. <hidden/>
  79. </root>
  80. </instance>
  81. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  82. <submission id="TRPAO00499" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/h_cvan"/>
  83. </model>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. fInit();
  94. fComCDInit();
  95. if (checkOpener())
  96. {
  97. var SPPAO00401_PID_PARM = opener.javascript.getParameter("SPPAO00401_PID_PARM");
  98. opener.javascript.setParameter("SPPAO00401_PID_PARM","");
  99. if (SPPAO00401_PID_PARM != null && SPPAO00401_PID_PARM != "" && SPPAO00401_PID_PARM != " " && SPPAO00401_PID_PARM != "-")
  100. {
  101. model.setValue("/root/send/pid",SPPAO00401_PID_PARM);
  102. model.refresh();
  103. fCvanRef();
  104. }
  105. }
  106. ]]>
  107. </script>
  108. <script type="javascript">
  109. <![CDATA[
  110. function fInit(){
  111. model.resetInstanceNode("/root/send");
  112. model.removeNodeset("/root/main/h_cvan/cvan");
  113. model.setValue("/root/send/aprvfromdd",getCurrentDate());
  114. model.setValue("/root/send/aprvtodd",getCurrentDate());
  115. model.setValue("/root/send/ioflag","O");
  116. //if(getGlobalVariable("SPPAO02102_signpad_kind","p") != "sign-1000") {
  117. // btn_sign.attribute("visibility") = "hidden";
  118. //}
  119. datagrid1.rebuild();
  120. model.refresh();
  121. }
  122. function fComCDInit(){
  123. zbcfGetCodeList(
  124. new Array("P0076","P0390"),
  125. new Array("/root/init/P0076list"
  126. ,"/root/init/P0390list"
  127. )
  128. );
  129. }
  130. function fCvanRef(){
  131. var pid = model.getValue("/root/send/pid");
  132. if (pid == null || pid == "" || pid == " " || pid == "-"){
  133. messageBox("환자번호 입력후 조회하십시요!","E999","");
  134. return false;
  135. }
  136. model.removeNodeset("/root/main/h_cvan/cvan");
  137. datagrid1.rebuild();
  138. submit("TRPAO00499");
  139. }
  140. ]]>
  141. </script>
  142. </xhtml:head>
  143. <xhtml:body pagewidth="1100" pageheight="500">
  144. <group id="group2" style="left:2px; top:18px; width:1095px; height:35px; vertical-align:top; background-color:#fffbf2; border-color:#ffd799; ">
  145. <shape id="roundrect1" style="left:0px; top:0px; width:1095px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  146. <line id="line13" class="line_4" style="x1:917px; y1:6px; x2:917px; y2:28px; "/>
  147. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:91px; height:17px; ">환자번호 :</caption>
  148. <input id="input1" ref="/root/send/pid" maxlength="10" style="left:110px; top:9px; width:100px; height:19px; ">
  149. <script type="javascript" ev:event="onkeypress">
  150. <![CDATA[
  151. if(event.keyCode == "13") {
  152. setInputNodeCurText();
  153. fCvanRef();
  154. }
  155. ]]>
  156. </script>
  157. </input>
  158. <caption id="caption1" class="search_name" style="left:220px; top:10px; width:91px; height:17px; ">승인일자 :</caption>
  159. <input id="input2" ref="/root/send/aprvfromdd" inputtype="date" style="left:315px; top:9px; width:100px; height:19px; "/>
  160. <select1 id="radio1" ref="/root/send/ioflag" appearance="full" cols="2" overflow="visible" style="left:550px; top:10px; width:140px; height:20px; border-style:none; ">
  161. <choices>
  162. <item>
  163. <label>외래</label>
  164. <value>O</value>
  165. </item>
  166. <item>
  167. <label>입원</label>
  168. <value>I</value>
  169. </item>
  170. </choices>
  171. </select1>
  172. <caption id="caption2" style="left:420px; top:10px; width:20px; height:20px; ">~</caption>
  173. <input id="input3" ref="/root/send/aprvtodd" inputtype="date" style="left:435px; top:9px; width:100px; height:19px; "/>
  174. <button id="button1" class="btn1_letter2" style="left:926px; top:7px; width:56px; height:22px; ">
  175. <caption>조회</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. fCvanRef();
  179. ]]>
  180. </script>
  181. </button>
  182. <button id="button2" class="btn4_letter6" style="left:985px; top:7px; width:104px; height:22px; ">
  183. <caption>카드전표출력</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. //선택후 출력하도록 체크
  187. var currow = datagrid1.row;
  188. if (currow < 1){
  189. messageBox("내역을 선택하신 후에 출력하십시요!","E999","");
  190. return;
  191. }
  192. model.removeNodeset("/root/temp/receipt");
  193. model.makeNode("/root/temp/receipt/pid");
  194. model.makeNode("/root/temp/receipt/aprvflag");
  195. model.makeNode("/root/temp/receipt/aprvdd");
  196. model.makeNode("/root/temp/receipt/aprvtm");
  197. model.makeNode("/root/temp/receipt/aprvno");
  198. model.makeNode("/root/temp/receipt/ordtype");
  199. model.makeNode("/root/temp/receipt/instcd");
  200. model.makeNode("/root/temp/receipt/ordtype");
  201. model.setvalue("/root/temp/receipt/pid" , model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_pid"));
  202. model.setvalue("/root/temp/receipt/aprvflag" , model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvflag"));
  203. model.setvalue("/root/temp/receipt/aprvdd" , model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvdd"));
  204. model.setvalue("/root/temp/receipt/aprvtm" , model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvtm"));
  205. model.setvalue("/root/temp/receipt/aprvno" , model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvno"));
  206. model.setvalue("/root/temp/receipt/ordtype" , model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_ordtype"));
  207. model.setvalue("/root/temp/receipt/instcd" , model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_instcd"));
  208. model.setValue("/root/temp/receipt/ordtype", "카드전표재출력");
  209. modal("SPPAO01900", "1", "200", "200", "SPPAO01900", "", "");
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="btn_sign" class="btn1_letter4" style="left:831px; top:7; width:80px; height:22px; ">
  214. <caption>서명보기</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var currow = datagrid1.row;
  218. if (currow < 1){
  219. messageBox("내역을 선택하신 후에 출력하십시요!","E999","");
  220. return;
  221. }
  222. var parm = model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_pid") + "▦" + //PID
  223. model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_cardamt") + "▦" + //수납대상금액
  224. model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvflag") + "▦" + //승인구분
  225. model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvdd") + "▦" + //승인일자
  226. model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvtm") + "▦" + //승인시간
  227. model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_aprvno") + "▦" +//승인번호
  228. model.getValue("/root/main/h_cvan/cvan["+ currow +"]/cvan_instcd") + "▦" //기관코드
  229. ;
  230. setParameter("SPPAO02101_PARM",parm);
  231. setParameter("SPPAO02101_CALLER","SPPAO00401");
  232. modal("SPPAO02101", "1","400", "400", "SPPAO02101", "", "", "sysmenu:hidden;");
  233. ]]>
  234. </script>
  235. </button>
  236. </group>
  237. <datagrid id="datagrid1" nodeset="/root/main/h_cvan/cvan" caption="승인구분^카드회사^카드번호^유효기간^할부^결제금액^승인번호^승인일자^승인시간^작업자^작업시간" colsep="^" colwidth="57, 100, 158, 63, 39, 100, 113, 87, 73, 93, 184" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:60px; width:1095px; height:430px; ">
  238. <col disabled="true" ref="cvan_aprvflag" type="combo">
  239. <choices>
  240. <itemset nodeset="/root/init/P0390list/P0390">
  241. <label ref="cdnm"/>
  242. <value ref="cdid"/>
  243. </itemset>
  244. </choices>
  245. </col>
  246. <col disabled="true" ref="cvan_cardcmpycd" type="combo">
  247. <choices>
  248. <itemset nodeset="/root/init/P0076list/P0076">
  249. <label ref="cdnm"/>
  250. <value ref="cdid"/>
  251. </itemset>
  252. </choices>
  253. </col>
  254. <col ref="cvan_cardno"/>
  255. <col ref="cvan_valiterm"/>
  256. <col ref="cvan_allotmm"/>
  257. <col ref="cvan_cardamt" format="(-)#,###" style="text-align:right; "/>
  258. <col ref="cvan_aprvno"/>
  259. <col ref="cvan_aprvdd" format="yyyy-mm-dd"/>
  260. <col ref="cvan_aprvtm" format="hh:nn:ss"/>
  261. <col ref="cvan_fstrgstrid"/>
  262. <col ref="cvan_fstrgstdt"/>
  263. </datagrid>
  264. <line id="line1" class="line_1" style="x1:2px; y1:55px; x2:1097; y2:55px; "/>
  265. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:191px; height:14px; ">카드매출전표출력</caption>
  266. </xhtml:body>
  267. </xhtml:html>