123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>전공의 지원 현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <residenteduclist>
- <tchrrole/>
- <tchrgnrlinfo>
- <name/>
- <preststatcd/>
- <instcd/>
- <dutplceinst/>
- <deptnm/>
- <dutplcedeptnm/>
- <jobposcd/>
- <jobrespcd/>
- <cntctel/>
- <mpphonno/>
- <emailid/>
- <emailaddr/>
- <etcemailaddr/>
- </tchrgnrlinfo>
- </residenteduclist>
- <imgdata>
- <photimg/>
- </imgdata>
- <imgviewlist/>
- </main>
- <send>
- <emplno/>
- </send>
- <init/>
- <hidden/>
- <temp>
- <emplno/>
- </temp>
- </root>
- </instance>
- <submission id="TRRTS01611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/residenteduclist"/>
- <submission id="TRRPB30018" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/imgviewlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- // fCheckAuth();
- misfGridInit(grd_prfrolelist);
- misfGridInit(grd_imgviewlist);
-
- misfGridComboComCdList("R0276", grd_prfrolelist, "tchrrole")
- misfComboComCdListMulti("R0131", "cmb_emailaddr");
-
- model.setValue("/root/send/emplno", model.getValue("/root/temp/emplno"));
- ipt_emplno.refresh();
-
- fChangeImage("../../../com/commonweb/images/no_image.gif");//초기 이미지설정
-
- submit("TRRTS01611");
-
-
- if(cmb_emailaddr.value == "08")
- {
- cmb_emailaddr.visible = false;
- ipt_etcemailaddr.visible = true;
- ipt_etcemailaddr.attribute("top") = cmb_emailaddr.attribute("top");
- ipt_etcemailaddr.attribute("left") = cmb_emailaddr.attribute("left");
- }
- misfSetReadOnlyCol(grd_prfrolelist, "tchrrole,spectyfild,educfild,cmt,valiyn,emplno", true);
-
- submit("TRRPB30018"); //사진
-
- fRetrImage();
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_prn.disabled = !checkAuth("P") ;
- }
-
- function fChangeImage(imgsrc) {
- img_hidden.src = imgsrc; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
- var data = img_hidden.getbase64data(); // base64 encoding 문자열을 가져온다.
- var imgSize = getImageSize(imgsrc);
- var imgWidthSize = imgSize.split("^")[0];
- var imgHeightSize = imgSize.split("^")[1];
- model.setValue("/root/main/imgdata/photimg",data,true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
- setImageRefInstance("/root/main/imgdata/photimg"); //base64 encoding 문자열을 이미지로 변환하여 보여준다,
-
- img_view.attribute("width")= "131";
-
- img_view.attribute("height")= "149";
- var cur_rows = grd_imgviewlist.rows;
- var emplno=model.getValue("/root/main/empldata/empllist[1]/emplno");
- var imgemplno=model.getValue("/root/main/imgviewlist[1]/emplno");
- if(img_hidden.src != "../../../com/commonweb/images/no_image.gif" && imgemplno ==""){//이미지추가시 그리드 추가
- grd_imgviewlist.addrow(); // 입력할 행 추가.
- cur_row = grd_imgviewlist.row; // 추가된 행 번호 가져오기
- // 그리드에 추가
- model.setValue("/root/main/imgviewlist["+cur_row+"]/emplno",emplno);
- model.setValue("/root/main/imgviewlist["+cur_row+"]/photimg",data,true);
- }else if(img_hidden.src != "../../../com/commonweb/images/no_image.gif" && imgemplno !=""){//업데이트시 그리드셋팅
- grd_imgviewlist.addStatus(1,"update");
- model.setValue("/root/main/imgviewlist[1]/emplno",emplno);
- model.setValue("/root/main/imgviewlist[1]/photimg",data,true);
- }
-
- model.refresh();
- }
-
- function fRetrImage() {//조회시 그리드에 base64 encoding data셋팅하고 사진이미지 보여준다.
- if (grd_imgviewlist.Rows <= grd_imgviewlist.fixedRows) {
- fChangeImage("../../../com/commonweb/images/no_image.gif");//초기 이미지설정
- }
- else {
- for( var i = grd_imgviewlist.fixedRows ; i < grd_imgviewlist.Rows ; i++ ) {
- var imgdata = model.getValue("/root/main/imgviewlist["+i+"]/photimg"); // base64 encoding 문자열을 가져온다.
- model.setValue("/root/main/imgdata/photimg", imgdata,true);
- setImageRefInstance("/root/main/imgdata/photimg");
- }
- grd_imgviewlist.rebuild();
- }
- model.refresh();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="750" pageheight="695">
- <group id="group1" style="left:0px; top:0px; width:750; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">지도전문의 정보</caption>
- </group>
- <caption id="caption4" class="tit_2" style="left:0px; top:19px; width:113px; height:13px; ">교원 일반 정보</caption>
- <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; ">
- <col class="gridcombo" disabled="true" ref="tchrrole" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="spectyfild" type="input"/>
- <col ref="educfild" type="input"/>
- <col ref="cmt" type="input"/>
- <col checkvalue="Y,N" ref="valiyn" type="checkbox"/>
- <col ref="emplno" visibility="hidden"/>
- </datagrid>
- <line id="line63" class="line_1" style="x1:0px; y1:225; x2:750; y2:225; "/>
- <caption id="caption147" class="tit_2" style="left:0px; top:210; width:144px; height:13px; ">교원역할</caption>
- <line id="line15" class="line_1" style="x1:0px; y1:35; x2:750; y2:35; "/>
- <caption id="caption46" class="cell_1" style="left:136; top:40px; width:90px; height:23px; vertical-align:middle; ">이름</caption>
- <caption id="caption48" class="cell_1" style="left:136; top:66; width:90px; height:23px; vertical-align:middle; ">소속병원</caption>
- <caption id="caption1" class="cell_1" style="left:136; top:92; width:90px; height:23px; vertical-align:middle; ">소속부서</caption>
- <caption id="caption2" class="cell_1" style="left:136; top:118; width:90px; height:23px; vertical-align:middle; ">직위</caption>
- <caption id="caption3" class="cell_1" style="left:443; top:92; width:90px; height:23px; vertical-align:middle; ">근무부서</caption>
- <caption id="caption5" class="cell_1" style="left:443; top:118; width:90px; height:23px; vertical-align:middle; ">직책</caption>
- <caption id="caption7" class="cell_1" style="left:443; top:40px; width:90px; height:23px; vertical-align:middle; ">근무상태</caption>
- <caption id="caption8" class="cell_1" style="left:443; top:66; width:90px; height:23px; vertical-align:middle; ">근무병원</caption>
- <line id="line5" class="line_2" style="x1:136; y1:64; x2:750; y2:64; "/>
- <line id="line1" class="line_2" style="x1:136; y1:90px; x2:750px; y2:90px; "/>
- <line id="line2" class="line_2" style="x1:136; y1:116; x2:750px; y2:116; "/>
- <line id="line3" class="line_2" style="x1:136; y1:142; x2:750px; y2:142; "/>
- <caption id="caption9" class="cell_1" style="left:136; top:144; width:90px; height:23px; vertical-align:middle; ">전화번호</caption>
- <line id="line52" class="line_3" style="x1:0px; y1:194; x2:750; y2:194; "/>
- <caption id="caption10" class="cell_1" style="left:443; top:144px; width:90px; height:23px; vertical-align:middle; ">핸드폰번호</caption>
- <caption id="caption11" class="cell_1" style="left:136px; top:170px; width:90px; height:23px; vertical-align:middle; ">이메일</caption>
- <line id="line4" class="line_2" style="x1:136; y1:168; x2:750px; y2:168; "/>
- <input id="ipt_name" ref="/root/main/residenteduclist/tchrgnrlinfo/name" disabled="true" style="left:228; top:41px; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_preststatcd" ref="/root/main/residenteduclist/tchrgnrlinfo/preststatcd" disabled="true" style="left:535; top:41px; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_instcd" ref="/root/main/residenteduclist/tchrgnrlinfo/instcd" disabled="true" style="left:228; top:68; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_dutplceinst" ref="/root/main/residenteduclist/tchrgnrlinfo/dutplceinst" disabled="true" style="left:535; top:68; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_deptnm" ref="/root/main/residenteduclist/tchrgnrlinfo/deptnm" disabled="true" style="left:228; top:94; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_dutplcedeptnm" ref="/root/main/residenteduclist/tchrgnrlinfo/dutplcedeptnm" disabled="true" style="left:535; top:94; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_jobposcd" ref="/root/main/residenteduclist/tchrgnrlinfo/jobposcd" disabled="true" style="left:228; top:120px; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_jobrespcd" ref="/root/main/residenteduclist/tchrgnrlinfo/jobrespcd" disabled="true" style="left:535; top:120px; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_cntctel" ref="/root/main/residenteduclist/tchrgnrlinfo/cntctel" disabled="true" style="left:228; top:146px; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_mpphonno" ref="/root/main/residenteduclist/tchrgnrlinfo/mpphonno" disabled="true" style="left:535; top:146px; width:210; height:19px; padding-left:5; "/>
- <input id="ipt_emailid" ref="/root/main/residenteduclist/tchrgnrlinfo/emailid" disabled="true" style="left:228px; top:172px; width:100px; height:19px; "/>
- <caption id="caption12" style="left:331px; top:172px; width:20px; height:20px; font-weight:bold; ">@</caption>
- <input id="ipt_etcemailaddr" ref="/root/main/residenteduclist/tchrgnrlinfo/etcemailaddr" disabled="true" visibility="hidden" style="left:475px; top:172px; width:122px; height:19px; "/>
- <select1 id="cmb_emailaddr" ref="/root/main/residenteduclist/tchrgnrlinfo/emailaddr" disabled="true" appearance="minimal" style="left:348px; top:172px; width:122px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <group id="group2" scroll="auto" style="left:0px; top:665px; width:750px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:694px; top:2; width:56px; height:22px; vertical-align:middle; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- <input id="ipt_emplno" ref="/root/send/emplno" visibility="hidden" style="left:110px; top:15px; width:50px; height:19px; "/>
- <caption id="caption172" class="cell_1" style="left:0px; top:40px; width:134; height:152; vertical-align:middle; "/>
- <img id="img_view" ref="/root/main/imgdata/photimg" style="left:2; top:42; width:131; height:149; background-stretch:stretch; "/>
- <img id="img_hidden" visibility="hidden" style="left:2; top:42; width:131; height:149; "/>
- <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; ">
- <col ref="emplno"/>
- <col ref="photimg" style="background-stretch:stretch; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|