SMRTS02100_사랑나눔교육일정수립.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. <educschebaseinfo>
  11. <educschebaseinfolist/>
  12. </educschebaseinfo>
  13. </main>
  14. <hidden>
  15. </hidden>
  16. <temp>
  17. </temp>
  18. <init/>
  19. <send>
  20. <req>
  21. <yy/>
  22. </req>
  23. <save>
  24. <educschebaseinfolist/>
  25. </save>
  26. </send>
  27. <temp/>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. var today = getCurrentDate();
  33. var cur_mm = parseInt(today.substring(4, 6));
  34. var cur_yy = parseInt(today.substring(0, 4));
  35. if (cur_mm < 3)
  36. {
  37. cur_yy--;
  38. }
  39. model.setValue("/root/send/req/yy", cur_yy);
  40. model.removeNodeset(grd_educschebaseinfolist.nodeset);
  41. ipt_yy.refresh();
  42. btn_search.dispatch("DOMActivate");
  43. ]]>
  44. </script>
  45. <submission id="TRRTS02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/yy" resultref="/root/main/educschebaseinfo"/>
  46. <submission id="TXRTS02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/educschebaseinfolist" resultref="/root/temp"/>
  47. </model>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  52. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  53. <script type="javascript">
  54. <![CDATA[
  55. function fCheckSaveData()
  56. {
  57. for(var currow = grd_educschebaseinfolist.fixedRows ; currow < grd_educschebaseinfolist.rows ; currow++)
  58. {
  59. if(grd_educschebaseinfolist.valueMatrix(currow , grd_educschebaseinfolist.colRef("dgno")).length == 0)
  60. {
  61. messageBox(currow + " 번째 차수를 " ,"C001");
  62. grd_educschebaseinfolist.row = currow;
  63. grd_educschebaseinfolist.col= grd_educschebaseinfolist.colRef("dgno");
  64. return false;
  65. }
  66. }
  67. }
  68. ]]>
  69. </script>
  70. </xhtml:head>
  71. <xhtml:body>
  72. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  73. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">사랑나눔 일정 수립</caption>
  74. </group>
  75. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  76. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  77. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; ">
  78. <script type="javascript" ev:event="xforms-value-changed">
  79. <![CDATA[
  80. btn_search.dispatch("DOMActivate");
  81. ]]>
  82. </script>
  83. </input>
  84. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  85. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  86. <caption>조회</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. if ( !isRequiredControls("ipt_yy") ) {
  90. return false;
  91. }
  92. model.removenode("/root/main/educschebaseinfo/educschebaseinfolist");
  93. submit("TRRTS02101");
  94. model.refresh();
  95. ]]>
  96. </script>
  97. </button>
  98. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  99. <caption id="caption2" class="tit_2" style="left:5px; top:50px; width:228px; height:14px; ">사랑나눔교육 일정 수립</caption>
  100. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1194px; y2:65px; "/>
  101. <datagrid id="grd_educschebaseinfolist" nodeset="/root/main/educschebaseinfo/educschebaseinfolist" caption="년도^이전 차수^차 수^교육 시작일^교육 종료일^교육 정원^교육시간&#xA;준수^교육장소&#xA;위치 준수^가족 및 &#xA;타인과의&#xA;유대관계&#xA;^교육 활동 &#xA;이수 사항^숙소 청소&#xA; 및 &#xA;정리 정돈&#xA;^ 특이사항 &#xA;(Text 기재)&#xA;^평가자^평가일^평가 장소^평가서(출력)^연락처" colsep="^" colwidth="80, 100, 75, 194, 194, 89" dataheight="25" explorerbar="sortshow" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70; width:1195px; height:660; ">
  102. <col ref="yy" type="input" style="text-align:center; "/>
  103. <col ref="bfdgno" visibility="hidden" style="left:70px; top:25px; width:75px; height:25px; text-align:center; "/>
  104. <col ref="dgno" type="input" style="left:70px; top:25px; width:75px; height:25px; text-align:center; "/>
  105. <col ref="educfromdd" type="inputdate" format="yyyy/mm/dd" style="text-align:center; "/>
  106. <col ref="eductodd" type="inputdate" format="yyyy/mm/dd" style="text-align:center; "/>
  107. <col ref="capa" type="input" style="text-align:center; "/>
  108. </datagrid>
  109. <button id="button2" class="btn2_letter3" style="left:1125px; top:43px; width:53px; height:19px; ">
  110. <caption>행삭제</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. grd_educschebaseinfolist.rowStatus(grd_educschebaseinfolist.row) = "4";
  114. grd_educschebaseinfolist.row += 1;
  115. ]]>
  116. </script>
  117. </button>
  118. <button id="btn_insert" class="btn2_letter3" style="left:1064px; top:43px; width:53px; height:19px; ">
  119. <caption>행추가</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. grd_educschebaseinfolist.addRow();
  123. model.setValue(grd_educschebaseinfolist.nodeset +"[" + (grd_educschebaseinfolist.rows - grd_educschebaseinfolist.fixedRows) + "]/yy" ,model.getValue(ipt_yy.attribute("ref")));
  124. ]]>
  125. </script>
  126. </button>
  127. </group>
  128. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  129. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
  130. <caption>저장</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. if (fCheckSaveData()==false) return;
  134. model.setValue("/root/send/save/educschebaseinfolist", grd_educschebaseinfolist.getUpdateData());
  135. model.removenode("/root/main/educschebaseinfolist");
  136. submit("TXRTS02101");
  137. btn_search.dispatch("DOMActivate");
  138. model.refresh();
  139. ]]>
  140. </script>
  141. </button>
  142. </group>
  143. </xhtml:body>
  144. </xhtml:html>