SMSDT06500_사회사업자선진료실적.xrw 15 KB

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