SMAYA00300_연간일정조회.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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. <refschefromdd/>
  12. <refschetodd/>
  13. <scheflagcd/>
  14. <schecntscd/>
  15. <conslrid/>
  16. <sortbase>1</sortbase>
  17. </cond>
  18. <yyschelist>
  19. <yyschelistinfo>
  20. <fromdd/>
  21. <todd/>
  22. <conslrnm/>
  23. <scheflagcd/>
  24. <schecntscd/>
  25. <cost/>
  26. <diplyn/>
  27. <plcenm/>
  28. <rem/>
  29. <conslrid/>
  30. </yyschelistinfo>
  31. </yyschelist>
  32. </main>
  33. <send>
  34. <reqdata/>
  35. </send>
  36. <init>
  37. <comcodelist>
  38. <scheflag_cmblist/>
  39. <scheflag_all_cmblist>
  40. <A0217>
  41. <cdid>0</cdid>
  42. <cdnm>전체</cdnm>
  43. </A0217>
  44. </scheflag_all_cmblist>
  45. <schecnts_cmblist/>
  46. <schecnts_kindcmblist/>
  47. <conslrlist>
  48. <conslrlistinfo>
  49. <conslrid/>
  50. <conslrnm>전체</conslrnm>
  51. </conslrlistinfo>
  52. </conslrlist>
  53. </comcodelist>
  54. </init>
  55. <hidden/>
  56. </root>
  57. </instance>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. fInit();
  61. ]]>
  62. </script>
  63. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  64. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  65. <submission id="TRAYA00101" method="post" ref="/root/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
  66. <submission id="TRAYA00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/yyschelist"/>
  67. </model>
  68. <script type="javascript">
  69. <![CDATA[
  70. //화면 오픈시
  71. function fInit() {
  72. //그리드 초기화
  73. model.removeNodeset("/root/main/yyschelist/yyschelistinfo");
  74. // 오늘 날짜로 세팅
  75. var CurrentDate = getCurrentDate();
  76. model.setValue("/root/main/cond/refschefromdd", CurrentDate.substr(0, 4) + "0101");
  77. model.setValue("/root/main/cond/refschetodd", CurrentDate);
  78. model.setValue("/root/main/cond/scheflagcd", "0");
  79. fScheflagChgRef();
  80. model.setValue("/root/main/cond/schecntscd", "000");
  81. // 원목자 조회
  82. //submit("TRAYA00101");
  83. model.makeValue("/root/send/reqdata/joblncd", "B");
  84. submit("TRAYA00101", false);
  85. addComboItem("cmb_conslrid", "전체", "", "above");
  86. //연간일정구분 , 연간일정내용 콤보리스트 조회
  87. zbcfGetCodeList(new Array("A0217", "A0217", "A0218"), new Array("/root/init/comcodelist/scheflag_cmblist", "/root/init/comcodelist/scheflag_all_cmblist", "/root/init/comcodelist/schecnts_cmblist"), true);
  88. model.refresh();
  89. }
  90. //일정구분콤보 선택에 따른 내용 콤보 조회
  91. function fScheflagChgRef() {
  92. var scheflagcd = model.getValue("/root/main/cond/scheflagcd");
  93. var bizid; //업무규칙
  94. if (scheflagcd == '0' ) { //전체
  95. model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
  96. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdid");
  97. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdnm");
  98. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdid", '000');
  99. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdnm", '전체');
  100. } else if (scheflagcd == 'A') {
  101. bizid = "A0002";
  102. model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
  103. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdid");
  104. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdnm");
  105. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdid", 'A00');
  106. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdnm", '전체');
  107. } else if (scheflagcd == 'B') {
  108. bizid = "A0003";
  109. model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
  110. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdid");
  111. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdnm");
  112. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdid", 'B00');
  113. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdnm", '전체');
  114. } else if (scheflagcd == 'C') {
  115. bizid = "A0004";
  116. model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
  117. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdid");
  118. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdnm");
  119. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdid", 'C00');
  120. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdnm", '전체');
  121. } else if (scheflagcd == 'D') {
  122. bizid = "A0005";
  123. model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
  124. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdid");
  125. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdnm");
  126. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdid", 'D00');
  127. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdnm", '전체');
  128. } else if (scheflagcd == 'Z') {
  129. bizid = "A0006";
  130. model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
  131. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdid");
  132. model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdnm");
  133. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdid", 'Z00');
  134. model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdnm", '전체');
  135. }
  136. zbcfGetKindCodeList(
  137. new Array(bizid), //업무규칙
  138. new Array("A0218"), //코드군
  139. new Array("/root/init/comcodelist/schecnts_kindcmblist"), //노드
  140. true, //minimum : true TRZBC00105
  141. new Array("cdid"), //sorting 항목
  142. new Array("asc")
  143. );
  144. if (scheflagcd == '0') {
  145. cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0218";
  146. } else if (scheflagcd == 'A') {
  147. cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0002A0218";
  148. } else if (scheflagcd == 'B') {
  149. cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0003A0218";
  150. } else if (scheflagcd == 'C') {
  151. cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0004A0218";
  152. } else if (scheflagcd == 'D') {
  153. cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0005A0218";
  154. } else if (scheflagcd == 'Z') {
  155. cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0006A0218";
  156. }
  157. //cmb_schecnts.refresh();
  158. if (scheflagcd == '0' ) { //전체
  159. model.setValue("/root/main/cond/schecntscd", '000');
  160. } else if (scheflagcd == 'A') {
  161. model.setValue("/root/main/cond/schecntscd", 'A00');
  162. } else if (scheflagcd == 'B') {
  163. model.setValue("/root/main/cond/schecntscd", 'B00');
  164. } else if (scheflagcd == 'C') {
  165. model.setValue("/root/main/cond/schecntscd", 'C00');
  166. } else if (scheflagcd == 'D') {
  167. model.setValue("/root/main/cond/schecntscd", 'D00');
  168. } else if (scheflagcd == 'Z') {
  169. model.setValue("/root/main/cond/schecntscd", 'Z00');
  170. }
  171. model.refresh();
  172. }
  173. //리스트조회
  174. function fSepYYScheListRef() {
  175. model.removeNodeset("/root/send/reqdata");
  176. model.makeNode("/root/send/reqdata");
  177. model.copyNode("/root/send/reqdata", "/root/main/cond");
  178. // reqGetSepYYScheListInfo
  179. // getSepYYScheListInfo
  180. submit("TRAYA00301");
  181. }
  182. //엑셀저장
  183. function fExcelSave() {
  184. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  185. if (fileName != "")
  186. {
  187. grd_yyschelist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  188. //grd_yyschelist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  189. }
  190. }
  191. ]]>
  192. </script>
  193. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  194. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  195. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  196. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  199. </xhtml:head>
  200. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  201. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  202. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">연간일정조회</caption>
  203. </group>
  204. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  205. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  206. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  207. <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  208. <caption>조회</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fSepYYScheListRef();
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption3" class="search_name" style="left:20px; top:10px; width:99px; height:17px; ">조회기간 :</caption>
  216. <caption id="caption5" class="search_no_b" style="left:230px; top:10px; width:12px; height:17px; ">~</caption>
  217. <input id="input1" ref="/root/main/cond/refschetodd" class="input_search" inputtype="date" style="left:250px; top:10px; width:100px; height:19px; "/>
  218. <input id="input5" ref="/root/main/cond/refschefromdd" class="input_search" inputtype="date" style="left:125px; top:10px; width:100px; height:19px; "/>
  219. <caption id="caption12" class="search_name" style="left:420px; top:10px; width:70px; height:17px; ">구 분 :</caption>
  220. <caption id="caption2" class="search_name" style="left:695px; top:10px; width:85px; height:17px; ">내 용 :</caption>
  221. <select1 id="cmb_scheflag" ref="/root/main/cond/scheflagcd" class="combo_search" appearance="minimal" style="left:505px; top:10px; width:120px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/init/comcodelist/scheflag_all_cmblist/A0217">
  224. <label ref="cdnm"/>
  225. <value ref="cdid"/>
  226. </itemset>
  227. </choices>
  228. <script type="javascript" ev:event="xforms-select">
  229. <![CDATA[
  230. fScheflagChgRef();
  231. ]]>
  232. </script>
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. //fScheflagChgRef();
  236. ]]>
  237. </script>
  238. </select1>
  239. <select1 id="cmb_schecnts" ref="/root/main/cond/schecntscd" class="combo_search" appearance="minimal" style="left:795px; top:10px; width:120px; height:19px; ">
  240. <choices>
  241. <itemset>
  242. <label ref="cdnm"/>
  243. <value ref="cdid"/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. <caption id="caption4" class="search_name" style="left:420px; top:35px; width:80px; height:17px; ">원목자 :</caption>
  248. <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
  249. <caption id="caption7" class="search_name" style="left:695px; top:35px; width:86px; height:17px; ">정렬기준 :</caption>
  250. <select1 id="radio1" ref="/root/main/cond/sortbase" overflow="visible" appearance="full" cols="3" style="left:795px; top:35px; width:180px; height:20px; border-style:none; ">
  251. <choices>
  252. <item>
  253. <label>일자</label>
  254. <value>1</value>
  255. </item>
  256. <item>
  257. <label>구분</label>
  258. <value>2</value>
  259. </item>
  260. <item>
  261. <label>원목자</label>
  262. <value>3</value>
  263. </item>
  264. </choices>
  265. </select1>
  266. <select1 id="cmb_conslrid" ref="/root/main/cond/conslrid" appearance="minimal" style="left:505px; top:35px; width:120px; height:19px; ">
  267. <choices>
  268. <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
  269. <label ref="conslrnm"/>
  270. <value ref="conslrid"/>
  271. </itemset>
  272. </choices>
  273. </select1>
  274. </group>
  275. <datagrid id="grd_yyschelist" nodeset="/root/main/yyschelist/yyschelistinfo" caption="시작일자^종료일자^원목자 성명^구분^내용^분류내용^비용^수료증 여부^장소^비고" colsep="^" colwidth="100, 105, 112, 110, 121, 63, 114, 78, 150, 213" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:105px; width:1194px; height:630px; ">
  276. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  277. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  278. <col ref="conslrnm" style="text-align:center; "/>
  279. <col disabled="true" ref="scheflagcd" type="combo">
  280. <choices>
  281. <itemset nodeset="/root/init/comcodelist/scheflag_cmblist/A0217">
  282. <label ref="cdnm"/>
  283. <value ref="cdid"/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. <col disabled="true" ref="schecntscd" type="combo">
  288. <choices>
  289. <itemset nodeset="/root/init/comcodelist/schecnts_cmblist/A0218">
  290. <label ref="cdnm"/>
  291. <value ref="cdid"/>
  292. </itemset>
  293. </choices>
  294. </col>
  295. <col disabled="true" ref="clscntscd" type="combo">
  296. <choices>
  297. <item>
  298. <label>팀</label>
  299. <value>1</value>
  300. </item>
  301. <item>
  302. <label>개별</label>
  303. <value>2</value>
  304. </item>
  305. </choices>
  306. </col>
  307. <col ref="cost" format="#,###" style="text-align:right; "/>
  308. <col ref="diplyn" style="text-align:center; "/>
  309. <col ref="plcenm"/>
  310. <col ref="rem"/>
  311. </datagrid>
  312. <button id="button2" class="btn2_letter2" style="left:1152px; top:80px; width:42px; height:19px; ">
  313. <caption>엑셀</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. fExcelSave();
  317. ]]>
  318. </script>
  319. </button>
  320. </group>
  321. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  322. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  323. </group>
  324. <caption id="caption1" class="tit_2" style="left:5px; top:96px; width:126px; height:13px; ">연간일정 리스트</caption>
  325. <line id="line1" class="line_1" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
  326. </xhtml:body>
  327. </xhtml:html>