SMAAA03200_회의교육행사스케줄조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <festivyy/>
  12. <festivmm/>
  13. <bizflag/>
  14. <rgstteamflag/>
  15. <festivdate/>
  16. </cond>
  17. <schereflist/>
  18. <cal>
  19. <weeks>
  20. <sun/>
  21. <mon/>
  22. <tue/>
  23. <wed/>
  24. <thu/>
  25. <fri/>
  26. <sat/>
  27. </weeks>
  28. <weeks>
  29. <sun/>
  30. <mon/>
  31. <tue/>
  32. <wed/>
  33. <thu/>
  34. <fri/>
  35. <sat/>
  36. </weeks>
  37. <weeks>
  38. <sun/>
  39. <mon/>
  40. <tue/>
  41. <wed/>
  42. <thu/>
  43. <fri/>
  44. <sat/>
  45. </weeks>
  46. <weeks>
  47. <sun/>
  48. <mon/>
  49. <tue/>
  50. <wed/>
  51. <thu/>
  52. <fri/>
  53. <sat/>
  54. </weeks>
  55. <weeks>
  56. <sun/>
  57. <mon/>
  58. <tue/>
  59. <wed/>
  60. <thu/>
  61. <fri/>
  62. <sat/>
  63. </weeks>
  64. <weeks>
  65. <sun/>
  66. <mon/>
  67. <tue/>
  68. <wed/>
  69. <thu/>
  70. <fri/>
  71. <sat/>
  72. </weeks>
  73. </cal>
  74. <festivscheref>
  75. <caldatainfo>
  76. <basedd/>
  77. <dutflag/>
  78. <day/>
  79. <dw/>
  80. <weekno/>
  81. <educfestivnm/>
  82. </caldatainfo>
  83. </festivscheref>
  84. </main>
  85. <init>
  86. <cond>
  87. <A0513list/>
  88. <A0525list/>
  89. </cond>
  90. <insupdtvalue/>
  91. </init>
  92. <send>
  93. <reqdata/>
  94. <removedata/>
  95. </send>
  96. <hidden/>
  97. </root>
  98. </instance>
  99. <script type="javascript" ev:event="xforms-ready">
  100. <![CDATA[
  101. fSetCalendarStyle();
  102. fInit();
  103. ]]>
  104. </script>
  105. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  106. <submission id="TRAAA03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/festivscheref"/>
  107. </model>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/SPZUR00100.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tchartHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  117. </xhtml:head>
  118. <script type="javascript">
  119. <![CDATA[
  120. //1.초기화
  121. function fInit() {
  122. //조회년월 초기화
  123. var CurrentDate = getCurrentDate();
  124. var sYear = CurrentDate.substr(0,4);
  125. var sMonth = CurrentDate.substr(4,2);
  126. model.setValue("/root/main/cond/festivyy", sYear);
  127. model.setValue("/root/main/cond/festivmm", sMonth);
  128. model.setValue("/root/main/cond/bizflag", "0"); //스케줄구분 전체 셋팅
  129. model.setValue("/root/main/cond/rgstteamflag", "1");
  130. //공통코드를 조회한다.
  131. addComboItem("rdo_bizflag", "전체", "0", "above");
  132. addComboItem("rdo_rgstteamflag", "전체", "", "above");
  133. zbcfGetCodeList(new Array("A0513", "A0525"), new Array("/root/init/cond/A0513list", "/root/init/cond/A0525list"), true);
  134. fFestivScheRef();
  135. model.refresh();
  136. }
  137. //2.조회
  138. function fFestivScheRef() {
  139. var festivyy = model.getValue("/root/main/cond/festivyy");
  140. var festivmm = model.getValue("/root/main/cond/festivmm");
  141. var festivdate = festivyy.concat(festivmm);
  142. model.setValue("/root/main/cond/festivdate", festivdate);
  143. model.removeNodeset("/root/send/reqdata");
  144. model.makeNode("/root/send/reqdata");
  145. model.copynode("/root/send/reqdata", "/root/main/cond");
  146. if( submit("TRAAA03201") == true) {
  147. model.resetInstanceNode("/root/main/cal");
  148. fSetCalendar();
  149. fSetCalendarStyle();
  150. } else {
  151. messageBox("병원일정 데이터를 가져올 수", "I004");
  152. return;
  153. }
  154. }//fFestivScheRef END
  155. //달력정보 및 교육행사명을 달력에표시
  156. function fSetCalendar() {
  157. var selDataCnt = getNodesetCnt(model1, "/root/main/festivscheref/caldatainfo"); //노드의 갯수
  158. var dw = "sun mon tue wed thu fri sat";
  159. var sDay = dw.split(" ");
  160. for(i=1; i<=selDataCnt; i++) {
  161. var row = model.getValue("/root/main/festivscheref/caldatainfo["+ i +"]/weekno");
  162. var col = model.getValue("/root/main/festivscheref/caldatainfo["+ i +"]/dw")-1;
  163. var dutflag = model.getValue("/root/main/festivscheref/caldatainfo["+ i +"]/dutflag");
  164. if (dutflag == "4") { //토요일인 경우, 파란색 설정
  165. grd_calendar.cellStyle("color", row, col, row, col) = "#0000ff";
  166. } else if ( dutflag == '8') { //휴일인 경우, 빨간색 설정
  167. grd_calendar.cellStyle("color", row, col, row, col) = "#ff0000";
  168. } else { //그 이외는 검정색(평일 : 0)
  169. grd_calendar.cellStyle("color", row, col, row, col) = "#000000";
  170. }
  171. model.setValue("/root/main/cal/weeks[" + row + "]/" + sDay[col],
  172. model.getValue("/root/main/festivscheref/caldatainfo[" + i + "]/day") + "\n"
  173. +" " + model.getValue("/root/main/festivscheref/caldatainfo[" + i + "]/educfestivnm"));
  174. }
  175. model.refresh();
  176. }//fSetCalendar END
  177. //달력스타일셋팅
  178. function fSetCalendarStyle() {
  179. //height
  180. grd_calendar.dataHeight = 92;
  181. //font style
  182. grd_calendar.allStyle("all", "font-size") = "15px";
  183. //달력 기본색 지정
  184. grd_calendar.allStyle("all", "background-color") = "#ffffff"; //흰색
  185. }//fSetCalendarStyle END
  186. //달력클릭시
  187. function fSetColor() {
  188. var iRow = grd_calendar.row;
  189. var iCol = grd_calendar.col;
  190. if (iRow < 1) return;
  191. var selectedCells = grd_calendar.selectedCells;
  192. var cell = grd_calendar.selectedCells.item(0);
  193. var dataarray = grd_calendar.valueMatrix(cell.row, cell.col).split("\n"); //일
  194. var dd = model.getValue("/root/main/festivscheref/caldatainfo[day='" + dataarray[0] + "']/basedd"); //년월일
  195. if (dd != "") {
  196. grd_calendar.allStyle("all", "background-color") = "#ffffff"; //흰색
  197. grd_calendar.cellstyle("background-color", iRow, iCol, iRow, iCol) = "#ccffff"; //하늘색
  198. }
  199. model.refresh();
  200. }//fSetColor END
  201. //노드 갯수 구함
  202. function getNodesetCnt(srchModel, path) {
  203. var insXml = srchModel.instances(0);
  204. var nodeList = insXml.selectNodes(path);
  205. return nodeList.length;
  206. }//getNodesetCnt END
  207. ]]>
  208. </script>
  209. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  210. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  211. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">회의교육행사스케줄조회</caption>
  212. </group>
  213. <group id="group5" scroll="auto" style="left:0px; top:675px; width:1195px; height:65px; ">
  214. <line id="line37" class="line_6" style="x1:1px; y1:0px; x2:1195px; y2:0px; "/>
  215. </group>
  216. <group id="group4" style="left:0px; top:20px; width:1194px; height:35px; vertical-align:top; ">
  217. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  218. <caption id="caption7" class="search_name" style="left:25px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회년월 :</caption>
  219. <button id="btn_view" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  220. <caption>조회</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. fFestivScheRef();
  224. model.refresh();
  225. ]]>
  226. </script>
  227. </button>
  228. <select1 id="ipt_festivmm" ref="/root/main/cond/festivmm" class="combo_search" appearance="minimal" style="left:239px; top:9px; width:56px; height:19px; ">
  229. <choices>
  230. <item>
  231. <label>1</label>
  232. <value>01</value>
  233. </item>
  234. <item>
  235. <label>2</label>
  236. <value>02</value>
  237. </item>
  238. <item>
  239. <label>3</label>
  240. <value>03</value>
  241. </item>
  242. <item>
  243. <label>4</label>
  244. <value>04</value>
  245. </item>
  246. <item>
  247. <label>5</label>
  248. <value>05</value>
  249. </item>
  250. <item>
  251. <label>6</label>
  252. <value>06</value>
  253. </item>
  254. <item>
  255. <label>7</label>
  256. <value>07</value>
  257. </item>
  258. <item>
  259. <label>8</label>
  260. <value>08</value>
  261. </item>
  262. <item>
  263. <label>9</label>
  264. <value>09</value>
  265. </item>
  266. <item>
  267. <label>10</label>
  268. <value>10</value>
  269. </item>
  270. <item>
  271. <label>11</label>
  272. <value>11</value>
  273. </item>
  274. <item>
  275. <label>12</label>
  276. <value>12</value>
  277. </item>
  278. </choices>
  279. <script type="javascript" ev:event="xforms-value-changed">
  280. <![CDATA[
  281. fFestivScheRef();
  282. ]]>
  283. </script>
  284. </select1>
  285. <caption id="caption3" style="left:200px; top:9px; width:26px; height:19px; ">년도</caption>
  286. <caption id="caption4" style="left:300px; top:9px; width:26px; height:19px; ">월</caption>
  287. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  288. <caption id="caption2" class="search_name" style="left:381px; top:10px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">스케줄구분 :</caption>
  289. <select1 id="rdo_bizflag" ref="/root/main/cond/bizflag" appearance="full" cols="4" overflow="visible" style="left:480px; top:11px; width:250px; height:20px; border-style:none; ">
  290. <choices>
  291. <itemset nodeset="/root/init/cond/A0513list/A0513">
  292. <label ref="cdnm"/>
  293. <value ref="cdid"/>
  294. </itemset>
  295. </choices>
  296. <script type="javascript" ev:event="xforms-value-changed">
  297. <![CDATA[
  298. fFestivScheRef();
  299. ]]>
  300. </script>
  301. </select1>
  302. <caption id="caption1" class="search_name" style="left:735px; top:10px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
  303. <select1 id="rdo_rgstteamflag" ref="/root/main/cond/rgstteamflag" appearance="full" cols="5" overflow="visible" style="left:800px; top:10px; width:250px; height:20px; border-style:none; ">
  304. <choices>
  305. <itemset nodeset="/root/init/cond/A0525list/A0525">
  306. <label ref="cdnm"/>
  307. <value ref="cdid"/>
  308. </itemset>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. fFestivScheRef();
  313. ]]>
  314. </script>
  315. </select1>
  316. <select1 id="cmb_festivyy" ref="/root/main/cond/festivyy" class="combo_search" appearance="minimal" style="left:120px; top:9px; width:76px; height:19px; ">
  317. <choices>
  318. <item>
  319. <label>2007</label>
  320. <value>2007</value>
  321. </item>
  322. <item>
  323. <label>2008</label>
  324. <value>2008</value>
  325. </item>
  326. <item>
  327. <label>2009</label>
  328. <value>2009</value>
  329. </item>
  330. <item>
  331. <label>2010</label>
  332. <value>2010</value>
  333. </item>
  334. <item>
  335. <label>2011</label>
  336. <value>2011</value>
  337. </item>
  338. <item>
  339. <label>2012</label>
  340. <value>2012</value>
  341. </item>
  342. <item>
  343. <label>2013</label>
  344. <value>2013</value>
  345. </item>
  346. <item>
  347. <label>2014</label>
  348. <value>2014</value>
  349. </item>
  350. <item>
  351. <label>2015</label>
  352. <value>2015</value>
  353. </item>
  354. <item>
  355. <label>2016</label>
  356. <value>2016</value>
  357. </item>
  358. <item>
  359. <label>2017</label>
  360. <value>2017</value>
  361. </item>
  362. <item>
  363. <label>2018</label>
  364. <value>2018</value>
  365. </item>
  366. <item>
  367. <label>2019</label>
  368. <value>2019</value>
  369. </item>
  370. <item>
  371. <label>2020</label>
  372. <value>2020</value>
  373. </item>
  374. </choices>
  375. <script type="javascript" ev:event="xforms-value-changed">
  376. <![CDATA[
  377. fFestivScheRef();
  378. ]]>
  379. </script>
  380. </select1>
  381. </group>
  382. <caption id="caption9" class="tit_2" style="left:5px; top:64px; width:126px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">회의교육행사 일정</caption>
  383. <line id="line4" class="line_1" style="x1:0px; y1:82px; x2:1194px; y2:82px; "/>
  384. <switch id="swt_battmptsche" style="left:0px; top:87px; width:1192px; height:583px; ">
  385. <case id="case_calendar" selected="true">
  386. <datagrid id="grd_calendar" nodeset="/root/main/cal/weeks" allowselection="true" allowuserresize="false" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colsep="^" colwidth="169, 170, 170, 170, 170, 170, 169" defaultrows="7" extendlastcol="scroll" focuscolor="transparent" frozencols="1" rowsep="|" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:0px; width:1190px; height:580px; border-style:none; ">
  387. <col ref="sun" style="vertical-align:top; "/>
  388. <col ref="mon" style="vertical-align:top; "/>
  389. <col ref="tue" style="vertical-align:top; "/>
  390. <col ref="wed" style="vertical-align:top; "/>
  391. <col ref="thu" style="vertical-align:top; "/>
  392. <col ref="fri" style="vertical-align:top; "/>
  393. <col ref="sat" style="vertical-align:top; "/>
  394. <script type="javascript" ev:event="onclick">
  395. <![CDATA[
  396. fSetColor();
  397. ]]>
  398. </script>
  399. </datagrid>
  400. </case>
  401. </switch>
  402. </xhtml:body>
  403. </xhtml:html>