SMRTS01600_레지던트특성화교육.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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. <residenteduclist>
  11. <residentindfact/>
  12. <residenteducfact/>
  13. </residenteduclist>
  14. <guidapprtcdrlist/>
  15. </main>
  16. <hidden>
  17. </hidden>
  18. <temp>
  19. </temp>
  20. <init/>
  21. <send>
  22. <req>
  23. <yy/>
  24. <emplno/>
  25. </req>
  26. <scincconfentry/>
  27. <treatiseprst/>
  28. <anodeptdispat/>
  29. <valueexam/>
  30. <treq>
  31. <emplno/>
  32. </treq>
  33. <valu/>
  34. <cmt/>
  35. <rreq>
  36. <emplno/>
  37. <emplnm/>
  38. <dutplceinst/>
  39. <residentanual/>
  40. <guidmedispcldremplno/>
  41. <deptcd/>
  42. </rreq>
  43. </send>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. submit("TRRTS00602");
  49. addComboItem( "cmb_deptcd", "전체", "", "above");
  50. fAuthCheck();
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. function fAuthCheck(){
  56. var sJobpos = getUserInfo("jobposcd");
  57. // 관리자가 로그인시
  58. if( checkAuth("R") && checkAuth("X") && checkAuth("P")) {
  59. model.toggle("case2");
  60. fTchrSetting(true);
  61. btn_search1.dispatch("DOMActivate");
  62. }
  63. // 전공의(레지던트) 로그인시
  64. else if(checkAuth("R") && !checkAuth("X") && !checkAuth("P")){
  65. model.toggle("case1");
  66. fResidentSetting();
  67. btn_search.dispatch("DOMActivate");
  68. }
  69. // 전공의가 아닌 사람이 로그인시
  70. else if(checkAuth("R") && checkAuth("X") && !checkAuth("P")){
  71. model.toggle("case2");
  72. fTchrSetting(false);
  73. btn_search1.dispatch("DOMActivate");
  74. }
  75. }
  76. // 전공의(레지던트) 로그인시 화면 및 컨트롤 세팅
  77. function fResidentSetting(){
  78. misfGridInit(grd_residentindfact);
  79. misfGridInit(grd_residenteducfact);
  80. var today = getCurrentDate();
  81. var cur_yy = parseInt(today.substring(0, 4));
  82. model.setValue("/root/send/req/yy", cur_yy);
  83. // model.setValue("/root/send/req/emplno","10400837");
  84. model.setValue("/root/send/req/emplno",getUserInfo("userid"));
  85. model.refresh();
  86. }
  87. // 전공의가 아닌 사람이 로그인시 화면 및 컨트롤 세팅
  88. function fTchrSetting(check){
  89. misfGridInit(grd_guidapprtcdrlist);
  90. if(!check){
  91. model.setValue("/root/send/rreq/guidmedispcldremplno",getUserInfo("userid"));
  92. }
  93. misfComboComCdList("R0305", cmb_dutplceinst,"Y");
  94. }
  95. ]]>
  96. </script>
  97. <submission id="TRRTS01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/residenteduclist"/>
  98. <submission id="TRRTS01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rreq" resultref="/root/main/guidapprtcdrlist"/>
  99. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tisorddeptcdlist"/>
  100. </model>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  104. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  105. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  106. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  107. </xhtml:head>
  108. <xhtml:body>
  109. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  110. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">레지던트 특성화 교육</caption>
  111. </group>
  112. <group id="group2" scroll="auto" style="left:0px; top:20; width:1195px; height:763; ">
  113. <switch id="switch1" style="left:0px; top:0px; width:1195; height:763; ">
  114. <case id="case1">
  115. <group id="group3" style="left:0px; top:0; width:1190; height:760; ">
  116. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:0; width:1190; height:30; "/>
  117. <caption id="cap_yy" class="search_name" style="left:5px; top:7; width:190px; height:17px; ">교육 프로그램 조회 년도 :</caption>
  118. <input id="ipt_yy" ref="/root/send/req/yy" style="left:190px; top:6px; width:130px; height:19px; "/>
  119. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:4; width:56px; height:22px; text-align:left; ">
  120. <caption>조회</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. if ( !isRequiredControls("ipt_yy") ) {
  124. return false;
  125. }
  126. submit("TRRTS01601");
  127. if(grd_residenteducfact.rows - grd_residenteducfact.fixedRows > 0 )
  128. {
  129. model.setValue("/root/send/scincconfentry", grd_residenteducfact.valueMatrix(grd_residenteducfact.rows - grd_residenteducfact.fixedRows + 1, grd_residenteducfact.colRef("scincconfentry")));
  130. model.setValue("/root/send/treatiseprst", grd_residenteducfact.valueMatrix(grd_residenteducfact.rows - grd_residenteducfact.fixedRows + 1, grd_residenteducfact.colRef("treatiseprst")));
  131. model.setValue("/root/send/anodeptdispat", grd_residenteducfact.valueMatrix(grd_residenteducfact.rows - grd_residenteducfact.fixedRows + 1, grd_residenteducfact.colRef("anodeptdispat")));
  132. model.setValue("/root/send/valueexam", grd_residenteducfact.valueMatrix(grd_residenteducfact.rows - grd_residenteducfact.fixedRows + 1, grd_residenteducfact.colRef("valueexam")));
  133. }
  134. misfSetReadOnlyCol(grd_residentindfact, "guidmedispcldremplno", true);
  135. model.refresh();
  136. ]]>
  137. </script>
  138. </button>
  139. <input id="ipt_emplno" ref="/root/send/req/emplno" visibility="hidden" style="left:325px; top:5px; width:100px; height:19px; "/>
  140. <datagrid id="grd_residentindfact" nodeset="/root/main/residenteduclist/residentindfact" visibility="visible" caption="전공과목^년차^성명^사번^주민등록번호^지도전문의^지도전문의사번" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:55; width:1190; height:48; ">
  141. <col ref="frmrmert" style="text-align:center; "/>
  142. <col ref="residentanual" style="text-align:center; "/>
  143. <col ref="name" style="text-align:center; "/>
  144. <col ref="emplno" style="text-align:center; "/>
  145. <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
  146. <col ref="tname" style="text-align:center; cursor:hand; "/>
  147. <col ref="templno" visibility="hidden"/>
  148. <script type="javascript" ev:event="onclick">
  149. <![CDATA[
  150. // 지도전문의 클릭시 지도전문의의 정보를 보여준다
  151. if(grd_residentindfact.col == grd_residentindfact.colRef("tname")){
  152. var sTname = grd_residentindfact.valueMatrix(grd_residentindfact.row, grd_residentindfact.colRef("tname"));
  153. if(sTname == null || sTname == "")
  154. {
  155. return;
  156. }
  157. model.setValue("/root/send/treq/emplno", grd_residentindfact.valueMatrix(grd_residentindfact.row, grd_residentindfact.colRef("templno")));
  158. ipt_templno.refresh();
  159. modal("SMRTS01610","20","20","","popup", "/root/send/treq" ,"/root/temp");
  160. }
  161. ]]>
  162. </script>
  163. </datagrid>
  164. <caption id="cap_list" class="tit_2" style="left:0px; top:35px; width:162px; height:14px; ">개 인 사 항</caption>
  165. <caption id="caption1" class="tit_2" style="left:0px; top:115; width:162px; height:13px; ">교 육 사 항</caption>
  166. <datagrid id="grd_residenteducfact" nodeset="/root/main/residenteduclist/residenteducfact" autoresize="true" caption="교육과목^월^순환근무병원^교과내용^교과내용^교과내용^(히든)^(히든)^(히든)^(히든)|교육과목^월^순환근무병원^교육목표^이론^술기^학술회의참석^논문제출^타과파견^평가시험" colsep="^" colwidth="150, 40, 130, 350, 250, 250, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:135; width:1190; height:495; ">
  167. <col ref="educnm"/>
  168. <col ref="mm"/>
  169. <col ref="instcd"/>
  170. <col ref="educgoal"/>
  171. <col ref="therycnts"/>
  172. <col ref="praccnts"/>
  173. <col ref="scincconfentry" visibility="hidden"/>
  174. <col ref="treatiseprst" visibility="hidden"/>
  175. <col ref="anodeptdispat" visibility="hidden"/>
  176. <col ref="valueexam" visibility="hidden"/>
  177. <script type="javascript" ev:event="onaftersort">
  178. <![CDATA[
  179. grd_residenteducfact.gridToInstance();
  180. ]]>
  181. </script>
  182. </datagrid>
  183. <caption id="cap_depthngnm" class="cell_1" style="left:0px; top:665px; width:100px; height:45px; vertical-align:middle; ">평가</caption>
  184. <caption id="caption2" class="cell_1" style="left:0px; top:711px; width:100px; height:45px; vertical-align:middle; ">비고</caption>
  185. <input id="ipt_scincconfentry" ref="/root/send/scincconfentry" disabled="true" style="left:730px; top:666px; width:455; height:19px; "/>
  186. <input id="ipt_treatiseprst" ref="/root/send/treatiseprst" disabled="true" style="left:730px; top:689px; width:455; height:19px; "/>
  187. <input id="ipt_anodeptdispat" ref="/root/send/anodeptdispat" disabled="true" style="left:730px; top:712px; width:455; height:19px; "/>
  188. <input id="ipt_valueexam" ref="/root/send/valueexam" disabled="true" style="left:730px; top:735px; width:455; height:19px; "/>
  189. <input id="ipt_templno" ref="/root/send/treq/emplno" visibility="hidden" style="left:720px; top:5px; width:100px; height:19px; "/>
  190. <caption id="caption4" class="cell_1" style="left:628; top:665px; width:100px; height:22; vertical-align:middle; ">1. 학술회의 참석</caption>
  191. <caption id="caption5" class="cell_1" style="left:628; top:688px; width:100px; height:22; vertical-align:middle; ">2. 논문제출</caption>
  192. <caption id="caption7" class="cell_1" style="left:628; top:711px; width:100px; height:22; vertical-align:middle; ">3. 타과파견</caption>
  193. <caption id="caption8" class="cell_1" style="left:628; top:734px; width:100px; height:22; vertical-align:middle; ">4. 평가시험</caption>
  194. <textarea id="tar_valu" ref="/root/send/valu" style="left:102px; top:666px; width:520; height:44px; "/>
  195. <textarea id="tar_cmt" ref="/root/send/cmt" style="left:102px; top:712px; width:520; height:44px; "/>
  196. <line id="line15" class="line_1" style="x1:0px; y1:50; x2:1190; y2:50; "/>
  197. <line id="line1" class="line_1" style="x1:0px; y1:130; x2:1190; y2:130; "/>
  198. <caption id="caption9" class="tit_2" style="left:0px; top:645px; width:162px; height:14px; ">기 타 사 항</caption>
  199. <line id="line2" class="line_1" style="x1:0px; y1:660px; x2:1190; y2:660px; "/>
  200. <line id="line6" class="line_3" style="x1:0px; y1:756; x2:1190; y2:756; "/>
  201. <button id="btn_back" class="btn2_letter4" visibility="hidden" style="left:1120px; top:30px; width:64px; height:19px; ">
  202. <caption>돌아가기</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. model.toggle("case2");
  206. btn_back.visible = false;
  207. ]]>
  208. </script>
  209. </button>
  210. </group>
  211. </case>
  212. <case id="case2" selected="true">
  213. <group id="group4" style="left:0px; top:0; width:1190px; height:760; ">
  214. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:0; width:1190; height:30; "/>
  215. <button id="btn_search1" class="btn1_letter2" style="left:1130px; top:4; width:56px; height:22px; text-align:left; ">
  216. <caption>조회</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. submit("TRRTS01602");
  220. model.refresh();
  221. ]]>
  222. </script>
  223. </button>
  224. <caption id="caption3" class="tit_2" style="left:0px; top:35px; width:162px; height:14px; ">지 도 학 생</caption>
  225. <line id="line3" class="line_1" style="x1:0px; y1:50; x2:1190; y2:50; "/>
  226. <input id="input1" ref="/root/send/rreq/emplnm" class="input_essential" disabled="false" navindex="21" style="left:170px; top:5px; width:85px; height:19px; "/>
  227. <input id="ipt_emplno_resi" ref="/root/send/rreq/emplno" class="input_essential" disabled="false" navindex="20" maxlength="10" style="left:75px; top:5px; width:69px; height:19px; ">
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. var recv_list = "emplno,emplnm" ;
  231. rpbfValidationCheck("EMPLNO", recv_list);
  232. model.refresh();
  233. ]]>
  234. </script>
  235. <script type="javascript" ev:event="onkeyup">
  236. <![CDATA[
  237. inputEnterKey("ipt_emplno", "xforms-value-changed");
  238. ]]>
  239. </script>
  240. </input>
  241. <button id="button2" class="icon_search" disabled="false" style="left:149px; top:7px; width:16px; height:16px; ">
  242. <caption/>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var recv_list = "emplno,emplnm";
  246. rpbfOpenPopUpList("SPRPB00101", ipt_emplno_resi, recv_list,"","Y");
  247. model.refresh();
  248. ]]>
  249. </script>
  250. </button>
  251. <caption id="caption10" class="search_name" style="left:0px; top:6; width:75px; height:17px; ">사 번 :</caption>
  252. <select1 id="cmb_dutplceinst" ref="/root/send/rreq/dutplceinst" appearance="minimal" style="left:390px; top:5px; width:100px; height:19px; ">
  253. <choices>
  254. <itemset>
  255. <label/>
  256. <value/>
  257. </itemset>
  258. </choices>
  259. </select1>
  260. <select1 id="radio2" ref="/root/send/rreq/residentanual" overflow="visible" appearance="full" cellspacing="5" cols="5" style="left:840px; top:6px; width:275px; height:20px; border-style:none; ">
  261. <choices>
  262. <item>
  263. <label>전체</label>
  264. <value/>
  265. </item>
  266. <item>
  267. <label>1년차</label>
  268. <value>1</value>
  269. </item>
  270. <item>
  271. <label>2년차</label>
  272. <value>2</value>
  273. </item>
  274. <item>
  275. <label>3년차</label>
  276. <value>3</value>
  277. </item>
  278. <item>
  279. <label>4년차</label>
  280. <value>4</value>
  281. </item>
  282. </choices>
  283. </select1>
  284. <caption id="caption11" class="search_name" style="left:290px; top:6px; width:96px; height:17px; ">근무 병원 :</caption>
  285. <caption id="caption12" class="search_name" style="left:765px; top:6px; width:75px; height:17px; ">년 차 :</caption>
  286. <button id="btn_go3" class="btn1_letter2" visibility="hidden" style="left:1130px; top:30px; width:56px; height:22px; ">
  287. <caption>go3</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. model.toggle("case1");
  291. ]]>
  292. </script>
  293. </button>
  294. <datagrid id="grd_guidapprtcdrlist" nodeset="/root/main/guidapprtcdrlist" caption="이름^사번^년차^임상과^현근무병원" colsep="^" colwidth="100, 100, 100, 150, 200" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:55px; width:1190; height:695px; ">
  295. <col ref="name" style="cursor:hand; "/>
  296. <col ref="emplno" style="cursor:hand; "/>
  297. <col ref="residentanual"/>
  298. <col ref="frmrmert"/>
  299. <col ref="dutplceinst"/>
  300. <script type="javascript" ev:event="onclick">
  301. <![CDATA[
  302. if(!grd_guidapprtcdrlist.isCell(event.target)){
  303. return;
  304. }
  305. if(grd_guidapprtcdrlist.col == grd_guidapprtcdrlist.colRef("name") || grd_guidapprtcdrlist.col == grd_guidapprtcdrlist.colRef("emplno")){
  306. var sEmplno = grd_guidapprtcdrlist.valueMatrix(grd_guidapprtcdrlist.row, grd_guidapprtcdrlist.colRef("emplno"));
  307. if(sEmplno == null || sEmplno == "")
  308. {
  309. return;
  310. }
  311. model.setValue("/root/send/req/emplno",sEmplno);
  312. ipt_emplno.refresh();
  313. var today = getCurrentDate();
  314. var cur_yy = parseInt(today.substring(0, 4));
  315. model.setValue("/root/send/req/yy", cur_yy);
  316. model.toggle("case1");
  317. btn_back.visible = true;
  318. btn_search.dispatch("DOMActivate");
  319. }
  320. ]]>
  321. </script>
  322. </datagrid>
  323. <input id="ipt_guidmedispcldremplno" ref="/root/send/rreq/guidmedispcldremplno" visibility="hidden" style="left:250px; top:30px; width:100px; height:19px; "/>
  324. <select1 id="cmb_deptcd" ref="/root/send/rreq/deptcd" class="combo_search" appearance="minimal" style="left:615px; top:5px; width:100px; height:19px; ">
  325. <choices>
  326. <itemset nodeset="/root/main/tisorddeptcdlist">
  327. <label ref="deptnm"/>
  328. <value ref="deptcd"/>
  329. </itemset>
  330. </choices>
  331. </select1>
  332. <caption id="cap_deptcd" class="search_name" style="left:530px; top:6px; width:90px; height:17px; ">임 상 과 :</caption>
  333. </group>
  334. </case>
  335. </switch>
  336. </group>
  337. </xhtml:body>
  338. </xhtml:html>