SMRPV02400_SAT대상자등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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>SAT평가대상자등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <satexampsntrgt>
  11. <satexampsntrgtlist/>
  12. </satexampsntrgt>
  13. </main>
  14. <send>
  15. <satexampsntrgt>
  16. <valuyy/>
  17. <instcd/>
  18. <deptcd/>
  19. <emplno/>
  20. <deptnm/>
  21. <emplnm/>
  22. </satexampsntrgt>
  23. <save>
  24. <satexampsntrgtlist/>
  25. </save>
  26. </send>
  27. <temp/>
  28. <hidden>
  29. <temp/>
  30. </hidden>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. /* Grid 초기화 */
  36. misfGridInit(grd_satexampsntrgtlist);
  37. misfMsterDetailSet(grd_satexampsntrgtlist,null, "TRRPV02401" ,"Y");
  38. var curdate = getCurrentDate();
  39. model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
  40. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  41. rpvfComboInstCdList("cmb_instcd");
  42. addComboItem( "cmb_instcd", "[-- 전체 --]", "", "above");
  43. model.setValue(cmb_instcd.attribute("ref"), "");
  44. model.refresh();
  45. ]]>
  46. </script>
  47. <submission id="TRRPV02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/satexampsntrgt" resultref="/root/main/satexampsntrgt"/>
  48. <submission id="TXRPV02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  49. <submission id="TXRPV02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/satexampsntrgt" resultref="/root/hidden/temp"/>
  50. </model>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  55. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  56. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. ]]>
  60. </script>
  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:1194px; height:13px; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">SAT 대상자 등록</caption>
  65. </group>
  66. <group id="group3" style="left:0px; top:38px; width:1195px; height:744px; ">
  67. <button id="btn_addgrdsatexampsntrgtlist" class="btn2_letter3" style="left:1082px; top:49px; width:53px; height:19px; ">
  68. <caption>행추가</caption>
  69. <script type="javascript" ev:event="DOMActivate">
  70. <![CDATA[
  71. misfGridIUD(grd_satexampsntrgtlist, "A");
  72. ]]>
  73. </script>
  74. </button>
  75. <button id="btn_delgrdsatexampsntrgtlist" class="btn2_letter3" style="left:1137px; top:49px; width:53px; height:19px; ">
  76. <caption>행삭제</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. misfGridIUD(grd_satexampsntrgtlist, "D");
  80. ]]>
  81. </script>
  82. </button>
  83. <caption id="caption8" class="tit_2" style="left:5px; top:56px; width:165px; height:14px; ">SAT 대상자 리스트</caption>
  84. <line id="line5" class="line_1" style="x1:0px; y1:70px; x2:1190px; y2:70px; "/>
  85. <datagrid id="grd_satexampsntrgtlist" nodeset="/root/main/satexampsntrgt/satexampsntrgtlist" caption="사원번호^사원번호^성명^기관^부서^직군^직종^직위^합격여부^이전응시여부^이전응시여부^미응시여부^확정여부^평가년도^기관|사원번호^사원번호^성명^기관^부서^직군^직종^직위^합격여부^^비고^미응시여부^확정여부^평가년도^기관" colsep="^" colwidth="84, 19, 75, 120, 126, 100, 104, 100, 33, 29, 281, 45, 33, 35, 28" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1190px; height:659px; ">
  86. <col ref="emplno"/>
  87. <col ref="popup" type="inputbutton"/>
  88. <col ref="emplnm"/>
  89. <col ref="instnm" type="output"/>
  90. <col ref="deptnm" type="output"/>
  91. <col ref="grupjoblnnm"/>
  92. <col ref="jobkindnm"/>
  93. <col ref="jobposnm"/>
  94. <col ref="passyn" style="text-align:center; vertical-align:middle; "/>
  95. <col checkvalue="Y,N" ref="preyyexamyn" type="checkbox" style="text-align:center; vertical-align:middle; "/>
  96. <col ref="rem" type="input"/>
  97. <col checkvalue="Y,N" ref="notexamyn" type="checkbox"/>
  98. <col ref="cnfmyn" style="text-align:center; vertical-align:middle; "/>
  99. <col ref="valuyy" visibility="hidden"/>
  100. <col ref="instcd" visibility="hidden"/>
  101. <script type="javascript" ev:event="onbuttonclick">
  102. <![CDATA[
  103. if (grd_satexampsntrgtlist.col == grd_satexampsntrgtlist.colRef("popup")) {
  104. rpbfOpenPopUpList("SPRPB00101", grd_satexampsntrgtlist, "emplno,emplnm,instcd","","","","emplno,emplnm,dutplceinst");
  105. model.refresh();
  106. }
  107. ]]>
  108. </script>
  109. </datagrid>
  110. <group id="group5" style="left:0px; top:10px; width:1195px; height:37px; ">
  111. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:37px; "/>
  112. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  113. <caption>조회</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. if ( !isRequiredControls("ipt_valuyy") ) {
  117. return false;
  118. }
  119. misfMsterDetailRetrieve();
  120. if (grd_satexampsntrgtlist.rows - grd_satexampsntrgtlist.fixedRows > 0) {
  121. if (grd_satexampsntrgtlist.valueMatrix(grd_satexampsntrgtlist.fixedRows, grd_satexampsntrgtlist.colRef("cnfmyn")) == "Y") {
  122. btn_cnfm.disabled = true;
  123. btn_save.disabled = true;
  124. btn_cnfmcan.disabled = false;
  125. btn_makedata.disabled = true;
  126. }
  127. else {
  128. btn_cnfm.disabled = false;
  129. btn_save.disabled = false;
  130. btn_cnfmcan.disabled = true;
  131. btn_makedata.disabled = false;
  132. }
  133. }
  134. ]]>
  135. </script>
  136. </button>
  137. <button id="btn_deptcd" class="icon_search" style="left:673px; top:10px; width:16px; height:16px; ">
  138. <caption/>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. if ( !isRequiredControls("cmb_instcd") ) {
  142. return false;
  143. }
  144. var recv_list = "deptcd,deptnm";
  145. var instcd = cmb_instcd.value;
  146. rpvfOpenDeptCdHelp(ipt_deptnm,recv_list, instcd, "instcd");
  147. model.refresh();
  148. ]]>
  149. </script>
  150. </button>
  151. <caption id="cap_valuyy" class="search_name" style="left:5px; top:9px; width:86px; height:17px; font-weight:bold; ">평가년도 :</caption>
  152. <select1 id="cmb_instcd" ref="/root/send/satexampsntrgt/instcd" class="combo_search" appearance="minimal" style="left:285px; top:8px; width:145px; height:19px; ">
  153. <choices>
  154. <itemset>
  155. <label/>
  156. <value/>
  157. </itemset>
  158. </choices>
  159. </select1>
  160. <caption id="caption3" class="search_name" style="left:441px; top:9px; width:86px; height:17px; font-weight:bold; vertical-align:middle; ">부서코드 :</caption>
  161. <caption id="caption4" class="search_name" style="left:705px; top:9px; width:86px; height:17px; font-weight:bold; ">사원번호:</caption>
  162. <caption id="cap_instcd" class="search_name" style="left:200px; top:9px; width:86px; height:17px; font-weight:bold; ">기관코드 :</caption>
  163. <input id="ipt_deptcd" ref="/root/send/satexampsntrgt/deptcd" class="input_search" visibility="hidden" style="left:526px; top:8px; width:79px; height:19px; "/>
  164. <line id="line13" class="line_4" style="x1:1104px; y1:6px; x2:1104px; y2:28px; "/>
  165. <input id="ipt_valuyy" ref="/root/send/satexampsntrgt/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100px; top:8px; width:85px; height:19px; ">
  166. <script type="javascript" ev:event="xforms-value-changed">
  167. <![CDATA[
  168. var instcd = cmb_instcd.value;
  169. rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
  170. addComboItem( "cmb_instcd", "[-- 전체 --]", "", "above");
  171. cmb_instcd.value = instcd;
  172. ]]>
  173. </script>
  174. </input>
  175. <button id="btn_emplno" class="icon_search" style="left:875px; top:10px; width:16px; height:16px; ">
  176. <caption/>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. var recv_list = "emplno,emplnm" ;
  180. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"1","N");
  181. model.refresh();
  182. ]]>
  183. </script>
  184. </button>
  185. <input id="ipt_emplno" ref="/root/send/satexampsntrgt/emplno" class="input_default" editable="true" style="left:785px; top:8px; width:87px; height:19px; ">
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. var recv_list = "emplno,emplnm" ;
  189. rpbfValidationCheck("EMPLNO", recv_list);
  190. model.refresh();
  191. ]]>
  192. </script>
  193. </input>
  194. <input id="ipt_emplnm" ref="/root/send/satexampsntrgt/emplnm" class="input_default" editable="false" style="left:895px; top:8px; width:119px; height:19px; ">
  195. <script type="javascript" ev:event="xforms-value-changed">
  196. <![CDATA[
  197. var recv_list = "emplno,emplnm" ;
  198. rpbfValidationCheck("EMPLNM", recv_list);
  199. model.refresh();
  200. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  201. btn_search.dispatch("DOMActivate");
  202. }
  203. ]]>
  204. </script>
  205. </input>
  206. <input id="ipt_deptnm" ref="/root/send/satexampsntrgt/deptnm" class="input_search" style="left:526px; top:8px; width:145px; height:19px; ">
  207. <script type="javascript" ev:event="xforms-value-changed">
  208. <![CDATA[
  209. misfValidationCheck("02", "", "deptcd,deptnm" );
  210. if (ipt_deptnm.label == "") {
  211. ipt_deptcd.value = "";
  212. }
  213. model.refresh();
  214. ]]>
  215. </script>
  216. </input>
  217. </group>
  218. <button id="btn_saveexcel" class="btn2_letter5" style="left:1004px; top:49px; width:75px; height:19px; ">
  219. <caption>Excel저장</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  223. if (fileName != "")
  224. {
  225. grd_satexampsntrgtlist.saveExcel(fileName);
  226. }
  227. ]]>
  228. </script>
  229. </button>
  230. </group>
  231. <!--<line id="line3" class="line_1" style="x1:0px; y1:67px; x2:1195px; y2:67px; "/>-->
  232. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  233. <button id="btn_cnfm" class="btn4_letter2" visibility="hidden" style="left:822px; top:3px; width:56px; height:22px; ">
  234. <caption>확정</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. // model.setValue("/root/send/examcnfmyn/valuyy", ipt_valuyy.value);
  238. // model.setValue("/root/send/examcnfmyn/instcd", cmb_instcd.value);
  239. // model.setValue("/root/send/examcnfmyn/cnfmyn", "Y");
  240. //
  241. // submit("TXRPV02303");
  242. //
  243. // if (model.getValue(gvErrorMsgPath + "/type") != "error")
  244. // {
  245. // btn_search.dispatch("DOMActivate");
  246. // }
  247. ]]>
  248. </script>
  249. </button>
  250. <button id="button5" class="btn4_letter3" style="left:1070px; top:3px; width:68px; height:22px; ">
  251. <caption>초기화</caption>
  252. </button>
  253. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  254. <caption>저장</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. misfSave("TXRPV02401");
  258. ]]>
  259. </script>
  260. </button>
  261. <button id="btn_cnfmcan" class="btn4_letter4" disabled="true" visibility="hidden" style="left:879px; top:3px; width:80px; height:22px; ">
  262. <caption>확정취소</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. // model.setValue("/root/send/examcnfmyn/valuyy", ipt_valuyy.value);
  266. // model.setValue("/root/send/examcnfmyn/instcd", cmb_instcd.value);
  267. // model.setValue("/root/send/examcnfmyn/cnfmyn", "N");
  268. //
  269. // submit("TXRPV02303");
  270. //
  271. // if (model.getValue(gvErrorMsgPath + "/type") != "error")
  272. // {
  273. // btn_search.dispatch("DOMActivate");
  274. // }
  275. ]]>
  276. </script>
  277. </button>
  278. <line id="line2" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  279. <button id="btn_makedata" class="btn4_letter5" disabled="false" visibility="visible" style="left:970px; top:3px; width:92px; height:22px; ">
  280. <caption>대상자생성</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. if( messageBox("대상자 생성시 " + ipt_valuyy.value + "년도의 Data는 모두 지워집니다.", "Q003") != '6') return;
  284. submit("TXRPV02402");
  285. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  286. {
  287. btn_search.dispatch("DOMActivate");
  288. }
  289. ]]>
  290. </script>
  291. </button>
  292. </group>
  293. </xhtml:body>
  294. </xhtml:html>