SMMNG05000_린넨폐기관리.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  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. <workflag>1</workflag>
  12. <workdd/>
  13. <fromdd/>
  14. <todd/>
  15. <goodflag>2</goodflag>
  16. <srchnm/>
  17. <resncd/>
  18. <chngflag/>
  19. <acptflag>N</acptflag>
  20. <prtflag>1</prtflag>
  21. <workfrdd/>
  22. <worktodd/>
  23. <workmm/>
  24. <workyy/>
  25. <multichk/>
  26. </cond>
  27. </main>
  28. <send>
  29. <instcd/>
  30. <useyn/>
  31. </send>
  32. <init>
  33. </init>
  34. <code>
  35. <codeinfo>
  36. <codelist/>
  37. </codeinfo>
  38. </code>
  39. <temp>
  40. <titleinfo/>
  41. <chkinfo>
  42. <chklist/>
  43. </chkinfo>
  44. <lnchinfo/>
  45. </temp>
  46. <init>
  47. <codeinfo/>
  48. </init>
  49. </root>
  50. </instance>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. fInitialize();
  57. ]]>
  58. </script>
  59. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
  60. <submission id="TRMNG02107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/lnchinfo"/>
  61. <submission id="TRMNG02109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/lnchinfo"/>
  62. <submission id="TRMNG02105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/lnchinfo"/>
  63. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/csrdeptlist"/>
  64. <submission id="TXMNG02107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  65. <submission id="TXMNG02104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  66. <submission id="TXMNG02105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata1" resultref="/root/temp"/>
  67. </model>
  68. <script type="javascript">
  69. <![CDATA[
  70. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  71. function fInitialize() {
  72. var jobposcd = getUserInfo("jobposcd");
  73. if(jobposcd == "75") {
  74. btn_app.disabled = false;
  75. } else {
  76. btn_app.disabled = true;
  77. }
  78. //ipt_workdd.value = getCurrentDate();
  79. ipt_fromdd.value = getCurrentDate();
  80. ipt_todd.value = getCurrentDate();
  81. model.makeValue("/root/send/reqdata/useyn", "Y");
  82. model.makeValue("/root/send/reqdata/csryn", "Y");
  83. submit("TRMNG00402", false);
  84. fSearch();
  85. }
  86. function fSearch(){
  87. model.makeValue("/root/send/reqdata/lowdeptcd", "02");
  88. model.makeValue("/root/send/reqdata/reqdd", ipt_fromdd.value);
  89. model.makeValue("/root/send/reqdata/reqtodd", ipt_todd.value);
  90. model.makeValue("/root/send/reqdata/chngflag", model.getValue("/root/main/cond/chngflag"));
  91. model.makeValue("/root/send/reqdata/lnchflag", "10");
  92. model.makeValue("/root/send/reqdata/disuseflag", "Y");
  93. model.makeValue("/root/send/reqdata/resncd", rdo_resncd.value);
  94. model.makeValue("/root/send/reqdata/acptflag", rdo_acptflag.value);
  95. submit("TRMNG02107");
  96. }
  97. function fSearchPrt() {
  98. model.makeValue("/root/send/reqdata/lowdeptcd", "02");
  99. model.makeValue("/root/send/reqdata/workfrdd", ipt_workfrdd.value);
  100. model.makeValue("/root/send/reqdata/worktodd", ipt_worktodd.value);
  101. model.makeValue("/root/send/reqdata/workmm", ipt_workmm.value);
  102. model.makeValue("/root/send/reqdata/workyy", ipt_workyy.value);
  103. model.makeValue("/root/send/reqdata/prtflag", rdo_prtflag.value);
  104. submit("TRMNG02109");
  105. var node = instance1.selectNodes("/root/temp/lnchinfo/lnchlist");
  106. if(node.length > 0 ) {
  107. exeReportPreview("RPMNG05000", "XMLSTR");
  108. } else {
  109. messageBox("해당 기간내에 폐기내역이 없습니다.", "E");
  110. return;
  111. }
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body autorefresh="true" guideline="1,1196;">
  117. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  118. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:220px; height:15px; ">린넨폐기관리</caption>
  119. </group>
  120. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:747px; ">
  121. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  122. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; font-family:돋움체; background-color:#fffbf2; border-color:#ffd799; "/>
  123. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1137px; top:7px; width:56px; height:22px; font-family:돋움체; text-align:left; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  124. <caption>조회</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. model.setValue("/root/main/cond/chngflag", "");
  128. fSearch();
  129. ]]>
  130. </script>
  131. </button>
  132. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:27px; font-family:돋움체; "/>
  133. <caption id="cap_instcd" class="search_name" style="left:10px; top:8px; width:90px; height:17px; font-family:돋움체; ">업무일자:</caption>
  134. <caption id="caption2" class="search_name" style="left:300px; top:8px; width:64px; height:17px; font-family:돋움체; ">물품:</caption>
  135. <select1 id="rdo_goodflag" ref="/root/main/cond/goodflag" appearance="full" cols="2" overflow="visible" style="left:355px; top:10px; width:125px; height:15px; font-family:돋움체; border-style:none; ">
  136. <choices>
  137. <item>
  138. <label>물품코드</label>
  139. <value>1</value>
  140. </item>
  141. <item>
  142. <label>물품명</label>
  143. <value>2</value>
  144. </item>
  145. </choices>
  146. </select1>
  147. <caption id="caption3" class="search_name" style="left:590px; top:10px; width:87px; height:17px; font-family:돋움체; ">폐기사유:</caption>
  148. <input id="ipt_srchnm" ref="/root/main/cond/srchnm" class="input_search" style="left:480px; top:8px; width:110px; height:19px; font-family:돋움체; "/>
  149. <select1 id="rdo_resncd" ref="/root/main/cond/resncd" appearance="full" cols="4" overflow="visible" style="left:670px; top:10px; width:230px; height:15px; font-family:돋움체; border-style:none; ">
  150. <choices>
  151. <item>
  152. <label>전체</label>
  153. <value/>
  154. </item>
  155. <item>
  156. <label>파손</label>
  157. <value>1</value>
  158. </item>
  159. <item>
  160. <label>심한노후</label>
  161. <value>2</value>
  162. </item>
  163. <item>
  164. <label>세탁불가</label>
  165. <value>3</value>
  166. </item>
  167. </choices>
  168. </select1>
  169. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" inputtype="date" style="left:203px; top:7px; width:95px; height:19px; font-family:돋움체; "/>
  170. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" inputtype="date" style="left:93px; top:7px; width:95px; height:19px; font-family:돋움체; "/>
  171. <caption id="cap_bar" style="left:190px; top:7px; width:15px; height:20px; font-family:돋움체; font-weight:bold; ">~</caption>
  172. <caption id="caption4" class="search_name" style="left:905px; top:10px; width:87px; height:17px; font-family:돋움체; ">승인여부:</caption>
  173. <select1 id="rdo_acptflag" ref="/root/main/cond/acptflag" appearance="full" cols="3" overflow="visible" style="left:985px; top:10px; width:145px; height:13px; border-style:none; ">
  174. <choices>
  175. <item>
  176. <label>전체</label>
  177. <value/>
  178. </item>
  179. <item>
  180. <label>승인</label>
  181. <value>Y</value>
  182. </item>
  183. <item>
  184. <label>미승인</label>
  185. <value>N</value>
  186. </item>
  187. </choices>
  188. </select1>
  189. </group>
  190. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1193px; y2:65px; "/>
  191. <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:100px; height:15px; ">린넨 폐기현황</caption>
  192. <button id="button1" class="btn4_letter4" style="left:235px; top:43px; width:80px; height:22px; ">
  193. <caption>변경요청</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. model.setValue("/root/main/cond/chngflag", "Y");
  197. fSearch();
  198. ]]>
  199. </script>
  200. </button>
  201. <datagrid id="grd_lnchlist" nodeset="/root/main/lnchinfo/lnchlist" class="datagrid2" autoresize="true" caption="선택^부서^승인&#xA;상태^상태&#xA;구분^물품코드^상세&#xA;코드^린넨품명^상세규격^단위^부서명^운용&#xA;안전재고수량^린넨관리실&#xA;안전재고수량^운영안전재고&#xA;요청량^폐기수량^폐기사유^요청자^요청일자^확정량^확정자^확정일시^확정일시^현재고량^관리자^비고^lastupdtrid^fromdd^todd^nextfromdd^confdd^reqno" colsep="^" colwidth="61, 100, 58, 66, 100, 43, 130, 100, 50, 100, 0, 82, 0, 95, 70, 80, 85, 60, 70, 80, 44, 0, 0, 150, 79, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sort" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="26" rowsep="|" style="left:0px; top:70px; width:1193px; height:675px; font-family:돋움체; ">
  202. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  203. <col disabled="true" ref="deptcd" type="combo">
  204. <choices>
  205. <itemset nodeset="/root/init/csrdeptlist">
  206. <label ref="deptnm"/>
  207. <value ref="deptcd"/>
  208. </itemset>
  209. </choices>
  210. </col>
  211. <col disabled="true" ref="certyn" type="combo">
  212. <choices>
  213. <item>
  214. <label>미승인</label>
  215. <value>N</value>
  216. </item>
  217. <item>
  218. <label>승인</label>
  219. <value>Y</value>
  220. </item>
  221. <item>
  222. <label>반려</label>
  223. <value>F</value>
  224. </item>
  225. </choices>
  226. </col>
  227. <col ref="lnchflag" type="combo" style="text-align:center; ">
  228. <choices>
  229. <item>
  230. <label>폐기</label>
  231. <value>10</value>
  232. </item>
  233. </choices>
  234. </col>
  235. <col editable="false" ref="goodcd" type="inputbutton" style="text-align:center; "/>
  236. <col ref="goodcdseq" style="text-align:center; "/>
  237. <col ref="lngoodnm"/>
  238. <col ref="goodmodel"/>
  239. <col ref="goodunit"/>
  240. <col ref="deptnm" type="output" visibility="hidden" style="left:728px; top:32px; width:100px; height:23px; "/>
  241. <col ref="deptlnsfcnt" visibility="hidden"/>
  242. <col ref="lnsfcnt"/>
  243. <col ref="deptlnsfreqcnt" type="input"/>
  244. <col ref="lnsfreqcnt" type="input"/>
  245. <col ref="resncd" type="combo">
  246. <choices>
  247. <item>
  248. <label/>
  249. <value/>
  250. </item>
  251. <item>
  252. <label>파손</label>
  253. <value>1</value>
  254. </item>
  255. <item>
  256. <label>심한노후</label>
  257. <value>2</value>
  258. </item>
  259. <item>
  260. <label>세탁불가</label>
  261. <value>3</value>
  262. </item>
  263. </choices>
  264. </col>
  265. <col ref="reqnm"/>
  266. <col ref="reqdd" format="yyyy-mm-dd"/>
  267. <col ref="confcnt"/>
  268. <col ref="confnm"/>
  269. <col ref="confdd" format="yyyy-mm-dd"/>
  270. <col ref="conftm" format="hh:nn"/>
  271. <col ref="lnrlcnt" visibility="hidden"/>
  272. <col ref="lastupdtrnm" visibility="visible"/>
  273. <col ref="remark" type="input" visibility="visible"/>
  274. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  275. <col ref="fromdd" visibility="hidden"/>
  276. <col ref="todd" visibility="hidden"/>
  277. <col ref="nextfromdd" visibility="hidden"/>
  278. <col ref="confdd" visibility="hidden"/>
  279. <col ref="reqno" visibility="hidden"/>
  280. <script type="javascript" ev:event="xforms-value-changed">
  281. <![CDATA[
  282. var reqcnt = parseInt(grd_lnchlist.valueMatrix(grd_lnchlist.row, grd_lnchlist.colRef("lnsfreqcnt")));
  283. var deptlnsfcnt = grd_lnchlist.valueMatrix( grd_lnchlist.row, grd_lnchlist.colRef("deptlnsfcnt"));
  284. var deptlnsfreqcnt = grd_lnchlist.valueMatrix( grd_lnchlist.row, grd_lnchlist.colRef("deptlnsfreqcnt"));
  285. var lnsfcnt = parseInt(grd_lnchlist.valueMatrix( grd_lnchlist.row, grd_lnchlist.colRef("lnsfcnt")));
  286. var reqno = grd_lnchlist.valueMatrix( grd_lnchlist.row, grd_lnchlist.colRef("reqno"));
  287. if(reqcnt > lnsfcnt) {
  288. messageBox("폐기수량은 안전재고수량보다 많을수 없습니다.", "E");
  289. }
  290. if ( grd_lnchlist.col == grd_lnchlist.colRef("lnsfreqcnt") ) {
  291. if ( reqcnt != "0" || reqcnt != "" ) {
  292. grd_lnchlist.valueMatrix(grd_lnchlist.row, grd_lnchlist.colRef("lnchflag")) = "10";
  293. if(reqno == "") {
  294. grd_lnchlist.rowStatus(grd_lnchlist.row) = "1";
  295. } else {
  296. grd_lnchlist.rowStatus(grd_lnchlist.row) = "2";
  297. }
  298. }
  299. }
  300. ]]>
  301. </script>
  302. <script type="javascript" ev:event="onaftersort">
  303. <![CDATA[
  304. grd_lnchlist.gridToInstance();
  305. ]]>
  306. </script>
  307. </datagrid>
  308. <button id="btn_updt" class="btn5_letter2" style="left:1105px; top:45px; width:42px; height:19px; font-family:돋움체; ">
  309. <caption>저장</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. var chngflag = model.getValue("/root/main/cond/chngflag");
  313. var status;
  314. var lnsfreqcnt;
  315. var resncd;
  316. if(chngflag == "Y") {
  317. for(var i = grd_lnchlist.fixedRows; i < grd_lnchlist.rows; i++) {
  318. status = grd_lnchlist.rowStatus(i);
  319. lnsfreqcnt = grd_lnchlist.valueMatrix(i, grd_lnchlist.colRef("lnsfreqcnt"));
  320. resncd = grd_lnchlist.valueMatrix(i, grd_lnchlist.colRef("resncd"));
  321. if((status == "1" || status == "2" || status == "3" ) && resncd == "") {
  322. messageBox("폐기사유를 입력하십시오.", "I");
  323. return;
  324. }
  325. if( (status == "1" || status == "2" || status == "3" )&& (lnsfreqcnt == "" || lnsfreqcnt == null) ) {
  326. messageBox("폐기수량을 입력하삽시오.", "I");
  327. return;
  328. }
  329. }
  330. model.makeValue("/root/send/savedata/lnchlist", getGridUpdateData(grd_lnchlist) );
  331. //alert(instance1.selectNodesXml("/root/send"));
  332. submit("TXMNG02104");
  333. btn_search.dispatch("DOMActivate");
  334. //grd_lnchlist.colDisabled(grd_lnchlist.colRef("lnsfreqcnt")) = true;
  335. } else {
  336. model.makeValue("/root/send/savedata/lnchlist", getGridUpdateData(grd_lnchlist) );
  337. //alert(instance1.selectNodesXml("/root/send"));
  338. submit("TXMNG02107");
  339. btn_search.dispatch("DOMActivate");
  340. //grd_lnchlist.colDisabled(grd_lnchlist.colRef("lnsfreqcnt")) = true;
  341. }
  342. ]]>
  343. </script>
  344. </button>
  345. <button id="btn_app" class="btn5_letter2" style="left:1150px; top:45px; width:42px; height:19px; font-family:돋움체; ">
  346. <caption>승인</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. var date = getCurrentDate().toDate("YYYYMMDD");
  350. //적용일이 다음날부터인 것에서 오늘부터 적용해달라는 요청으로 수정.20120820_dark9258
  351. // var nextday = (date.getAddDate(1, "D")).getDateFormat("YYYYMMDD");
  352. var nextday = getCurrentDate();
  353. for ( var i = grd_lnchlist.fixedRows; i < grd_lnchlist.rows; i++ ) {
  354. if ( grd_lnchlist.valueMatrix( i, grd_lnchlist.colRef("chkyn") ) == "Y" ) {
  355. grd_lnchlist.rowStatus(i) = 2;
  356. grd_lnchlist.valueMatrix(i, grd_lnchlist.colRef("todd")) = (date.getAddDate(-1, "D")).getDateFormat("YYYYMMDD");
  357. grd_lnchlist.valueMatrix(i, grd_lnchlist.colRef("nextfromdd")) = nextday;
  358. grd_lnchlist.valueMatrix(i, grd_lnchlist.colRef("confdd")) = getCurrentDate();
  359. }
  360. }
  361. model.makeValue("/root/send/reqdata1/lnchlist", getGridUpdateData(grd_lnchlist) );
  362. submit("TXMNG02105");
  363. btn_search.dispatch("DOMActivate");
  364. ]]>
  365. </script>
  366. </button>
  367. <button id="button2" class="btn2_letter2" style="left:1060px; top:45px; width:42px; height:19px; ">
  368. <caption>삭제</caption>
  369. <script type="javascript" ev:event="DOMActivate">
  370. <![CDATA[
  371. var rows = grd_lnchlist.selectedRows;
  372. var confdd;
  373. if(rows > 0) {
  374. for(var i = 0; i < grd_lnchlist.selectedRows; i++) {
  375. confdd = grd_lnchlist.valueMatrix(grd_lnchlist.selectedRow(i), grd_lnchlist.colRef("confdd"));
  376. if(confdd != "") {
  377. messageBox("확정된 물품은 삭제할 수 없습니다.", "E");
  378. return;
  379. } else {
  380. grd_lnchlist.rowStatus(grd_lnchlist.selectedRow(i)) = "4";
  381. }
  382. }
  383. }
  384. ]]>
  385. </script>
  386. </button>
  387. <button id="button3" class="btn2_letter2" style="left:1015px; top:45px; width:42px; height:19px; ">
  388. <caption>출력</caption>
  389. <script type="javascript" ev:event="DOMActivate">
  390. <![CDATA[
  391. ipt_workfrdd.value = getCurrentDate();
  392. ipt_worktodd.value = getCurrentDate();
  393. ipt_workmm.value = getCurrentDate().substr(0,6);
  394. ipt_workyy.value = getCurrentDate().substr(0,4);
  395. group1.visible = true;
  396. ]]>
  397. </script>
  398. </button>
  399. <group id="group1" visibility="hidden" style="left:850px; top:65px; width:205px; height:125px; background-color:#87CEFA; ">
  400. <caption id="caption17" class="tit_2" style="left:0px; top:5px; width:155px; height:13px; font-family:돋움체; ">출력양식</caption>
  401. <button id="button10" class="btn5_letter2" navindex="22" style="left:110px; top:95px; width:42px; height:19px; font-family:돋움체; ">
  402. <caption>확인</caption>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. group1.visible = false;
  406. fSearchPrt();
  407. ]]>
  408. </script>
  409. </button>
  410. <button id="button11" class="btn5_letter2" navindex="22" style="left:155px; top:95px; width:42px; height:19px; font-family:돋움체; ">
  411. <caption>취소</caption>
  412. <script type="javascript" ev:event="DOMActivate">
  413. <![CDATA[
  414. group1.visible = false;
  415. ]]>
  416. </script>
  417. </button>
  418. <select1 id="rdo_prtflag" ref="/root/main/cond/prtflag" appearance="full" cols="3" overflow="visible" style="left:0px; top:25px; width:195px; height:20px; font-family:돋움체; background-color:transparent; border-style:none; ">
  419. <choices>
  420. <item>
  421. <label>월별</label>
  422. <value>1</value>
  423. </item>
  424. <item>
  425. <label>기간별</label>
  426. <value>2</value>
  427. </item>
  428. <item>
  429. <label>연도별</label>
  430. <value>3</value>
  431. </item>
  432. </choices>
  433. <script type="javascript" ev:event="xforms-value-changed">
  434. <![CDATA[
  435. var prtflag = rdo_prtflag.value;
  436. if(prtflag == "1") {
  437. cap_prttitle.value = "출력연월";
  438. ipt_workmm.visible = true;
  439. ipt_workfrdd.visible = false;
  440. ipt_worktodd.visible = false;
  441. ipt_workyy.visible = false;
  442. cap_bar2.visible = false;
  443. } else if(prtflag == "2") {
  444. cap_prttitle.value = "출력일자";
  445. ipt_workmm.visible = false;
  446. ipt_workfrdd.visible = true;
  447. ipt_worktodd.visible = true;
  448. ipt_workyy.visible = false;
  449. cap_bar2.visible = true;
  450. } else {
  451. cap_prttitle.value = "출력연도";
  452. ipt_workmm.visible = false;
  453. ipt_workfrdd.visible = false;
  454. ipt_worktodd.visible = false;
  455. ipt_workyy.visible = true;
  456. cap_bar2.visible = false;
  457. }
  458. ]]>
  459. </script>
  460. </select1>
  461. <caption id="cap_prttitle" class="tit_2" style="left:0px; top:50px; width:75px; height:13px; font-family:돋움체; ">출력연월</caption>
  462. <input id="ipt_worktodd" ref="/root/main/cond/worktodd" visibility="hidden" inputtype="date" style="left:110px; top:70px; width:85px; height:19px; "/>
  463. <input id="ipt_workyy" ref="/root/main/cond/workyy" inputtype="date" format="yyyy" style="left:5px; top:70px; width:50px; height:19px; "/>
  464. <caption id="cap_bar2" visibility="hidden" style="left:95px; top:70px; width:15px; height:20px; font-weight:bold; ">~</caption>
  465. <input id="ipt_workfrdd" ref="/root/main/cond/workfrdd" visibility="hidden" inputtype="date" style="left:5px; top:70px; width:85px; height:19px; "/>
  466. <input id="ipt_workmm" ref="/root/main/cond/workmm" inputtype="date" format="yyyy-mm" style="left:5px; top:70px; width:70px; height:19px; "/>
  467. </group>
  468. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/multichk" style="left:56px; top:77px; width:31px; height:20px; ">
  469. <script type="javascript" ev:event="xforms-value-changed">
  470. <![CDATA[
  471. for( i=1; i<grd_lnchlist.rows; i++ )
  472. {
  473. var multichk = model.getValue("/root/main/cond/multichk");
  474. model.setValue("/root/main/lnchinfo/lnchlist["+i+"]/chkyn",multichk);
  475. }
  476. ]]>
  477. </script>
  478. </bool>
  479. </group>
  480. </xhtml:body>
  481. </xhtml:html>