SMRPE02500_임상강사채용부서등록.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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>SMRPE00100_채용정보관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptlist/>
  11. <apntdeptlist/>
  12. </main>
  13. <send>
  14. <save>
  15. <apntdeptlist/>
  16. </save>
  17. <search>
  18. <instcd/>
  19. <deptcd/>
  20. <deptnm/>
  21. </search>
  22. </send>
  23. <init>
  24. </init>
  25. <temp/>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. misfGridInit(grd_apntinfolist);
  31. misfGridInit(grd_dtinfolist);
  32. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  33. submit("TRRPE00101");
  34. model.refresh();
  35. ]]>
  36. </script>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  43. <submission id="TRRPE02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/deptlist"/>
  44. <submission id="TRRPE00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dtinfo" resultref="/root/main/dtinfo"/>
  45. <submission id="TXRPE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  46. </model>
  47. </xhtml:head>
  48. <xhtml:body scroll="auto" style="margin-left:8; margin-right:8; ">
  49. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  50. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">임상강사채용부서등록</caption>
  51. </group>
  52. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  53. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  54. <caption id="caption2" class="search_name" style="left:80px; top:13px; width:90px; height:17px; ">기 관 :</caption>
  55. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_search" appearance="minimal" style="left:175px; top:13px; width:200px; height:19px; ">
  56. <choices>
  57. <itemset>
  58. <label/>
  59. <value/>
  60. </itemset>
  61. </choices>
  62. </select1>
  63. <button id="btn_grddelapntinfolist" class="btn2_letter3" style="left:1140px; top:45px; width:53px; height:19px; ">
  64. <caption>행삭제</caption>
  65. <script type="javascript" ev:event="DOMActivate">
  66. <![CDATA[
  67. SAVE_FLAG = 4;
  68. misfGridIUD(grd_apntinfolist, "D");
  69. ]]>
  70. </script>
  71. </button>
  72. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1100px; top:12px; width:56px; height:22px; text-align:left; ">
  73. <caption>조회</caption>
  74. <script type="javascript" ev:event="DOMActivate">
  75. <![CDATA[
  76. var fromdd = model.getValue(ipt_apntfromdd.attribute("ref"));
  77. var todd = model.getValue(ipt_apnttodd.attribute("ref"));
  78. if (fromdd == "" || fromdd.length <= 0) {
  79. fromdd = ipt_apntyy.value+'0101';
  80. }
  81. if (todd == "" || todd.length <= 0) {
  82. todd = ipt_apntyy.value+'1231';
  83. }
  84. model.setValue(ipt_apntfromdd.attribute("ref"), fromdd);
  85. model.setValue(ipt_apnttodd.attribute("ref"), todd);
  86. model.removeNodeset("/root/main/apntinfo");
  87. model.makeNode("/root/main/apntinfo/apntinfolist");
  88. submit("TRRPE00101");
  89. ]]>
  90. </script>
  91. </button>
  92. <line id="line3" class="line_4" style="x1:1075px; y1:11px; x2:1075px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  93. <img id="btn_left" class="icon_left" visibility="hidden" style="left:580px; top:375px; width:26px; height:19px; background-stretch:stretch; ">
  94. <script type="javascript" ev:event="onclick">
  95. <![CDATA[
  96. grd_deptdutcdlist.deleteRow(grd_deptdutcdlist.row);
  97. model.refresh();
  98. ]]>
  99. </script>
  100. </img>
  101. <img id="btn_right" class="icon_right" style="left:580px; top:335px; width:26px; height:19px; background-stretch:stretch; ">
  102. <script type="javascript" ev:event="onclick">
  103. <![CDATA[
  104. fSetDeptPrCodeReg();
  105. ]]>
  106. </script>
  107. </img>
  108. <datagrid id="datagrid1" nodeset="/root/main/deptlist" caption="^부서코드^부서명^기관코드" colsep="^" colwidth="40, 120, 250, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:575px; height:660px; ">
  109. <col checkvalue="Y,N" type="checkbox"/>
  110. <col/>
  111. <col/>
  112. <col/>
  113. </datagrid>
  114. <datagrid id="datagrid2" nodeset="/root/main/apntdeptlist" caption="부서코드^부서명^기관코드^사용여부" colsep="^" colwidth="130, 200, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:611px; top:70px; width:582px; height:660px; ">
  115. <col type="inputbutton"/>
  116. <col/>
  117. <col/>
  118. <col checkvalue="Y,N" type="checkbox"/>
  119. </datagrid>
  120. <line id="line8" class="line_1" style="x1:610px; y1:65px; x2:1193px; y2:65px; "/>
  121. <caption id="caption20" class="tit_2" style="left:615px; top:50px; width:151px; height:14px; ">임상강사 채용부서</caption>
  122. <caption id="caption25" class="tit_2" style="left:5px; top:50px; width:151px; height:14px; ">부서목록</caption>
  123. <line id="line7" class="line_1" style="x1:0px; y1:66px; x2:574px; y2:67px; "/>
  124. </group>
  125. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  126. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:2px; width:56px; height:22px; ">
  127. <caption>저장</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. model.removeNodeset("/root/send/save/");
  131. model.makeNode("/root/send/save/apntinfolist");
  132. model.makeNode("/root/send/save/dtinfolist");
  133. model.setValue("/root/send/save/apntinfolist",grd_apntinfolist.getUpdateData());
  134. model.setValue("/root/send/save/dtinfolist",grd_dtinfolist.getUpdateData());
  135. if( fSetChackValue() ) { // 필수입력값이 모두 입력되었으면 true를 리턴하고, 아니면 false를 리턴하는 함수.
  136. if( grd_apntinfolist.valueMatrix(grd_apntinfolist.row,grd_apntinfolist.colRef("scrngdg"))
  137. == grd_dtinfolist.valueMatrix(grd_dtinfolist.row,grd_dtinfolist.colRef("scrngdg"))
  138. && grd_dtinfolist.valueMatrix(grd_dtinfolist.row,grd_dtinfolist.colRef("endyn")) == 'Y' ) {
  139. grd_apntinfolist.valueMatrix(grd_apntinfolist.row,grd_apntinfolist.colRef("endyn")) = 'Y';
  140. if( grd_apntinfolist.rowStatus(grd_apntinfolist.row) == '1' || grd_apntinfolist.rowStatus(grd_apntinfolist.row) == '3' ) {
  141. ;
  142. }
  143. else {
  144. grd_apntinfolist.addStatus(grd_apntinfolist.row, "update") ;
  145. }
  146. model.setValue("/root/send/save/apntinfolist",grd_apntinfolist.getUpdateData());
  147. submit("TXRPE00103");
  148. }
  149. if( SAVE_FLAG == '1' || SAVE_FLAG == '2') { // 채용(기본)정보등록 그리드에만 변경사항이 있을때.
  150. if( submit("TXRPE00101") ) {
  151. if(SAVE_FLAG =='1') {
  152. messageBox("","I001");
  153. }
  154. var row = grd_apntinfolist.row;
  155. btn_search.dispatch("DOMActivate");
  156. grd_apntinfolist.row = row;
  157. SAVE_FLAG = 0;
  158. }
  159. }
  160. else if( SAVE_FLAG == '3' ) { // 전형일정 그리드에만 변경사항이 있을때..
  161. if( submit("TXRPE00102") ) {
  162. messageBox("","I001");
  163. var row = grd_apntinfolist.row;
  164. btn_search.dispatch("DOMActivate");
  165. grd_apntinfolist.row = row;
  166. grd_apntinfolist.dispatch("onrowchanged");
  167. SAVE_FLAG = 0;
  168. }
  169. }
  170. else if( SAVE_FLAG == '4' ) { // 이미 저장된 data를 update하거나 delete하는 경우
  171. if( submit("TXRPE00101") ) {
  172. if( submit("TXRPE00102") ) {
  173. messageBox("","I001");
  174. var row = grd_apntinfolist.row;
  175. btn_search.dispatch("DOMActivate");
  176. grd_apntinfolist.row = row;
  177. grd_apntinfolist.dispatch("onrowchanged");
  178. }
  179. else {
  180. messageBox("","I001");
  181. var row = grd_apntinfolist.row;
  182. btn_search.dispatch("DOMActivate");
  183. grd_apntinfolist.row = row;
  184. }
  185. }
  186. SAVE_FLAG = 0;
  187. }
  188. }
  189. model.refresh();
  190. ]]>
  191. </script>
  192. </button>
  193. <line id="line2" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  194. </group>
  195. </xhtml:body>
  196. </xhtml:html>