SMSDT06400_사회사업자선진료대장.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMSDT06400.사회사업 자선진료대장.xrw
  4. * 설 명 : 사회사업 자선진료대장
  5. * 작 성 자 : 박성호
  6. * 작 성 일 : 2008.11.07
  7. * 수정이력 :
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>사회사업 자선진료대장</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <chacinfo>
  19. <chaclist>
  20. <ordflagnm/>
  21. <discunconm/>
  22. <orgpatcnt/>
  23. <yearpatcnt/>
  24. <totamt/>
  25. <totinsubamt/>
  26. <outeraidamt/>
  27. <rcptamt/>
  28. <totownbamt/>
  29. <suppamt/>
  30. <aidsuppamt/>
  31. <supprate/>
  32. <ownsupprate/>
  33. </chaclist>
  34. </chacinfo>
  35. <search>
  36. <fromdd/>
  37. <todd/>
  38. <fromentryy/>
  39. <fromendyy/>
  40. <toendyy/>
  41. <toentryy/>
  42. <flag>2</flag>
  43. </search>
  44. </main>
  45. <send>
  46. <search/>
  47. </send>
  48. <init/>
  49. <hidden/>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. fInit();
  63. ]]>
  64. </script>
  65. <submission id="TRSDT06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/chacinfo"/>
  66. </model>
  67. <script type="javascript">
  68. <![CDATA[
  69. /**========================================================================================================================================
  70. * 조회기간 그리드초기화
  71. =========================================================================================================================================*/
  72. function fInit(){
  73. model.removeNodeset("/root/main/chacinfo/chaclist");
  74. cmb_sumflag.select(0);
  75. var currentDate = getCurrentDate();
  76. var LastDate=currentDate.toDate().getAddDate(-1,"M").getDateFormat();
  77. var LastDateYM=LastDate.substr(0,6);
  78. var CurrentDateYY=currentDate.substring(0,4);
  79. model.setValue("/root/main/search/fromdd" ,LastDateYM );
  80. model.makeValue("/root/main/search/fromentryy",CurrentDateYY);
  81. //model.setValue("/root/main/cond/todd" ,currentDate.substr(0, 6) );
  82. // 그리드초기화
  83. model.removeNodeset(grd_list.nodeset);
  84. model.refresh();
  85. }
  86. /**========================================================================================================================================
  87. * 조회
  88. =========================================================================================================================================*/
  89. function fSearch(){
  90. //var fromdd = model.getValue("/root/main/search/fromdd") +"01";
  91. if (cmb_sumflag.value == "1")
  92. {
  93. var fromdd = model.getValue("/root/main/search/fromdd");
  94. if(isNull(fromdd))
  95. {
  96. messageBox("조회기간은","I003");
  97. model.setFocus("ipt_fromdd");
  98. return;
  99. }
  100. }
  101. else
  102. {
  103. var fromdd = model.getValue("/root/main/search/fromentryy");
  104. if(isNull(fromdd))
  105. {
  106. messageBox("조회년도는","I003");
  107. model.setFocus("ipt_fromentryy");
  108. return;
  109. }
  110. }
  111. var flag = model.getValue("/root/main/search/flag");
  112. model.removeNodeset("/root/send/search");
  113. model.makeValue("/root/send/search/fromdd", fromdd);
  114. model.makeValue("/root/send/search/flag", flag);
  115. //grid merge
  116. grd_list.mergeCells = "bycolrec";
  117. grd_list.mergeCol(0) = true;
  118. grd_list.mergeCol(1) = true;
  119. grd_list.mergeCol(2) = false;
  120. grd_list.mergeCol(3) = false;
  121. grd_list.mergeCol(4) = false;
  122. grd_list.mergeCol(5) = false;
  123. grd_list.mergeCol(6) = false;
  124. grd_list.mergeCol(7) = false;
  125. grd_list.mergeCol(8) = false;
  126. grd_list.mergeCol(9) = false;
  127. grd_list.mergeCol(10) = false;
  128. grd_list.mergeCol(11) = false;
  129. grd_list.mergeCol(12) = false;
  130. if (submit("TRSDT06401", false) == true)
  131. {
  132. }
  133. else
  134. {
  135. }
  136. }
  137. /**========================================================================================================================================
  138. * 엑셀저장 버튼 클릭시
  139. =========================================================================================================================================*/
  140. function fExcel() {
  141. if (grd_list.rows <= 3) {
  142. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  143. return;
  144. }
  145. var fileName = window.fileDialog("save", ",", false, "사회사업 자선진료대장", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  146. if (fileName != ""){
  147. grd_list.saveExcel(fileName, "SheetName", false, false, "", "", false);
  148. }
  149. }
  150. ]]>
  151. </script>
  152. </xhtml:head>
  153. <xhtml:body guideline="1,1195;1,1191;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  154. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  155. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:224px; height:14px; ">사회사업 자선진료대장</caption>
  156. </group>
  157. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  158. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  159. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  160. <caption>초기화</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. fInit();
  164. ]]>
  165. </script>
  166. </button>
  167. </group>
  168. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  169. <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:195px; height:14px; ">사회사업 자선진료대장</caption>
  170. <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:1190px; y2:72px; "/>
  171. <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  172. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  173. <button id="button2" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  174. <caption>조회</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. fSearch();
  178. model.refresh();
  179. ]]>
  180. </script>
  181. </button>
  182. <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  183. <caption id="cap1" visibility="hidden" style="left:415px; top:8px; width:25px; height:20px; text-align:center; ">~</caption>
  184. <caption id="caption1" class="search_name" style="left:240px; top:10px; width:100px; height:17px; ">조회기간 :</caption>
  185. <caption id="caption2" class="search_name" style="left:239px; top:10px; width:100px; height:17px; ">조회년도:</caption>
  186. <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" navindex="3" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:445px; top:8px; width:73px; height:19px; "/>
  187. <caption id="caption23" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">조회구분 :</caption>
  188. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:332px; top:8px; width:73px; height:19px; "/>
  189. <input id="ipt_toentryy" ref="/root/main/search/toentryy" class="input_search" navindex="2" visibility="hidden" inputtype="date" format="yyyy" style="left:446px; top:8px; width:58px; height:19px; "/>
  190. <input id="ipt_fromentryy" ref="/root/main/search/fromentryy" class="input_search" navindex="2" visibility="hidden" inputtype="date" format="yyyy" style="left:332px; top:8px; width:58px; height:19px; "/>
  191. <select1 id="cmb_sumflag" ref="/root/main/search/flag" navindex="1" appearance="minimal" style="left:110px; top:10px; width:85px; height:19px; ">
  192. <choices>
  193. <item>
  194. <label>월별</label>
  195. <value>1</value>
  196. </item>
  197. <item>
  198. <label>년도별</label>
  199. <value>2</value>
  200. </item>
  201. </choices>
  202. <script type="javascript" ev:event="xforms-value-changed">
  203. <![CDATA[
  204. var CurrentDate=getCurrentDate();
  205. if(cmb_sumflag.value=='1')
  206. {
  207. ipt_fromdd.visible=true;
  208. //ipt_todd.visible=true;
  209. ipt_fromentryy.visible=false;
  210. //ipt_toentryy.visible=false;
  211. //cap1.visible=true;
  212. caption1.visible=true;
  213. caption2.visible=false;
  214. //var CurrentDateYM=CurrentDate.substr(0,6);
  215. //model.makeValue("/root/main/search/fromdd",CurrentDateYM);
  216. //model.makeValue("/root/main/search/todd",CurrentDateYM);
  217. //model.removeNodeset("/root/main/search/entryy");
  218. }
  219. else
  220. {
  221. ipt_fromdd.visible=false;
  222. //ipt_todd.visible=false;
  223. ipt_fromentryy.visible=true;
  224. //ipt_toentryy.visible=true;
  225. //cap1.visible=true;
  226. caption1.visible=false;
  227. caption2.visible=true;
  228. //var CurrentDateYY=CurrentDate.substring(0,4);
  229. //model.makeValue("/root/main/search/fromentryy",CurrentDateYY);
  230. //model.makeValue("/root/main/search/toentryy",CurrentDateYY);
  231. //model.removeNodeset("/root/main/search/fromdd");
  232. //model.removeNodeset("/root/main/search/todd");
  233. //model.removeNodeset("");
  234. }
  235. //model.removeNodeset("/root/send/reqdata");
  236. //model.makeNode("/root/send/reqdata");
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </select1>
  241. </group>
  242. <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:51px; width:64px; height:19px; ">
  243. <caption>엑셀저장</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. fExcel();
  247. ]]>
  248. </script>
  249. </button>
  250. <datagrid id="grd_list" nodeset="/root/main/chacinfo/chaclist" class="datagrid1" caption="구분^구분^사회사업 자선환자^사회사업 자선환자^사회사업 자선진료비^사회사업 자선진료비^사회사업 자선진료비^사회사업 자선진료비^사회사업 자선진료비^사회사업 자선진료비^사회사업 자선진료비^총액대비&#xA;보조액^환자부담액&#xA;대비보조율^전월대비실적비교^장소^장소^장소^장소명^장소^담당자|구분^구분^실인원^연인원^총액^납부액^납부액^납부액^납부액^보조액^감면액^총액대비&#xA;보조액^환자부담액&#xA;대비보조율^협진의뢰평균회신일^장소^장소^장소^장소명^장소^담당자|구분^구분^실인원^연인원^총액^공단청구액^외부후원액^본인납부액^총납부액^보조액^감면액^총액대비&#xA;보조액^환자부담액&#xA;대비보조율^협진의뢰평균회신일^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="44, 195, 80, 80, 100, 100, 80, 80, 80, 89, 88, 80, 80" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:1px; top:75px; width:1190px; height:664px; text-align:center; ">
  251. <col ref="ordflagnm"/>
  252. <col ref="discunconm" format="yyyy-mm" style="text-align:center; "/>
  253. <col ref="orgpatcnt" format="(-)#,###" style="text-align:center; "/>
  254. <col ref="yearpatcnt" format="(-)#,###" style="text-align:center; "/>
  255. <col ref="totamt" format="(-)#,###" style="text-align:center; "/>
  256. <col ref="totinsubamt" format="(-)#,###" style="text-align:center; "/>
  257. <col ref="outeraidamt" format="(-)#,###" style="text-align:center; "/>
  258. <col ref="rcptamt" format="(-)#,###" style="text-align:center; "/>
  259. <col ref="totownbamt" format="(-)#,###" style="text-align:center; "/>
  260. <col ref="suppamt" format="(-)#,###" style="text-align:center; "/>
  261. <col ref="aidsuppamt" format="(-)#,###"/>
  262. <col ref="supprate" style="text-align:center; "/>
  263. <col ref="ownsupprate" format="(-)#,###.#" style="text-align:center; "/>
  264. </datagrid>
  265. </group>
  266. </xhtml:body>
  267. </xhtml:html>