SMSDT05000_사회사업집단의료실천활동실적.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMSDT05000.집단의료사회사업실천활동실적.xrw
  4. * 설 명 : 집단의료사회사업실천활동실적
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2008.09.23
  7. * 수정이력 :
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <groupmediinfo>
  19. <groupmedilist>
  20. <cdnm/>
  21. <cnt3/>
  22. <psnno3/>
  23. <cnt4/>
  24. <psnno4/>
  25. <cnt5/>
  26. <psnno5/>
  27. <cnt6/>
  28. <psnno6/>
  29. <cnt7/>
  30. <psnno7/>
  31. <cnt8/>
  32. <psnno8/>
  33. <cnt9/>
  34. <psnno9/>
  35. <cnt10/>
  36. <psnno10/>
  37. <cnt11/>
  38. <psnno11/>
  39. <cnt12/>
  40. <psnno12/>
  41. <cnt1/>
  42. <psnno1/>
  43. <cnt2/>
  44. <psnno2/>
  45. <totcnt/>
  46. <totpsnno/>
  47. <bfcnt/>
  48. <bfpsnno/>
  49. <cntrate/>
  50. <psnnorate/>
  51. <befcompare/>
  52. </groupmedilist>
  53. </groupmediinfo>
  54. <groupmediworkinfo>
  55. <groupmediworklist>
  56. <cdnm/>
  57. <cnt1/>
  58. <psnno1/>
  59. <cnt2/>
  60. <psnno2/>
  61. <cnt3/>
  62. <psnno3/>
  63. <cnt4/>
  64. <psnno4/>
  65. <cnt5/>
  66. <psnno5/>
  67. <totcnt/>
  68. <totpsnno/>
  69. </groupmediworklist>
  70. </groupmediworkinfo>
  71. <cond>
  72. <fromdd/>
  73. <todd/>
  74. <sumflag>1</sumflag>
  75. <entryy/>
  76. </cond>
  77. </main>
  78. <send>
  79. <reqdata>
  80. </reqdata>
  81. </send>
  82. <init/>
  83. <hidden/>
  84. </root>
  85. </instance>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  92. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  93. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. fInit();
  97. model.toggle("case_month");
  98. ]]>
  99. </script>
  100. <submission id="TRSDT05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/groupmediinfo"/>
  101. <submission id="TRSDT05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/groupmediworkinfo"/>
  102. <bind id="cntrate" ref="/root/main/groupmediinfo/groupmedilist/cntrate" calculate="../totcnt - ../bfcnt"/>
  103. <bind id="psnnorate" ref="/root/main/groupmediinfo/groupmedilist/psnnorate" calculate="../totpsnno - ../bfpsnno"/>
  104. </model>
  105. <script type="javascript">
  106. <![CDATA[
  107. /**========================================================================================================================================
  108. * 조회기간 그리드초기화
  109. =========================================================================================================================================*/
  110. function fInit(){
  111. model.removeNodeset("/root/main/groupmediinfo/groupmedilist");
  112. cmb_sumflag.select(0);
  113. var currentDate = getCurrentDate();
  114. var currentYear = currentDate.substring(0, 4);
  115. var LastDate=currentDate.toDate().getAddDate(-1,"M").getDateFormat();
  116. var LastDateYM=LastDate.substr(0,6);
  117. model.setValue("/root/main/cond/entryy" ,currentYear);
  118. model.setValue("/root/main/cond/fromdd" ,LastDateYM );
  119. model.setValue("/root/main/cond/todd" ,LastDateYM);
  120. ipt_fromdd.visible = false;
  121. ipt_todd.visible = false;
  122. ipt_entryy.visible = true;
  123. cap1.visible = false;
  124. // 그리드초기화
  125. model.removeNodeset(grd_groupmedilist.nodeset);
  126. model.refresh();
  127. }
  128. /**========================================================================================================================================
  129. * 조회
  130. =========================================================================================================================================*/
  131. function fGetGroupMediInfo(){
  132. //var currentDate = getCurrentDate();
  133. //var currentYear = currentDate.substring(0, 4);
  134. //월별
  135. if(cmb_sumflag.value == '1'){
  136. model.toggle("case_month");
  137. ipt_entryy.visible = true;
  138. ipt_fromdd.visible = false;
  139. ipt_todd.visible = false;
  140. cap1.visible = false;
  141. var entryy = model.getValue("/root/main/cond/entryy");
  142. //model.setValue("/root/main/cond/entryy" ,currentYear);
  143. if(entryy ==""){
  144. messageBox("조회년도를","C001" );
  145. model.setFocus("ipt_entryy");
  146. model.removeNodeset(grd_groupmedilist.nodeset);
  147. model.refresh();
  148. return;
  149. }
  150. model.removeNodeset("/root/send/reqdata");
  151. model.makeNode("/root/send/reqdata");
  152. model.copyNode("/root/send/reqdata", "/root/main/cond");
  153. model.refresh();
  154. submit("TRSDT05001");
  155. fStat();
  156. }
  157. //업무분야별
  158. else if(cmb_sumflag.value == '2') {
  159. model.toggle("case_work");
  160. ipt_entryy.visible = false;
  161. ipt_fromdd.visible = true;
  162. ipt_todd.visible = true;
  163. cap1.visible = true;
  164. var fromdd = model.getValue("/root/main/cond/fromdd") +"01";
  165. var todd = model.getValue("/root/main/cond/todd")+ "31";
  166. var fdate=model.getValue("/root/main/cond/fromdd");
  167. var todate = model.getValue("/root/main/cond/todd");
  168. //alert(fromdd);
  169. //alert(todd);
  170. var dateintval=getDateInterval(fromdd,todd);
  171. //alert(dateintval);
  172. if(isNull(fdate))
  173. {
  174. messageBox("조회시작일자는","I003");
  175. model.setFocus("ipt_fromdd");
  176. return;
  177. }
  178. if(isNull(todate))
  179. {
  180. messageBox("조회종료일자는","I003");
  181. model.setFocus("ipt_todd");
  182. return;
  183. }
  184. if(fdate>todate)
  185. {
  186. messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
  187. model.setFocus("ipt_todd");
  188. return;
  189. }
  190. if(dateintval>370)
  191. {
  192. messageBox("조회기간은 최대1년까지 할 수 있습니다.","I");
  193. model.setFocus("ipt_todd");
  194. return;
  195. }
  196. model.removeNodeset("/root/send/reqdata");
  197. model.makeNode("/root/send/reqdata");
  198. model.copyNode("/root/send/reqdata", "/root/main/cond");
  199. submit("TRSDT05002");
  200. }
  201. }
  202. /**========================================================================================================================================
  203. * 전년대비실적비교 계산
  204. =========================================================================================================================================*/
  205. function fStat() {
  206. //데이터가없을때 return
  207. if (model.instances(0).selectNodes("/root/main/groupmediinfo/groupmedilist").length == 0){
  208. return;
  209. }
  210. //전년대비실적비교계산
  211. if(grd_groupmedilist.rows - grd_groupmedilist.fixedRows >1){
  212. var sStat = 0;
  213. var insRow = grd_groupmedilist.rows;
  214. grd_groupmedilist.addRow(insRow, false);
  215. grd_groupmedilist.valueMatrix(insRow, grd_groupmedilist.colRef("cdnm") ) = "전월대비실적비교";
  216. for(var i= grd_groupmedilist.colRef("cnt1"); i<= grd_groupmedilist.colRef("totpsnno"); i++){
  217. var bfResult = eval(grd_groupmedilist.valueMatrix(insRow -1 , i));
  218. var sSum = eval(grd_groupmedilist.valueMatrix(insRow-2, i));
  219. sStat = eval(sSum)- eval(bfResult) ;
  220. grd_groupmedilist.valueMatrix(insRow, i ) = eval(sStat);
  221. }
  222. grd_groupmedilist.valueMatrix(insRow-1, grd_groupmedilist.colRef("cntrate")) = "";
  223. grd_groupmedilist.valueMatrix(insRow, grd_groupmedilist.colRef("cntrate")) = "";
  224. grd_groupmedilist.valueMatrix(insRow-1, grd_groupmedilist.colRef("psnnorate")) = "";
  225. grd_groupmedilist.valueMatrix(insRow, grd_groupmedilist.colRef("psnnorate")) = "";
  226. }
  227. }
  228. /**========================================================================================================================================
  229. * 엑셀저장 버튼 클릭시
  230. =========================================================================================================================================*/
  231. function fExcel() {
  232. if (grd_groupmedilist.rows <= 1) {
  233. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  234. return;
  235. }
  236. var fileName = window.fileDialog("save", ",", false, "사회사업 집단의료사회사업실천활동실적", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  237. if (fileName != ""){
  238. grd_groupmedilist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  239. }
  240. }
  241. ]]>
  242. </script>
  243. </xhtml:head>
  244. <xhtml:body guideline="1,1195;1,1191;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  245. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  246. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:264px; height:14px; ">사회사업 집단의료사회사업 실천활동 실적</caption>
  247. </group>
  248. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  249. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  250. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  251. <caption>초기화</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. fInit();
  255. ]]>
  256. </script>
  257. </button>
  258. </group>
  259. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:737px; ">
  260. <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:266px; height:14px; ">사회사업 집단의료사회사업 실천활동 실적</caption>
  261. <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:1190px; y2:72px; "/>
  262. <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  263. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  264. <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; ">
  265. <caption>조회</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. fGetGroupMediInfo();
  269. ]]>
  270. </script>
  271. </button>
  272. <caption id="caption23" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">조회구분 :</caption>
  273. <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  274. <caption id="caption1" class="search_name" style="left:240px; top:10px; width:100px; height:17px; ">조회기간 :</caption>
  275. <select1 id="cmb_sumflag" ref="/root/main/cond/sumflag" navindex="1" appearance="minimal" style="left:110px; top:10px; width:110px; height:19px; ">
  276. <choices>
  277. <item>
  278. <label>월별</label>
  279. <value>1</value>
  280. </item>
  281. <item>
  282. <label>업무분야별</label>
  283. <value>2</value>
  284. </item>
  285. </choices>
  286. <script type="javascript" ev:event="xforms-select">
  287. <![CDATA[
  288. fGetGroupMediInfo();
  289. ]]>
  290. </script>
  291. </select1>
  292. <input id="ipt_entryy" ref="/root/main/cond/entryy" style="left:332px; top:10px; width:55px; height:19px; "/>
  293. <caption id="cap1" style="left:409px; top:10px; width:25px; height:20px; text-align:center; ">~</caption>
  294. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm" style="left:434px; top:10px; width:71px; height:19px; "/>
  295. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:336px; top:10px; width:74px; height:19px; "/>
  296. </group>
  297. <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:50px; width:64px; height:19px; ">
  298. <caption>엑셀저장</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. fExcel();
  302. ]]>
  303. </script>
  304. </button>
  305. <switch id="swt_groupmediinfo" style="left:0px; top:75px; width:1192px; height:660px; border-color:#c7a3cf; border-style:solid; ">
  306. <case id="case_month" selected="true">
  307. <datagrid id="grd_groupmedilist" nodeset="/root/main/groupmediinfo/groupmedilist" class="datagrid2" caption="구분^1월^1월^2월^2월^3월^3월^4월^4월^5월^5월^6월^6월^7월^7월^8월^8월^9월^9월^10월^10월^11월^11월^12월^12월^합계^합계^ 전기간실적^ 전기간실적^전기간대비실적비교^전기간대비실적비교^장소^장소^장소^장소명^장소^담당자|구분^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^장소^장소^장소^장소명^장소^담당자|구분^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="147, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 50, 49, 50, 50, 60, 60" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:0px; width:1190px; height:658px; ">
  308. <col ref="cdnm" style="text-align:center; "/>
  309. <col ref="cnt1" style="text-align:center; "/>
  310. <col ref="psnno1" style="text-align:center; "/>
  311. <col ref="cnt2" style="text-align:center; "/>
  312. <col ref="psnno2" style="text-align:center; "/>
  313. <col ref="cnt3" style="text-align:center; "/>
  314. <col ref="psnno3" style="text-align:center; "/>
  315. <col ref="cnt4" style="text-align:center; "/>
  316. <col ref="psnno4" style="text-align:center; "/>
  317. <col ref="cnt5" style="text-align:center; "/>
  318. <col ref="psnno5" style="text-align:center; "/>
  319. <col ref="cnt6" style="text-align:center; "/>
  320. <col ref="psnno6" style="text-align:center; "/>
  321. <col ref="cnt7" style="text-align:center; "/>
  322. <col ref="psnno7" style="text-align:center; "/>
  323. <col ref="cnt8" style="text-align:center; "/>
  324. <col ref="psnno8" style="text-align:center; "/>
  325. <col ref="cnt9" style="text-align:center; "/>
  326. <col ref="psnno9" style="text-align:center; "/>
  327. <col ref="cnt10" style="text-align:center; "/>
  328. <col ref="psnno10" style="text-align:center; "/>
  329. <col ref="cnt11" style="text-align:center; "/>
  330. <col ref="psnno11" style="text-align:center; "/>
  331. <col ref="cnt12" style="text-align:center; "/>
  332. <col ref="psnno12" style="text-align:center; "/>
  333. <col ref="totcnt" style="text-align:center; "/>
  334. <col ref="totpsnno" style="text-align:center; "/>
  335. <col ref="bfcnt" style="text-align:center; "/>
  336. <col ref="bfpsnno" style="text-align:center; "/>
  337. <col ref="cntrate" style="text-align:center; "/>
  338. <col ref="psnnorate" style="text-align:center; "/>
  339. </datagrid>
  340. </case>
  341. <case id="case_work">
  342. <datagrid id="datagrid1" nodeset="/root/main/groupmediworkinfo/groupmediworklist" class="datagrid2" caption="구분^일반의료^일반의료^재활의료^재활의료^정신의료^정신의료^장기이식^장기이식^호스피스^호스피스^합계^합계^장소^장소^장소^장소명^장소^담당자|구분^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^장소^장소^장소^장소명^장소^담당자|구분^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^건수^인원^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="188, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100" dataheight="25" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:0px; width:1190px; height:658px; ">
  343. <col ref="cdnm" style="text-align:center; "/>
  344. <col ref="cnt1" style="text-align:center; "/>
  345. <col ref="psnno1" style="text-align:center; "/>
  346. <col ref="cnt2" style="text-align:center; "/>
  347. <col ref="psnno2" style="text-align:center; "/>
  348. <col ref="cnt3" style="text-align:center; "/>
  349. <col ref="psnno3" style="text-align:center; "/>
  350. <col ref="cnt4" style="text-align:center; "/>
  351. <col ref="psnno4" style="text-align:center; "/>
  352. <col ref="cnt5" style="text-align:center; "/>
  353. <col ref="psnno5" style="text-align:center; "/>
  354. <col ref="totcnt" style="text-align:center; "/>
  355. <col ref="totpsnno" style="text-align:center; "/>
  356. </datagrid>
  357. </case>
  358. </switch>
  359. </group>
  360. </xhtml:body>
  361. </xhtml:html>