SMAAA01100_휴가탈단재입단현황조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>휴가탈단재입단현황조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <prescondfromdd/>
  12. <prescondtodd/>
  13. <flagcd/>
  14. </cond>
  15. <prescondref>
  16. <holipsnref>
  17. <voluntrid/>
  18. <actdeptcd/>
  19. <actdeptdetlnm/>
  20. <voluntractdwcd/>
  21. <voluntractteamcd/>
  22. <voluntrnm/>
  23. <fromdd/>
  24. <todd/>
  25. <holicd/>
  26. <holijobrem/>
  27. </holipsnref>
  28. <quitorgpsnref>
  29. <voluntrid/>
  30. <actdeptcd/>
  31. <actdeptdetlnm/>
  32. <voluntractdwcd/>
  33. <voluntractteamcd/>
  34. <voluntrnm/>
  35. <joinorgdd/>
  36. <rejoinorgdd/>
  37. <quitorgdd/>
  38. <quitorgresn/>
  39. </quitorgpsnref>
  40. <rejoinorgpsnref>
  41. <voluntrid/>
  42. <actdeptcd/>
  43. <actdeptdetlnm/>
  44. <voluntractdwcd/>
  45. <voluntractteamcd/>
  46. <voluntrnm/>
  47. <joinorgdd/>
  48. <rejoinorgdd/>
  49. <quitorgdd/>
  50. </rejoinorgpsnref>
  51. </prescondref>
  52. </main>
  53. <init>
  54. <cond>
  55. <A0503list/>
  56. </cond>
  57. <A0359list/>
  58. <A0360list/>
  59. <A0020list/>
  60. </init>
  61. <send>
  62. <reqdata/>
  63. <savedata/>
  64. </send>
  65. </root>
  66. </instance>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fInit();
  70. ]]>
  71. </script>
  72. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  73. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  74. <submission id="TRAAA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prescondref"/>
  75. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  76. </model>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  83. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  84. </xhtml:head>
  85. <script type="javascript">
  86. <![CDATA[//1. 화명 오픈시 초기화
  87. function fInit() {
  88. model.removeNodeset("/root/main/prescondref/holipsnref");
  89. model.removeNodeset("/root/main/prescondref/quitorgpsnref");
  90. model.removeNodeset("/root/main/prescondref/rejoinorgpsnref");
  91. model.resetInstanceNode("/root/main/cond");
  92. var CurrentDate = getCurrentDate();
  93. var prescondfromdd = CurrentDate.substr(0,6)+"01";
  94. model.setValue("/root/main/cond/prescondfromdd", prescondfromdd);
  95. var sDate = getNewDate(); //달의 마지막날 가져오기
  96. var lastDate = sDate.getFullYear();
  97. lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
  98. lastDate = lastDate.toString() + sDate.getMonthDay();
  99. model.setValue("/root/main/cond/prescondtodd", lastDate);
  100. model.setValue("/root/main/cond/flagcd", "0");
  101. //공통코드를 조회한다.
  102. addComboItem("cmb_flagcd", "전체", "0", "above");
  103. zbcfGetCodeList(new Array("A0503","A0359", "A0360"), new Array("/root/init/cond/A0503list", "/root/init/A0359list", "/root/init/A0360list"), true);//input박스는 한개 instance만 교체
  104. //유형코드 조회(Cache 방식) -자원봉사자휴가병가구분
  105. zbcfGetKindCodeList(
  106. new Array("A0020"), //업무규칙
  107. new Array("A0506"), //코드군
  108. new Array("/root/init/A0020list"), //노드
  109. true, //minimum : true TRZBC00105
  110. new Array("dispseq"), //sorting 항목
  111. new Array("asc")
  112. );
  113. // grd_holipsnref.colRef("actdeptcd").choices.itemset.attribute("nodeset") = "/root/init/cond/A0503list/A0503";
  114. // grd_holipsnref.colRef("voluntractdwcd").choices.itemset.attribute("nodeset") = "/root/init/A0359list/A0359";
  115. // grd_holipsnref.colRef("voluntractteamcd").choices.itemset.attribute("nodeset") = "/root/init/A0360list/A0360";
  116. // grd_holipsnref.colRef("holicd").choices.itemset.attribute("nodeset") = "/root/init/A0020list/A0020A0506";
  117. model.refresh();
  118. }
  119. //조회버튼시(휴가자명단 조회)
  120. function fRefHoliPsnList() {
  121. if (model.getValue("/root/main/cond/prescondfromdd") > model.getValue("/root/main/cond/prescondtodd")) {
  122. messageBox("올바른 조회기간을","C001");
  123. model.setFocus("ipt_prescondfromdd");
  124. return false;
  125. }
  126. if (model.getValue("/root/main/cond/prescondfromdd") == "" ) {
  127. messageBox("시작일자는 ","I003");
  128. model.setFocus("ipt_prescondfromdd");
  129. return false;
  130. }
  131. if (model.getValue("/root/main/cond/prescondfromdd").length != 8 ) {
  132. messageBox("올바른 시작일자 항목을","C001");
  133. model.setFocus("ipt_prescondfromdd");
  134. return false;
  135. }
  136. if (model.getValue("/root/main/cond/prescondtodd") == "" ) {
  137. messageBox("종료일자는 ","I003");
  138. model.setFocus("ipt_prescondtodd");
  139. return false;
  140. }
  141. if (model.getValue("/root/main/cond/prescondtodd").length != 8 ) {
  142. messageBox("올바른 종료일자 항목을","C001");
  143. model.setFocus("ipt_prescondtodd");
  144. return false;
  145. }
  146. model.removeNodeset("/root/send/reqdata");
  147. model.makeNode("/root/send/reqdata");
  148. model.copyNode("/root/send/reqdata", "/root/main/cond");
  149. submit("TRAAA01101");
  150. }
  151. //초기화
  152. function fReset() {
  153. var btn = messageBox("초기화를 ", "Q004");
  154. if (btn == '6') {
  155. model.removeNodeset("/root/main/prescondref/holipsnref");
  156. model.removeNodeset("/root/main/prescondref/quitorgpsnref");
  157. model.removeNodeset("/root/main/prescondref/rejoinorgpsnref");
  158. model.resetInstanceNode("/root/main/cond");
  159. model.setValue("/root/main/cond/flagcd", "0");
  160. var Ndate = getNewDate();
  161. var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
  162. model.setValue("/root/main/cond/prescondfromdd", Idate);
  163. model.setValue("/root/main/cond/prescondtodd", getCurrentDate());
  164. model.refresh();
  165. } else if (btn == '7') {
  166. return;
  167. }
  168. }//fReset END
  169. //엑셀저장 버튼 클릭시(휴가자)
  170. function fExcel1() {
  171. if (grd_holipsnref.rows <= 1) {
  172. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  173. return;
  174. }
  175. var fileName = window.fileDialog("save", ",", false, "휴가자명단조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  176. if (fileName != ""){
  177. grd_holipsnref.saveExcel(fileName, "SheetName", false, false, "", "", false);
  178. }
  179. }//fExcel END
  180. //엑셀저장 버튼 클릭시(탈단자)
  181. function fExcel2() {
  182. if (grd_quitorgpsnreff.rows <= 1) {
  183. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  184. return;
  185. }
  186. var fileName = window.fileDialog("save", ",", false, "탈단자명단조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  187. if (fileName != ""){
  188. grd_quitorgpsnreff.saveExcel(fileName, "SheetName", false, false, "", "", false);
  189. }
  190. }//fExcel END
  191. //엑셀저장 버튼 클릭시(재입단자)
  192. function fExcel3() {
  193. if (grd_rejoinorgpsnref.rows <= 1) {
  194. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  195. return;
  196. }
  197. var fileName = window.fileDialog("save", ",", false, "재입단자명단조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  198. if (fileName != ""){
  199. grd_rejoinorgpsnref.saveExcel(fileName, "SheetName", false, false, "", "", false);
  200. }
  201. }//fExcel END
  202. ]]>
  203. </script>
  204. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  205. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  206. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">휴가탈단재입단현황조회</caption>
  207. </group>
  208. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  209. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  210. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  211. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  212. <caption>조회</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. fRefHoliPsnList();
  216. ]]>
  217. </script>
  218. </button>
  219. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  220. <caption id="caption3" class="search_name" style="left:20px; top:10px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기간 :</caption>
  221. <caption id="caption5" class="search_no_b" style="left:220px; top:10px; width:12px; height:17px; ">~</caption>
  222. <input id="ipt_prescondtodd" ref="/root/main/cond/prescondtodd" class="input_search" inputtype="date" style="left:245px; top:10px; width:93px; height:19px; text-align:left; "/>
  223. <input id="ipt_prescondfromdd" ref="/root/main/cond/prescondfromdd" class="input_search" inputtype="date" style="left:112px; top:10px; width:93px; height:19px; text-align:left; "/>
  224. <select1 id="cmb_flagcd" ref="/root/main/cond/flagcd" class="combo_search" appearance="minimal" style="left:540px; top:10px; width:105px; height:19px; ">
  225. <choices>
  226. <itemset nodeset="/root/init/cond/A0503list/A0503">
  227. <label ref="cdnm"/>
  228. <value ref="cdid"/>
  229. </itemset>
  230. </choices>
  231. </select1>
  232. <caption id="caption12" class="search_name" style="left:445px; top:10px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동그룹 :</caption>
  233. </group>
  234. <datagrid id="grd_holipsnref" nodeset="/root/main/prescondref/holipsnref" autoresize="true" caption="caption1^활동그룹^활동그룹^활동요일^활동시간대^성명^휴가시작일^휴가종료일^휴가구분^휴가사유" colsep="^" colwidth="100, 111, 131, 68, 105, 105, 105, 105, 105, 192" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:76px; width:1194px; height:205px; ">
  235. <col ref="voluntrid" visibility="hidden"/>
  236. <col disabled="true" ref="actdeptcd" type="combo" style="text-align:center; ">
  237. <choices>
  238. <itemset nodeset="/root/init/cond/A0503list/A0503">
  239. <label ref="cdnm"/>
  240. <value ref="cdid"/>
  241. </itemset>
  242. </choices>
  243. </col>
  244. <col explorerbar="sort" ref="actdeptdetlnm" style="text-align:center; "/>
  245. <col disabled="true" ref="voluntractdwcd" type="combo" style="left:348px; top:23px; width:58px; height:23px; text-align:center; ">
  246. <choices>
  247. <itemset nodeset="/root/init/A0359list/A0359">
  248. <label ref="cdnm"/>
  249. <value ref="cdid"/>
  250. </itemset>
  251. </choices>
  252. </col>
  253. <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
  254. <choices>
  255. <itemset nodeset="/root/init/A0360list/A0360">
  256. <label ref="cdnm"/>
  257. <value ref="cdid"/>
  258. </itemset>
  259. </choices>
  260. </col>
  261. <col ref="voluntrnm" style="text-align:center; "/>
  262. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  263. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  264. <col disabled="true" ref="holicd" type="combo" style="text-align:center; ">
  265. <choices>
  266. <itemset nodeset="/root/init/A0020list/A0020A0506">
  267. <label ref="cdnm"/>
  268. <value ref="cdid"/>
  269. </itemset>
  270. </choices>
  271. </col>
  272. <col ref="holijobrem"/>
  273. </datagrid>
  274. <datagrid id="grd_quitorgpsnreff" nodeset="/root/main/prescondref/quitorgpsnref" autoresize="true" caption="caption1^활동그룹^활동그룹^활동요일^활동시간대^성명^입단일^재입단일^탈단일^탈단사유" colsep="^" colwidth="100, 111, 131, 67, 106, 105, 105, 105, 105, 176" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:306px; width:1194px; height:205px; ">
  275. <col ref="voluntrid" visibility="hidden"/>
  276. <col disabled="true" ref="actdeptcd" type="combo" style="text-align:center; ">
  277. <choices>
  278. <itemset nodeset="/root/init/cond/A0503list/A0503">
  279. <label ref="cdnm"/>
  280. <value ref="cdid"/>
  281. </itemset>
  282. </choices>
  283. </col>
  284. <col ref="actdeptdetlnm" style="text-align:center; "/>
  285. <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
  286. <choices>
  287. <itemset nodeset="/root/init/A0359list/A0359">
  288. <label ref="cdnm"/>
  289. <value ref="cdid"/>
  290. </itemset>
  291. </choices>
  292. </col>
  293. <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
  294. <choices>
  295. <itemset nodeset="/root/init/A0360list/A0360">
  296. <label ref="cdnm"/>
  297. <value ref="cdid"/>
  298. </itemset>
  299. </choices>
  300. </col>
  301. <col ref="voluntrnm" style="text-align:center; "/>
  302. <col ref="joinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  303. <col ref="rejoinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  304. <col ref="quitorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  305. <col ref="quitorgresn"/>
  306. </datagrid>
  307. <datagrid id="grd_rejoinorgpsnref" nodeset="/root/main/prescondref/rejoinorgpsnref" autoresize="true" caption="caption1^활동그룹^활동그룹^활동요일^활동시간대^성명^입단일^재입단일^과거탈단일" colsep="^" colwidth="100, 111, 131, 68, 105, 105, 105, 105, 270" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:536px; width:1194px; height:205px; ">
  308. <col ref="voluntrid" visibility="hidden"/>
  309. <col disabled="true" ref="actdeptcd" type="combo" validateformat="true" style="text-align:center; ">
  310. <choices>
  311. <itemset nodeset="/root/init/cond/A0503list/A0503">
  312. <label ref="cdnm"/>
  313. <value ref="cdid"/>
  314. </itemset>
  315. </choices>
  316. </col>
  317. <col ref="actdeptdetlnm" style="text-align:center; "/>
  318. <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
  319. <choices>
  320. <itemset nodeset="/root/init/A0359list/A0359">
  321. <label ref="cdnm"/>
  322. <value ref="cdid"/>
  323. </itemset>
  324. </choices>
  325. </col>
  326. <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
  327. <choices>
  328. <itemset nodeset="/root/init/A0360list/A0360">
  329. <label ref="cdnm"/>
  330. <value ref="cdid"/>
  331. </itemset>
  332. </choices>
  333. </col>
  334. <col ref="voluntrnm" style="text-align:center; "/>
  335. <col ref="joinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  336. <col ref="rejoinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  337. <col autonext="true" ref="quitorgdd" format="9999-99-99" style="text-align:center; "/>
  338. </datagrid>
  339. <button id="button2" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1116px; top:53px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  340. <caption>엑셀저장</caption>
  341. <script type="javascript" ev:event="DOMActivate">
  342. <![CDATA[
  343. fExcel1();
  344. ]]>
  345. </script>
  346. </button>
  347. <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1116px; top:283px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  348. <caption>엑셀저장</caption>
  349. <script type="javascript" ev:event="DOMActivate">
  350. <![CDATA[
  351. fExcel2();
  352. ]]>
  353. </script>
  354. </button>
  355. <button id="button4" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1117px; top:513px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  356. <caption>엑셀저장</caption>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. fExcel3();
  360. ]]>
  361. </script>
  362. </button>
  363. </group>
  364. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  365. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  366. <button id="btn_save" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1122px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  367. <caption>초기화</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. fReset();
  371. ]]>
  372. </script>
  373. </button>
  374. </group>
  375. <caption id="caption1" class="tit_2" style="left:5px; top:71px; width:126px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">휴가자명단</caption>
  376. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
  377. <caption id="caption4" class="tit_2" style="left:5px; top:301px; width:126px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">탈단원명단</caption>
  378. <line id="line2" class="line_1" style="x1:0px; y1:316px; x2:1194px; y2:316px; "/>
  379. <caption id="caption7" class="tit_2" style="left:5px; top:531px; width:126px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">재입단자명단</caption>
  380. <line id="line3" class="line_1" style="x1:0px; y1:546px; x2:1194px; y2:546px; "/>
  381. <line id="line4" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
  382. </xhtml:body>
  383. </xhtml:html>