123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <humnatrscor>
- <humnatrscorlist/>
- </humnatrscor>
- <humnatreducdgcapalist/>
- </main>
- <dgnoref>
- <dgno/>
- </dgnoref>
- <temp>
- </temp>
- <init>
- <systemflag/>
- </init>
- <send>
- <req>
- <yy/>
- <dgno/>
- <valuerslt/>
- <deptcd/>
- <emplno/>
- </req>
- <humnatrscorlist/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //함수 위치 : /tistrngeducplanmngtweb/js/SMRTS00600.js
- // 의료원 실무자
- var authflag1 = fGrupAuthFlag("UG00000046");
- //수련교육 관리자
- var authflag2 = fGrupAuthFlag("UG00000034");
-
- if (authflag1 == "Y" || authflag2 == "Y"){
- ipt_emplno.attribute("class") = "";
- btn_emplsearch.visible = true;
- btn_search.visible = true;
- line82.visible = false;
- btn_emplsearch.refresh();
- } else {
- ipt_emplno.attribute("class") = "output_fix";
- btn_emplsearch.visible = false;
- btn_search.visible = false;
- line82.visible = false;
- grd_humnatrscorlist.colHidden(grd_humnatrscorlist.colRef("valuerslt")) = true;
- model.setValue("/root/send/req/emplno", getUserInfo("userid"));
- btn_emplsearch.refresh();
- }
-
- ipt_systemflag.value = "T";
- misfGridInit(grd_humnatrscorlist);
-
- misfMsterDetailSet(grd_humnatrscorlist, null, "TRRTS01001", "Y");
-
- misfGridComboComCdList("R0256",grd_humnatrscorlist,"valuerslt");
- misfComboComCdListMulti("R0256", "cmb_valuerslt");
- addComboItem( "cmb_valuerslt", "전체", "", "above");
- var today = getCurrentDate();
- var cur_mm = parseInt(today.substring(4, 6));
- var cur_yy = parseInt(today.substring(0, 4));
-
- if (cur_mm < 3)
- {
- cur_yy--;
- }
-
- model.setValue("/root/send/req/yy", cur_yy);
-
- submit("TRRTC01301");
- addComboItem( "cmb_dgno", "전체", "", "above");
- ipt_yy.refresh();
-
- var jobposcd= getUserInfo("jobposcd");
-
- if(jobposcd =="1800"){
- cmb_deptcd.disabled = true;
- cmb_dgno.disabled = true;
- ipt_yy.disabled = true;
- }else{
- cmb_deptcd.disabled = false;
- cmb_dgno.disabled = false;
- ipt_yy.disabled = false;
- }
- model.setValue("/root/send/req/yy", cur_yy);
- /*
- if (getUserInfo("posdeptcd") != ""){
- model.setValue("/root/send/req/deptcd", getUserInfo("posdeptcd"));
- }
-
- model.setValue("/root/send/req/emplno", getUserInfo("userid"));
- */
-
- submit("TRRTS00602");
- if(jobposcd =="1800"){
- submit("TRRTS01002");
- var dgno = model.getValue("/root/dgnoref/dgno");
- cmb_dgno.value=dgno;
- btn_search.dispatch("DOMActivate");
- }
- addComboItem( "cmb_deptcd", "전체", "", "above");
-
- ]]>
- </script>
- <submission id="TRRTC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatreducdgcapalist"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
- <submission id="TRRTS01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/dgnoref"/>
- <submission id="TRRTS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatrscor"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">사랑나눔교육 일정 조회</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:43px; width:1195px; height:727px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRRTC01301");
- addComboItem( "cmb_dgno", "전체", "", "above");
- ipt_yy.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_yy") ) {
- return false;
- }
- //misfMsterDetailRetrieve();
- submit("TRRTS01701");
- for(i = grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows; i++){
- var emplno = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("emplno"));
- if(ipt_emplno.value == emplno){
- grd_humnatrscorlist.rowStyle(i, "data", "background-color") = "#ffffcc";
- }else{
- grd_humnatrscorlist.rowStyle(i, "data", "background-color") = "#ffffff";
- }
- }
- // submit("TRRTS01001");
- ]]>
- </script>
- </button>
- <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_dgno" ref="/root/send/req/dgno" class="combo_s_essential" appearance="minimal" style="left:250px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/humnatreducdgcapalist">
- <label ref="dgno"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_dgno" class="search_name" style="left:164px; top:16px; width:94px; height:17px; ">교육차수 :</caption>
- <caption id="cap_valuerslt" class="search_name" style="left:374px; top:16px; width:94px; height:17px; ">평가결과 :</caption>
- <select1 id="cmb_valuerslt" ref="/root/send/req/valuerslt" class="combo_s_essential" appearance="minimal" style="left:460px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:575px; top:15px; width:85px; height:17px; ">임 상 과 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:665px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:780px; top:15px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplno" ref="/root/send/req/emplno" class="output_fix" style="left:870px; top:15px; width:95px; height:19px; "/>
- <button id="button1" class="btn2_letter4" style="left:1120px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_humnatrscorlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:5px; top:50px; width:183px; height:14px; ">사랑나눔교육 대상자 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1194px; y2:65px; "/>
- <button id="btn_emplsearch" class="icon_search" style="left:970px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* 사원번호 Help 화면 Open
- misfOpenPopUpList(화면종류Code, OPEN하는 Control, 공통코드, 리턴받을 Instance명) */
- var recv_list = "emplno";
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"ipt_systemflag","N");
- //misfOpenPopUpList("01", ipt_emplno,"", recv_list) ;
-
- model.refresh();
- if (ipt_emplno.label != "" && ipt_emplno.label.length > 0) {
- ipt_emplno.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_humnatrscorlist" nodeset="/root/main/humnatrscor/humnatrscorlist" caption="년도^교육 차수^교육 시작일^교육 종료일^임상과^근무지 부서^년차^성명^성별^E-mail^핸드폰^현 근무병원^교육 참석병원^교육 참가 통보서 출력^평가 결과^봉사첫째요일^봉사휴일" colsep="^" colwidth="69, 75, 123, 117, 100, 143, 58, 100, 60, 177, 100, 100, 100, 145, 97, 100, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1194; height:640px; ">
- <col ref="yy" style="text-align:center; "/>
- <col ref="dgno" style="text-align:center; "/>
- <col ref="educfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eductodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="anual" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="gndr" style="text-align:center; "/>
- <col ref="email" style="text-align:center; "/>
- <col ref="mpphonno" style="text-align:center; "/>
- <col ref="dutinstnm" style="text-align:center; "/>
- <col ref="eduinstnm" style="text-align:center; "/>
- <col ref="noti" type="inputbutton"/>
- <col disabled="true" ref="valuerslt" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="dname" visibility="hidden"/>
- <col ref="vacationdd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_humnatrscorlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 개별 출력물을 출력할때 fPrnDataList을 쓰지 않는 이유, 카피당할 노드의 2번재 또는 이상의 배열에 한명의 데이터를 카피 시키면 그배열 밑으로 의 데이터들이 공백으로 다 채워지기 때문에
- // 반복문을 사용하여 카피하면 안된다.
- model.resetInstanceNode("/root/main/prnlist");
- // 통지서
- if(grd_humnatrscorlist.col == grd_humnatrscorlist.colRef("noti")){
-
- model.makeValue("/root/main/prnlist/humnatrscorlist/emplno", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/emplno"));
- model.makeValue("/root/main/prnlist/humnatrscorlist/name", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/name"));
- model.makeValue("/root/main/prnlist/humnatrscorlist/deptnm", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/deptnm"));
- model.makeValue("/root/main/prnlist/humnatrscorlist/dutinstnm", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/dutinstnm"));
- model.makeValue("/root/main/prnlist/humnatrscorlist/educfromdd", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/educfromdd"));
- model.makeValue("/root/main/prnlist/humnatrscorlist/eductodd", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/eductodd"));
- model.makeValue("/root/main/prnlist/humnatrscorlist/vacationdd", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/vacationdd"));
- model.makeValue("/root/main/prnlist/humnatrscorlist/dname", model.getValue("/root/main/humnatrscor/humnatrscorlist[" + grd_humnatrscorlist.row + "]/dname"));
- exeReportPreview("RPRTS01501","XMLSTR");
- }
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter4" style="left:1050px; top:45px; width:64px; height:19px; ">
- <caption>일괄출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/prnlist");
- model.makeNode("/root/main/prnlist/humnatrscor");
- model.copyNode("/root/main/prnlist", "/root/main/humnatrscor");
- exeReportPreview("RPRTS01501","XMLSTR");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <input id="ipt_systemflag" ref="/root/init/systemflag" visibility="hidden" style="left:100px; top:5px; width:45px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|