SMRTS01610_레지던트특성화교육(지도전문의팝업).xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. <residenteduclist>
  11. <tchrrole/>
  12. <tchrgnrlinfo>
  13. <name/>
  14. <preststatcd/>
  15. <instcd/>
  16. <dutplceinst/>
  17. <deptnm/>
  18. <dutplcedeptnm/>
  19. <jobposcd/>
  20. <jobrespcd/>
  21. <cntctel/>
  22. <mpphonno/>
  23. <emailid/>
  24. <emailaddr/>
  25. <etcemailaddr/>
  26. </tchrgnrlinfo>
  27. </residenteduclist>
  28. <imgdata>
  29. <photimg/>
  30. </imgdata>
  31. <imgviewlist/>
  32. </main>
  33. <send>
  34. <emplno/>
  35. </send>
  36. <init/>
  37. <hidden/>
  38. <temp>
  39. <emplno/>
  40. </temp>
  41. </root>
  42. </instance>
  43. <submission id="TRRTS01611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/residenteduclist"/>
  44. <submission id="TRRPB30018" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/imgviewlist"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  52. <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. //사용자 권한
  56. // fCheckAuth();
  57. misfGridInit(grd_prfrolelist);
  58. misfGridInit(grd_imgviewlist);
  59. misfGridComboComCdList("R0276", grd_prfrolelist, "tchrrole")
  60. misfComboComCdListMulti("R0131", "cmb_emailaddr");
  61. model.setValue("/root/send/emplno", model.getValue("/root/temp/emplno"));
  62. ipt_emplno.refresh();
  63. fChangeImage("../../../com/commonweb/images/no_image.gif");//초기 이미지설정
  64. submit("TRRTS01611");
  65. if(cmb_emailaddr.value == "08")
  66. {
  67. cmb_emailaddr.visible = false;
  68. ipt_etcemailaddr.visible = true;
  69. ipt_etcemailaddr.attribute("top") = cmb_emailaddr.attribute("top");
  70. ipt_etcemailaddr.attribute("left") = cmb_emailaddr.attribute("left");
  71. }
  72. misfSetReadOnlyCol(grd_prfrolelist, "tchrrole,spectyfild,educfild,cmt,valiyn,emplno", true);
  73. submit("TRRPB30018"); //사진
  74. fRetrImage();
  75. model.refresh();
  76. ]]>
  77. </script>
  78. <script type="javascript">
  79. <![CDATA[
  80. //========================================================================================
  81. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  82. //========================================================================================
  83. function fCheckAuth() {
  84. btn_prn.disabled = !checkAuth("P") ;
  85. }
  86. function fChangeImage(imgsrc) {
  87. img_hidden.src = imgsrc; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
  88. var data = img_hidden.getbase64data(); // base64 encoding 문자열을 가져온다.
  89. var imgSize = getImageSize(imgsrc);
  90. var imgWidthSize = imgSize.split("^")[0];
  91. var imgHeightSize = imgSize.split("^")[1];
  92. model.setValue("/root/main/imgdata/photimg",data,true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
  93. setImageRefInstance("/root/main/imgdata/photimg"); //base64 encoding 문자열을 이미지로 변환하여 보여준다,
  94. img_view.attribute("width")= "131";
  95. img_view.attribute("height")= "149";
  96. var cur_rows = grd_imgviewlist.rows;
  97. var emplno=model.getValue("/root/main/empldata/empllist[1]/emplno");
  98. var imgemplno=model.getValue("/root/main/imgviewlist[1]/emplno");
  99. if(img_hidden.src != "../../../com/commonweb/images/no_image.gif" && imgemplno ==""){//이미지추가시 그리드 추가
  100. grd_imgviewlist.addrow(); // 입력할 행 추가.
  101. cur_row = grd_imgviewlist.row; // 추가된 행 번호 가져오기
  102. // 그리드에 추가
  103. model.setValue("/root/main/imgviewlist["+cur_row+"]/emplno",emplno);
  104. model.setValue("/root/main/imgviewlist["+cur_row+"]/photimg",data,true);
  105. }else if(img_hidden.src != "../../../com/commonweb/images/no_image.gif" && imgemplno !=""){//업데이트시 그리드셋팅
  106. grd_imgviewlist.addStatus(1,"update");
  107. model.setValue("/root/main/imgviewlist[1]/emplno",emplno);
  108. model.setValue("/root/main/imgviewlist[1]/photimg",data,true);
  109. }
  110. model.refresh();
  111. }
  112. function fRetrImage() {//조회시 그리드에 base64 encoding data셋팅하고 사진이미지 보여준다.
  113. if (grd_imgviewlist.Rows <= grd_imgviewlist.fixedRows) {
  114. fChangeImage("../../../com/commonweb/images/no_image.gif");//초기 이미지설정
  115. }
  116. else {
  117. for( var i = grd_imgviewlist.fixedRows ; i < grd_imgviewlist.Rows ; i++ ) {
  118. var imgdata = model.getValue("/root/main/imgviewlist["+i+"]/photimg"); // base64 encoding 문자열을 가져온다.
  119. model.setValue("/root/main/imgdata/photimg", imgdata,true);
  120. setImageRefInstance("/root/main/imgdata/photimg");
  121. }
  122. grd_imgviewlist.rebuild();
  123. }
  124. model.refresh();
  125. }
  126. ]]>
  127. </script>
  128. </xhtml:head>
  129. <xhtml:body pagewidth="750" pageheight="695">
  130. <group id="group1" style="left:0px; top:0px; width:750; height:13px; ">
  131. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">지도전문의 정보</caption>
  132. </group>
  133. <caption id="caption4" class="tit_2" style="left:0px; top:19px; width:113px; height:13px; ">교원 일반 정보</caption>
  134. <datagrid id="grd_prfrolelist" nodeset="/root/main/residenteduclist/tchrrole" caption="역할^전문분야^교육분야^비고^유효여부^사원번호|역할^전문분야^교육분야^비고^유효여부^사원번호" colsep="^" colwidth="92, 123, 144, 327, 31, 77" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:230; width:750px; height:433px; ">
  135. <col class="gridcombo" disabled="true" ref="tchrrole" type="combo" _key="true">
  136. <choices>
  137. <itemset>
  138. <label/>
  139. <value/>
  140. </itemset>
  141. </choices>
  142. </col>
  143. <col ref="spectyfild" type="input"/>
  144. <col ref="educfild" type="input"/>
  145. <col ref="cmt" type="input"/>
  146. <col checkvalue="Y,N" ref="valiyn" type="checkbox"/>
  147. <col ref="emplno" visibility="hidden"/>
  148. </datagrid>
  149. <line id="line63" class="line_1" style="x1:0px; y1:225; x2:750; y2:225; "/>
  150. <caption id="caption147" class="tit_2" style="left:0px; top:210; width:144px; height:13px; ">교원역할</caption>
  151. <line id="line15" class="line_1" style="x1:0px; y1:35; x2:750; y2:35; "/>
  152. <caption id="caption46" class="cell_1" style="left:136; top:40px; width:90px; height:23px; vertical-align:middle; ">이름</caption>
  153. <caption id="caption48" class="cell_1" style="left:136; top:66; width:90px; height:23px; vertical-align:middle; ">소속병원</caption>
  154. <caption id="caption1" class="cell_1" style="left:136; top:92; width:90px; height:23px; vertical-align:middle; ">소속부서</caption>
  155. <caption id="caption2" class="cell_1" style="left:136; top:118; width:90px; height:23px; vertical-align:middle; ">직위</caption>
  156. <caption id="caption3" class="cell_1" style="left:443; top:92; width:90px; height:23px; vertical-align:middle; ">근무부서</caption>
  157. <caption id="caption5" class="cell_1" style="left:443; top:118; width:90px; height:23px; vertical-align:middle; ">직책</caption>
  158. <caption id="caption7" class="cell_1" style="left:443; top:40px; width:90px; height:23px; vertical-align:middle; ">근무상태</caption>
  159. <caption id="caption8" class="cell_1" style="left:443; top:66; width:90px; height:23px; vertical-align:middle; ">근무병원</caption>
  160. <line id="line5" class="line_2" style="x1:136; y1:64; x2:750; y2:64; "/>
  161. <line id="line1" class="line_2" style="x1:136; y1:90px; x2:750px; y2:90px; "/>
  162. <line id="line2" class="line_2" style="x1:136; y1:116; x2:750px; y2:116; "/>
  163. <line id="line3" class="line_2" style="x1:136; y1:142; x2:750px; y2:142; "/>
  164. <caption id="caption9" class="cell_1" style="left:136; top:144; width:90px; height:23px; vertical-align:middle; ">전화번호</caption>
  165. <line id="line52" class="line_3" style="x1:0px; y1:194; x2:750; y2:194; "/>
  166. <caption id="caption10" class="cell_1" style="left:443; top:144px; width:90px; height:23px; vertical-align:middle; ">핸드폰번호</caption>
  167. <caption id="caption11" class="cell_1" style="left:136px; top:170px; width:90px; height:23px; vertical-align:middle; ">이메일</caption>
  168. <line id="line4" class="line_2" style="x1:136; y1:168; x2:750px; y2:168; "/>
  169. <input id="ipt_name" ref="/root/main/residenteduclist/tchrgnrlinfo/name" disabled="true" style="left:228; top:41px; width:210; height:19px; padding-left:5; "/>
  170. <input id="ipt_preststatcd" ref="/root/main/residenteduclist/tchrgnrlinfo/preststatcd" disabled="true" style="left:535; top:41px; width:210; height:19px; padding-left:5; "/>
  171. <input id="ipt_instcd" ref="/root/main/residenteduclist/tchrgnrlinfo/instcd" disabled="true" style="left:228; top:68; width:210; height:19px; padding-left:5; "/>
  172. <input id="ipt_dutplceinst" ref="/root/main/residenteduclist/tchrgnrlinfo/dutplceinst" disabled="true" style="left:535; top:68; width:210; height:19px; padding-left:5; "/>
  173. <input id="ipt_deptnm" ref="/root/main/residenteduclist/tchrgnrlinfo/deptnm" disabled="true" style="left:228; top:94; width:210; height:19px; padding-left:5; "/>
  174. <input id="ipt_dutplcedeptnm" ref="/root/main/residenteduclist/tchrgnrlinfo/dutplcedeptnm" disabled="true" style="left:535; top:94; width:210; height:19px; padding-left:5; "/>
  175. <input id="ipt_jobposcd" ref="/root/main/residenteduclist/tchrgnrlinfo/jobposcd" disabled="true" style="left:228; top:120px; width:210; height:19px; padding-left:5; "/>
  176. <input id="ipt_jobrespcd" ref="/root/main/residenteduclist/tchrgnrlinfo/jobrespcd" disabled="true" style="left:535; top:120px; width:210; height:19px; padding-left:5; "/>
  177. <input id="ipt_cntctel" ref="/root/main/residenteduclist/tchrgnrlinfo/cntctel" disabled="true" style="left:228; top:146px; width:210; height:19px; padding-left:5; "/>
  178. <input id="ipt_mpphonno" ref="/root/main/residenteduclist/tchrgnrlinfo/mpphonno" disabled="true" style="left:535; top:146px; width:210; height:19px; padding-left:5; "/>
  179. <input id="ipt_emailid" ref="/root/main/residenteduclist/tchrgnrlinfo/emailid" disabled="true" style="left:228px; top:172px; width:100px; height:19px; "/>
  180. <caption id="caption12" style="left:331px; top:172px; width:20px; height:20px; font-weight:bold; ">@</caption>
  181. <input id="ipt_etcemailaddr" ref="/root/main/residenteduclist/tchrgnrlinfo/etcemailaddr" disabled="true" visibility="hidden" style="left:475px; top:172px; width:122px; height:19px; "/>
  182. <select1 id="cmb_emailaddr" ref="/root/main/residenteduclist/tchrgnrlinfo/emailaddr" disabled="true" appearance="minimal" style="left:348px; top:172px; width:122px; height:19px; ">
  183. <choices>
  184. <itemset>
  185. <label/>
  186. <value/>
  187. </itemset>
  188. </choices>
  189. </select1>
  190. <group id="group2" scroll="auto" style="left:0px; top:665px; width:750px; height:27px; ">
  191. <button id="btn_cancel" class="btn4_letter2" style="left:694px; top:2; width:56px; height:22px; vertical-align:middle; ">
  192. <caption>닫기</caption>
  193. <close ev:event="DOMActivate"/>
  194. </button>
  195. </group>
  196. <input id="ipt_emplno" ref="/root/send/emplno" visibility="hidden" style="left:110px; top:15px; width:50px; height:19px; "/>
  197. <caption id="caption172" class="cell_1" style="left:0px; top:40px; width:134; height:152; vertical-align:middle; "/>
  198. <img id="img_view" ref="/root/main/imgdata/photimg" style="left:2; top:42; width:131; height:149; background-stretch:stretch; "/>
  199. <img id="img_hidden" visibility="hidden" style="left:2; top:42; width:131; height:149; "/>
  200. <datagrid id="grd_imgviewlist" nodeset="/root/main/imgviewlist" visibility="hidden" caption="사원번호^이미지" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:505px; top:295px; width:240px; height:50px; ">
  201. <col ref="emplno"/>
  202. <col ref="photimg" style="background-stretch:stretch; "/>
  203. </datagrid>
  204. </xhtml:body>
  205. </xhtml:html>