SMRPS02800_프리셉터관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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. <rpsmpreclist/>
  11. </main>
  12. <send>
  13. <eduyy/>
  14. <instcd/>
  15. <emplno/>
  16. <emplnm/>
  17. <educfromdd/>
  18. <eductodd/>
  19. </send>
  20. <init/>
  21. <temp>
  22. <empTemp>
  23. <emplno/>
  24. <emplnm/>
  25. </empTemp>
  26. </temp>
  27. </root>
  28. </instance>
  29. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  34. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  35. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. finit();
  39. ]]>
  40. </script>
  41. <script type="javascript">
  42. <![CDATA[
  43. //화면초기화
  44. function finit()
  45. {
  46. /* Grid 초기화 */
  47. misfGridInit(grd_rpsmpreclist);
  48. misfMsterDetailSet(grd_rpsmpreclist, null, "TRRPS02801" ,"Y");
  49. var curdate = getCurrentDate();
  50. model.setValue(ipt_eduyy.attribute("ref") , curdate.substr(0, 4));
  51. //misfComboComCdListMulti("Z0007","cmb_instcd");
  52. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  53. cmb_instcd.select(0);
  54. model.refresh();
  55. }
  56. ]]>
  57. </script>
  58. <submission id="TRRPS02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rpsmpreclist"/>
  59. <submission id="TXRPS02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  60. </model>
  61. </xhtml:head>
  62. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:235px; height:14px; ">프리셉터관리</caption>
  65. </group>
  66. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  67. <group id="group2" style="left:0px; top:5px; width:1195px; height:35px; vertical-align:top; ">
  68. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  69. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  70. <caption>조회</caption>
  71. <script type="javascript" ev:event="DOMActivate">
  72. <![CDATA[
  73. if(!isRequiredControls("ipt_eduyy","cmb_instcd")) return;
  74. submit("TRRPS02801");
  75. grd_rpsmpreclist.row = grd_rpsmpreclist.fixedRows;
  76. grd_rpsmpreclist.select(grd_rpsmpreclist.fixedRows, 2) = true;
  77. ]]>
  78. </script>
  79. </button>
  80. <line id="line13" class="line_4" style="top:7; x1:1110px; y1:7px; x2:1110px; y2:29px; border-left-style:solid; "/>
  81. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:302px; top:8px; width:153px; height:19px; ">
  82. <choices>
  83. <itemset>
  84. <label/>
  85. <value/>
  86. </itemset>
  87. </choices>
  88. </select1>
  89. <caption id="cap_instcd" class="search_name" style="left:215px; top:9px; width:86px; height:17px; ">기 관 :</caption>
  90. <caption id="cap_eduyy" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">교육년도 :</caption>
  91. <input id="ipt_eduyy" ref="/root/send/eduyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:101px; top:8px; width:95px; height:19px; text-align:center; "/>
  92. <button id="btn_empl" class="icon_search" style="left:660px; top:9px; width:16px; height:16px; ">
  93. <caption/>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
  97. model.refresh();
  98. ]]>
  99. </script>
  100. </button>
  101. <caption id="cap_emplno" class="search_name" style="left:480px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
  102. <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" navindex="7" style="left:679px; top:8px; width:120px; height:19px; text-align:center; ">
  103. <script type="javascript" ev:event="xforms-value-changed">
  104. <![CDATA[
  105. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  106. model.refresh();
  107. ]]>
  108. </script>
  109. <script type="javascript" ev:event="onkeypress">
  110. <![CDATA[
  111. if(event.keyCode == 13)
  112. {
  113. ipt_emplnm.value = ipt_emplnm.currentText;
  114. misfValidationCheck("01-2", "", "emplno,emplnm");
  115. model.setFocus("btn_search");
  116. model.refresh();
  117. }
  118. ]]>
  119. </script>
  120. </input>
  121. <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="6" style="left:571px; top:8px; width:85px; height:19px; text-align:center; ">
  122. <script type="javascript" ev:event="xforms-value-changed">
  123. <![CDATA[
  124. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  125. model.refresh();
  126. ]]>
  127. </script>
  128. <script type="javascript" ev:event="onkeypress">
  129. <![CDATA[
  130. if(event.keyCode == 13)
  131. {
  132. if(ipt_emplno.value == ipt_emplno.currentText) return;
  133. ipt_emplno.value = ipt_emplno.currentText;
  134. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  135. model.refresh();
  136. }
  137. ]]>
  138. </script>
  139. </input>
  140. <caption id="caption3" style="left:991px; top:9px; width:15px; height:20px; text-align:center; ">~</caption>
  141. <caption id="cap_educfromdd" class="search_name" style="left:823px; top:9px; width:87px; height:17px; ">교육년월 :</caption>
  142. <input id="ipt_eductodd" ref="/root/send/eductodd" class="input_search" inputtype="date" format="yyyy-mm" style="left:1009px; top:8px; width:80px; height:19px; text-align:center; "/>
  143. <input id="ipt_educfromdd" ref="/root/send/educfromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:909px; top:8px; width:80px; height:19px; text-align:center; "/>
  144. </group>
  145. <caption id="caption20" class="tit_2" style="left:5px; top:55px; width:151px; height:14px; ">프리셉터 현황</caption>
  146. <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  147. <button id="btn_add" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
  148. <caption>행추가</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. misfGridIUD(grd_rpsmpreclist, "A");
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_del" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
  156. <caption>행삭제</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. misfGridIUD(grd_rpsmpreclist, "D");
  160. ]]>
  161. </script>
  162. </button>
  163. <datagrid id="grd_rpsmpreclist" nodeset="/root/main/rpsmpreclist" autoresize="true" caption="교육년도^소속부서^프리셉티^프리셉티^프리셉터쉽 기간^프리셉터쉽 기간^프리셉터^프리셉터^UM 평가^비고^기관코드|교육년도^소속부서^사원번호^성명^From^To^사원번호^성명^UM 평가^비고^기관코드" colsep="^" colwidth="56, 100, 90, 80, 100, 100, 91, 80, 288, 183, 100" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1195px; height:669px; ">
  164. <col class="input_s_essential" ref="eduyy" _key="true"/>
  165. <col ref="dutdeptnm"/>
  166. <col class="input_s_essential" ref="emplno" type="inputbutton" _key="true" style="text-align:left; "/>
  167. <col class="input_s_essential" ref="emplnm" type="input" _key="true" style="text-align:left; "/>
  168. <col ref="precepfromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  169. <col ref="preceptodd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  170. <col class="input_essential" ref="precepempno" type="inputbutton" style="text-align:left; "/>
  171. <col class="input_essential" ref="precepempnm" type="input" style="text-align:left; "/>
  172. <col ref="deptmangrvalu" type="input"/>
  173. <col ref="cmt" type="input" style="text-align:left; "/>
  174. <col class="input_s_essential" ref="instcd" visibility="hidden" _key="true"/>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("emplno"))
  178. {
  179. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  180. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("emplnm"))
  181. {
  182. rpbfValidationCheck("EMPLNM", "emplno,emplnm");
  183. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("precepempno"))
  184. {
  185. ipt_emplnoT.value = grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempno"));
  186. ipt_emplnoT.dispatch("xforms-value-changed");
  187. grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempno")) = ipt_emplnoT.value;
  188. grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempnm")) = ipt_emplnmT.value;
  189. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("precepempnm"))
  190. {
  191. ipt_emplnmT.value = grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempnm"));
  192. ipt_emplnmT.dispatch("xforms-value-changed");
  193. grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempno")) = ipt_emplnoT.value;
  194. grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempnm")) = ipt_emplnmT.value;
  195. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("hopdeptcd1") || grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("hopdeptnm1"))
  196. {
  197. misfValidationCheck("02", "", "hopdeptcd1,hopdeptnm1",grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("instcd")), "instcd" );
  198. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("hopdeptcd2") || grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("hopdeptnm2"))
  199. {
  200. misfValidationCheck("02", "", "hopdeptcd2,hopdeptnm2",grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("instcd")), "instcd" );
  201. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("evddeptcd") || grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("evddeptnm"))
  202. {
  203. misfValidationCheck("02", "", "evddeptcd,evddeptnm",grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("instcd")), "instcd" );
  204. }
  205. ]]>
  206. </script>
  207. <script type="javascript" ev:event="onbuttonclick">
  208. <![CDATA[
  209. if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("emplno"))
  210. {
  211. if(grd_rpsmpreclist.rowStatus(grd_rpsmpreclist.row) == 1)
  212. {
  213. rpbfOpenPopUpList("SPRPB00101", grd_rpsmpreclist, "emplno,emplnm", "", "N");
  214. }
  215. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("precepempno"))
  216. {
  217. btn_emplnoT.dispatch("DOMActivate");
  218. grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempno")) = ipt_emplnoT.value;
  219. grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("precepempnm")) = ipt_emplnmT.value;
  220. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("hopdeptcd1"))
  221. {
  222. misfOpenPopUpList("02", grd_rpsmpreclist,"", "hopdeptcd1,hopdeptnm1", grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("instcd")), "instcd");
  223. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("hopdeptcd2"))
  224. {
  225. misfOpenPopUpList("02", grd_rpsmpreclist,"", "hopdeptcd2,hopdeptnm2", grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("instcd")), "instcd");
  226. }else if(grd_rpsmpreclist.col == grd_rpsmpreclist.colRef("evddeptcd"))
  227. {
  228. misfOpenPopUpList("02", grd_rpsmpreclist,"", "evddeptcd,evddeptnm", grd_rpsmpreclist.valueMatrix(grd_rpsmpreclist.row, grd_rpsmpreclist.colRef("instcd")), "instcd");
  229. }
  230. ]]>
  231. </script>
  232. </datagrid>
  233. <button id="btn_excel" class="btn5_letter4" style="left:1018px; top:50px; width:64px; height:19px; ">
  234. <caption>엑셀저장</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. misfSaveExcel(grd_rpsmpreclist);
  238. ]]>
  239. </script>
  240. </button>
  241. </group>
  242. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  243. <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  244. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  245. <caption>초기화</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. finit();
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  253. <caption>저장</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. if( !checkKeyColumn("grd_rpsmpreclist")) return;
  257. misfSave("TXRPS02801");
  258. btn_search.dispatch("DOMActivate");
  259. ]]>
  260. </script>
  261. </button>
  262. <input id="ipt_emplnmT" ref="/root/temp/empTemp/emplnm" class="input_search" navindex="7" visibility="hidden" style="left:500px; top:5px; width:25px; height:19px; text-align:center; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. misfValidationCheck("01-2", "", "emplno,emplnm");
  266. model.refresh();
  267. ]]>
  268. </script>
  269. <script type="javascript" ev:event="onkeypress">
  270. <![CDATA[
  271. if(event.keyCode == 13)
  272. {
  273. ipt_emplnm.value = ipt_emplnm.currentText;
  274. misfValidationCheck("01-2", "", "emplno,emplnm");
  275. model.setFocus("btn_search");
  276. model.refresh();
  277. }
  278. ]]>
  279. </script>
  280. </input>
  281. <button id="btn_emplnoT" class="icon_search" visibility="hidden" style="left:481px; top:6px; width:16px; height:16px; ">
  282. <caption/>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. rpbfOpenPopUpList("SPRPB00101", ipt_emplnoT, "emplno,emplnm", "", "N");
  286. model.refresh();
  287. ]]>
  288. </script>
  289. </button>
  290. <input id="ipt_emplnoT" ref="/root/temp/empTemp/emplno" class="input_search" navindex="6" visibility="hidden" style="left:455px; top:5px; width:23px; height:19px; text-align:center; ">
  291. <script type="javascript" ev:event="xforms-value-changed">
  292. <![CDATA[
  293. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  294. model.refresh();
  295. ]]>
  296. </script>
  297. <script type="javascript" ev:event="onkeypress">
  298. <![CDATA[
  299. if(event.keyCode == 13)
  300. {
  301. if(ipt_emplno.value == ipt_emplno.currentText) return;
  302. ipt_emplno.value = ipt_emplno.currentText;
  303. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  304. model.refresh();
  305. }
  306. ]]>
  307. </script>
  308. </input>
  309. </group>
  310. </xhtml:body>
  311. </xhtml:html>