SMRTS00900_근무성적확정.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. </main>
  11. <hidden>
  12. </hidden>
  13. <temp>
  14. </temp>
  15. <init/>
  16. <send>
  17. <req>
  18. <yy/>
  19. <mm/>
  20. <instcd/>
  21. <valueflag/>
  22. </req>
  23. <exe>
  24. <valueflag/>
  25. <valueyy/>
  26. <dutvaluemm/>
  27. </exe>
  28. </send>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. grd_resi.attribute("top") = grd_intn.attribute("top");
  34. grd_resi.attribute("height") = grd_intn.attribute("height");
  35. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  36. misfComboComCdList("R0009", cmb_mm);
  37. model.makeValue("/root/temp/cmbmm_nodeset", cmb_mm.choices.itemset.attribute("nodeset"));
  38. var today = getCurrentDate();
  39. var cur_yy = today.substring(0, 4);
  40. var cur_mm = today.substring(4, 6);
  41. model.setValue("/root/send/req/yy", cur_yy);
  42. model.setValue("/root/send/req/mm", cur_mm.getLeftPad(2, "0"));
  43. model.refresh();
  44. ]]>
  45. </script>
  46. <submission id="TRRTS00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/intn"/>
  47. <submission id="TRRTS00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/resi"/>
  48. <submission id="TXRTS00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/exe"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  55. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  56. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. function fDefaultInstSetting(control)
  60. {
  61. var sDutplceInstcd = getUserInfo("dutplceinstcd");
  62. var sInstcd = control.value;
  63. if(checkAuth("P")){}
  64. else{
  65. if(sDutplceInstcd != sInstcd){
  66. messageBox(control.label + "을(를) 조회 할 수 " , "I004");
  67. control.value = sDutplceInstcd;
  68. return;
  69. }
  70. }
  71. model.refresh();
  72. }
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body>
  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:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; "/>
  83. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  84. <caption id="cap_instcd" class="search_name" style="left:560px; top:15px; width:100px; height:17px; ">근무병원 :</caption>
  85. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" appearance="minimal" style="left:649px; top:14px; width:100px; height:19px; ">
  86. <choices>
  87. <itemset>
  88. <label/>
  89. <value/>
  90. </itemset>
  91. </choices>
  92. <script type="javascript" ev:event="xforms-value-changed">
  93. <![CDATA[
  94. fDefaultInstSetting(cmb_instcd);
  95. ]]>
  96. </script>
  97. </select1>
  98. <datagrid id="grd_intn" nodeset="/root/main/intn/mmintndutscorlist" visibility="hidden" caption="사원번호^성명^확정^기본소양^기본소양^기본소양^기본술기^기본술기^기본술기^학구적태도^학구적태도^학구적태도^책임관념^책임관념^책임관념^합계^합계|사원번호^성명^확정^점수^등급^평가자^점수^등급^평가자^점수^등급^평가자^점수^등급^평가자^점수^등급^평가자&quot;" colsep="^" colwidth="77, 80, 40, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 80" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:45px; width:1193px; height:697px; ">
  99. <col ref="emplno"/>
  100. <col ref="name" style="text-align:center; "/>
  101. <col ref="cfrmyn" style="text-align:center; "/>
  102. <col ref="itemflag01" style="text-align:center; "/>
  103. <col ref="itemgrde01" style="text-align:center; "/>
  104. <col ref="valupsnnm01" style="text-align:center; "/>
  105. <col ref="itemflag02" style="text-align:center; "/>
  106. <col ref="itemgrde02" style="text-align:center; "/>
  107. <col ref="valupsnnm02" style="text-align:center; "/>
  108. <col ref="itemflag03" style="text-align:center; "/>
  109. <col ref="itemgred03" style="text-align:center; "/>
  110. <col ref="valupsnnm03" style="text-align:center; "/>
  111. <col ref="itemflag04" style="text-align:center; "/>
  112. <col ref="itemgred04" style="text-align:center; "/>
  113. <col ref="valupsnnm04" style="text-align:center; "/>
  114. <col ref="itemflagtot" style="text-align:center; "/>
  115. <col ref="itemgredtot" style="text-align:center; "/>
  116. </datagrid>
  117. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. if ( !isRequiredControls("ipt_yy", "ipt_mm", "rdo_valueflag", "cmb_instcd") ) {
  122. return false;
  123. }
  124. if (model.getValue("/root/send/req/valueflag") == "12")
  125. {
  126. var mm = model.getValue("/root/send/req/mm");
  127. if (!(mm == "05" || mm == "08" || mm == "11" || mm == "02"))
  128. {
  129. messageBox("레지던트 근무평가월은 [ 5 , 8 , 11 , 2 ] 월 입니다.", "I", "");
  130. return;
  131. }
  132. }
  133. if (model.getValue("/root/send/req/valueflag") == "11")
  134. {
  135. submit("TRRTS00901");
  136. }
  137. else if (model.getValue("/root/send/req/valueflag") == "12")
  138. {
  139. submit("TRRTS00902");
  140. }
  141. ]]>
  142. </script>
  143. </button>
  144. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  145. <datagrid id="grd_resi" nodeset="/root/main/resi/mmresidutscorlist" visibility="hidden" caption="사원번호^성명^전공^년차^확정^인품^인품^인품^근무태도^근무태도^근무태도^책임관념^책임관념^책임관념^학구적태도^학구적태도^학구적태도^전공과목적성도^전공과목적성도^전공과목적성도^합계^합계|사원번호^성명^전공^년차^확정^점수^등급^평가자^점수^등급^평가자^점수^등급^평가자^점수^등급^평가자^점수^등급^평가자^점수^등급^평가자" colsep="^" colwidth="60, 70, 90, 20, 20, 50, 50, 55, 50, 50, 55, 50, 50, 55, 50, 50, 55, 50, 50, 55, 55, 55" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:120px; width:1193px; height:275px; ">
  146. <col ref="emplno"/>
  147. <col ref="name" style="text-align:center; "/>
  148. <col ref="deptnm" style="text-align:center; word-wrap:none; "/>
  149. <col ref="anual" style="text-align:center; "/>
  150. <col ref="cfrmyn" style="text-align:center; "/>
  151. <col ref="itemflag01" style="text-align:center; "/>
  152. <col ref="itemgrde01" style="text-align:center; "/>
  153. <col ref="valupsnnm01" style="text-align:center; "/>
  154. <col ref="itemflag02" style="text-align:center; "/>
  155. <col ref="itemgrde02" style="text-align:center; "/>
  156. <col ref="valupsnnm02" style="text-align:center; "/>
  157. <col ref="itemflag03" style="text-align:center; "/>
  158. <col ref="itemgred03" style="text-align:center; "/>
  159. <col ref="valupsnnm03" style="text-align:center; "/>
  160. <col ref="itemflag04" style="text-align:center; "/>
  161. <col ref="itemgred04" style="text-align:center; "/>
  162. <col ref="valupsnnm04" style="text-align:center; "/>
  163. <col ref="itemflag05" style="text-align:center; "/>
  164. <col ref="itemgred05" style="text-align:center; "/>
  165. <col ref="valupsnnm05" style="text-align:center; "/>
  166. <col ref="itemflagtot" style="text-align:center; "/>
  167. <col ref="itemgredtot" style="text-align:center; "/>
  168. </datagrid>
  169. <select1 id="rdo_valueflag" ref="/root/send/req/valueflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:419px; top:16px; width:125px; height:20px; border-style:none; ">
  170. <choices>
  171. <item>
  172. <label>인턴</label>
  173. <value>11</value>
  174. </item>
  175. <item>
  176. <label>레지던트</label>
  177. <value>12</value>
  178. </item>
  179. </choices>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. if (rdo_valueflag.value == "11")
  183. {
  184. grd_intn.attribute("visibility") = "visible";
  185. grd_resi.attribute("visibility") = "hidden";
  186. if (model.getValue("/root/temp/selvalulistflag") != "cdlist11")
  187. {
  188. cmb_mm.choices.itemset.attribute("nodeset") = model.getValue("/root/temp/cmbmm_nodeset");
  189. }
  190. }
  191. else if (rdo_valueflag.value == "12")
  192. {
  193. grd_intn.attribute("visibility") = "hidden";
  194. grd_resi.attribute("visibility") = "visible";
  195. if (model.getValue("/root/temp/selvalulistflag") != "cdlist12")
  196. {
  197. cmb_mm.choices.itemset.attribute("nodeset") = model.getValue("/root/temp/cmbmm_nodeset") + "[cdid='05' or cdid='08' or cdid='11' or cdid='02']";
  198. }
  199. }
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </select1>
  204. <caption id="cap_valueflag" class="search_name" style="left:305px; top:15px; width:120px; height:17px; ">근무평가구분 :</caption>
  205. <caption id="cap_mm" class="search_name" style="left:160px; top:15px; width:75px; height:17px; ">근무월 :</caption>
  206. <select1 id="cmb_mm" ref="/root/send/req/mm" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:232px; top:14px; width:55px; height:19px; ">
  207. <choices>
  208. <itemset>
  209. <label/>
  210. <value/>
  211. </itemset>
  212. </choices>
  213. </select1>
  214. </group>
  215. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  216. <button id="btn_choipsn" class="btn2_letter7" style="left:1090px; top:5px; width:97px; height:19px; ">
  217. <caption>근무성적 확정</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. var retMes = messageBox("근무성적을 확정 하시겠습니까?", "Q999");
  221. if ( retMes != 6) {
  222. return;
  223. }
  224. model.setValue("/root/send/exe/valueflag", model.getValue("/root/send/req/valueflag"));
  225. model.setValue("/root/send/exe/valueyy", model.getValue("/root/send/req/yy"));
  226. model.setValue("/root/send/exe/dutvaluemm", model.getValue("/root/send/req/mm"));
  227. if (submit("TXRTS00901"))
  228. {
  229. btn_search.dispatch("DOMActivate");
  230. }
  231. ]]>
  232. </script>
  233. </button>
  234. <button id="button1" class="btn2_letter4" visibility="visible" style="left:1020px; top:5px; width:64px; height:19px; ">
  235. <caption>엑셀저장</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  239. if(rdo_valueflag.value == "11")
  240. {
  241. if (fileName != "") {;
  242. grd_intn.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
  243. }
  244. }
  245. else if(rdo_valueflag.value == "12")
  246. {
  247. if (fileName != "") {;
  248. grd_resi.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
  249. }
  250. }
  251. ]]>
  252. </script>
  253. </button>
  254. </group>
  255. </xhtml:body>
  256. </xhtml:html>