SMRTS00800_근무종합성적.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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. <intncolgdutscorlist/>
  11. <resicolgdutscorlist/>
  12. <intnbasedatalist/>
  13. </main>
  14. <hidden>
  15. </hidden>
  16. <temp>
  17. </temp>
  18. <init/>
  19. <send>
  20. <req>
  21. <yy/>
  22. <instcd/>
  23. <valueflag/>
  24. <supinfqurtyyflag/>
  25. <acptlastdd/>
  26. <totcnt/>
  27. </req>
  28. <intncolgdutscorlist/>
  29. </send>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. grd_resi.attribute("top") = grd_intn.attribute("top");
  35. grd_resi.attribute("height") = grd_intn.attribute("height");
  36. btn_report.visible = "false";
  37. caption1.visible="false";
  38. ipt_acptlastdd.visible="false";
  39. var today = getCurrentDate();
  40. var cur_mm = parseInt(today.substring(4, 6));
  41. var cur_yy = parseInt(today.substring(0, 4));
  42. if (cur_mm < 3)
  43. {
  44. cur_yy--;
  45. }
  46. model.setValue("/root/send/req/yy", cur_yy);
  47. ipt_yy.refresh();
  48. ]]>
  49. </script>
  50. <submission id="TRRTS00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/intncolgdutscorlist"/>
  51. <submission id="TRRTS00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/resicolgdutscorlist"/>
  52. <submission id="TXRTS00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  53. <submission id="TXRTS00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  54. <submission id="TRRTS00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/intnbasedatalist"/>
  55. <submission id="TXRTS00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/intncolgdutscorlist"/>
  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/dateHelper.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  61. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  62. </xhtml:head>
  63. <xhtml:body>
  64. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  65. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무 종합성적 환산 및 조회</caption>
  66. </group>
  67. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  68. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  69. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; "/>
  70. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  71. <caption id="caption2" class="search_name" visibility="hidden" style="left:866px; top:11px; width:75px; height:17px; ">병원 :</caption>
  72. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:925px; top:10px; width:100px; height:19px; ">
  73. <choices>
  74. <itemset>
  75. <label/>
  76. <value/>
  77. </itemset>
  78. </choices>
  79. </select1>
  80. <datagrid id="grd_intn" nodeset="/root/main/intncolgdutscorlist" visibility="hidden" caption="사원번호^성명^군보^03월^04월^05월^06월^07월^08월^09월^10월^11월^12월^01월^02월^총점^평균^환산총점^환산평균^환산석차^환산등급^기존석차^기존등급^전반기병원^후반기병원^출신교^주민등록번호^전공의 등록번호^근무평가기간^전공의 수료일^년도^상하반기" colsep="^" colwidth="60, 80, 70, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 55, 55, 55, 55, 55, 55, 95, 95, 95, 100, 100, 88, 90, 100, 80, 80" dataheight="25" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:65; width:1193px; height:677; ">
  81. <col ref="emplno"/>
  82. <col ref="name" style="text-align:center; "/>
  83. <col ref="armyflag" style="text-align:center; "/>
  84. <col ref="pnt03" style="text-align:right; padding-right:5; "/>
  85. <col ref="pnt04" style="text-align:right; padding-right:5; "/>
  86. <col ref="pnt05" style="text-align:right; padding-right:5; "/>
  87. <col ref="pnt06" style="text-align:right; padding-right:5; "/>
  88. <col ref="pnt07" style="text-align:right; padding-right:5; "/>
  89. <col ref="pnt08" style="text-align:right; padding-right:5; "/>
  90. <col ref="pnt09" style="text-align:right; padding-right:5; "/>
  91. <col ref="pnt10" style="text-align:right; padding-right:5; "/>
  92. <col ref="pnt11" style="text-align:right; padding-right:5; "/>
  93. <col ref="pnt12" style="text-align:right; padding-right:5; "/>
  94. <col ref="pnt01" style="text-align:right; padding-right:5; "/>
  95. <col ref="pnt02" style="text-align:right; padding-right:5; "/>
  96. <col ref="pnt" format="#,###.0" mask="include" style="text-align:right; padding-right:5; "/>
  97. <col ref="valueavg" format="#,###.00" mask="include" style="text-align:right; padding-right:5; "/>
  98. <col editable="false" ref="exchtotpnt" type="input" format="#,###.000" mask="include" style="text-align:right; padding-right:5; "/>
  99. <col editable="false" ref="exchavg" type="input" format="#,###.000" mask="include" style="text-align:right; padding-right:5; "/>
  100. <col editable="false" ref="rank" type="input" style="text-align:center; "/>
  101. <col editable="false" ref="grde" type="input" style="text-align:center; "/>
  102. <col ref="existingrank" style="text-align:center; "/>
  103. <col ref="existinggrde" style="text-align:center; "/>
  104. <col ref="firstinstcd" style="text-align:center; "/>
  105. <col ref="secondinstcd" style="text-align:center; "/>
  106. <col ref="schoolnm" style="text-align:center; "/>
  107. <col ref="rregno" visibility="hidden"/>
  108. <col ref="welfprtno1" visibility="hidden"/>
  109. <col ref="valuterm" visibility="hidden"/>
  110. <col ref="trngdd" visibility="hidden"/>
  111. <col ref="educyy" visibility="hidden"/>
  112. <col ref="supinfqurtyyflag" visibility="hidden"/>
  113. </datagrid>
  114. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  115. <caption>조회</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. if ( !isRequiredControls("ipt_yy", "rdo_valueflag") ) {
  119. return false;
  120. }
  121. if (model.getValue("/root/send/req/valueflag") == "11")
  122. {
  123. submit("TRRTS00801");
  124. }
  125. else if (model.getValue("/root/send/req/valueflag") == "12")
  126. {
  127. submit("TRRTS00802");
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  133. <datagrid id="grd_resi" nodeset="/root/main/resicolgdutscorlist" visibility="hidden" caption="사원번호^성명^군보^전공^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^총점^평균^등급" colsep="^" colwidth="60, 80, 70, 100, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 65, 65, 65" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:105px; width:1193px; height:275px; ">
  134. <col ref="emplno"/>
  135. <col ref="name" style="text-align:center; "/>
  136. <col ref="armyflag" style="text-align:center; "/>
  137. <col ref="deptnm" style="text-align:center; "/>
  138. <col ref="pnt01" style="text-align:right; padding-right:5; "/>
  139. <col ref="pnt02" style="text-align:right; padding-right:5; "/>
  140. <col ref="pnt03" style="text-align:right; padding-right:5; "/>
  141. <col ref="pnt04" style="text-align:right; padding-right:5; "/>
  142. <col ref="pnt05" style="text-align:right; padding-right:5; "/>
  143. <col ref="pnt06" style="text-align:right; padding-right:5; "/>
  144. <col ref="pnt07" style="text-align:right; padding-right:5; "/>
  145. <col ref="pnt08" style="text-align:right; padding-right:5; "/>
  146. <col ref="pnt09" style="text-align:right; padding-right:5; "/>
  147. <col ref="pnt10" style="text-align:right; padding-right:5; "/>
  148. <col ref="pnt11" style="text-align:right; padding-right:5; "/>
  149. <col ref="pnt12" style="text-align:right; padding-right:5; "/>
  150. <col ref="pnt13" style="text-align:right; padding-right:5; "/>
  151. <col ref="pnt14" style="text-align:right; padding-right:5; "/>
  152. <col ref="pnt15" style="text-align:right; padding-right:5; "/>
  153. <col ref="pnt16" style="text-align:right; padding-right:5; "/>
  154. <col ref="pnt" style="text-align:right; padding-right:5; "/>
  155. <col ref="valueavg" style="text-align:right; padding-right:5; "/>
  156. <col ref="grde" style="text-align:center; "/>
  157. </datagrid>
  158. <select1 id="rdo_valueflag" ref="/root/send/req/valueflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:550px; top:15px; width:125px; height:20px; border-style:none; ">
  159. <choices>
  160. <item>
  161. <label>인턴</label>
  162. <value>11</value>
  163. </item>
  164. <item>
  165. <label>레지던트</label>
  166. <value>12</value>
  167. </item>
  168. </choices>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. if (rdo_valueflag.value == "11")
  172. {
  173. button1.visible = true;
  174. button2.visible = true;
  175. button3.visible = true;
  176. grd_intn.attribute("visibility") = "visible";
  177. grd_resi.attribute("visibility") = "hidden";
  178. btn_report.visible = "true";
  179. caption1.visible="true";
  180. ipt_acptlastdd.visible="true";
  181. }
  182. else if (rdo_valueflag.value == "12")
  183. {
  184. button1.visible = true;
  185. button2.visible = false;
  186. button3.visible = false;
  187. grd_intn.attribute("visibility") = "hidden";
  188. grd_resi.attribute("visibility") = "visible";
  189. btn_report.visible = "false";
  190. caption1.visible="false";
  191. ipt_acptlastdd.visible="false";
  192. }
  193. ]]>
  194. </script>
  195. </select1>
  196. <caption id="cap_valueflag" class="search_name" style="left:436px; top:14px; width:120px; height:17px; ">근무평가구분 :</caption>
  197. <select1 id="rdo_supinfqurtyyflag" ref="/root/send/req/supinfqurtyyflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:289px; top:16px; width:125px; height:20px; border-style:none; ">
  198. <choices>
  199. <item>
  200. <label>상반기</label>
  201. <value>1</value>
  202. </item>
  203. <item>
  204. <label>하반기</label>
  205. <value>2</value>
  206. </item>
  207. </choices>
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. if (rdo_valueflag.value == "11")
  211. {
  212. grd_intn.attribute("visibility") = "visible";
  213. grd_resi.attribute("visibility") = "hidden";
  214. }
  215. else if (rdo_valueflag.value == "12")
  216. {
  217. grd_intn.attribute("visibility") = "hidden";
  218. grd_resi.attribute("visibility") = "visible";
  219. }
  220. ]]>
  221. </script>
  222. </select1>
  223. <caption id="cap_supinfqurtyyflag" class="search_name" style="left:175px; top:15px; width:120px; height:17px; ">상하반기구분 :</caption>
  224. <button id="button1" class="btn2_letter4" visibility="hidden" style="left:1052px; top:44px; width:64px; height:19px; ">
  225. <caption>엑셀저장</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  229. if(rdo_valueflag.value == "11")
  230. {
  231. if (fileName != "") {;
  232. grd_intn.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
  233. }
  234. }
  235. else if(rdo_valueflag.value == "12")
  236. {
  237. if (fileName != "") {;
  238. grd_resi.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
  239. }
  240. }
  241. ]]>
  242. </script>
  243. </button>
  244. <button id="button3" class="btn2_letter4" visibility="hidden" style="left:1121px; top:44px; width:64px; height:19px; ">
  245. <caption>엑셀입력</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  249. if (fileName != "") {
  250. grd_intn.loadExcel(fileName, 1, false);
  251. grd_intn.deleteRow(1);
  252. grd_intn.refresh();
  253. grd_intn.colAttribute(grd_intn.colRef("exchtotpnt"), "editable") = true;
  254. grd_intn.colAttribute(grd_intn.colRef("exchavg"), "editable") = true;
  255. grd_intn.colAttribute(grd_intn.colRef("rank"), "editable") = true;
  256. grd_intn.colAttribute(grd_intn.colRef("grde"), "editable") = true;
  257. var sCnt = grd_intn.rows;
  258. grd_intn.clearStatus();
  259. for ( var i = 1; i < sCnt; i++) {
  260. grd_intn.rowStatus(i) = 2;
  261. grd_intn.valueMatrix(i, grd_intn.colRef("educyy")) = ipt_yy.value;
  262. grd_intn.valueMatrix(i, grd_intn.colRef("supinfqurtyyflag")) = rdo_supinfqurtyyflag.value;
  263. }
  264. btn_save.visible = true;
  265. }
  266. ]]>
  267. </script>
  268. </button>
  269. <input id="ipt_acptlastdd" ref="/root/send/req/acptlastdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:779px; top:14px; width:125px; height:19px; "/>
  270. <caption id="caption1" class="search_name" style="left:685px; top:14px; width:91px; height:17px; ">접수 기한 :</caption>
  271. <datagrid id="grd_basedata" nodeset="/root/main/intnbasedatalist" visibility="hidden" caption="사원번호^성명^주민번호^출신교^전반기병원^후반기병원^병원^군보^근무월^원점수^임상과" colsep="^" colwidth="60, 80, 96, 137, 129, 125, 113, 76, 58, 66, 83" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:150px; width:1164px; height:275px; ">
  272. <col ref="emplno" style="text-align:center; "/>
  273. <col ref="name" style="text-align:center; "/>
  274. <col ref="rregno" style="text-align:center; "/>
  275. <col ref="schoolnm" style="text-align:center; "/>
  276. <col ref="firstinstnm" style="text-align:center; "/>
  277. <col ref="secondinstnm" style="text-align:center; "/>
  278. <col ref="instnm" style="text-align:center; "/>
  279. <col ref="armyflag" style="text-align:center; "/>
  280. <col ref="mm" style="text-align:center; "/>
  281. <col ref="pnt" style="text-align:center; "/>
  282. <col ref="ordclsdeptcd" style="text-align:center; "/>
  283. </datagrid>
  284. <button id="btn_save" class="btn5_letter2" visibility="hidden" style="left:912px; top:44px; width:42px; height:19px; ">
  285. <caption>저장</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. var updtdata = getGridUpdateData(grd_intn);
  289. if (updtdata == "") {
  290. messageBox("변경된 데이터가","I004");
  291. return;
  292. }
  293. if (messageBox("","Q002") != 6 ) {
  294. return false;
  295. }
  296. model.setValue("/root/send/intncolgdutscorlist",grd_intn.getUpdateData());
  297. misfSave("TXRTS00803");
  298. btn_search.dispatch("DOMActivate");
  299. ]]>
  300. </script>
  301. </button>
  302. <button id="button2" class="btn2_letter6" visibility="hidden" style="left:961px; top:44px; width:86px; height:19px; ">
  303. <caption>기초자료저장</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. if ( !isRequiredControls("ipt_yy", "rdo_supinfqurtyyflag") ) {
  307. return false;
  308. }
  309. submit("TRRTS00803");
  310. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  311. if (fileName != "") {;
  312. grd_basedata.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
  313. }
  314. ]]>
  315. </script>
  316. </button>
  317. </group>
  318. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  319. <button id="btn_choipsn" class="btn2_letter6" style="left:1100px; top:5px; width:86px; height:19px; ">
  320. <caption>종합성적 생성</caption>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. var retMes = messageBox("종합성적을 생성합니다.\n\n", "Q004");
  324. if ( retMes != 6) {
  325. return;
  326. }
  327. if ( !isRequiredControls("ipt_yy", "rdo_valueflag") ) {
  328. return false;
  329. }
  330. if (model.getValue("/root/send/req/valueflag") == "11")
  331. {
  332. submit("TXRTS00801");
  333. }
  334. else if (model.getValue("/root/send/req/valueflag") == "12")
  335. {
  336. submit("TXRTS00802");
  337. }
  338. ]]>
  339. </script>
  340. </button>
  341. <button id="btn_report" class="btn2_letter9" style="left:975px; top:5px; width:119px; height:19px; ">
  342. <caption>(인턴) 근무 평가표</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. var cnt=0;
  346. if (model.getValue("/root/send/req/acptlastdd")==''){
  347. messageBox("접수 기한을" ,"C001");
  348. return;
  349. }
  350. for(var i = grd_intn.fixedRows ; i < grd_intn.rows ; i++ ){
  351. if (!(grd_intn.valueMatrix(i, grd_intn.colRef("rank")) == "" || grd_intn.valueMatrix(i, grd_intn.colRef("rank")) == null)){
  352. ++cnt;
  353. }
  354. }
  355. model.setValue("/root/send/req/totcnt", cnt);
  356. exeReportPreview( "RPRTS00800", "XMLSTR");
  357. ]]>
  358. </script>
  359. </button>
  360. </group>
  361. </xhtml:body>
  362. </xhtml:html>