SMAYA05100_원목상담현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAYA02700.원목상담현황조회.xrw
  4. * 설 명 : 원목상담현황리스트
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2007.12.22
  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. <fthconsult>
  19. <fthconsultlinfo>
  20. <conslrnm/>
  21. <acttims/>
  22. <acttims_pid/>
  23. <pro_acttims/>
  24. <pro_pid/>
  25. <tea_acttims/>
  26. <tea_pid/>
  27. <oth_acttims/>
  28. <oth_pid/>
  29. <tot_acttims/>
  30. <tot_pid/>
  31. <conslrid/>
  32. <monthly/>
  33. <yearly/>
  34. <quarterly/>
  35. </fthconsultlinfo>
  36. </fthconsult>
  37. <cond>
  38. <srchfromdd/>
  39. <srchtodd/>
  40. <sort>1</sort>
  41. <from/>
  42. <to/>
  43. <year>1</year>
  44. </cond>
  45. </main>
  46. <send>
  47. <reqdata>
  48. </reqdata>
  49. </send>
  50. <init>
  51. <comcodelist>
  52. <conslrlist>
  53. <conslrlistinfo>
  54. <conslrid/>
  55. <conslrnm>전체</conslrnm>
  56. </conslrlistinfo>
  57. </conslrlist>
  58. </comcodelist>
  59. </init>
  60. <hidden/>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fInit();
  73. ]]>
  74. </script>
  75. <submission id="TRAYA00101" method="post" resultref="/root/init/comcodelist/conslrlist"/>
  76. <submission id="TRZBC00101" method="post"/>
  77. <submission id="TRAYA02801" method="post" resultref="/root/init/comcodelist/chrgconslrlist"/>
  78. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  79. <submission id="TRAYA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fthconsult"/>
  80. </model>
  81. <script type="javascript">
  82. <![CDATA[
  83. /**========================================================================================================================================
  84. * 화면 오픈시
  85. =========================================================================================================================================*/
  86. function fInit() {
  87. //그리드 초기화
  88. model.removeNodeset("/root/main/fthconsultlist/fthconsultlistinfo");
  89. grd_fthconsultstatus.refresh();
  90. //상담조회일자 현재일자로 세팅
  91. var curDt = getCurrentDate();
  92. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  93. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  94. ipt_from.visible = false;
  95. ipt_to.visible = false;
  96. ipt_srchfromdd.visible = true;
  97. ipt_srchtodd.visible = true;
  98. cap_fromto.visible = true;
  99. cmb_year.visible = false;
  100. ipt_srchfromdd.attribute("width") = "80";
  101. ipt_srchtodd.attribute("width") = "80";
  102. ipt_srchfromdd.attribute('format') = 'yyyy-mm';
  103. ipt_srchtodd.attribute('format') = 'yyyy-mm';
  104. rdo_sort.select(0);
  105. grd_fthconsultstatus.valueMatrix(1,0)="원목자별";
  106. model.refresh();
  107. }
  108. /**========================================================================================================================================
  109. * 원목상담현황조회
  110. =========================================================================================================================================*/
  111. function fGetFthConsult(){
  112. model.removeNodeset("/root/send/reqdata");
  113. model.makeNode("/root/send/reqdata");
  114. model.copyNode("/root/send/reqdata", "/root/main/cond");
  115. submit("TRAYA05101");
  116. }
  117. /**========================================================================================================================================
  118. * 원목상담현황 초기화
  119. =========================================================================================================================================*/
  120. function fInitialize()
  121. {
  122. // 그리드초기화
  123. model.removeNodeset("/root/main/fthconsultlist/fthconsultlistinfo");
  124. model.resetInstanceNode("/root/main/fthconsultlist/totaltime/tottm");
  125. // 오늘 날짜로 세팅
  126. var curDt = getCurrentDate();
  127. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  128. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  129. model.removeNodeset(grd_fthconsultstatus.nodeset);
  130. model.refresh();
  131. }
  132. /**========================================================================================================================================
  133. * 조회조건 구분에 따라 조회시작 종료일 변경
  134. =========================================================================================================================================*/
  135. function fDate(sort){
  136. //원목자별
  137. if(sort == '1'){
  138. var curDt = getCurrentDate();
  139. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  140. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  141. ipt_from.visible = false;
  142. ipt_to.visible = false;
  143. ipt_srchfromdd.visible = true;
  144. ipt_srchtodd.visible = true;
  145. cap_fromto.visible = true;
  146. cmb_year.visible = false;
  147. ipt_srchfromdd.attribute("width") = "80";
  148. ipt_srchtodd.attribute("width") = "80";
  149. ipt_srchfromdd.attribute('format') = 'yyyy-mm';
  150. ipt_srchtodd.attribute('format') = 'yyyy-mm';
  151. }
  152. //월별
  153. else if(sort == '2'){
  154. var curDt = getCurrentDate();
  155. var curYearDt = curDt.substring(0, 4);
  156. model.setValue("/root/main/cond/from", curYearDt);
  157. model.setValue("/root/main/cond/to", curYearDt);
  158. ipt_from.visible = true;
  159. ipt_to.visible = false;
  160. ipt_srchfromdd.visible = false;
  161. ipt_srchtodd.visible = false;
  162. cap_fromto.visible = false;
  163. cmb_year.visible = false;
  164. ipt_from.attribute('format') = 'yyyy';
  165. }
  166. //분기별
  167. else if(sort == '3'){
  168. var curDt = getCurrentDate();
  169. var curYearDt = curDt.substring(0, 4);
  170. model.setValue("/root/main/cond/from", curYearDt);
  171. model.setValue("/root/main/cond/to", curYearDt);
  172. ipt_from.visible = true;
  173. ipt_to.visible = false;
  174. ipt_srchfromdd.visible = false;
  175. ipt_srchtodd.visible = false;
  176. cap_fromto.visible = false;
  177. cmb_year.visible = true;
  178. ipt_from.attribute('format') = 'yyyy';
  179. }
  180. //년도별
  181. else if(sort == '4'){
  182. var curDt = getCurrentDate();
  183. var curYearDt = curDt.substring(0, 4);
  184. model.setValue("/root/main/cond/from", curYearDt);
  185. model.setValue("/root/main/cond/to", curYearDt);
  186. ipt_from.visible = true;;
  187. ipt_to.visible = true;
  188. ipt_srchfromdd.visible = false;
  189. ipt_srchtodd.visible = false;
  190. cap_fromto.visible = true;
  191. cmb_year.visible = false;
  192. ipt_from.attribute('format') = 'yyyy';
  193. ipt_to.attribute('format') = 'yyyy';
  194. }
  195. model.refresh();
  196. }
  197. ]]>
  198. </script>
  199. </xhtml:head>
  200. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  201. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  202. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">원목상담현황</caption>
  203. </group>
  204. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  205. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  206. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; ">0000</shape>
  207. <button id="btn_select" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  208. <caption>조회</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fGetFthConsult();
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption3" class="search_name" style="left:260px; top:20px; width:99px; height:17px; ">조회기간 :</caption>
  216. <caption id="cap_fromto" class="search_no_b" style="left:470px; top:20px; width:12px; height:17px; ">~</caption>
  217. <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_search" inputtype="date" style="left:490px; top:20px; width:90px; height:19px; "/>
  218. <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_search" inputtype="date" style="left:375px; top:20px; width:90px; height:19px; "/>
  219. <select1 id="rdo_sort" ref="/root/main/cond/sort" appearance="full" cols="4" overflow="visible" style="left:35px; top:20px; width:215px; height:20px; border-style:none; ">
  220. <choices>
  221. <item>
  222. <label>원목자별</label>
  223. <value>1</value>
  224. </item>
  225. <item>
  226. <label>월별</label>
  227. <value>2</value>
  228. </item>
  229. <item>
  230. <label>분기별</label>
  231. <value>3</value>
  232. </item>
  233. <item>
  234. <label>년도별</label>
  235. <value>4</value>
  236. </item>
  237. </choices>
  238. <script type="javascript" ev:event="xforms-select">
  239. <![CDATA[
  240. var sort = model.getValue("/root/main/cond/sort");
  241. fDate(sort);
  242. fGetFthConsult();
  243. ]]>
  244. </script>
  245. <script type="javascript" ev:event="xforms-value-changed">
  246. <![CDATA[
  247. if(rdo_sort.value == "1"){
  248. grd_fthconsultstatus.valueMatrix(1,0)="원목자별";
  249. }else if(rdo_sort.value == "2"){
  250. grd_fthconsultstatus.valueMatrix(1,0)="월별";
  251. }else if(rdo_sort.value == "3"){
  252. grd_fthconsultstatus.valueMatrix(1,0)="분기별";
  253. }else if(rdo_sort.value == "4"){
  254. grd_fthconsultstatus.valueMatrix(1,0)="년도별";
  255. }
  256. model.refresh();
  257. model.setFocus("btn_select");
  258. btn_select.dispatch("DOMActivate");
  259. ]]>
  260. </script>
  261. </select1>
  262. <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
  263. <input id="ipt_from" ref="/root/main/cond/from" style="left:650px; top:15px; width:100px; height:19px; "/>
  264. <input id="ipt_to" ref="/root/main/cond/to" style="left:910px; top:20px; width:100px; height:19px; "/>
  265. <select1 id="cmb_year" ref="/root/main/cond/year" appearance="minimal" style="left:770px; top:15px; width:100px; height:19px; ">
  266. <choices>
  267. <item>
  268. <label>1분기</label>
  269. <value>1</value>
  270. </item>
  271. <item>
  272. <label>2분기</label>
  273. <value>2</value>
  274. </item>
  275. <item>
  276. <label>3분기</label>
  277. <value>3</value>
  278. </item>
  279. <item>
  280. <label>4분기</label>
  281. <value>4</value>
  282. </item>
  283. </choices>
  284. </select1>
  285. </group>
  286. <datagrid id="grd_fthconsultstatus" nodeset="/root/main/fthconsult/fthconsultlinfo" caption="원목대상자별 횟수/명^환자^환자^보호자^보호자^교직원^교직원^기타^기타^합계^합계|^횟수^명^횟수^명^횟수^명^횟수^명^횟수^명" colsep="^" colwidth="163, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:106px; width:1194px; height:634px; ">
  287. <col ref="conslrnm" format="yyyy mm" style="text-align:center; "/>
  288. <col ref="acttims" style="text-align:center; "/>
  289. <col ref="acttims_pid" style="text-align:center; "/>
  290. <col ref="pro_acttims" style="text-align:center; "/>
  291. <col ref="pro_pid" style="text-align:center; "/>
  292. <col ref="tea_acttims" style="text-align:center; "/>
  293. <col ref="tea_pid" style="text-align:center; "/>
  294. <col ref="oth_acttims" style="text-align:center; "/>
  295. <col ref="oth_pid" style="text-align:center; "/>
  296. <col ref="tot_acttims" style="text-align:center; "/>
  297. <col ref="tot_pid" style="text-align:center; "/>
  298. </datagrid>
  299. </group>
  300. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  301. <button id="btn_search0" class="btn4_letter3" style="left:1123px; top:3px; width:68px; height:22px; ">
  302. <caption>초기화</caption>
  303. <script type="javascript" ev:event="DOMActivate">
  304. <![CDATA[
  305. fInitialize();
  306. ]]>
  307. </script>
  308. </button>
  309. </group>
  310. <caption id="caption1" class="tit_2" style="left:5px; top:96px; width:139px; height:14px; ">원목상담현황</caption>
  311. <line id="line1" class="line_1" style="x1:0px; y1:114px; x2:1194px; y2:114px; "/>
  312. </xhtml:body>
  313. </xhtml:html>