SPPAS00701_미수입금내역.xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <data1>
  11. <uncorcptlist/>
  12. </data1>
  13. </main>
  14. <send>
  15. <pid/>
  16. <rcptdd/>
  17. </send>
  18. <init>
  19. </init>
  20. <hidden>
  21. </hidden>
  22. </root>
  23. </instance>
  24. <script type="javascript" ev:event="xforms-ready">
  25. <![CDATA[
  26. if (checkOpener()) {
  27. var vpid = opener.javascript.getParameter("pid");
  28. var vrcptdd = opener.javascript.getParameter("rcptdd");
  29. if(vpid != null) {
  30. model.setValue("/root/send/pid", vpid);
  31. model.setValue("/root/send/rcptdd", vrcptdd);
  32. model.removeNodeset("/root/main/data1/uncorcptlist");
  33. submit("TRPAS00701");
  34. grd_uncolist.subtotal("sum", -1, grd_uncolist.colRef("rcptamt"), "#,###", "", 5, "입금 합계");
  35. grd_uncolist.refresh();
  36. }
  37. }
  38. ]]>
  39. </script>
  40. <submission id="TRPAS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/data1"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  46. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  47. <script type="javascript">
  48. <![CDATA[
  49. ]]>
  50. </script>
  51. </xhtml:head>
  52. <xhtml:body pagewidth="1050" pageheight="343" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  53. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1020px; height:316px; ">
  54. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:95px; height:13px; ">미수입금현황</caption>
  55. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:1019px; y2:20px; "/>
  56. <datagrid id="grd_uncolist" nodeset="/root/main/data1/uncorcptlist" class="datagrid2" caption="종결^진료&#xA;구분^등록번호^이름^미수&#xA;코드^미수명^입금&#xA;구분^진료일자^진료일자^진료과^진료의^보험&#xA;유형^발생일자^입금일자^미수금액^입금금액" colsep="^" colwidth="30, 30, 70, 65, 30, 110, 30, 80, 80, 80, 65, 30, 80, 80, 70, 70" dataheight="23" defaultrows="2" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" subtotalposition="below" navindex="7" style="left:0px; top:25px; width:1020px; height:291px; ">
  57. <col ref="endyn" style="text-align:center; "/>
  58. <col ref="ordtype" type="combo">
  59. <choices>
  60. <item>
  61. <label>입원</label>
  62. <value>I</value>
  63. </item>
  64. <item>
  65. <label>외래</label>
  66. <value>O</value>
  67. </item>
  68. <item>
  69. <label>응급</label>
  70. <value>E</value>
  71. </item>
  72. </choices>
  73. </col>
  74. <col ref="pid" style="text-align:center; "/>
  75. <col ref="hngnm" style="text-align:center; "/>
  76. <col ref="uncocd" style="text-align:center; "/>
  77. <col ref="discunconm" style="text-align:center; "/>
  78. <col ref="uncorcptflag" type="combo">
  79. <choices>
  80. <item>
  81. <label>발생</label>
  82. <value>1</value>
  83. </item>
  84. <item>
  85. <label>입금</label>
  86. <value>2</value>
  87. </item>
  88. <item>
  89. <label>대손</label>
  90. <value>3</value>
  91. </item>
  92. <item>
  93. <label>승인</label>
  94. <value>4</value>
  95. </item>
  96. </choices>
  97. </col>
  98. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  99. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  100. <col ref="orddeptnm" style="text-align:center; "/>
  101. <col ref="orddrnm" style="text-align:center; "/>
  102. <col ref="insukind" style="text-align:center; "/>
  103. <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  104. <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  105. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  106. <col ref="rcptamt" format="#,###" style="text-align:right; "/>
  107. </datagrid>
  108. <!-- 수정이력 20100223 JHP 여의도 기준 다른팀에서 작업하기 싫어서 원무팀에 넘긴 일정임 원무팀에서 본 화면 열때는 원래대로 다른 팀 화면에서 열때는 하단의 그리드 보여지도록 수정함.-->
  109. </group>
  110. <group id="group1" scroll="auto" style="left:0px; top:316px; width:1020px; height:27px; ">
  111. <button id="btn_confirm" class="btn4_letter2" navindex="8" visibility="hidden" style="left:900px; top:2px; width:56px; height:22px; ">
  112. <caption>확인</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. if ( checkOpener() ) {
  116. if(PatRefPamFlag == "SMP" || PatRefPamFlag == "SPP"){
  117. row = grd_patinfo.row;
  118. }else{
  119. row = grd_patinfo2.row;
  120. }
  121. opener.model.makeNode("/root/main/popupendflag");
  122. opener.model.setValue("/root/main/popupendflag", "cancel");
  123. if( row > 0 ){
  124. if( getNodesetCount("/root/main/patinfo/patinfolist") > 0 ){
  125. //합번된 등록번호 메세지 처리
  126. var sPid = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/pid");
  127. var sHngnm = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/hngnm");
  128. var sBindPid = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/bindpid");
  129. if( sBindPid != '' && sBindPid != '-' && sBindPid != ' '){
  130. var retValue = messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
  131. if( retValue == '6' ){
  132. try{
  133. model.resetInstanceNode("/root/send");
  134. model.setValue("/root/send/srchcond", "1");
  135. fChangeSearchCondition( '1' );
  136. model.setValue("/root/send/pid", sBindPid);
  137. model.refresh();
  138. btn_search.dispatch("DOMActivate");
  139. }catch(e){
  140. return false;
  141. }
  142. }
  143. return false;
  144. }
  145. if(PatRefPamFlag == "SMP" || PatRefPamFlag == "SPP"){
  146. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  147. }else{
  148. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo2.getNode( row ));
  149. }
  150. opener.model.makeNode("/root/main/popupendflag");
  151. opener.model.setValue("/root/main/popupendflag", "ok");
  152. }
  153. //else{
  154. // opener.model.setValue("/root/main/popupendflag", "cancel");
  155. //}
  156. //opener.model.refresh();
  157. //window.close();
  158. }else {
  159. //opener.model.setValue("/root/main/popupendflag", "cancel");
  160. messageBox("행이 정확히 선택되지", "E007");
  161. //opener.model.refresh();
  162. //window.close();
  163. }
  164. } else {
  165. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  166. //opener.model.setValue("/root/main/popupendflag", "cancel");
  167. //opener.model.refresh();
  168. //window.close();
  169. }
  170. opener.model.refresh();
  171. window.close();
  172. ]]>
  173. </script>
  174. </button>
  175. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:959px; top:2px; width:56px; height:22px; ">
  176. <caption>닫기</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. // opener.model.makeNode("/root/main/popupendflag");
  180. // opener.model.setValue("/root/main/popupendflag", "cancel");
  181. window.close();
  182. ]]>
  183. </script>
  184. </button>
  185. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1018px; y2:0px; "/>
  186. </group>
  187. </xhtml:body>
  188. </xhtml:html>