SMSTP00900_수익일보상호검증.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <baseinfo>
  11. <docuflag>1</docuflag>
  12. <ordflag>I</ordflag>
  13. </baseinfo>
  14. <statininfo>
  15. <ret>
  16. <col1/>
  17. <col2/>
  18. <col3/>
  19. <col4/>
  20. <col5/>
  21. <col6/>
  22. <col7/>
  23. <col8/>
  24. <col9/>
  25. <col10/>
  26. <col11/>
  27. <col12/>
  28. <col13/>
  29. <col14/>
  30. <col15/>
  31. <col16/>
  32. <col17/>
  33. <col18/>
  34. <col19/>
  35. <col20/>
  36. <col21/>
  37. <col22/>
  38. <col23/>
  39. <col24/>
  40. <col25/>
  41. <errflag/>
  42. </ret>
  43. </statininfo>
  44. </main>
  45. <send>
  46. <fromdd/>
  47. <todd/>
  48. <ordflag/>
  49. </send>
  50. <init>
  51. <grdform>
  52. <grdform>
  53. <grdtitle/>
  54. <colcount/>
  55. </grdform>
  56. </grdform>
  57. </init>
  58. <temp/>
  59. <hidden>
  60. <session>
  61. <userid/>
  62. <usernm/>
  63. <posinstcd/>
  64. <posinstnm/>
  65. <dutplcecd/>
  66. <dutplcenm/>
  67. <dutinstnm/>
  68. </session>
  69. </hidden>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. model.setValue("/root/send/ordflag", model.getValue("/root/main/baseinfo/ordflag"));
  75. if (submit("TRSTP00102")) {
  76. grd_statinlist.caption = model.getValue("/root/init/grdform/grdform/grdtitle");
  77. var colCount = model.getValue("/root/init/grdform/grdform/colcount");
  78. for (var i = colCount ; i <= grd_statinlist.cols ; i++) {
  79. grd_statinlist.colHidden(i) = true;
  80. }
  81. }
  82. fGetUserInfo2();
  83. // 날짜전날로 Default로 넣어주기
  84. var currentDate = getCurrentDate();
  85. var date = currentDate.toDate("YYYYMMDD");
  86. date.getAddDate(-1, "D");
  87. var prvDate = date.getDateFormat();
  88. ipt_fromdd.value = prvDate;
  89. ipt_todd.value = prvDate;
  90. model.refresh();
  91. ]]>
  92. </script>
  93. <submission id="TRSTP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statininfo"/>
  94. <submission id="TRSTP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grdform"/>
  95. </model>
  96. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  103. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  104. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  105. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  106. <script type="javascript">
  107. <![CDATA[
  108. var cash = 0;
  109. //로그인한 사용자 정보조회
  110. function fGetUserInfo2(){
  111. var sUserInfosS = getUserInfos();
  112. sUserInfosS = sUserInfosS + "|";
  113. var UserInfosS_Array = sUserInfosS.split("|");
  114. var userid = UserInfosS_Array[0]; //사용자번호
  115. var usernm = UserInfosS_Array[1]; //사용자이름
  116. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  117. var posinstnm = UserInfosS_Array[3]; //소속기관명
  118. var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
  119. var dutplcenm = UserInfosS_Array[5]; //근무지부서명
  120. var dutinstnm = UserInfosS_Array[7]; //근무지기관명
  121. model.setValue("/root/hidden/session/userid",userid);
  122. model.setValue("/root/hidden/session/usernm",usernm);
  123. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  124. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  125. model.setValue("/root/hidden/session/dutplcecd",dutplcecd);
  126. model.setValue("/root/hidden/session/dutplcenm",dutplcenm);
  127. model.setValue("/root/hidden/session/dutinstnm",dutinstnm);
  128. }
  129. ]]>
  130. </script>
  131. </xhtml:head>
  132. <xhtml:body>
  133. <group id="group3" style="left:0px; top:0px; width:1206px; height:13px; ">
  134. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">통계조회</caption>
  135. </group>
  136. <group id="group4" style="left:0px; top:18px; width:1203px; height:40px; ">
  137. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1203px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  138. <button id="btn_search" class="btn1_letter2" style="left:985px; top:10px; width:56px; height:22px; color:transparent; background-image:../../../com/commonweb/images/btn1_letter2.gif; border-color:transparent; ">
  139. <caption>조회</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. grd_statinlist.rebuildStyle();
  143. var fromdd = model.getValue("/root/send/fromdd");
  144. var todd = model.getValue("/root/send/todd");
  145. model.setValue("/root/send/ordflag",model.getValue("/root/main/baseinfo/ordflag"));
  146. var ordflag = model.getValue("/root/main/baseinfo/ordflag");
  147. if (submit("TRSTP00101")) {
  148. for( var i = 1 ; i < grd_statinlist.rows ; i++) {
  149. var errFlag = model.getValue("/root/main/statininfo/ret[" + i + " ]/errflag");
  150. if (errFlag == "Y") {
  151. for( var j = 1 ; j < grd_statinlist.cols ; j++) {
  152. if (grd_statinlist.valueMatrix(i, j) != '') {
  153. grd_statinlist.cellStyle("background-color",i,j,i,j) = "#ff0000";
  154. grd_statinlist.cellStyle("color",i,j,i,j) = "#ffffff";
  155. }
  156. }
  157. }
  158. }
  159. }
  160. grd_statinlist.refresh();
  161. ]]>
  162. </script>
  163. </button>
  164. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="7" visibility="visible" inputtype="date" style="left:335px; top:10px; width:90px; height:19px; "/>
  165. <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="7" inputtype="date" style="left:440px; top:10px; width:90px; height:19px; "/>
  166. <button id="btn_excel" class="btn1_letter4" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn6_letter4.gif" style="left:1053px; top:10px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter4.gif; ">
  167. <caption>EXCEL</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. var fromdd = model.getValue("/root/send/fromdd");
  171. var todd = model.getValue("/root/send/todd");
  172. //엑셀저장 여부(타이틀별)
  173. var fileName = window.fileDialog("save", ",", false, "수익일보상호검증("+fromdd+"~"+todd+")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  174. grd_statinlist.saveExcel(fileName, "수익일보상호검증("+fromdd+"~"+todd+")", false, false, "", "", false);
  175. ]]>
  176. </script>
  177. </button>
  178. <select1 id="cmb_ordflag" ref="/root/main/baseinfo/ordflag" appearance="minimal" style="left:104px; top:10px; width:115px; height:19px; ">
  179. <choices>
  180. <item>
  181. <label>입원</label>
  182. <value>I</value>
  183. </item>
  184. <item>
  185. <label>외래</label>
  186. <value>O</value>
  187. </item>
  188. </choices>
  189. <script type="javascript" ev:event="xforms-value-changed">
  190. <![CDATA[
  191. model.setValue("/root/send/ordflag", model.getValue("/root/main/baseinfo/ordflag"));
  192. if (submit("TRSTP00102")) {
  193. grd_statinlist.caption = model.getValue("/root/init/grdform/grdform/grdtitle");
  194. var colCount = model.getValue("/root/init/grdform/grdform/colcount");
  195. for (var i = 1 ; i <= colCount ; i++) {
  196. grd_statinlist.colHidden(i) = false;
  197. }
  198. for (var i = colCount ; i <= grd_statinlist.cols ; i++) {
  199. grd_statinlist.colHidden(i) = true;
  200. }
  201. }
  202. model.removeNodeset("/root/main/statininfo");
  203. model.refresh();
  204. ]]>
  205. </script>
  206. </select1>
  207. <caption id="caption6" class="search_name" style="left:15px; top:10px; width:98px; height:17px; ">진료구분</caption>
  208. <caption id="caption1" visibility="visible" style="left:427px; top:10px; width:15px; height:20px; ">~</caption>
  209. <caption id="caption2" class="search_name" style="left:245px; top:10px; width:98px; height:17px; ">조회기간</caption>
  210. <line id="line2" class="line_4" style="top:5px; x1:1046px; y1:9px; x2:1046px; y2:33px; border-color:#ffe4bb; border-left-style:solid; "/>
  211. <button id="button1" class="btn1_letter2" style="left:1136px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  212. <caption>출력</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. // 입원, 외래를 구분하여 출력
  216. var temp = model.getValue("/root/main/baseinfo/ordflag");
  217. if(temp == "O"){
  218. exeReportPreview("RPSTP00901", "XMLSTR", "", "", "false", "", "", "", "", "false");
  219. }else{
  220. exeReportPreview("RPSTP00902", "XMLSTR", "", "", "false", "", "", "", "", "false");
  221. }
  222. ]]>
  223. </script>
  224. </button>
  225. </group>
  226. <caption id="caption3" class="tit_2" style="left:0px; top:73px; width:181px; height:13px; ">수익일보상호검증</caption>
  227. <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1203px; y2:90px; "/>
  228. <datagrid id="grd_statinlist" nodeset="/root/main/statininfo/ret" class="datagrid2" caption="^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표^장표" colsep="^" colwidth="160, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,110, 110, 110, 110, 110, 110" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:1203px; height:654px; ">
  229. <col ref="col1" style="text-align:left; vertical-align:middle; "/>
  230. <col ref="col2" style="text-align:right; "/>
  231. <col ref="col3" style="text-align:right; "/>
  232. <col ref="col4" style="text-align:right; "/>
  233. <col ref="col5" style="text-align:right; "/>
  234. <col ref="col6" style="text-align:right; "/>
  235. <col ref="col7" style="text-align:right; "/>
  236. <col ref="col8" style="text-align:right; "/>
  237. <col ref="col9" style="text-align:right; "/>
  238. <col ref="col10" style="text-align:right; "/>
  239. <col ref="col11" style="text-align:right; "/>
  240. <col ref="col12" style="text-align:right; "/>
  241. <col ref="col13" style="text-align:right; "/>
  242. <col ref="col14" style="text-align:right; "/>
  243. <col ref="col15" style="text-align:right; "/>
  244. <col ref="col16" style="text-align:right; "/>
  245. <col ref="col17" style="text-align:right; "/>
  246. <col ref="col18" style="text-align:right; "/>
  247. <col ref="col19" style="text-align:right; "/>
  248. <col ref="col20" style="text-align:right; "/>
  249. <col ref="col21" style="text-align:right; "/>
  250. <col ref="col22" style="text-align:right; "/>
  251. <col ref="col23" style="text-align:right; "/>
  252. <col ref="col24" style="text-align:right; "/>
  253. <col ref="col25" style="left:2690px; top:32px; width:110px; height:23px; text-align:right; "/>
  254. </datagrid>
  255. <caption id="caption4" style="left:5px; top:751px; width:995px; height:20px; font-weight:bold; ">※ 전년대비의료수익현황, 예산대비의료수익현황은 매월 1일부터 말일까지 조회해야 상호검증이 가능합니다.</caption>
  256. </xhtml:body>
  257. </xhtml:html>