SMRTR00900_채용정원관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. <apntscorebatrgst/>
  11. <capaadjtcnfmlist>
  12. <supinfqurtyyflag/>
  13. <fstlattrmflag/>
  14. <trngflag/>
  15. <dentyn/>
  16. </capaadjtcnfmlist>
  17. </main>
  18. <send>
  19. <apntyy/>
  20. <supinfqurtyyflag>-</supinfqurtyyflag>
  21. <fstlattrmflag>-</fstlattrmflag>
  22. <trngflag>-</trngflag>
  23. <dentyn>-</dentyn>
  24. <capaadjtcnfmlist/>
  25. </send>
  26. <init/>
  27. <hidden>
  28. </hidden>
  29. <temp>
  30. </temp>
  31. </root>
  32. </instance>
  33. <submission id="TRRTR00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/capaadjtcnfmlist"/>
  34. <submission id="TXRTR00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/capaadjtcnfmlist" resultref="/root/temp"/>
  35. <bind id="bind1" ref="/root/main/capaadjtcnfmlist/cnfmtot" calculate="../cnfm011 + ../cnfm012 + ../cnfm013 + ../cnfm014 + ../cnfm015 + ../cnfm016 + ../cnfm017 + ../cnfm018 + ../cnfm201 +../cnfm217"/>
  36. <bind id="bind011" ref="/root/main/capaadjtcnfmlist/cnfm011" readonly="../edityn = 'N' or ../cnfm011 = ''"/>
  37. <bind id="bind012" ref="/root/main/capaadjtcnfmlist/cnfm012" readonly="../edityn = 'N' or ../cnfm012 = ''"/>
  38. <bind id="bind013" ref="/root/main/capaadjtcnfmlist/cnfm013" readonly="../edityn = 'N' or ../cnfm013 = ''"/>
  39. <bind id="bind014" ref="/root/main/capaadjtcnfmlist/cnfm014" readonly="../edityn = 'N' or ../cnfm014 = ''"/>
  40. <bind id="bind015" ref="/root/main/capaadjtcnfmlist/cnfm015" readonly="../edityn = 'N' or ../cnfm015 = ''"/>
  41. <bind id="bind016" ref="/root/main/capaadjtcnfmlist/cnfm016" readonly="../edityn = 'N' or ../cnfm016 = ''"/>
  42. <bind id="bind017" ref="/root/main/capaadjtcnfmlist/cnfm017" readonly="../edityn = 'N' or ../cnfm017 = ''"/>
  43. <bind id="bind018" ref="/root/main/capaadjtcnfmlist/cnfm018" readonly="../edityn = 'N' or ../cnfm018 = ''"/>
  44. <bind id="bind201" ref="/root/main/capaadjtcnfmlist/cnfm201" readonly="../edityn = 'N' or ../cnfm201 = ''"/>
  45. <bind id="bind217" ref="/root/main/capaadjtcnfmlist/cnfm217" readonly="../edityn = 'N' or ../cnfm217 = ''"/>
  46. <bind id="bindsum011" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm011" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm011)"/>
  47. <bind id="bindsum012" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm012" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm012)"/>
  48. <bind id="bindsum013" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm013" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm013)"/>
  49. <bind id="bindsum014" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm014" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm014)"/>
  50. <bind id="bindsum015" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm015" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm015)"/>
  51. <bind id="bindsum016" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm016" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm016)"/>
  52. <bind id="bindsum017" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm017" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm017)"/>
  53. <bind id="bindsum018" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm018" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm018)"/>
  54. <bind id="bindsum201" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm201" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm201)"/>
  55. <bind id="bindsum217" ref="/root/main/capaadjtcnfmlist[deptcd = 'sum']/cnfm217" calculate="sum(/root/main/capaadjtcnfmlist[deptcd != 'sum' and apntinfono = ../apntinfono]/cnfm217)"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.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="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  62. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fCheckAuth();
  66. misfGridInit(grd_capaadjtcnfmlist);
  67. misfMsterDetailSet(grd_capaadjtcnfmlist, null, "TRRTR00901", "Y");
  68. misfGridComboComCdList("R0237",grd_capaadjtcnfmlist,"supinfqurtyyflag");
  69. misfGridComboComCdList("R0238",grd_capaadjtcnfmlist,"fstlattrmflag");
  70. misfGridComboComCdList("R0151",grd_capaadjtcnfmlist,"trngflag");
  71. misfGridComboComCdList("R0239",grd_capaadjtcnfmlist,"dentyn");
  72. misfComboComCdListMulti("R0237,R0238,R0151,R0239", "cmb_supinfqurtyyflag,cmb_fstlattrmflag,cmb_trngflag,cmb_dentyn");
  73. /*var arr = new Array("R0237", "R0238", "R0151", "R0239");
  74. for (var i=0; i<arr.length; i++)
  75. {
  76. model.duplicate("/root/init/comcd/"+arr[i], instance1.selectSingleNode("/root/init/comcd/"+arr[i]+"/"+arr[i]+"[1]"), "*[1]");
  77. model.setValue("/root/init/comcd/"+arr[i]+"/"+arr[i]+"/cdid", "-");
  78. model.setValue("/root/init/comcd/"+arr[i]+"/"+arr[i]+"/cdnm", "");
  79. }*/
  80. addComboItem( "cmb_supinfqurtyyflag", "전체", "-", "above") ;
  81. addComboItem( "cmb_fstlattrmflag", "전체", "-", "above") ;
  82. addComboItem( "cmb_trngflag", "전체", "-", "above") ;
  83. addComboItem( "cmb_dentyn", "전체", "-", "above") ;
  84. var today = getCurrentDate();
  85. var cur_mm = parseInt(today.substring(4, 6));
  86. var cur_yy = parseInt(today.substring(0, 4));
  87. if (cur_mm >= 11)
  88. cur_yy++;
  89. model.setValue("/root/send/apntyy", cur_yy);
  90. model.refresh();
  91. //그리드의 타이틀을 누르면 sort되는 기능
  92. grd_capaadjtcnfmlist.explorerbar = "sort";
  93. grd_capaadjtcnfmlist.selectionMode = "byrow"
  94. model.refresh();
  95. ]]>
  96. </script>
  97. <script type="javascript">
  98. <![CDATA[
  99. //========================================================================================
  100. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  101. //========================================================================================
  102. function fCheckAuth() {
  103. btn_search.disabled = !checkAuth("R") ;
  104. btn_save.disabled = !checkAuth("X") ;
  105. }
  106. function fGetList() {
  107. //필수 입력 항목 체크(공통 ftHelper.js)
  108. if ( !isRequiredControls("ipt_apntyy") ) {
  109. return false;
  110. }
  111. misfMsterDetailRetrieve();
  112. for (var i=1; i<grd_capaadjtcnfmlist.rows; i++)
  113. {
  114. grd_capaadjtcnfmlist.rowstyle(i, "data", "background-color") = "transparent";
  115. }
  116. var cellcol_sum = "#ffeebb";
  117. var cellcol_readonly = "#eeeeee";
  118. grd_capaadjtcnfmlist.colstyle(grd_capaadjtcnfmlist.colRef("apntinfono"), "data", "background-color") = cellcol_readonly;
  119. grd_capaadjtcnfmlist.colstyle(grd_capaadjtcnfmlist.colRef("supinfqurtyyflag"), "data", "background-color") = cellcol_readonly;
  120. grd_capaadjtcnfmlist.colstyle(grd_capaadjtcnfmlist.colRef("fstlattrmflag"), "data", "background-color") = cellcol_readonly;
  121. grd_capaadjtcnfmlist.colstyle(grd_capaadjtcnfmlist.colRef("trngflag"), "data", "background-color") = cellcol_readonly;
  122. grd_capaadjtcnfmlist.colstyle(grd_capaadjtcnfmlist.colRef("dentyn"), "data", "background-color") = cellcol_readonly;
  123. grd_capaadjtcnfmlist.colstyle(grd_capaadjtcnfmlist.colRef("deptnm"), "data", "background-color") = cellcol_readonly;
  124. grd_capaadjtcnfmlist.colstyle(grd_capaadjtcnfmlist.colRef("cnfmtot"), "data", "background-color") = cellcol_sum;
  125. var colref_deptcd = grd_capaadjtcnfmlist.colRef("deptcd");
  126. var colref_edityn = grd_capaadjtcnfmlist.colRef("edityn");
  127. for (var i=1; i<grd_capaadjtcnfmlist.rows; i++)
  128. {
  129. if (grd_capaadjtcnfmlist.valueMatrix(i, colref_edityn) == "N")
  130. {
  131. grd_capaadjtcnfmlist.rowstyle(i, "data", "background-color") = cellcol_readonly;
  132. }else{
  133. grd_capaadjtcnfmlist.rowstyle(i, "data", "background-color") = "#ffffff";
  134. }
  135. if (grd_capaadjtcnfmlist.valueMatrix(i, colref_deptcd) == "sum")
  136. {
  137. grd_capaadjtcnfmlist.rowstyle(i, "data", "background-color") = cellcol_sum;
  138. }
  139. }
  140. } // function
  141. ]]>
  142. </script>
  143. </xhtml:head>
  144. <xhtml:body style="margin-left:8; margin-right:8; ">
  145. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  146. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">채용정원관리</caption>
  147. </group>
  148. <caption id="caption10" style="left:725px; top:705px; width:350px; height:25px; vertical-align:middle; ">상태 : 가입, 탈퇴, 보임</caption>
  149. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  150. <button id="button4" class="btn2_letter4" style="left:1128px; top:52px; width:64px; height:19px; ">
  151. <caption>엑셀저장</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  155. if (fileName != "") {
  156. grd_capaadjtcnfmlist.colHidden(1) = false;
  157. grd_capaadjtcnfmlist.colHidden(2) = false;
  158. //grd_apntscorebatrgst.saveExcel(fileName);
  159. grd_capaadjtcnfmlist.saveExcel(fileName, "", false, true);
  160. //grd_apntscorebatrgst.colHidden(1) = true;
  161. //grd_apntscorebatrgst.colHidden(2) = true;
  162. }
  163. ]]>
  164. </script>
  165. </button>
  166. <datagrid id="grd_capaadjtcnfmlist" nodeset="/root/main/capaadjtcnfmlist" caption="번호^상하^전후^IR^의치^deptcd^진료과^edityn^성모병원^서울성모병원^의정부성모병원^부천성모병원^성바오로병원^인천성모병원^성빈센트병원^대전성모병원^청주성모병원^창원파티마병원^합계" colsep="^" colwidth="40, 50, 35, 60, 35, 0, 130, 0, 80, 80, 90, 80, 80, 80, 80, 80, 80, 90, 70" dataheight="25" extendlastcol="scroll" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="100" rowsep="|" selectionmode="byrow" style="left:0px; top:74px; width:1195px; height:660px; ">
  167. <col disabled="true" ref="apntinfono"/>
  168. <col disabled="true" ref="supinfqurtyyflag" type="combo">
  169. <choices>
  170. <itemset>
  171. <label/>
  172. <value/>
  173. </itemset>
  174. </choices>
  175. </col>
  176. <col disabled="true" ref="fstlattrmflag" type="combo">
  177. <choices>
  178. <itemset>
  179. <label/>
  180. <value/>
  181. </itemset>
  182. </choices>
  183. </col>
  184. <col disabled="true" ref="trngflag" type="combo">
  185. <choices>
  186. <itemset>
  187. <label/>
  188. <value/>
  189. </itemset>
  190. </choices>
  191. </col>
  192. <col disabled="true" ref="dentyn" type="combo">
  193. <choices>
  194. <itemset>
  195. <label/>
  196. <value/>
  197. </itemset>
  198. </choices>
  199. </col>
  200. <col ref="deptcd" visibility="hidden"/>
  201. <col disabled="true" ref="deptnm"/>
  202. <col ref="edityn" visibility="hidden"/>
  203. <col ref="cnfm011" type="input" format="99" style="text-align:center; "/>
  204. <col ref="cnfm012" type="input" format="99" style="text-align:center; "/>
  205. <col ref="cnfm013" type="input" format="99" style="text-align:center; "/>
  206. <col ref="cnfm014" type="input" format="99" style="text-align:center; "/>
  207. <col ref="cnfm015" type="input" format="99" style="text-align:center; "/>
  208. <col ref="cnfm016" type="input" format="99" style="text-align:center; "/>
  209. <col ref="cnfm017" type="input" format="99" style="text-align:center; "/>
  210. <col ref="cnfm018" type="input" format="99" style="text-align:center; "/>
  211. <col ref="cnfm201" type="input" format="99" style="text-align:center; "/>
  212. <col ref="cnfm217" type="input" format="99" style="text-align:center; "/>
  213. <col disabled="true" ref="cnfmtot" style="text-align:center; "/>
  214. <script type="javascript" ev:event="onendedit">
  215. <![CDATA[
  216. // 합계를 구한다.
  217. //fRecalculate();
  218. ]]>
  219. </script>
  220. <script type="javascript" ev:event="onaftersort">
  221. <![CDATA[
  222. grd_capaadjtcnfmlist.gridToInstance();
  223. ]]>
  224. </script>
  225. </datagrid>
  226. <line id="line3" class="line_1" style="x1:0px; y1:73px; x2:1195px; y2:73px; "/>
  227. <caption id="caption9" class="tit_2" style="left:10px; top:59px; width:117px; height:13px; ">채용별 정원내역</caption>
  228. <group id="group4" style="left:0px; top:5px; width:1195px; height:45px; vertical-align:top; ">
  229. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  230. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:10px; width:56px; height:22px; text-align:left; ">
  231. <caption>조회</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. fGetList();
  235. ]]>
  236. </script>
  237. </button>
  238. <line id="line1" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  239. <select1 id="cmb_trngflag" ref="/root/send/trngflag" class="combo_search" navindex="4" appearance="minimal" style="left:775px; top:10px; width:100px; height:19px; ">
  240. <choices>
  241. <itemset>
  242. <label/>
  243. <value/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. <caption id="cap_trngflag" class="search_name" style="left:660px; top:9px; width:110px; height:17px; ">전공의구분 :</caption>
  248. <caption id="cap_apntyy" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">년 도 :</caption>
  249. <caption id="cap_supinfqurtyyflag" class="search_name" style="left:225px; top:9px; width:86px; height:17px; ">상하반기 :</caption>
  250. <caption id="cap_fstlattrmflag" class="search_name" style="left:435px; top:9px; width:86px; height:17px; ">전후기 :</caption>
  251. <select1 id="cmb_dentyn" ref="/root/send/dentyn" class="combo_search" navindex="5" appearance="minimal" style="left:975px; top:10px; width:100px; height:19px; ">
  252. <choices>
  253. <itemset>
  254. <label/>
  255. <value/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <caption id="cap_dentyn" class="search_name" style="left:885px; top:9px; width:96px; height:17px; ">치과여부 :</caption>
  260. <select1 id="cmb_fstlattrmflag" ref="/root/send/fstlattrmflag" class="combo_search" navindex="3" appearance="minimal" style="left:525px; top:10px; width:100px; height:19px; ">
  261. <choices>
  262. <itemset>
  263. <label/>
  264. <value/>
  265. </itemset>
  266. </choices>
  267. </select1>
  268. <select1 id="cmb_supinfqurtyyflag" ref="/root/send/supinfqurtyyflag" class="combo_search" navindex="2" appearance="minimal" style="left:310px; top:10px; width:100px; height:19px; ">
  269. <choices>
  270. <itemset>
  271. <label/>
  272. <value/>
  273. </itemset>
  274. </choices>
  275. </select1>
  276. <input id="ipt_apntyy" ref="/root/send/apntyy" class="input_s_essential" navindex="1" style="left:100px; top:10px; width:100px; height:19px; "/>
  277. </group>
  278. </group>
  279. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  280. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  281. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  282. <caption>저장</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  286. if ( retMes != 6) {
  287. return;
  288. }
  289. /*var colref = grd_capaadjtcnfmlist.colRef("deptcd");
  290. for (var i=0; i<grd_capaadjtcnfmlist.rows; i++)
  291. {
  292. grd_capaadjtcnfmlist.rowStatus(i, "update");
  293. }*/
  294. var updtdata = getGridUpdateData(grd_capaadjtcnfmlist);
  295. if (updtdata == "") {
  296. messageBox("변경된 데이터가","I004");
  297. return;
  298. }
  299. misfSave("TXRTR00901");
  300. //fGetList();
  301. ]]>
  302. </script>
  303. </button>
  304. </group>
  305. </xhtml:body>
  306. </xhtml:html>