SMRTC01300_인성교육차수별정원.xrw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. <humnatreducdgcapalist/>
  11. </main>
  12. <send>
  13. <yy/>
  14. </send>
  15. <init>
  16. </init>
  17. <temp>
  18. </temp>
  19. </root>
  20. </instance>
  21. <submission id="TRRTC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/humnatreducdgcapalist"/>
  22. <submission id="TXRTC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/humnatreducdgcapalist" resultref="/root/temp"/>
  23. </model>
  24. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  25. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  28. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  29. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  30. <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. //사용자 권한
  34. fCheckAuth();
  35. misfGridInit(grd_humnatreducdgcapalist);
  36. var today = getCurrentDate();
  37. var cur_mm = parseInt(today.substring(4, 6));
  38. var cur_yy = parseInt(today.substring(0, 4));
  39. if (cur_mm >= 11)
  40. cur_yy++;
  41. model.setValue("/root/send/yy", cur_yy);
  42. ipt_yy.refresh();
  43. misfMsterDetailSet(grd_humnatreducdgcapalist, null, "TRRTC01301", "Y");
  44. model.refresh();
  45. ]]>
  46. </script>
  47. <script type="javascript">
  48. <![CDATA[
  49. //========================================================================================
  50. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  51. //========================================================================================
  52. function fCheckAuth() {
  53. btn_search.disabled =!checkAuth("R") ;
  54. btn_save.disabled = !checkAuth("X") ;
  55. }
  56. function fDisabledSetting(check){
  57. tar_scincconfentry.disabled = check;
  58. tar_treatiseprst.disabled = check;
  59. tar_anodeptdispat.disabled = check;
  60. tar_valueexam.disabled = check;
  61. }
  62. // 새로운 데이터를 입력시 중복데이터를 체크한다
  63. function fCheckData()
  64. {
  65. submit("TRRTC01102");
  66. }
  67. ]]>
  68. </script>
  69. </xhtml:head>
  70. <xhtml:body style="margin-left:8; margin-right:8; ">
  71. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  72. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인성교육차수별정원</caption>
  73. </group>
  74. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  75. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  76. <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">년 도 :</caption>
  77. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  78. <caption>조회</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. if(!isRequiredControls("ipt_yy"))return;
  82. var updtdata = getGridUpdateData(grd_humnatreducdgcapalist);
  83. if ( updtdata != "")
  84. {
  85. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  86. if (ret == 7) { // not OK
  87. return;
  88. }
  89. }
  90. misfMsterDetailRetrieve();
  91. misfSetReadOnlyCol(grd_humnatreducdgcapalist, "dgno", true);
  92. model.refresh();
  93. ]]>
  94. </script>
  95. </button>
  96. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  97. <line id="line207" class="line_1" style="x1:0; y1:69; x2:1190; y2:69px; "/>
  98. <datagrid id="grd_humnatreducdgcapalist" nodeset="/root/main/humnatreducdgcapalist" caption="차수^교육시작일^교육종료일^정원^년도(히든)" colsep="^" colwidth="100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1190px; height:660px; ">
  99. <col ref="dgno" type="input" format="999" _key="true"/>
  100. <col ref="educfromdd" type="inputdate" format="yyyy-mm-dd"/>
  101. <col ref="eductodd" type="inputdate" format="yyyy-mm-dd"/>
  102. <col ref="capa" type="input"/>
  103. <col ref="yy" visibility="hidden"/>
  104. </datagrid>
  105. <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" format="yyyy" appearance="input" style="left:100px; top:18px; width:100px; height:19px; "/>
  106. <button id="btn_grddel" class="btn2_letter3" style="left:1136px; top:49px; width:53px; height:19px; ">
  107. <caption>행삭제</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. misfGridIUD(grd_humnatreducdgcapalist, "D");
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="btn_grdadd" class="btn2_letter3" style="left:1080px; top:49px; width:53px; height:19px; ">
  115. <caption>행추가</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. if(!isRequiredControls("ipt_yy"))return;
  119. misfGridIUD(grd_humnatreducdgcapalist, "A");
  120. grd_humnatreducdgcapalist.valueMatrix(grd_humnatreducdgcapalist.row, grd_humnatreducdgcapalist.colRef("yy")) = ipt_yy.value;
  121. ]]>
  122. </script>
  123. </button>
  124. </group>
  125. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  126. <button id="button8" class="btn3_letter4" visibility="hidden" style="left:0px; top:3px; width:80px; height:22px; ">
  127. <caption>화면이동</caption>
  128. </button>
  129. <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
  130. <caption>저장</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. if(!checkKeyColumn("grd_humnatreducdgcapalist")) return;
  134. misfSave("TXRTC01301");
  135. btn_search.dispatch("DOMActivate");
  136. model.refresh();
  137. ]]>
  138. </script>
  139. </button>
  140. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  141. </group>
  142. </xhtml:body>
  143. </xhtml:html>