SMAYA03200_성사조회리스트.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAYA03200_성사조회리스트.xrw
  4. * 설 명 : 성사조회리스트
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2007.11.19
  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>C</clsflag>
  20. <scrndispyn/>
  21. <clslevl/>
  22. <clssupcd/>
  23. <clscd/>
  24. </cmbcond>
  25. <divsvclist>
  26. <divsvcinfo>
  27. <clsflag/>
  28. <clsnm/>
  29. <trgtmannm/>
  30. <baptnm/>
  31. <brthdatedd/>
  32. <cdnm/>
  33. <unitnm/>
  34. <pastornm/>
  35. <divsvcdd/>
  36. <fromtm/>
  37. <totm/>
  38. <plcenm/>
  39. </divsvcinfo>
  40. </divsvclist>
  41. <cond>
  42. <clssupcd>A</clssupcd>
  43. <clssupnm/>
  44. <titlnm/>
  45. <clscd/>
  46. <clsnm/>
  47. <reffromdd/>
  48. <reftodd/>
  49. <pastornm/>
  50. <outerpastoryn/>
  51. <divsvctrgtmanposcd/>
  52. <trgtmannm/>
  53. <sort>1</sort>
  54. <clsflag>C</clsflag>
  55. <chk/>
  56. </cond>
  57. </main>
  58. <send>
  59. <reqdata/>
  60. </send>
  61. <init>
  62. <comcodelist>
  63. <divsvctrgtmanposcd_cmblist>
  64. <A0212>
  65. <cdid/>
  66. <cdnm/>
  67. </A0212>
  68. </divsvctrgtmanposcd_cmblist>
  69. <clslist>
  70. <clsinfo>
  71. <clscd/>
  72. <clsnm/>
  73. </clsinfo>
  74. </clslist>
  75. <chrgconslrlist>
  76. <chrgconslrlistinfo>
  77. <conslrnm/>
  78. <conslrid/>
  79. </chrgconslrlistinfo>
  80. </chrgconslrlist>
  81. </comcodelist>
  82. </init>
  83. <hidden/>
  84. </root>
  85. </instance>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  93. <script type="javascript" ev:event="xforms-ready">
  94. <![CDATA[
  95. fInit();
  96. cmb_pastornm.select(0);
  97. cmb_divsvctrgtmanposcd.select(0);
  98. cmb_divsvctrgtmanposcd.disabled = true;
  99. cmb_clscd.select(0);
  100. cmb_clscd.disabled = true;
  101. ]]>
  102. </script>
  103. <submission id="TRZBC00101" method="post"/>
  104. <submission id="TRAYA03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/divsvclist"/>
  105. <submission id="TRAYA02801" method="post" ref="/root/send/reqdata" resultref="/root/init/comcodelist/chrgconslrlist"/>
  106. <submission id="TRAYA00101" method="post"/>
  107. <submission id="TRAYA03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cmbcond" replace="instance" resultref="/root/init/comcodelist/clssuplist"/>
  108. <submission id="TRAYA03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cmbcond" resultref="/root/init/comcodelist/clslist"/>
  109. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  110. </model>
  111. <script type="javascript">
  112. <![CDATA[
  113. /**========================================================================================================================================
  114. * 화면 오푼시
  115. =========================================================================================================================================*/
  116. function fInit() {
  117. //그리드 초기화
  118. model.removeNodeset("/root/main/divsvclist/divsvcinfo");
  119. grd_divsvclist.refresh();
  120. //현재월시작일자 ~ 현재일자로 세팅
  121. var CurrentDate = getCurrentDate();
  122. model.setValue("/root/main/cond/reffromdd", CurrentDate.substr(0, 6) + "01");
  123. model.setValue("/root/main/cond/reftodd", CurrentDate);
  124. model.refresh();
  125. //대상자 콤보리스트 조회
  126. zbcfGetCodeList(new Array("A0212"), new Array("/root/init/comcodelist/divsvctrgtmanposcd_cmblist"), true);
  127. model.refresh();
  128. //주례자 조회
  129. model.makeValue("/root/send/reqdata/joblncd", "A");
  130. submit("TRAYA02801", false);
  131. addComboItem("cmb_pastornm", "전체", "", "above");
  132. //조회구분, 화면표시여부,
  133. model.setValue("/root/main/cmbcond/clsflag", "C");
  134. model.setValue("/root/main/cmbcond/scrndispyn", "Y");
  135. model.setValue("/root/main/cmbcond/clslevl", "3");
  136. submit("TRAYA03202");
  137. addComboItem("cmb_clscd", "전체", "", "above");
  138. model.refresh();
  139. }
  140. /**========================================================================================================================================
  141. * 성사구분에 따른 콤보조회
  142. =========================================================================================================================================*/
  143. function fSrchDivSvcinfo(clssupcd){
  144. if(clssupcd == 'A'){
  145. cmb_clscd.disabled = true;
  146. model.setValue("/root/main/cmbcond/clssupcd",'A');
  147. model.refresh();
  148. }else if (clssupcd == 'B'){
  149. cmb_clscd.disabled = false ;
  150. model.setValue("/root/main/cmbcond/clssupcd",'B');
  151. model.refresh();
  152. }else if (clssupcd == 'C'){
  153. cmb_clscd.disabled = false ;
  154. model.setValue("/root/main/cmbcond/clssupcd",'C');
  155. model.refresh();
  156. }
  157. submit("TRAYA03202");
  158. addComboItem("cmb_clscd", "전체", "", "above");
  159. cmb_clscd.select(0);
  160. model.refresh();
  161. }
  162. /**========================================================================================================================================
  163. * 조회
  164. =========================================================================================================================================*/
  165. function fGetDivSvcList(){
  166. model.removeNodeset("/root/send/reqdata");
  167. model.makeNode("/root/send/reqdata");
  168. model.copyNode("/root/send/reqdata", "/root/main/cond");
  169. submit("TRAYA03201");
  170. }
  171. /**========================================================================================================================================
  172. * 출력
  173. =========================================================================================================================================*/
  174. function fListPrnt(){
  175. exeReportPreview("RPAYA03201", "XMLSTR");
  176. }
  177. /**========================================================================================================================================
  178. * 외부주례자 체크여부
  179. =========================================================================================================================================*/
  180. function fCheck(){
  181. if (bool1.value == "true")
  182. {
  183. cmb_pastornm.disabled = true;
  184. addComboItem("cmb_pastornm", "전체", "", "above");
  185. cmb_pastornm.select(0);
  186. }else{
  187. cmb_pastornm.disabled = false;
  188. }
  189. model.refresh();
  190. }
  191. /**========================================================================================================================================
  192. * 그리드 초기화
  193. =========================================================================================================================================*/
  194. function fClear(){
  195. model.resetInstanceNode("/root/main/divsvclist/divsvcinfo");
  196. model.resetInstanceNode("/root/main/cond");
  197. fInit();
  198. rdo_divsvc.value = 'A';
  199. rdo_sort.value = '1';
  200. model.refresh();
  201. }
  202. /**========================================================================================================================================
  203. * 성사구분에 따른 대상사소속 리스트
  204. =========================================================================================================================================*/
  205. function fSrchDivSvcTrgtMan() {
  206. var divsvc = model.getValue("/root/main/cond/clssupcd");
  207. var bizid; //업무규칙
  208. if(divsvc == 'A'){
  209. bizid = ""
  210. } else if(divsvc == 'B') {
  211. bizid = "A0008";
  212. } else if (divsvc == 'C') {
  213. bizid = "A0009";
  214. }
  215. // 초기화
  216. model.removeNodeset("/root/init/comcodelist/divsvctrgtmanposcd_cmblist");
  217. model.makeNode("/root/init/comcodelist/divsvctrgtmanposcd_cmblist");
  218. zbcfGetKindCodeList(
  219. new Array(bizid), //업무규칙
  220. new Array("A0212"), //코드군
  221. new Array("/root/init/comcodelist/divsvctrgtmanposcd_cmblist"), //노드
  222. true, //minimum : true TRZBC00105
  223. new Array("cdid"), //sorting 항목
  224. new Array("cdnm")
  225. );
  226. if (divsvc == 'A') {
  227. model.makeNode("/root/init/comcodelist/divsvctrgtmanposcd_cmblist/A0212");
  228. cmb_divsvctrgtmanposcd.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/divsvctrgtmanposcd_cmblist/A0212";
  229. cmb_divsvctrgtmanposcd.disabled = true;
  230. model.refresh();
  231. } else if (divsvc == 'B') {
  232. cmb_divsvctrgtmanposcd.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/divsvctrgtmanposcd_cmblist/A0008A0212";
  233. cmb_divsvctrgtmanposcd.disabled = false;
  234. model.refresh();
  235. } else if (divsvc == 'C') {
  236. cmb_divsvctrgtmanposcd.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/divsvctrgtmanposcd_cmblist/A0009A0212";
  237. cmb_divsvctrgtmanposcd.disabled = false;
  238. model.refresh();
  239. }
  240. addComboItem("cmb_divsvctrgtmanposcd", "전체", "", "above");
  241. cmb_divsvctrgtmanposcd.refresh();
  242. cmb_divsvctrgtmanposcd.select(0);
  243. }
  244. ]]>
  245. </script>
  246. </xhtml:head>
  247. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  248. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  249. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:225px; height:14px; ">성사정보조회</caption>
  250. </group>
  251. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  252. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  253. <button id="button38" class="btn4_letter3" style="left:1115px; top:4px; width:68px; height:22px; ">
  254. <caption>초기화</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. fClear();
  258. ]]>
  259. </script>
  260. </button>
  261. </group>
  262. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  263. <caption id="caption21" class="tit_2" style="left:0px; top:80px; width:209px; height:14px; ">성사정보조회 리스트</caption>
  264. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:99px; "/>
  265. <datagrid id="grd_divsvclist" nodeset="/root/main/divsvclist/divsvcinfo" caption="성사/축복식명^대상(자)명^세례명^생년월일^대상자소속^부서명^주례자^성사일자^시작시간^종료시간^장소^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="102, 106, 96, 82, 106, 137, 124, 95, 83, 83, 107" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:103px; width:1195px; height:640px; ">
  266. <![CDATA[>]]>
  267. <col ref="clsnm" style="text-align:center; "/>
  268. <col ref="trgtmannm" style="text-align:center; "/>
  269. <col ref="baptnm" style="text-align:center; "/>
  270. <col ref="brthdatedd" format="yyyy-mm-dd" style="text-align:center; "/>
  271. <col ref="cdnm" style="text-align:center; "/>
  272. <col ref="unitnm" style="text-align:left; "/>
  273. <col ref="pastornm" style="text-align:center; "/>
  274. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  275. <col ref="fromtm" format="hh:nn" style="text-align:center; "/>
  276. <col ref="totm" format="hh:nn" style="text-align:center; "/>
  277. <col ref="plcenm" style="text-align:left; "/>
  278. </datagrid>
  279. <group id="group4" style="left:0px; top:5px; width:1194px; height:63px; vertical-align:top; ">
  280. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  281. <caption id="caption25" class="search_name" style="left:20px; top:10px; width:110px; height:17px; ">성 사 구 분 :</caption>
  282. <caption id="caption26" class="search_name" style="left:415px; top:10px; width:98px; height:17px; ">성 사 일 :</caption>
  283. <button id="btn_srch" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  284. <caption>조회</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. fGetDivSvcList();
  288. ]]>
  289. </script>
  290. </button>
  291. <select1 id="rdo_divsvc" ref="/root/main/cond/clssupcd" appearance="full" cellspacing="6" cols="4" rows="1" overflow="visible" style="left:130px; top:10px; width:165px; height:17px; border-style:none; ">
  292. <choices>
  293. <item>
  294. <label>전체</label>
  295. <value>A</value>
  296. </item>
  297. <item>
  298. <label>성사</label>
  299. <value>B</value>
  300. </item>
  301. <item>
  302. <label>축복식</label>
  303. <value>C</value>
  304. </item>
  305. </choices>
  306. <script type="javascript" ev:event="xforms-select">
  307. <![CDATA[
  308. var clssupcd = model.getValue('/root/main/cond/clssupcd');
  309. fSrchDivSvcinfo (clssupcd);
  310. fSrchDivSvcTrgtMan();
  311. ]]>
  312. </script>
  313. </select1>
  314. <input id="ipt_reffromdd" ref="/root/main/cond/reffromdd" class="input_default" navindex="13" inputtype="date" style="left:515px; top:10px; width:100px; height:19px; "/>
  315. <input id="ipt_reftodd" ref="/root/main/cond/reftodd" class="input_default" navindex="13" inputtype="date" style="left:635px; top:10px; width:100px; height:19px; "/>
  316. <caption id="caption9" class="search_no_b" style="left:620px; top:10px; width:12px; height:17px; ">~</caption>
  317. <caption id="caption1" class="search_name" style="left:20px; top:35px; width:105px; height:17px; ">대상자소속 :</caption>
  318. <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
  319. <caption id="caption2" class="search_name" style="left:755px; top:35px; width:101px; height:17px; ">정렬기준 :</caption>
  320. <select1 id="rdo_sort" ref="/root/main/cond/sort" appearance="full" cellspacing="6" cols="4" rows="1" overflow="visible" style="left:845px; top:35px; width:230px; height:17px; border-style:none; ">
  321. <choices>
  322. <item>
  323. <label>일자</label>
  324. <value>1</value>
  325. </item>
  326. <item>
  327. <label>성사</label>
  328. <value>2</value>
  329. </item>
  330. <item>
  331. <label>소속</label>
  332. <value>3</value>
  333. </item>
  334. <item>
  335. <label>주례자</label>
  336. <value>4</value>
  337. </item>
  338. </choices>
  339. <script type="javascript" ev:event="xforms-select">
  340. <![CDATA[
  341. fGetDivSvcList();
  342. ]]>
  343. </script>
  344. </select1>
  345. <input id="ipt_trgtmannm" ref="/root/main/cond/trgtmannm" imemode="hangul" style="left:515px; top:35px; width:100px; height:19px; ">
  346. <script type="javascript" ev:event="onkeypress">
  347. <![CDATA[
  348. if(event.keyCode == "13") {
  349. }
  350. ]]>
  351. </script>
  352. <script type="javascript" ev:event="onkeydown">
  353. <![CDATA[
  354. ]]>
  355. </script>
  356. </input>
  357. <select1 id="cmb_clscd" ref="/root/main/cond/clscd" class="combo_default" appearance="minimal" style="left:300px; top:10px; width:90px; height:19px; ">
  358. <choices>
  359. <itemset nodeset="/root/init/comcodelist/clslist/clsinfo">
  360. <label ref="clsnm"/>
  361. <value ref="clscd"/>
  362. </itemset>
  363. </choices>
  364. </select1>
  365. <select1 id="cmb_pastornm" ref="/root/main/cond/pastornm" class="combo_default" appearance="minimal" style="left:845px; top:10px; width:130px; height:19px; ">
  366. <choices>
  367. <itemset nodeset="/root/init/comcodelist/chrgconslrlist/chrgconslrlistinfo">
  368. <label ref="conslrnm"/>
  369. <value ref="conslrid"/>
  370. </itemset>
  371. </choices>
  372. </select1>
  373. <caption id="caption12" class="search_name" style="left:755px; top:10px; width:99px; height:17px; ">주 례 자 :</caption>
  374. <caption id="caption3" class="search_name" style="left:415px; top:35px; width:99px; height:17px; ">대상자명 :</caption>
  375. <select1 id="cmb_divsvctrgtmanposcd" ref="/root/main/cond/divsvctrgtmanposcd" class="combo_search" appearance="minimal" showvalue="false" style="left:130px; top:35px; width:130px; height:19px; ">
  376. <choices>
  377. <itemset>
  378. <label ref="cdnm"/>
  379. <value ref="cdid"/>
  380. </itemset>
  381. </choices>
  382. </select1>
  383. <bool id="bool1" checkvalue="Y" ref="/root/main/cond/outerpastoryn" style="left:990px; top:10px; width:25px; height:20px; ">
  384. <script type="javascript" ev:event="xforms-value-changed">
  385. <![CDATA[
  386. fCheck();
  387. ]]>
  388. </script>
  389. </bool>
  390. <caption id="chk_outerpastoryn" style="left:1015px; top:10px; width:62px; height:20px; ">외부주례자</caption>
  391. </group>
  392. <button id="button10" class="btn2_letter2" style="left:1130px; top:74px; width:42px; height:19px; ">
  393. <caption>출력</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. fListPrnt();
  397. ]]>
  398. </script>
  399. </button>
  400. </group>
  401. </xhtml:body>
  402. </xhtml:html>