SMRTC00200_근무평가자관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <valuepsnlist/>
  11. </main>
  12. <send>
  13. <req>
  14. <yy/>
  15. <mm/>
  16. <valueflag/>
  17. <valueitemflagcd/>
  18. <instcd/>
  19. <deptcd/>
  20. <systemflag>A</systemflag>
  21. <apprtcdrflag/>
  22. <resdtflag/>
  23. </req>
  24. <reqdept>
  25. <blankrowyn>Y</blankrowyn>
  26. </reqdept>
  27. <dutvaluepsn/>
  28. </send>
  29. <init>
  30. <guidmedispcldremplno/>
  31. <guidmedispclinstnm/>
  32. <drname/>
  33. <deptnm/>
  34. <jobposnm/>
  35. <guidmedispclinstcd/>
  36. <guidmedispcldrlincno/>
  37. <drrregno/>
  38. <prfshipflagnm/>
  39. </init>
  40. <hidden>
  41. <deptcond/>
  42. </hidden>
  43. <temp>
  44. <selvalulistflag/>
  45. <valueitemflagcdlist/>
  46. <cdlist11>
  47. <R0301>
  48. <cdid>01</cdid>
  49. <cdnm>기본소양</cdnm>
  50. </R0301>
  51. <R0301>
  52. <cdid>02</cdid>
  53. <cdnm>기본술기</cdnm>
  54. </R0301>
  55. <R0301>
  56. <cdid>03</cdid>
  57. <cdnm>학구적태도</cdnm>
  58. </R0301>
  59. <R0301>
  60. <cdid>04</cdid>
  61. <cdnm>책임관념</cdnm>
  62. </R0301>
  63. </cdlist11>
  64. <cdlist12>
  65. <R0301>
  66. <cdid>01</cdid>
  67. <cdnm>인품</cdnm>
  68. </R0301>
  69. <R0301>
  70. <cdid>02</cdid>
  71. <cdnm>근무태도</cdnm>
  72. </R0301>
  73. <R0301>
  74. <cdid>03</cdid>
  75. <cdnm>책임관념</cdnm>
  76. </R0301>
  77. <R0301>
  78. <cdid>04</cdid>
  79. <cdnm>학구적태도</cdnm>
  80. </R0301>
  81. <R0301>
  82. <cdid>05</cdid>
  83. <cdnm>전공과목적성도</cdnm>
  84. </R0301>
  85. </cdlist12>
  86. <outpsn/>
  87. <popupgbn/>
  88. <outpnotice/>
  89. </temp>
  90. </root>
  91. </instance>
  92. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
  93. <submission id="TRRTC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dutvaluepsn"/>
  94. <submission id="TXRTC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutvaluepsn"/>
  95. <submission id="TXRTC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  96. <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/deptcond"/>
  97. <submission id="TXRTC00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  98. </model>
  99. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  104. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  105. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  106. <script type="javascript" ev:event="xforms-ready">
  107. <![CDATA[
  108. //submit("TRRTS00602");
  109. submit("TRRTC00302");
  110. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  111. rszfGetLabelControlComboList("R0314", "grd_dutvaluepsn.instcd", "detldesc");
  112. misfComboComCdListMulti("R0009", "cmb_mm");
  113. model.makeValue("/root/temp/cmbmm_nodeset", cmb_mm.choices.itemset.attribute("nodeset"));
  114. /*
  115. var grdcmb_deptcd = document.controls( grd_dutvaluepsn.colAttribute(grd_dutvaluepsn.colRef("orddeptcd"), "id") );
  116. grdcmb_deptcd.choices.itemset.attribute("nodeset") = "/root/main/tisorddeptcdlist";
  117. grdcmb_deptcd.choices.itemset.label.attribute("ref") = "deptnm";
  118. grdcmb_deptcd.choices.itemset.value.attribute("ref") = "deptcd";
  119. */
  120. ipt_popupgbn.value='P';
  121. fCheckAuth();
  122. if (isPopup())
  123. {
  124. model.setValue("/root/send/req/yy", opener.window.javascript.getParameter("SMRTC00200_yy"));
  125. model.setValue("/root/send/req/mm", opener.window.javascript.getParameter("SMRTC00200_mm"));
  126. model.setValue("/root/send/req/valueflag", opener.window.javascript.getParameter("SMRTC00200_valueflag"));
  127. //model.setValue("/root/send/req/valueitemflagcd", "01");
  128. model.setValue("/root/send/req/instcd", opener.window.javascript.getParameter("SMRTC00200_instcd"));
  129. rdo_valueflag.dispatch("xforms-value-changed");
  130. btn_save.visible = false
  131. btn_delrow.visible = false
  132. btn_copy.visible = false
  133. grd_dutvaluepsn.isReadOnly(grd_dutvaluepsn.fixedRows, grd_dutvaluepsn.fixedCols, grd_dutvaluepsn.rows - 1, grd_dutvaluepsn.cols - 1) = true;
  134. btn_choipsn.visible = true;
  135. }
  136. else
  137. {
  138. var today = getCurrentDate();
  139. var cur_mm = parseInt(today.substring(4, 6));
  140. var cur_yy = parseInt(today.substring(0, 4));
  141. model.setValue("/root/send/req/yy", cur_yy);
  142. model.setValue("/root/send/req/mm", cur_mm);
  143. model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  144. model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
  145. btn_choipsn.visible = false;
  146. }
  147. //notice
  148. model.setValue("/root/temp/outpnotice", "※인턴평가자 행추가버튼으로 추가할 경우 분과대신 본과를 선택해 주세요(ex: 순환기내과->내과)");
  149. model.refresh();
  150. ]]>
  151. </script>
  152. <script type="javascript">
  153. <![CDATA[
  154. function fCheckAuth() {
  155. btn_search.disabled = !checkAuth("R") ;
  156. btn_save.disabled = !checkAuth("X") ;
  157. btn_delrow.disabled = !checkAuth("X") ;
  158. btn_copy.disabled = !(checkAuth("X"));
  159. cmb_instcd.disabled = !(checkAuth("P"));
  160. }
  161. ]]>
  162. </script>
  163. </xhtml:head>
  164. <xhtml:body style="margin-left:8; margin-right:8; ">
  165. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  166. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무 평가자 관리</caption>
  167. </group>
  168. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  169. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  170. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  171. <caption>조회</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. if (model.getValue("/root/send/req/valueflag") == "11")
  175. {
  176. //필수 입력 항목 체크(공통 ftHelper.js)
  177. if ( !isRequiredControls("ipt_yy", "cmb_mm","rdo_valueflag", "cmb_valueitemflagcd", "cmb_instcd") ) {
  178. return false;
  179. }
  180. model.setValue("/root/send/req/apprtcdrflag", "I");
  181. }
  182. else
  183. {
  184. //필수 입력 항목 체크(공통 ftHelper.js)
  185. if ( !isRequiredControls("ipt_yy", "cmb_mm","rdo_valueflag", "cmb_resdtflag", "cmb_instcd") ) {
  186. return false;
  187. }
  188. model.setValue("/root/send/req/apprtcdrflag", "R");
  189. var mm = model.getValue("/root/send/req/mm");
  190. if (!(mm == "05" || mm == "08" || mm == "11" || mm == "02"))
  191. {
  192. messageBox("레지던트 근무평가월은 [ 5 , 8 , 11 , 2 ] 월 입니다.", "I", "");
  193. return;
  194. }
  195. }
  196. submit("TRRTC00201");
  197. ]]>
  198. </script>
  199. </button>
  200. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  201. <caption id="cap_yy" class="search_name" style="left:235px; top:19px; width:90px; height:17px; ">근무년도 :</caption>
  202. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:321px; top:18px; width:55px; height:19px; "/>
  203. <caption id="cap_valueflag" class="search_name" style="left:527px; top:19px; width:120px; height:17px; ">근무평가구분 :</caption>
  204. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  205. <caption id="caption2" class="tit_2" style="left:0px; top:54px; width:144px; height:13px; ">평가자정보</caption>
  206. <button id="btn_copy" class="btn2_letter4" style="left:1040px; top:47px; width:64px; height:19px; ">
  207. <caption>월 copy</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. if ( !isRequiredControls("ipt_yy", "cmb_mm", "rdo_valueflag", "cmb_instcd") ) {
  211. return false;
  212. }
  213. if (submit("TXRTC00202"))
  214. {
  215. btn_search.dispatch("DOMActivate");
  216. }
  217. ]]>
  218. </script>
  219. </button>
  220. <select1 id="rdo_valueflag" ref="/root/send/req/valueflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:640px; top:18px; width:125px; height:20px; border-style:none; ">
  221. <choices>
  222. <item>
  223. <label>인턴</label>
  224. <value>11</value>
  225. </item>
  226. <item>
  227. <label>레지던트</label>
  228. <value>12</value>
  229. </item>
  230. </choices>
  231. <script type="javascript" ev:event="xforms-value-changed">
  232. <![CDATA[
  233. if (rdo_valueflag.value == "11")
  234. {
  235. if (model.getValue("/root/temp/selvalulistflag") != "cdlist11")
  236. {
  237. model.copyNode("/root/temp/valueitemflagcdlist", "/root/temp/cdlist11");
  238. model.setValue("/root/temp/selvalulistflag", "cdlist11");
  239. cmb_mm.choices.itemset.attribute("nodeset") = model.getValue("/root/temp/cmbmm_nodeset");
  240. }
  241. cap_valueitemflagcd.visible = true;
  242. cmb_valueitemflagcd.visible = true;
  243. cap_resdtflag.visible = false;
  244. cmb_resdtflag.visible = false;
  245. btn_insrow.visible = true;
  246. }
  247. else if (rdo_valueflag.value == "12")
  248. {
  249. if (model.getValue("/root/temp/selvalulistflag") != "cdlist12")
  250. {
  251. //model.copyNode("/root/temp/valueitemflagcdlist", "/root/temp/cdlist12");
  252. model.copyNode("/root/temp/valueitemflagcdlist", "");
  253. model.setValue("/root/temp/selvalulistflag", "cdlist12");
  254. cmb_mm.choices.itemset.attribute("nodeset") = model.getValue("/root/temp/cmbmm_nodeset") + "[cdid='05' or cdid='08' or cdid='11' or cdid='02']";
  255. }
  256. cap_valueitemflagcd.visible = false;
  257. cmb_valueitemflagcd.visible = false;
  258. cap_resdtflag.visible = true;
  259. cmb_resdtflag.visible = true;
  260. btn_insrow.visible = false;
  261. }
  262. model.refresh();
  263. ]]>
  264. </script>
  265. </select1>
  266. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:91px; top:18px; width:135px; height:19px; ">
  267. <choices>
  268. <itemset>
  269. <label/>
  270. <value/>
  271. </itemset>
  272. </choices>
  273. </select1>
  274. <caption id="cap_deptcd" class="search_name" visibility="hidden" style="left:985px; top:20px; width:75px; height:17px; ">임상과 :</caption>
  275. <caption id="cap_instcd" class="search_name" style="left:5px; top:19px; width:95px; height:17px; ">근무병원 :</caption>
  276. <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:1010px; top:18px; width:100px; height:19px; ">
  277. <choices>
  278. <itemset nodeset="/root/main/tisorddeptcdlist">
  279. <label ref="deptnm"/>
  280. <value ref="deptcd"/>
  281. </itemset>
  282. </choices>
  283. </select1>
  284. <caption id="cap_mm" class="search_name" style="left:385px; top:19px; width:75px; height:17px; ">근무월 :</caption>
  285. <select1 id="cmb_valueitemflagcd" ref="/root/send/req/valueitemflagcd" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:863px; top:18px; width:100px; height:19px; ">
  286. <choices>
  287. <itemset nodeset="/root/temp/valueitemflagcdlist/R0301">
  288. <label ref="cdnm"/>
  289. <value ref="cdid"/>
  290. </itemset>
  291. </choices>
  292. <script type="javascript" ev:event="xforms-select">
  293. <![CDATA[
  294. if (cmb_valueitemflagcd.value == "04") {
  295. btn_mutireg.visible = true;
  296. }else{
  297. btn_mutireg.visible = false;
  298. }
  299. ]]>
  300. </script>
  301. </select1>
  302. <caption id="cap_valueitemflagcd" class="search_name" style="left:775px; top:19px; width:100px; height:17px; ">평가항목 :</caption>
  303. <datagrid id="grd_dutvaluepsn" nodeset="/root/main/dutvaluepsn" caption="평가구분^평가년도^평가항목구분^근무평가월^평가기관^평가임상과^평가자구분^평가자IDNM^평가자ID^평가자명^기관^부서^직위^레지던트평가구분^평가상태^최초등록자id^최초등록일시^최종수정자id^최종수정일시" colsep="^" colwidth="50, 50, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 30, 10, 10, 10, 10" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:1190px; height:665px; ">
  304. <col ref="valueflag" visibility="hidden"/>
  305. <col ref="valueyy" visibility="hidden"/>
  306. <col ref="valueitemflagcd" visibility="hidden"/>
  307. <col ref="dutvaluemm" visibility="hidden"/>
  308. <col disabled="false" ref="instcd" type="combo">
  309. <choices>
  310. <itemset>
  311. <label/>
  312. <value/>
  313. </itemset>
  314. </choices>
  315. </col>
  316. <col disabled="true" ref="orddeptcd" type="combo">
  317. <choices>
  318. <itemset nodeset="/root/hidden/deptcond">
  319. <label ref="depthngnm"/>
  320. <value ref="deptcd"/>
  321. </itemset>
  322. </choices>
  323. </col>
  324. <col ref="valupsnflag" type="combo">
  325. <choices>
  326. <item>
  327. <label>내부</label>
  328. <value>1</value>
  329. </item>
  330. <item>
  331. <label>외부</label>
  332. <value>2</value>
  333. </item>
  334. </choices>
  335. </col>
  336. <col ref="valupsnidnm" visibility="hidden"/>
  337. <col ref="emplno"/>
  338. <col ref="emplnm"/>
  339. <col ref="instnm"/>
  340. <col ref="unitnm"/>
  341. <col ref="jobposnm"/>
  342. <col ref="resdtflag" visibility="hidden"/>
  343. <col ref="valuestat" visibility="hidden"/>
  344. <col ref="status" visibility="hidden"/>
  345. <col ref="fstrgstrid" visibility="hidden"/>
  346. <col ref="fstrgstdt" visibility="hidden"/>
  347. <col ref="lastupdtrid" visibility="hidden"/>
  348. <col ref="lastupdtdt" visibility="hidden"/>
  349. <script type="javascript" ev:event="xforms-select">
  350. <![CDATA[
  351. if (grd_dutvaluepsn.col == grd_dutvaluepsn.colRef("valupsnflag"))
  352. {
  353. if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.col) == "1")
  354. {
  355. var status = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status"));
  356. var valupsnidnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm"));
  357. //var recv_list = "emplno,emplnm,instnm,unitnm,jobposnm";
  358. var orddeptcd = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("orddeptcd"));
  359. cmb_deptcd.value = orddeptcd ;
  360. var recv_list = "guidmedispclinstcd,guidmedispclinstnm,drname,guidmedispcldremplno,deptnm,guidmedispcldrlincno,drrregno,prfshipflagnm,jobposnm";
  361. misfOpenPopUpList("35", ipt_guidmedispcldremplno,"",recv_list);
  362. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno"))=model.getValue("/root/init/guidmedispcldremplno");
  363. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplnm"))=model.getValue("/root/init/drname");
  364. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("instnm"))=model.getValue("/root/init/guidmedispclinstnm");
  365. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("unitnm"))=model.getValue("/root/init/deptnm");
  366. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("jobposnm"))=model.getValue("/root/init/jobposnm");
  367. model.setValue("/root/init/guidmedispcldremplno", "");
  368. model.setValue("/root/init/drname", "");
  369. model.setValue("/root/init/guidmedispclinstnm", "");
  370. model.setValue("/root/init/deptnm", "");
  371. model.setValue("/root/init/jobposnm", "");
  372. //rpbfOpenPopUpList("SPRPB00101", grd_dutvaluepsn, recv_list,"","N");
  373. //rpbfOpenPopUpList("SPRPB00101", grd_dutvaluepsn, recv_list);
  374. if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno")) != "")
  375. {
  376. if (valupsnidnm == "" || status == "i")
  377. {
  378. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "i";
  379. grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 1;
  380. }
  381. else
  382. {
  383. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "u";
  384. grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 2;
  385. }
  386. }
  387. }
  388. else
  389. {
  390. model.setValue("/root/temp/outpsn", grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm")));
  391. grup_outpsn.attribute("left") = event.targetX;
  392. grup_outpsn.attribute("top") = event.targetY;
  393. grup_outpsn.visible = true;
  394. ipt_outpsn.refresh();
  395. model.setFocus("ipt_outpsn");
  396. }
  397. }
  398. ]]>
  399. </script>
  400. <script type="javascript" ev:event="ondblclick">
  401. <![CDATA[
  402. // btn_choipsn.dispatch("DOMActivate");
  403. ]]>
  404. </script>
  405. </datagrid>
  406. <output id="ipt_systemflag" ref="/root/send/req/systemflag" visibility="hidden" style="left:755px; top:47px; width:35px; height:19px; "/>
  407. <button id="btn_delrow" class="btn2_letter3" style="left:980px; top:47px; width:53px; height:19px; ">
  408. <caption>행삭제</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) == "" ||
  412. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) == "u")
  413. {
  414. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "d";
  415. grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 4;
  416. }
  417. ]]>
  418. </script>
  419. </button>
  420. <select1 id="cmb_mm" ref="/root/send/req/mm" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:460px; top:18px; width:55px; height:19px; ">
  421. <![CDATA["btn_mutireg]]>
  422. <choices>
  423. <itemset>
  424. <label/>
  425. <value/>
  426. </itemset>
  427. </choices>
  428. </select1>
  429. <input id="ipt_guidmedispcldremplno" ref="/root/init/guidmedispcldremplno" visibility="hidden" style="left:360px; top:45px; width:80px; height:19px; "/>
  430. <input id="ipt_popupgbn" ref="/root/temp/popupgbn" visibility="hidden" style="left:525px; top:45px; width:150px; height:19px; "/>
  431. <button id="btn_mutireg" class="btn2_letter7" visibility="hidden" style="left:225px; top:47px; width:97px; height:19px; ">
  432. <caption>평가자일괄등록</caption>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. var valupsnflag = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnflag"));
  436. var emplno = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno"));
  437. var emplnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplnm"));
  438. var instnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("instnm"));
  439. var unitnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("unitnm"));
  440. var jobposnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("jobposnm"));
  441. if (emplno == "") {
  442. messageBox("현재행에서 평가자를 먼저 선택해 주십시오.", "I", "");
  443. return;
  444. }
  445. for (var i=0; i < (grd_dutvaluepsn.rows-grd_dutvaluepsn.fixedRows); i++) {
  446. if (model.getValue("/root/main/dutvaluepsn["+(i+1)+"]/emplno") == "" && model.getValue("/root/main/dutvaluepsn["+(i+1)+"]/status") == "") {
  447. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/status", "i");
  448. }else{
  449. if(model.getValue("/root/main/dutvaluepsn["+(i+1)+"]/status") == ""){
  450. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/status", "u");
  451. }
  452. }
  453. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/valupsnflag", valupsnflag);
  454. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/emplno", emplno);
  455. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/emplnm", emplnm);
  456. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/instnm", instnm);
  457. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/unitnm", unitnm);
  458. model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/jobposnm", jobposnm);
  459. }
  460. for (var i=grd_dutvaluepsn.fixedRows; i < grd_dutvaluepsn.rows; i++) {
  461. if (grd_dutvaluepsn.valueMatrix(i, grd_dutvaluepsn.colRef("status")) == "i") {
  462. grd_dutvaluepsn.rowStatus(i) = 1;
  463. }else{
  464. grd_dutvaluepsn.rowStatus(i) = 2;
  465. }
  466. }
  467. model.refresh();
  468. ]]>
  469. </script>
  470. </button>
  471. <button id="btn_insrow" class="btn2_letter3" visibility="hidden" style="left:920px; top:47px; width:53px; height:19px; ">
  472. <caption>행추가</caption>
  473. <script type="javascript" ev:event="DOMActivate">
  474. <![CDATA[
  475. misfGridIUD(grd_dutvaluepsn, "A");
  476. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valueflag") ) = model.getValue("/root/send/req/valueflag");
  477. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valueyy") ) = model.getValue("/root/send/req/yy");;
  478. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valueitemflagcd") ) = model.getValue("/root/send/req/valueitemflagcd");
  479. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("dutvaluemm") ) = model.getValue("/root/send/req/mm");
  480. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("instcd") ) = model.getValue("/root/send/req/instcd");
  481. ]]>
  482. </script>
  483. </button>
  484. <select1 id="cmb_resdtflag" ref="/root/send/req/resdtflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:863px; top:18px; width:100px; height:19px; ">
  485. <choices>
  486. <item>
  487. <label>평가자</label>
  488. <value>12</value>
  489. </item>
  490. <item>
  491. <label>확인자</label>
  492. <value>13</value>
  493. </item>
  494. </choices>
  495. <script type="javascript" ev:event="xforms-select">
  496. <![CDATA[
  497. if (cmb_resdtflag.value == "13") {
  498. grd_dutvaluepsn.caption = "평가구분^평가년도^평가항목구분^근무평가월^평가기관^평가임상과^평가자구분^확인자IDNM^확인자ID^확인자명^기관^부서^직위^레지던트평가구분^평가상태^최초등록자id^최초등록일시^최종수정자id^최종수정일시";
  499. } else {
  500. grd_dutvaluepsn.caption = "평가구분^평가년도^평가항목구분^근무평가월^평가기관^평가임상과^평가자구분^평가자IDNM^평가자ID^평가자명^기관^부서^직위^레지던트평가구분^평가상태^최초등록자id^최초등록일시^최종수정자id^최종수정일시";
  501. }
  502. ]]>
  503. </script>
  504. </select1>
  505. <caption id="cap_resdtflag" class="search_name" visibility="hidden" style="left:775px; top:19px; width:112px; height:17px; ">구분 :</caption>
  506. </group>
  507. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  508. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  509. <caption>저장</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. var savedata = grd_dutvaluepsn.getUpdateData();
  513. model.setValue("/root/send/dutvaluepsn", savedata);
  514. if (submit("TXRTC00201"))
  515. {
  516. btn_search.dispatch("DOMActivate");
  517. }
  518. ]]>
  519. </script>
  520. </button>
  521. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  522. <button id="btn_choipsn" class="btn3_letter5" style="left:1043px; top:3px; width:92px; height:22px; ">
  523. <caption>평가자 선택</caption>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. var emplno = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno"));
  527. opener.window.javascript.setParameter("SMRTC00200_valupsnidnm", emplno);
  528. window.close();
  529. ]]>
  530. </script>
  531. </button>
  532. <output id="outp_notice" ref="/root/temp/outpnotice" style="left:3px; top:5; width:600px; height:19px; font-weight:bold; color:#0000ff; "/>
  533. </group>
  534. <group id="grup_outpsn" visibility="hidden" style="left:420px; top:160px; width:233px; height:90px; border-color:#3366ff; border-width:3px; border-style:solid; ">
  535. <button id="button1" class="btn2_letter2" style="left:120px; top:60px; width:42px; height:19px; ">
  536. <caption>확인</caption>
  537. <script type="javascript" ev:event="DOMActivate">
  538. <![CDATA[
  539. if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm")) == "")
  540. {
  541. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "i";
  542. grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 1;
  543. }
  544. else if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm")) != "")
  545. {
  546. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "u";
  547. grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 2;
  548. }
  549. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno")) = model.getValue("/root/temp/outpsn");
  550. grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplnm")) = model.getValue("/root/temp/outpsn");
  551. grup_outpsn.visible = false;
  552. ]]>
  553. </script>
  554. </button>
  555. <button id="button2" class="btn2_letter2" style="left:175px; top:60px; width:42px; height:19px; ">
  556. <caption>취소</caption>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. grup_outpsn.visible = false;
  560. ]]>
  561. </script>
  562. </button>
  563. <caption id="caption22" class="tit_2" style="left:10px; top:10px; width:165px; height:13px; ">외부 근무평가자 입력</caption>
  564. <input id="ipt_outpsn" ref="/root/temp/outpsn" style="left:10px; top:30px; width:210px; height:19px; "/>
  565. </group>
  566. <button id="btn_year_copy" class="btn2_letter5" style="left:1110px; top:85px; width:75px; height:19px; ">
  567. <caption>년 copy</caption>
  568. <script type="javascript" ev:event="DOMActivate">
  569. <![CDATA[
  570. if ( !isRequiredControls("ipt_yy", "rdo_valueflag", "cmb_instcd") ) {
  571. return false;
  572. }
  573. var retMes = messageBox("현재년도 데이가 삭제되고 전년도 데이타가 Copy됩니다.\n전년도 Copy 하시겠습니까?", "Q999");
  574. if ( retMes != 6) {
  575. return;
  576. }
  577. if (submit("TXRTC00203"))
  578. {
  579. btn_search.dispatch("DOMActivate");
  580. }
  581. ]]>
  582. </script>
  583. </button>
  584. </xhtml:body>
  585. </xhtml:html>