SMAYA03000_기타원목활동조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAYA03000.기타원목활동조회.xrw
  4. * 설 명 : 기타원목활동조회
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2007.11.10
  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. <cmbcond>
  19. <clsflag>E</clsflag>
  20. <scrndispyn/>
  21. <clslevl/>
  22. </cmbcond>
  23. <cond>
  24. <reffromdd/>
  25. <reftodd/>
  26. <clsflag>E</clsflag>
  27. <clssupcd/>
  28. <conslrid/>
  29. <sort/>
  30. <clscd/>
  31. </cond>
  32. <remfthlist>
  33. <remfthlistinfo>
  34. <clssupnm/>
  35. <clsnm/>
  36. <conslrnm/>
  37. <fthactdd/>
  38. <acttims/>
  39. <acttmmnt/>
  40. <actspec/>
  41. <conslrid/>
  42. <clscd/>
  43. </remfthlistinfo>
  44. <totaltime>
  45. <tottm/>
  46. <totacttims/>
  47. </totaltime>
  48. </remfthlist>
  49. </main>
  50. <send>
  51. <reqdata/>
  52. </send>
  53. <init>
  54. <comcodelist>
  55. <clssuplist>
  56. <clssupinfo>
  57. <clssupcd/>
  58. <clssupnm>전체</clssupnm>
  59. </clssupinfo>
  60. </clssuplist>
  61. <schecnts_kindcmblist/>
  62. <conslrlist>
  63. <conslrlistinfo>
  64. <conslrid/>
  65. <conslrnm>전체</conslrnm>
  66. </conslrlistinfo>
  67. </conslrlist>
  68. </comcodelist>
  69. <jobrespcd/>
  70. </init>
  71. <hidden/>
  72. </root>
  73. </instance>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  78. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  79. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. fGetComCdList();
  83. fGetJobrespcd();
  84. cmb_clssupcd.select(0);
  85. ]]>
  86. </script>
  87. <submission id="TRZBC00101" method="post"/>
  88. <submission id="TRAYA00101" ref="/root/send/reqdata" method="post" resultref="/root/init/comcodelist/conslrlist"/>
  89. <submission id="TRAYA03001" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/remfthlist"/>
  90. <submission id="TRAYA03002" ref="/root/main/cmbcond" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/comcodelist/clssuplist"/>
  91. </model>
  92. <script type="javascript">
  93. <![CDATA[
  94. /**========================================================================================================================================
  95. * 공통코드조회(항목구분)
  96. =========================================================================================================================================*/
  97. function fGetComCdList(){
  98. // 그리드초기화
  99. model.removeNodeset("/root/main/remfthlist/remfthinfo");
  100. // 오늘 날짜로 세팅
  101. var curDt = getCurrentDate();
  102. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  103. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  104. model.removeNodeset(grd_remfthlist.nodeset);
  105. // 원목자 조회
  106. model.makeValue("/root/send/reqdata/joblncd", "B");
  107. submit("TRAYA00101", false);
  108. addComboItem("cmb_conslrid", "전체", "", "above");
  109. model.setValue("/root/main/cmbcond/clsflag", "E");
  110. model.setValue("/root/main/cmbcond/scrndispyn", "Y");
  111. model.setValue("/root/main/cmbcond/clslevl", "2");
  112. submit("TRAYA03002", false);
  113. addComboItem("cmb_clssupcd", "전체", "", "above");
  114. var code = getUserInfo('jobrespcd');
  115. //model.setValue(cmb_clssupcd.attribute("ref") ,"E");
  116. model.refresh();
  117. }
  118. /**========================================================================================================================================
  119. * 기타원목활동조회
  120. =========================================================================================================================================*/
  121. function fGetRemFthList(){
  122. model.removeNodeset("/root/send/reqdata");
  123. model.makeNode("/root/send/reqdata");
  124. model.copyNode("/root/send/reqdata", "/root/main/cond");
  125. submit("TRAYA03001");
  126. }
  127. /**========================================================================================================================================
  128. * 기타원목활동리스트 출력
  129. =========================================================================================================================================*/
  130. function fListPrnt(){
  131. exeReportPreview("RPAYA03001", "XMLSTR");
  132. }
  133. /**========================================================================================================================================
  134. * 기타원목활동리스트 초기화
  135. =========================================================================================================================================*/
  136. function fInitialize()
  137. {
  138. // 그리드초기화
  139. model.removeNodeset("/root/main/remfthlist/remfthinfo");
  140. model.resetInstanceNode("/root/main/remfthlist/totaltime/tottm");
  141. // 오늘 날짜로 세팅
  142. var curDt = getCurrentDate();
  143. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  144. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  145. model.removeNodeset(grd_remfthlist.nodeset);
  146. cmb_conslrid.select(0);
  147. cmb_clssupcd.select(0);
  148. model.refresh();
  149. }
  150. /**========================================================================================================================================
  151. * 원목자 권한
  152. =========================================================================================================================================*/
  153. function fGetJobrespcd(){
  154. //사용자ID (입력자 또는 로그인한 사용자ID)
  155. var userid = getUserInfo("userid");
  156. model.setValue(cmb_conslrid.attribute("ref"), userid);
  157. model.refresh();
  158. var code = getUserInfo('jobrespcd');
  159. if(code == '1070' || code == '1020' || code =='1030'){
  160. cmb_conslrid.disabled = false;
  161. }else{
  162. cmb_conslrid.disabled = true;
  163. }
  164. }
  165. ]]>
  166. </script>
  167. </xhtml:head>
  168. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  169. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  170. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:147px; height:14px; ">기타원목활동조회</caption>
  171. </group>
  172. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  173. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  174. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  175. <caption>초기화</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. fInitialize();
  179. ]]>
  180. </script>
  181. </button>
  182. </group>
  183. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  184. <caption id="caption21" class="tit_2" style="left:0px; top:50px; width:190px; height:14px; ">기타 원목활동내역</caption>
  185. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:69px; "/>
  186. <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  187. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  188. <button id="button2" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  189. <caption>조회</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. fGetRemFthList();
  193. ]]>
  194. </script>
  195. </button>
  196. <caption id="caption22" class="search_no_b" style="left:195px; top:10px; width:12px; height:17px; ">~</caption>
  197. <caption id="caption23" class="search_name" style="left:605px; top:10px; width:80px; height:17px; ">원목자 :</caption>
  198. <select1 id="cmb_conslrid" ref="/root/main/cond/conslrid" class="combo_default" appearance="minimal" style="left:690px; top:10px; width:130px; height:19px; ">
  199. <choices>
  200. <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
  201. <label ref="conslrnm"/>
  202. <value ref="conslrid"/>
  203. </itemset>
  204. </choices>
  205. </select1>
  206. <caption id="caption25" class="search_name" style="left:20px; top:10px; width:60px; height:17px; ">기간 :</caption>
  207. <caption id="caption26" class="search_name" style="left:355px; top:10px; width:86px; height:17px; ">항목구분 :</caption>
  208. <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  209. <input id="ipt_srchfromdd" ref="/root/main/cond/reffromdd" navindex="13" class="input_default" inputtype="date" style="left:90px; top:10px; width:100px; height:19px; "/>
  210. <input id="ipt_srchtodd" ref="/root/main/cond/reftodd" navindex="13" class="input_default" inputtype="date" style="left:210px; top:10px; width:100px; height:19px; "/>
  211. <select1 id="cmb_clssupcd" ref="/root/main/cond/clssupcd" class="combo_default" appearance="minimal" showvalue="false" style="left:450px; top:10px; width:135px; height:19px; ">
  212. <choices>
  213. <itemset nodeset="/root/init/comcodelist/clssuplist/clssupinfo">
  214. <label ref="clssupnm"/>
  215. <value ref="clssupcd"/>
  216. </itemset>
  217. </choices>
  218. </select1>
  219. <caption id="caption1" class="search_name" style="left:840px; top:11px; width:91px; height:17px; ">정렬기준 :</caption>
  220. <select1 id="rdo_sort" ref="/root/main/cond/sort" overflow="visible" appearance="full" rows="1" cols="4" cellspacing="6" style="left:935px; top:11px; width:125px; height:17px; 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. fGetRemFthList();
  234. ]]>
  235. </script>
  236. </select1>
  237. </group>
  238. <datagrid id="grd_remfthlist" nodeset="/root/main/remfthlist/remfthlistinfo" autoresize="true" caption="활동일자^항목^하위항목^담당원목자^수행횟수^소요시간^비고^clscd" colwidth="119, 151, 115, 100, 83, 83, 507, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" style="left:0px; top:70px; width:1190px; height:660px; ">
  239. <col ref="fthactdd" format="yyyy-mm-dd" style="text-align:center; "/>
  240. <col ref="clssupnm"/>
  241. <col ref="clsnm"/>
  242. <col ref="conslrnm" style="text-align:center; "/>
  243. <col ref="acttims" format="####" style="text-align:center; "/>
  244. <col ref="acttmmnt" style="text-align:center; "/>
  245. <col ref="actspec" autonext="true" allowuserresize="true"/>
  246. <col ref="clscd" visibility="hidden"/>
  247. <script type="javascript" ev:event="onaftersort">
  248. <![CDATA[
  249. grd_remfthlist.gridToInstance();
  250. ]]>
  251. </script>
  252. </datagrid>
  253. <button id="btn_prntlst" class="btn2_letter2" style="left:1135px; top:44px; width:42px; height:19px; ">
  254. <caption>출력</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. fListPrnt();
  258. ]]>
  259. </script>
  260. </button>
  261. <caption id="caption4" class="cell_1" style="left:937px; top:43px; width:70px; height:23px; text-align:center; vertical-align:middle; ">총소요시간</caption>
  262. <input id="input1" ref="/root/main/remfthlist/totaltime/tottm" disabled="true" style="left:1010px; top:45px; width:110px; height:19px; text-align:right; "/>
  263. <caption id="caption2" class="cell_1" style="left:807px; top:43px; width:70px; height:23px; text-align:center; vertical-align:middle; ">총수행횟수</caption>
  264. <input id="input2" ref="/root/main/remfthlist/totaltime/totacttims" disabled="true" style="left:880px; top:45px; width:50px; height:19px; text-align:right; "/>
  265. </group>
  266. </xhtml:body>
  267. </xhtml:html>