SMRPS04300_부서관리자등록.xrw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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>SMRPS04300_부서교육관리자등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grid>
  11. <deptadmin/>
  12. </grid>
  13. </main>
  14. <send>
  15. <search>
  16. <deptnm/>
  17. <deptcd/>
  18. <instcd/>
  19. <instnm/>
  20. <emplno/>
  21. </search>
  22. <save>
  23. </save>
  24. </send>
  25. <init>
  26. </init>
  27. <temp>
  28. </temp>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. misfGetUserAuth();
  34. fCheckAuth(); // 버튼권한부여
  35. // user정보조회
  36. model.setValue("/root/send/search/emplno",getUserInfo("userid"));
  37. submit("TRRPS04000");
  38. model.setValue("/root/send/search/emplno",'');
  39. //misfComboComCdListMulti("Z0007", "cmb_instcd", null, "Y");
  40. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  41. // user정보조회
  42. model.setValue("/root/send/search/instcd",model.getValue("/root/init/emplinfo/dutplceinst"));
  43. model.setValue("/root/send/search/deptnm",model.getValue("/root/init/emplinfo/dutunitnm"));
  44. model.setValue("/root/send/search/deptcd",model.getValue("/root/init/emplinfo/dutunitcd"));
  45. misfGridInit(grd_deptadmin);
  46. misfMsterDetailSet(grd_deptadmin,null, "TRRPS04301" ,"Y");
  47. model.removenode("/root/main/grid/deptadmin");
  48. grd_deptadmin.selectionMode = "byrow";
  49. model.refresh();
  50. ]]>
  51. </script>
  52. <submission id="TRRPS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/emplinfo"/>
  53. <submission id="TRRPS04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid/deptadmin"/>
  54. <submission id="TXRPS04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  55. </model>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  62. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  63. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fCheckAuth() {
  67. btn_save.disabled = !checkAuth("X") ;
  68. btn_excel.disabled = !checkAuth("X") ;
  69. if ( DUTY_EDU_YN == "Y" || DUTY_RESP_YN == "Y" ) {
  70. cmb_instcd.disabled = false;
  71. }
  72. }
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body style="margin-left:8; margin-right:8; ">
  77. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  78. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부서교육관리자 등록</caption>
  79. </group>
  80. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  81. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <button id="btn_search" class="btn1_letter2" style="left:1118px; top:17px; width:56px; height:22px; ">
  83. <caption>조회</caption>
  84. <script type="javascript" ev:event="DOMActivate">
  85. <![CDATA[
  86. if(!isRequiredControls("cmb_instcd")) return;
  87. submit("TRRPS04301");
  88. ]]>
  89. </script>
  90. </button>
  91. <line id="line13" class="line_4" style="x1:1100px; y1:16px; x2:1100px; y2:38px; "/>
  92. <line id="line8" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
  93. <caption id="caption20" class="tit_2" style="left:5px; top:59px; width:169px; height:14px; ">부서교육 관리자</caption>
  94. <button id="btn_del" class="btn2_letter3" style="left:1071px; top:53px; width:53px; height:19px; ">
  95. <caption>행삭제</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. if(!isRequiredControls("cmb_instcd")) return;
  99. misfGridIUD(grd_deptadmin, "D");
  100. model.refresh();
  101. ]]>
  102. </script>
  103. </button>
  104. <button id="btn_add" class="btn2_letter3" style="left:1016px; top:53px; width:53px; height:19px; ">
  105. <caption>행추가</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. if(!isRequiredControls("cmb_instcd")) return;
  109. misfGridIUD(grd_deptadmin, "A");
  110. grd_deptadmin.valueMatrix(grd_deptadmin.row, grd_deptadmin.colRef("instcd")) = cmb_instcd.value;
  111. grd_deptadmin.valueMatrix(grd_deptadmin.row, grd_deptadmin.colRef("deptcd")) = ipt_deptcd.value;
  112. grd_deptadmin.valueMatrix(grd_deptadmin.row, grd_deptadmin.colRef("deptnm")) = ipt_deptnm.value;
  113. model.refresh();
  114. ]]>
  115. </script>
  116. </button>
  117. <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:53px; width:64px; height:19px; ">
  118. <caption>엑셀저장</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. misfSaveExcel(grd_deptadmin);
  122. ]]>
  123. </script>
  124. </button>
  125. <button id="btn_unit" class="icon_search" style="left:650px; top:18px; width:16px; height:16px; ">
  126. <caption/>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. misfOpenPopUpList("02", ipt_deptnm, "", "deptcd,deptnm", cmb_instcd.value, "instcd");
  130. model.refresh();
  131. ]]>
  132. </script>
  133. </button>
  134. <caption id="caption3" class="search_name" style="left:410px; top:18px; width:86px; height:17px; ">부 서 :</caption>
  135. <input id="ipt_deptnm" ref="/root/send/search/deptnm" class="input_search" appearance="input" style="left:495px; top:18px; width:150px; height:19px; text-align:center; ">
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. if( ipt_deptnm.value.getByteLength() == '0' ) {
  139. ipt_deptcd.value = "" ;
  140. }
  141. model.refresh();
  142. ]]>
  143. </script>
  144. </input>
  145. <input id="ipt_deptcd" ref="/root/send/search/deptcd" disabled="true" style="left:670px; top:18px; width:85px; height:19px; text-align:center; "/>
  146. <caption id="caption1" class="search_name" style="left:25px; top:18px; width:86px; height:17px; ">기 관 :</caption>
  147. <datagrid id="grd_deptadmin" nodeset="/root/main/grid/deptadmin" caption="기관^부서^부서^사원번호^이름^변경전사번" colsep="^" colwidth="100, 250, 250, 250, 250, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:78px; width:1194px; height:642px; ">
  148. <col ref="instcd" visibility="hidden"/>
  149. <col ref="deptcd"/>
  150. <col ref="deptnm"/>
  151. <col ref="emplno" type="inputbutton" _key="true"/>
  152. <col ref="emplnm"/>
  153. <col ref="oldemplno" visibility="hidden"/>
  154. <script type="javascript" ev:event="onbuttonclick">
  155. <![CDATA[
  156. var curdate = getCurrentDate().substr(0,4);
  157. if(grd_deptadmin.col == grd_deptadmin.colRef("emplno") ) {
  158. rpbfOpenPopUpList("SPRPB00101", grd_deptadmin, "emplno,emplnm", "", "N");
  159. }
  160. model.refresh();
  161. ]]>
  162. </script>
  163. </datagrid>
  164. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:18px; width:230px; height:19px; ">
  165. <choices>
  166. <itemset>
  167. <label/>
  168. <value/>
  169. </itemset>
  170. </choices>
  171. </select1>
  172. </group>
  173. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  174. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  175. <caption>저장</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. if( checkKeyColumn("grd_deptadmin") == false) return;
  179. model.setValue("/root/send/save",grd_deptadmin.getUpdateData());
  180. if(submit("TXRPS04301")) {
  181. btn_search.dispatch("DOMActivate");
  182. }
  183. ]]>
  184. </script>
  185. </button>
  186. </group>
  187. </xhtml:body>
  188. </xhtml:html>