SMSDT07500_사회사업자선회부서별가입실적.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMSDT07500.사회사업자선회부서별가입실적.xrw
  4. * 설 명 : 사회사업자선회부서별가입실적
  5. * 작 성 자 : 임여원
  6. * 작 성 일 : 2008.12.05
  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. <brgstincmexpspres>
  19. <brgstincmexpsprescond>
  20. <cls/>
  21. <dutplcedeptcd/>
  22. <instnm/>
  23. <deptnm/>
  24. <emplno/>
  25. <entcnt/>
  26. <entrate/>
  27. <deduamt/>
  28. <deduavg/>
  29. </brgstincmexpsprescond>
  30. </brgstincmexpspres>
  31. <search>
  32. <instcd>%</instcd>
  33. <fromdd/>
  34. <fromentryy/>
  35. <fromendyy/>
  36. <toendyy/>
  37. <toentryy/>
  38. </search>
  39. </main>
  40. <send>
  41. <reqdata/>
  42. </send>
  43. <init/>
  44. <hidden/>
  45. </root>
  46. </instance>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  53. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  54. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. fInit();
  58. ]]>
  59. </script>
  60. <submission id="TRSDT04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/cnstinfo"/>
  61. <bind id="bfreqcntconsult" ref="/root/main/cnstinfo/cnstlist/bfreqcntconsult" calculate="../reqtot - ../bfreqcnt"/>
  62. <bind id="bfreplcntreply" ref="/root/main/cnstinfo/cnstlist/bfreplcntreply" calculate="../repltot - ../bfreplcnt"/>
  63. <submission id="TRSDT07501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/brgstincmexpspres"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. /**========================================================================================================================================
  68. * 조회기간 그리드초기화
  69. =========================================================================================================================================*/
  70. function fInit()
  71. {
  72. //cmb_reqflag.select(0);
  73. //ipt_fromdd.visible=true;
  74. //ipt_todd.visible=true;
  75. caption1.visible=true;
  76. model.removeNodeset("/root/main/brgstincmexpspres");
  77. var CurrentDate=getCurrentDate();
  78. var CurrentDateYM=CurrentDate.substr(0,6);
  79. var LastDate=CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  80. var LastDateYM=LastDate.substr(0,6);
  81. model.makeValue("/root/main/search/fromdd",LastDateYM);
  82. model.makeValue("/root/main/search/todd",LastDateYM);
  83. var dutplceinstcd=getUserInfo("dutplceinstcd");
  84. //기관코드 받아서 중앙의료원 , 강남성모일 때만 전체로, 나머지는 로그인한 병원의 것만 조회하도록 함
  85. if(dutplceinstcd=='103')
  86. {
  87. cmb_instcd.select(2);
  88. cmb_instcd.disabled=true;
  89. }
  90. else if(dutplceinstcd=='011')
  91. {
  92. cmb_instcd.select(3);
  93. cmb_instcd.disabled=true;
  94. }
  95. else if(dutplceinstcd=='013')
  96. {
  97. cmb_instcd.select(5);
  98. cmb_instcd.disabled=true;
  99. }
  100. else if(dutplceinstcd=='001')
  101. {
  102. cmb_instcd.select(1);
  103. cmb_instcd.disabled=false;
  104. }
  105. else
  106. {
  107. cmb_instcd.select(4);
  108. cmb_instcd.disabled=false;
  109. }
  110. model.refresh();
  111. }
  112. /**========================================================================================================================================
  113. * 조회
  114. =========================================================================================================================================*/
  115. function fReqBrgstIncmExpsCond()
  116. {
  117. model.removeNodeset("/root/send/reqdata");
  118. model.makeNode("/root/send/reqdata");
  119. model.refresh();
  120. var fromdd=model.getValue("/root/main/search/fromdd");
  121. var instcd=model.getValue("/root/main/search/instcd");
  122. model.makeValue("/root/send/reqdata/fromdd",fromdd);
  123. model.makeValue("/root/send/reqdata/instcd",instcd);
  124. if(isNull(fromdd))
  125. {
  126. messageBox("조회시작일자는","I003");
  127. model.setFocus("ipt_fromdd");
  128. return;
  129. }
  130. submit("TRSDT07501");
  131. /*
  132. var idxRows=grd_brgstincmexpsprescond.rows;
  133. //alert(idxRows);
  134. if(idxRows!='0')
  135. {
  136. for(i=1;i<idxRows;i++)
  137. {
  138. var instnm=model.getValue("/root/main/brgstincmexpspres/brgstincmexpsprescond"+"["+i+"]/instnm");
  139. var deptnm=model.getValue("/root/main/brgstincmexpspres/brgstincmexpsprescond"+"["+i+"]/deptnm");
  140. if(deptnm=="소계")
  141. {
  142. //alert(i);
  143. grd_brgstincmexpsprescond.cellStyle("background-color",i+1,2, i+1, 7) = "#ccffcc";
  144. }
  145. else if(instnm=="합계")
  146. {
  147. //alert("합계"+i);
  148. grd_brgstincmexpsprescond.cellStyle("background-color",i+1,1, i+1, 7) = "#ccffff";
  149. }
  150. else
  151. {
  152. grd_brgstincmexpsprescond.cellStyle("background-color",i+1,1, i+1, 7) = "#ffffff";
  153. }
  154. }
  155. }
  156. */
  157. }
  158. /**========================================================================================================================================
  159. * 전년실적
  160. =========================================================================================================================================*/
  161. function fGetBfResult()
  162. {
  163. if(grd_brgstincmexpsprescond.rows - grd_brgstincmexpsprescond.fixedRows >1)
  164. {
  165. var sStat = 0;
  166. var insRow = grd_brgstincmexpsprescond.rows;
  167. grd_brgstincmexpsprescond.addRow(insRow, false);
  168. grd_brgstincmexpsprescond.valueMatrix(insRow, grd_brgstincmexpsprescond.colRef("cond") ) = "전기간대비실적비교";
  169. for(var i= grd_brgstincmexpsprescond.colRef("nurspatcnt"); i<= grd_brgstincmexpsprescond.colRef("nursexchamt"); i++)
  170. {
  171. var bfResult = eval(grd_brgstincmexpsprescond.valueMatrix(insRow -1 , i));
  172. var sSum = eval(grd_brgstincmexpsprescond.valueMatrix(insRow-2, i));
  173. sStat = eval(sSum)- eval(bfResult) ;
  174. grd_brgstincmexpsprescond.valueMatrix(insRow, i ) = eval(sStat);
  175. }
  176. }else
  177. {
  178. model.removeNodeset("/root/main/brgstincmexpspres/brgstincmexpsprescond");
  179. }
  180. model.refresh();
  181. }
  182. /**========================================================================================================================================
  183. * 초기화
  184. =========================================================================================================================================*/
  185. function fResetBrgstIncmExps()
  186. {
  187. model.removeNodeset("/root/main/brgstincmexpspres");
  188. model.refresh();
  189. }
  190. /**========================================================================================================================================
  191. * 엑셀저장 버튼 클릭시
  192. =========================================================================================================================================*/
  193. function fExcel() {
  194. if (grd_brgstincmexpsprescond.rows <= 2) {
  195. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  196. return;
  197. }
  198. var fileName = window.fileDialog("save", ",", false, "사회사업자선회부서별가입실적", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  199. if (fileName != ""){
  200. grd_brgstincmexpsprescond.saveExcel(fileName, "SheetName", false, false, "", "", false);
  201. }
  202. }
  203. ]]>
  204. </script>
  205. </xhtml:head>
  206. <xhtml:body guideline="1,1195;1,1191;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  207. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  208. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">사회사업자선회부서별가입실적</caption>
  209. </group>
  210. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  211. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  212. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  213. <caption>초기화</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. fResetBrgstIncmExps();
  217. ]]>
  218. </script>
  219. </button>
  220. </group>
  221. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  222. <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:232px; height:14px; ">사회사업자선회부서별가입실적</caption>
  223. <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:1190px; y2:72px; "/>
  224. <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  225. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  226. <button id="button2" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; ">
  227. <caption>조회</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. fReqBrgstIncmExpsCond();
  231. ]]>
  232. </script>
  233. </button>
  234. <caption id="caption23" class="search_name" style="left:280px; top:10px; width:86px; height:17px; ">병원구분 :</caption>
  235. <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  236. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:102px; top:8px; width:73px; height:19px; "/>
  237. <caption id="caption1" class="search_name" style="left:10px; top:10px; width:100px; height:17px; ">조회일자:</caption>
  238. <select1 id="cmb_instcd" ref="/root/main/search/instcd" navindex="2" appearance="minimal" style="left:375px; top:8px; width:125px; height:19px; ">
  239. <choices>
  240. <item>
  241. <label>전체</label>
  242. <value>%</value>
  243. </item>
  244. <item>
  245. <label>중앙의료원</label>
  246. <value>001</value>
  247. </item>
  248. <item>
  249. <label>성의교정</label>
  250. <value>103</value>
  251. </item>
  252. <item>
  253. <label>성모병원</label>
  254. <value>011</value>
  255. </item>
  256. <item>
  257. <label>강남성모병원</label>
  258. <value>012</value>
  259. </item>
  260. <item>
  261. <label>의정부성모병원</label>
  262. <value>013</value>
  263. </item>
  264. </choices>
  265. <script type="javascript" ev:event="xforms-value-changed">
  266. <![CDATA[
  267. /*
  268. var CurrentDate=getCurrentDate();
  269. var CurrentDateYM=CurrentDate.substr(0,6);
  270. var LastDate=CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  271. var LastDateYM=LastDate.substr(0,6);
  272. model.makeValue("/root/main/search/fromdd",LastDateYM);
  273. model.makeValue("/root/main/search/todd",LastDateYM);
  274. var fromdd=model.getValue("/root/main/search/fromdd");
  275. var todd=model.getValue("/root/main/search/todd");
  276. */
  277. model.removeNodeset("/root/send/reqdata");
  278. model.makeNode("/root/send/reqdata");
  279. model.refresh();
  280. fReqBrgstIncmExpsCond(); //조회함수
  281. ]]>
  282. </script>
  283. </select1>
  284. </group>
  285. <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:50px; width:64px; height:19px; ">
  286. <caption>엑셀저장</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. fExcel();
  290. ]]>
  291. </script>
  292. </button>
  293. <datagrid id="grd_brgstincmexpsprescond" nodeset="/root/main/brgstincmexpspres/brgstincmexpsprescond" class="datagrid2" backcoloralternate="transparent" caption="기관명^부서명^교직원수^자선회가입교직원수^자선회교직원가입률^자선회교직원기부액^부서1인당기부액^reply^장소^장소^장소^장소명^장소^담당자|기관명^부서명^교직원수^자선회가입교직원수^자선회교직원가입률^자선회교직원기부액^부서1인당기부액^reply^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="178, 269, 132, 141, 141, 152, 152" dataheight="25" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:1px; top:76px; width:1190px; height:664px; ">
  294. <col ref="instnm" style="text-align:center; "/>
  295. <col ref="deptnm"/>
  296. <col ref="emplno" format="#,###" style="text-align:center; "/>
  297. <col ref="entcnt" format="#,###" style="text-align:center; "/>
  298. <col ref="entrate" style="text-align:center; "/>
  299. <col ref="deduamt" format="(-)#,###" style="text-align:right; "/>
  300. <col ref="deduavg" format="(-)#,###" style="text-align:right; "/>
  301. </datagrid>
  302. </group>
  303. </xhtml:body>
  304. </xhtml:html>