SMZUM01700_CMC비전관리.xrw 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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>CMC비전관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <visionlist>
  11. <rows>
  12. <valifromdd/>
  13. <valitodd/>
  14. <vision/>
  15. <lastupdtrnm/>
  16. <lastupdtdt/>
  17. <cmcno/>
  18. </rows>
  19. </visionlist>
  20. </main>
  21. <send>
  22. <savevision>
  23. <valifromdd/>
  24. <vision/>
  25. <cmcno/>
  26. <status/>
  27. <valitodd/>
  28. <oldvalifromdd/>
  29. </savevision>
  30. <search>
  31. <fromyear/>
  32. <toyear/>
  33. <searchkeyword/>
  34. </search>
  35. </send>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. fInit();
  41. model.refresh();
  42. ]]>
  43. </script>
  44. <submission id="TRZUM01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/visionlist"/>
  45. <submission id="TXZUM01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savevision" resultref="/root/temp"/>
  46. </model>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  50. <script type="javascript">
  51. <![CDATA[
  52. function fInit(){
  53. model.resetInstanceNode("/root/send");
  54. model.removeNodeset("/root/main/visionlist/rows");
  55. var toDay = getCurrentDate();
  56. model.setValue("/root/send/search/fromyear",toDay.substr(0,4)-1);
  57. model.setValue("/root/send/search/toyear",toDay.substr(0,4));
  58. model.setValue("/root/send/savevision/valifromdd",toDay);
  59. }
  60. ]]>
  61. </script>
  62. </xhtml:head>
  63. <xhtml:body>
  64. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  65. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">CMC비전 관리</caption>
  66. </group>
  67. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  68. <input id="ipt_valifromdd" ref="/root/send/savevision/valifromdd" inputtype="date" style="left:762px; top:76px; width:90px; height:19px; "/>
  69. <textarea id="tar_vision" ref="/root/send/savevision/vision" style="left:762px; top:100px; width:430px; height:115px; "/>
  70. <caption id="caption3" class="cell_1" style="left:700px; top:99px; width:60px; height:116px; ">비전</caption>
  71. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:108px; height:14px; ">비전리스트</caption>
  72. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:690px; y2:70px; "/>
  73. <line id="line2" class="line_2" style="x1:700px; y1:97px; x2:1194px; y2:97px; "/>
  74. <caption id="caption1" class="cell_1" style="left:700px; top:75px; width:60px; height:20px; ">기준일자</caption>
  75. <line id="line6" class="line_3" style="x1:700px; y1:216px; x2:1194px; y2:216px; "/>
  76. <datagrid id="grd_visionlist" nodeset="/root/main/visionlist/rows" autoresize="true" caption="기준년도^기준년도^비전^등록자^등록일시^순번" colsep="^" colwidth="70, 70, 340, 70, 120, 30" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:690px; height:640px; ">
  77. <col ref="valifromdd" format="yyyy-mm-dd"/>
  78. <col ref="valitodd" format="yyyy-mm-dd"/>
  79. <col ref="vision"/>
  80. <col ref="lastupdtrnm"/>
  81. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  82. <col ref="cmcno" visibility="hidden"/>
  83. <script type="javascript" ev:event="onclick">
  84. <![CDATA[
  85. if(grd_visionlist.isCell(event.target) && grd_visionlist.row >= grd_visionlist.fixedRows){
  86. var row = grd_visionlist.row;
  87. model.copyNode("/root/send/savevision", "/root/main/visionlist/rows["+row+"]");
  88. model.makeValue("/root/send/savevision/oldvalifromdd",model.getValue("/root/send/savevision/valifromdd"));
  89. model.refresh();
  90. }
  91. ]]>
  92. </script>
  93. </datagrid>
  94. <caption id="caption5" class="tit_2" style="left:705px; top:55px; width:95px; height:14px; ">비전등록</caption>
  95. <line id="line3" class="line_1" style="x1:700px; y1:70px; x2:1194px; y2:70px; "/>
  96. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; ">
  97. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  98. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:73px; height:17px; ">검색어 :</caption>
  99. <input id="input1" ref="/root/send/search/searchkeyword" class="input_search" navindex="1" style="left:92px; top:8px; width:130px; height:14px; "/>
  100. <caption id="caption9" class="search_name" style="left:565px; top:9px; width:86px; height:17px; ">기준년도 :</caption>
  101. <input id="ipt_fromyear" ref="/root/send/search/fromyear" class="input_s_essential" navindex="3" style="left:654px; top:8px; width:90px; height:19px; "/>
  102. <caption id="caption10" class="search_no_b" style="left:746px; top:8px; width:12px; height:17px; ">~</caption>
  103. <input id="ipt_toyear" ref="/root/send/search/toyear" class="input_s_essential" navindex="4" style="left:760px; top:8px; width:90px; height:19px; "/>
  104. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  105. <caption>조회</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. submit("TRZUM01701");
  109. ]]>
  110. </script>
  111. </button>
  112. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  113. </group>
  114. <line id="line4" class="line_3" style="x1:0px; y1:716px; x2:690px; y2:716px; "/>
  115. <button id="btn_delete" class="btn5_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
  116. <caption>삭제</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. if(messageBox("비전을","Q001") == "6"){
  120. model.setValue("/root/send/savevision/status","D");
  121. if(submit("TXZUM01701",false)){
  122. model.resetInstanceNode("/root/send/savevision");
  123. model.refresh();
  124. }
  125. }
  126. ]]>
  127. </script>
  128. </button>
  129. <output id="opt_cmcno" ref="/root/send/savevision/cmcno" style="left:970px; top:76px; width:100px; height:19px; "/>
  130. <button id="btn_insert" class="btn2_letter2" style="left:1062px; top:50px; width:42px; height:19px; ">
  131. <caption>신규</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. model.resetInstanceNode("/root/send/savevision");
  135. model.refresh();
  136. ]]>
  137. </script>
  138. </button>
  139. <button id="btn_save" class="btn5_letter2" style="left:1107px; top:50px; width:42px; height:19px; ">
  140. <caption>저장</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. var vision = model.getValue("/root/send/savevision/vision");
  144. var status = "I";
  145. if(vision.isByteSize(300)){
  146. if(model.getValue("/root/send/savevision/cmcno") != "") {
  147. status = "U";
  148. }
  149. model.setValue("/root/send/savevision/status",status);
  150. if(submit("TXZUM01701",false)){
  151. model.resetInstanceNode("/root/send/savevision");
  152. model.refresh();
  153. }
  154. }else{
  155. messageBox("비전내용이","E003");
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. </group>
  161. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  162. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  163. <caption>초기화</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. fInit();
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </button>
  171. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  172. </group>
  173. </xhtml:body>
  174. </xhtml:html>