SMAYA02700_원목상담현황조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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. <fthconsultlist>
  19. <fthconsultlistinfo>
  20. <actdd/>
  21. <asescarereccnst/>
  22. <doctrinetrgtmanposcd/>
  23. <trgtmannm/>
  24. <conslrnm/>
  25. <acttims/>
  26. <acttmmnt/>
  27. <rem/>
  28. <conslrid/>
  29. <seqno/>
  30. </fthconsultlistinfo>
  31. <totaltime>
  32. <tottm/>
  33. <doctrinetrgtmanposcd/>
  34. <totacttims/>
  35. </totaltime>
  36. </fthconsultlist>
  37. <cmbcond>
  38. <clsflag/>
  39. <scrndispyn/>
  40. <clslevl/>
  41. <clssupcd/>
  42. </cmbcond>
  43. <cond>
  44. <srchfromdd/>
  45. <srchtodd/>
  46. <doctrinetrgtmanposcd/>
  47. <conslrid/>
  48. <sort>1</sort>
  49. <asescarereccnst/>
  50. </cond>
  51. </main>
  52. <send>
  53. <reqdata>
  54. </reqdata>
  55. </send>
  56. <init>
  57. <comcodelist>
  58. <doctrinetrgtmanposinfo/>
  59. <conslrlist>
  60. <conslrlistinfo>
  61. <conslrid/>
  62. <conslrnm>전체</conslrnm>
  63. </conslrlistinfo>
  64. </conslrlist>
  65. </comcodelist>
  66. </init>
  67. <hidden/>
  68. </root>
  69. </instance>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  77. <script type="javascript" ev:event="xforms-ready">
  78. <![CDATA[
  79. fInit();
  80. ]]>
  81. </script>
  82. <submission id="TRAYA02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/fthconsultlist"/>
  83. <submission id="TRAYA00101" method="post" ref="/root/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
  84. <submission id="TRZBC00101" method="post"/>
  85. <submission id="TRAYA02801" method="post" resultref="/root/init/comcodelist/chrgconslrlist"/>
  86. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  87. </model>
  88. <script type="javascript">
  89. <![CDATA[
  90. /**========================================================================================================================================
  91. * 화면 오푼시
  92. =========================================================================================================================================*/
  93. function fInit() {
  94. //그리드 초기화
  95. model.removeNodeset("/root/main/fthconsultlist/fthconsultlistinfo");
  96. grd_fthconsultlist.refresh();
  97. //상담조회일자 현재일자로 세팅
  98. var CurrentDate = getCurrentDate();
  99. model.setValue("/root/main/cond/srchfromdd" , CurrentDate);
  100. model.setValue("/root/main/cond/srchtodd" , CurrentDate);
  101. //조회부 콤보 셋팅(상태구분)
  102. zbcfGetKindCodeList(
  103. new Array("A0008"), //업무규칙
  104. new Array("A0212"), //코드군
  105. new Array("/root/init/comcodelist/doctrinetrgtmanposinfo"), //노드
  106. true, //minimum : true TRZBC00105
  107. new Array("cdid"), //sorting 항목
  108. new Array("asc")
  109. );
  110. addComboItem("cmb_doctrinetrgtmanposcd", "전체", "A", "above");
  111. cmb_doctrinetrgtmanposcd.select(0);
  112. cmb_asescarereccnst.select(0);
  113. model.refresh();
  114. //원목자 조회
  115. model.makeValue("/root/send/reqdata/joblncd", "A");
  116. submit("TRAYA00101", false);
  117. addComboItem("cmb_conslrid", "전체", "", "above");
  118. model.setValue("/root/main/cmbcond/clsflag", "E");
  119. model.setValue("/root/main/cmbcond/clssupcd", "E1002");
  120. model.setValue("/root/main/cmbcond/scrndispyn", "Y");
  121. model.setValue("/root/main/cmbcond/clslevl", "2");
  122. //submit("TRAYA03002", false);
  123. //addComboItem("cmb_clssupcd", "전체", "", "above");
  124. var code = getUserInfo('jobrespcd');
  125. //model.setValue(cmb_clssupcd.attribute("ref") ,"E");
  126. model.refresh();
  127. }
  128. /**========================================================================================================================================
  129. * 원목상담현황조회
  130. =========================================================================================================================================*/
  131. function fGetFthConsultList(){
  132. model.removeNodeset("/root/send/reqdata");
  133. model.makeNode("/root/send/reqdata");
  134. model.copyNode("/root/send/reqdata", "/root/main/cond");
  135. submit("TRAYA02701");
  136. }
  137. /**========================================================================================================================================
  138. * 원목상담현황 출력
  139. =========================================================================================================================================*/
  140. function fListPrnt(){
  141. exeReportPreview("RPAYA02701", "XMLSTR");
  142. }
  143. /**========================================================================================================================================
  144. * 원목상담현황 초기화
  145. =========================================================================================================================================*/
  146. function fInitialize()
  147. {
  148. // 그리드초기화
  149. model.removeNodeset("/root/main/fthconsultlist/fthconsultlistinfo");
  150. model.resetInstanceNode("/root/main/fthconsultlist/totaltime/tottm");
  151. // 오늘 날짜로 세팅
  152. var curDt = getCurrentDate();
  153. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  154. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  155. model.removeNodeset(grd_fthconsultlist.nodeset);
  156. cmb_conslrid.select(0);
  157. model.refresh();
  158. }
  159. /**========================================================================================================================================
  160. * 대상자소속 구분에 따른 상담구분
  161. =========================================================================================================================================*/
  162. function fAsesCarerecCnst()
  163. {
  164. var doctrinetrgtmanposcd = model.getValue("/root/main/cond/doctrinetrgtmanposcd");
  165. if(doctrinetrgtmanposcd == 'DT2' || doctrinetrgtmanposcd == 'DT3' || doctrinetrgtmanposcd == 'DT4' ){
  166. cmb_asescarereccnst.disabled = true;
  167. cmb_asescarereccnst.select(0);
  168. }
  169. else{
  170. cmb_asescarereccnst.disabled = false;
  171. cmb_asescarereccnst.select(0);
  172. }
  173. }
  174. ]]>
  175. </script>
  176. </xhtml:head>
  177. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  178. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  179. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">원목상담현황</caption>
  180. </group>
  181. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  182. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  183. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  184. <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  185. <caption>조회</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. fGetFthConsultList();
  189. ]]>
  190. </script>
  191. </button>
  192. <select1 id="cmb_doctrinetrgtmanposcd" ref="/root/main/cond/doctrinetrgtmanposcd" class="combo_search" appearance="minimal" style="left:545px; top:10px; width:100px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposinfo/A0008A0212">
  195. <label ref="cdnm"/>
  196. <value ref="cdid"/>
  197. </itemset>
  198. </choices>
  199. <script type="javascript" ev:event="xforms-select">
  200. <![CDATA[
  201. fAsesCarerecCnst();
  202. ]]>
  203. </script>
  204. </select1>
  205. <caption id="caption12" class="search_name" style="left:430px; top:10px; width:99px; height:17px; ">대상자소속 :</caption>
  206. <caption id="caption3" class="search_name" style="left:20px; top:20px; width:99px; height:17px; ">조회기간 :</caption>
  207. <caption id="caption5" class="search_no_b" style="left:220px; top:20px; width:12px; height:17px; ">~</caption>
  208. <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_search" inputtype="date" style="left:240px; top:20px; width:90px; height:19px; "/>
  209. <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_search" inputtype="date" style="left:125px; top:20px; width:90px; height:19px; "/>
  210. <caption id="caption2" class="search_name" style="left:430px; top:35px; width:99px; height:17px; ">원 목 자 :</caption>
  211. <select1 id="cmb_conslrid" ref="/root/main/cond/conslrid" class="combo_search" appearance="minimal" style="left:545px; top:35px; width:100px; height:19px; ">
  212. <choices>
  213. <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
  214. <label ref="conslrnm"/>
  215. <value ref="conslrid"/>
  216. </itemset>
  217. </choices>
  218. </select1>
  219. <caption id="caption4" class="search_name" style="left:735px; top:35px; width:101px; height:17px; ">정렬기준 :</caption>
  220. <select1 id="rdo_sort" ref="/root/main/cond/sort" appearance="full" cols="2" overflow="visible" style="left:835px; top:35px; width:165px; height:20px; border-style:none; ">
  221. <choices>
  222. <item>
  223. <label>일자</label>
  224. <value>1</value>
  225. </item>
  226. <item>
  227. <label>대상자소속</label>
  228. <value>2</value>
  229. </item>
  230. </choices>
  231. <script type="javascript" ev:event="xforms-select">
  232. <![CDATA[
  233. fGetFthConsultList();
  234. ]]>
  235. </script>
  236. </select1>
  237. <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
  238. <caption id="caption8" class="search_name" style="left:735px; top:10px; width:101px; height:17px; ">상담구분 :</caption>
  239. <select1 id="cmb_asescarereccnst" ref="/root/main/cond/asescarereccnst" appearance="minimal" style="left:835px; top:10px; width:100px; height:19px; ">
  240. <choices>
  241. <item>
  242. <label>전체</label>
  243. <value>A</value>
  244. </item>
  245. <item>
  246. <label>일반</label>
  247. <value>B</value>
  248. </item>
  249. <item>
  250. <label>영적돌봄상담</label>
  251. <value>C</value>
  252. </item>
  253. </choices>
  254. </select1>
  255. </group>
  256. <datagrid id="grd_fthconsultlist" nodeset="/root/main/fthconsultlist/fthconsultlistinfo" caption="상담일자^상담구분^대상자소속^대상자명^원목자^수행횟수^소요시간^내용" colsep="^" colwidth="120, 120, 120, 120, 120, 80, 80, 410, 13" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:106px; width:1194px; height:634px; ">
  257. <col ref="actdd" format="yyyy-mm-dd" style="text-align:center; "/>
  258. <col ref="asescarereccnst" style="text-align:center; "/>
  259. <col ref="doctrinetrgtmanposcd" style="text-align:center; "/>
  260. <col ref="trgtmannm" style="text-align:center; "/>
  261. <col ref="conslrnm" style="text-align:center; "/>
  262. <col ref="acttims" style="text-align:center; "/>
  263. <col ref="acttmmnt" style="text-align:center; "/>
  264. <col ref="rem"/>
  265. <col ref="conslrid" visibility="hidden"/>
  266. </datagrid>
  267. <button id="button10" class="btn2_letter2" style="left:1142px; top:80px; width:42px; height:19px; ">
  268. <caption>출력</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. fListPrnt();
  272. ]]>
  273. </script>
  274. </button>
  275. <caption id="caption55" class="cell_1" style="left:946px; top:77px; width:75px; height:23px; ">총소요시간</caption>
  276. <input id="input1" ref="/root/main/fthconsultlist/totaltime/tottm" disabled="true" style="left:1026px; top:79px; width:110px; height:19px; text-align:right; "/>
  277. <caption id="caption7" class="cell_1" style="left:805px; top:77px; width:75px; height:23px; ">총수행횟수</caption>
  278. <input id="input2" ref="/root/main/fthconsultlist/totaltime/totacttims" disabled="true" style="left:885px; top:79px; width:55px; height:19px; text-align:right; "/>
  279. </group>
  280. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  281. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  282. <caption>초기화</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. fInitialize();
  286. ]]>
  287. </script>
  288. </button>
  289. </group>
  290. <caption id="caption1" class="tit_2" style="left:5px; top:96px; width:139px; height:13px; ">원목상담현황리스트</caption>
  291. <line id="line1" class="line_1" style="x1:0px; y1:114px; x2:1194px; y2:114px; "/>
  292. </xhtml:body>
  293. </xhtml:html>