SMRPN00100_교육평가항목내역.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. <eduopinitemlist>
  11. <valuitemcd/>
  12. <valucnts/>
  13. <valupnt/>
  14. <useyn/>
  15. <appdd/>
  16. <instcd/>
  17. </eduopinitemlist>
  18. <send>
  19. <baseyymmdd_s/>
  20. <eduopinitemlist/>
  21. <baseyymmdd_e/>
  22. </send>
  23. <temp/>
  24. </main>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. fInit();
  30. misfGridInit(grd_eduopinitemlist);
  31. misfMsterDetailSet(grd_eduopinitemlist,null, "TRRPN00101" ,"Y");
  32. //btn_search.dispatch("DOMActivate");
  33. model.refresh();
  34. ]]>
  35. </script>
  36. <script type="javascript">
  37. <![CDATA[
  38. //화면 실행시 기준일자에 현제 날짜를 넣는다.
  39. function fInit()
  40. {
  41. setCurDate();
  42. // fInitialize();
  43. }
  44. function setCurDate()
  45. {
  46. ipt_baseyymmdd_s.value = mis_to_day();
  47. ipt_baseyymmdd_e.value =mis_to_day();
  48. }
  49. ]]>
  50. </script>
  51. <submission id="TRRPN00101" ref="/root/main/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/eduopinitemlist"/>
  52. <submission id="TXRPN00101" ref="/root/main/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/temp"/>
  53. <script type="javascript" ev:event="xforms-reset">
  54. <![CDATA[
  55. btn_save.disabled = !checkAuth("X")
  56. ]]>
  57. </script>
  58. </model>
  59. <script type="javascript">
  60. <![CDATA[
  61. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  62. function fInitialize() {
  63. model.removeNodeset("/root/main/eduopinitemlist");
  64. model.resetInstanceNode("/root/send");
  65. model.refresh();
  66. }
  67. ]]>
  68. </script>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  72. <script type="javascript" src="../../../mis/pubwelfmngtweb/js/RPS001.js"/>
  73. </xhtml:head>
  74. <xhtml:body style="margin-left:8; margin-right:8; ">
  75. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  76. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">교육평가 항목내역</caption>
  77. </group>
  78. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  79. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  80. <caption id="caption2" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">기준일자 :</caption>
  81. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
  82. <caption>조회</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. if(ipt_baseyymmdd_s.value == "" || ipt_baseyymmdd_e.value == "") {
  86. messageBox("기준일자를","C002");
  87. return;
  88. }
  89. submit("TRRPN00101");
  90. // misfSetReadOnlyCol(grd_nursnewemplist, "valuitemcd,valucnts,valupnt,useyn,appdd", true); //읽기전용
  91. ]]>
  92. </script>
  93. </button>
  94. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  95. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:13px; ">교육평가 항목내역</caption>
  96. <line id="line207" class="line_1" style="x1:0px; y1:68px; x2:1195px; y2:68px; "/>
  97. <input id="ipt_baseyymmdd_s" ref="/root/main/send/baseyymmdd_s" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:104px; top:18; width:100px; height:19px; "/>
  98. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:47px; width:64px; height:19px; ">
  99. <caption>엑셀저장</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  103. if (fileName != "")
  104. {
  105. grd_eduopinitemlist.saveExcel(fileName);
  106. }
  107. ]]>
  108. </script>
  109. </button>
  110. <button id="btn_grddelnursnew" class="btn2_letter3" style="left:1075px; top:47px; width:53px; height:19px; ">
  111. <caption>행삭제</caption>
  112. <script type="javascript" ev:event="onclick">
  113. <![CDATA[
  114. misfGridIUD(grd_eduopinitemlist, "D");
  115. ]]>
  116. </script>
  117. </button>
  118. <button id="btn_grdaddnursnew" class="btn2_letter3" style="left:1019px; top:47px; width:53px; height:19px; ">
  119. <caption>행추가</caption>
  120. <script type="javascript" ev:event="onclick">
  121. <![CDATA[
  122. misfGridIUD(grd_eduopinitemlist, "A");
  123. var cur_row = grd_eduopinitemlist.row; // 추가된 행 번호 가져오기
  124. //grd_eduopinitemlist.valueMatrix(cur_row, grd_eduopinitemlist.colRef("appdd")) = ipt_appdd.value;
  125. ]]>
  126. </script>
  127. </button>
  128. <datagrid id="grd_eduopinitemlist" nodeset="/root/main/eduopinitemlist" caption="평가항목코드^평가내용^평가배점^사용여부^적용일자^기관코드" colwidth="97, 783, 82, 65, 130, 0, 0, 0, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:73px; width:1195px; height:661px; ">
  129. <col ref="valuitemcd" type="input" maxlength="3" style="text-align:center; "/>
  130. <col ref="valucnts" type="input" maxlength="30"/>
  131. <col ref="valupnt" type="input" format="#,###" maxlength="3" style="text-align:right; "/>
  132. <col ref="useyn" type="checkbox" checkvalue="Y,N"/>
  133. <col ref="appdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  134. <col ref="instcd"/>
  135. </datagrid>
  136. <caption id="caption3" class="search_n_b" style="left:209px; top:20px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  137. <input id="ipt_baseyymmdd_e" ref="/root/main/send/baseyymmdd_e" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:225px; top:18; width:100px; height:19px; "/>
  138. </group>
  139. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  140. <button id="button8" class="btn3_letter4" style="left:0px; top:3px; width:80px; height:22px; ">
  141. <caption>화면이동</caption>
  142. </button>
  143. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  144. <caption>저장</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. var updtdata = getGridUpdateData(grd_eduopinitemlist);
  148. if (updtdata == "" ) {
  149. messageBox("변경된 데이터가","I004");
  150. return;
  151. }
  152. var null_check1 = "";
  153. var null_chech2 = "";
  154. for(var i=1;i<=grd_eduopinitemlist.rows-1;i++)
  155. {
  156. null_check1 = model.getValue(grd_eduopinitemlist.attribute("nodeset")+"["+i+"]/valuitemcd");
  157. null_check2 = model.getValue(grd_eduopinitemlist.attribute("nodeset")+"["+i+"]/appdd");
  158. // rgstaVal= model.getValue(grd_clubmemblist.attribute("nodeset")+"["+i+"]/rgstaprv");
  159. if(null_check1 =="") {
  160. messageBox("교육평가항목코드는","I003");
  161. return;
  162. } else if(null_check2 == "") {
  163. messageBox(" 적용일자는","I003");
  164. return;
  165. }
  166. }
  167. misfSave("TXRPN00101");
  168. ]]>
  169. </script>
  170. </button>
  171. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  172. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
  173. <caption>초기화</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. var updtdata = getGridUpdateData(grd_eduopinitemlist);
  177. if (updtdata != "") {
  178. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  179. if (ret != 6) { // not OK
  180. return;
  181. }
  182. }
  183. fInitialize();
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="btn_print" class="btn6_letter2" style="left:82px; top:3px; width:56px; height:22px; ">
  188. <caption>출력</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. exeReportPreview("RPRPV00100", "XMLSTR", "", "", "", "true", "", "", "", "");
  192. ]]>
  193. </script>
  194. </button>
  195. </group>
  196. </xhtml:body>
  197. </xhtml:html>