123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626 |
- <?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>
- <valuepsnlist/>
- </main>
- <send>
- <req>
- <yy/>
- <mm/>
- <valueflag/>
- <valueitemflagcd/>
- <instcd/>
- <deptcd/>
- <systemflag>A</systemflag>
- <apprtcdrflag/>
- <resdtflag/>
- </req>
- <reqdept>
- <blankrowyn>Y</blankrowyn>
- </reqdept>
- <dutvaluepsn/>
- </send>
- <init>
- <guidmedispcldremplno/>
- <guidmedispclinstnm/>
- <drname/>
- <deptnm/>
- <jobposnm/>
- <guidmedispclinstcd/>
- <guidmedispcldrlincno/>
- <drrregno/>
- <prfshipflagnm/>
- </init>
- <hidden>
- <deptcond/>
- </hidden>
- <temp>
- <selvalulistflag/>
- <valueitemflagcdlist/>
- <cdlist11>
- <R0301>
- <cdid>01</cdid>
- <cdnm>기본소양</cdnm>
- </R0301>
- <R0301>
- <cdid>02</cdid>
- <cdnm>기본술기</cdnm>
- </R0301>
- <R0301>
- <cdid>03</cdid>
- <cdnm>학구적태도</cdnm>
- </R0301>
- <R0301>
- <cdid>04</cdid>
- <cdnm>책임관념</cdnm>
- </R0301>
- </cdlist11>
- <cdlist12>
- <R0301>
- <cdid>01</cdid>
- <cdnm>인품</cdnm>
- </R0301>
- <R0301>
- <cdid>02</cdid>
- <cdnm>근무태도</cdnm>
- </R0301>
- <R0301>
- <cdid>03</cdid>
- <cdnm>책임관념</cdnm>
- </R0301>
- <R0301>
- <cdid>04</cdid>
- <cdnm>학구적태도</cdnm>
- </R0301>
- <R0301>
- <cdid>05</cdid>
- <cdnm>전공과목적성도</cdnm>
- </R0301>
- </cdlist12>
- <outpsn/>
- <popupgbn/>
- <outpnotice/>
- </temp>
- </root>
- </instance>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
- <submission id="TRRTC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dutvaluepsn"/>
- <submission id="TXRTC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutvaluepsn"/>
- <submission id="TXRTC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
- <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/deptcond"/>
- <submission id="TXRTC00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
- </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/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //submit("TRRTS00602");
- submit("TRRTC00302");
-
- rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
- rszfGetLabelControlComboList("R0314", "grd_dutvaluepsn.instcd", "detldesc");
-
-
- misfComboComCdListMulti("R0009", "cmb_mm");
- model.makeValue("/root/temp/cmbmm_nodeset", cmb_mm.choices.itemset.attribute("nodeset"));
- /*
- var grdcmb_deptcd = document.controls( grd_dutvaluepsn.colAttribute(grd_dutvaluepsn.colRef("orddeptcd"), "id") );
- grdcmb_deptcd.choices.itemset.attribute("nodeset") = "/root/main/tisorddeptcdlist";
- grdcmb_deptcd.choices.itemset.label.attribute("ref") = "deptnm";
- grdcmb_deptcd.choices.itemset.value.attribute("ref") = "deptcd";
- */
- ipt_popupgbn.value='P';
-
- fCheckAuth();
-
- if (isPopup())
- {
- model.setValue("/root/send/req/yy", opener.window.javascript.getParameter("SMRTC00200_yy"));
- model.setValue("/root/send/req/mm", opener.window.javascript.getParameter("SMRTC00200_mm"));
- model.setValue("/root/send/req/valueflag", opener.window.javascript.getParameter("SMRTC00200_valueflag"));
- //model.setValue("/root/send/req/valueitemflagcd", "01");
- model.setValue("/root/send/req/instcd", opener.window.javascript.getParameter("SMRTC00200_instcd"));
-
- rdo_valueflag.dispatch("xforms-value-changed");
-
- btn_save.visible = false
- btn_delrow.visible = false
- btn_copy.visible = false
- grd_dutvaluepsn.isReadOnly(grd_dutvaluepsn.fixedRows, grd_dutvaluepsn.fixedCols, grd_dutvaluepsn.rows - 1, grd_dutvaluepsn.cols - 1) = true;
-
- btn_choipsn.visible = true;
- }
- else
- {
- var today = getCurrentDate();
- var cur_mm = parseInt(today.substring(4, 6));
- var cur_yy = parseInt(today.substring(0, 4));
-
- model.setValue("/root/send/req/yy", cur_yy);
- model.setValue("/root/send/req/mm", cur_mm);
- model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
-
- model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
-
- btn_choipsn.visible = false;
- }
-
- //notice
- model.setValue("/root/temp/outpnotice", "※인턴평가자 행추가버튼으로 추가할 경우 분과대신 본과를 선택해 주세요(ex: 순환기내과->내과)");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- btn_delrow.disabled = !checkAuth("X") ;
- btn_copy.disabled = !(checkAuth("X"));
-
- cmb_instcd.disabled = !(checkAuth("P"));
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <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:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/send/req/valueflag") == "11")
- {
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_yy", "cmb_mm","rdo_valueflag", "cmb_valueitemflagcd", "cmb_instcd") ) {
- return false;
- }
- model.setValue("/root/send/req/apprtcdrflag", "I");
- }
- else
- {
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_yy", "cmb_mm","rdo_valueflag", "cmb_resdtflag", "cmb_instcd") ) {
- return false;
- }
- model.setValue("/root/send/req/apprtcdrflag", "R");
-
- var mm = model.getValue("/root/send/req/mm");
- if (!(mm == "05" || mm == "08" || mm == "11" || mm == "02"))
- {
- messageBox("레지던트 근무평가월은 [ 5 , 8 , 11 , 2 ] 월 입니다.", "I", "");
- return;
- }
- }
-
- submit("TRRTC00201");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <caption id="cap_yy" class="search_name" style="left:235px; top:19px; width:90px; height:17px; ">근무년도 :</caption>
- <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:321px; top:18px; width:55px; height:19px; "/>
- <caption id="cap_valueflag" class="search_name" style="left:527px; top:19px; width:120px; height:17px; ">근무평가구분 :</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:54px; width:144px; height:13px; ">평가자정보</caption>
- <button id="btn_copy" class="btn2_letter4" style="left:1040px; top:47px; width:64px; height:19px; ">
- <caption>월 copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_yy", "cmb_mm", "rdo_valueflag", "cmb_instcd") ) {
- return false;
- }
-
- if (submit("TXRTC00202"))
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <item>
- <label>인턴</label>
- <value>11</value>
- </item>
- <item>
- <label>레지던트</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (rdo_valueflag.value == "11")
- {
- if (model.getValue("/root/temp/selvalulistflag") != "cdlist11")
- {
- model.copyNode("/root/temp/valueitemflagcdlist", "/root/temp/cdlist11");
-
- model.setValue("/root/temp/selvalulistflag", "cdlist11");
-
- cmb_mm.choices.itemset.attribute("nodeset") = model.getValue("/root/temp/cmbmm_nodeset");
- }
- cap_valueitemflagcd.visible = true;
- cmb_valueitemflagcd.visible = true;
- cap_resdtflag.visible = false;
- cmb_resdtflag.visible = false;
-
- btn_insrow.visible = true;
- }
- else if (rdo_valueflag.value == "12")
- {
- if (model.getValue("/root/temp/selvalulistflag") != "cdlist12")
- {
- //model.copyNode("/root/temp/valueitemflagcdlist", "/root/temp/cdlist12");
- model.copyNode("/root/temp/valueitemflagcdlist", "");
- model.setValue("/root/temp/selvalulistflag", "cdlist12");
-
- cmb_mm.choices.itemset.attribute("nodeset") = model.getValue("/root/temp/cmbmm_nodeset") + "[cdid='05' or cdid='08' or cdid='11' or cdid='02']";
- }
- cap_valueitemflagcd.visible = false;
- cmb_valueitemflagcd.visible = false;
- cap_resdtflag.visible = true;
- cmb_resdtflag.visible = true;
-
- btn_insrow.visible = false;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_deptcd" class="search_name" visibility="hidden" style="left:985px; top:20px; width:75px; height:17px; ">임상과 :</caption>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:19px; width:95px; height:17px; ">근무병원 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_mm" class="search_name" style="left:385px; top:19px; width:75px; height:17px; ">근무월 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/valueitemflagcdlist/R0301">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (cmb_valueitemflagcd.value == "04") {
- btn_mutireg.visible = true;
- }else{
- btn_mutireg.visible = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="cap_valueitemflagcd" class="search_name" style="left:775px; top:19px; width:100px; height:17px; ">평가항목 :</caption>
- <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; ">
- <col ref="valueflag" visibility="hidden"/>
- <col ref="valueyy" visibility="hidden"/>
- <col ref="valueitemflagcd" visibility="hidden"/>
- <col ref="dutvaluemm" visibility="hidden"/>
- <col disabled="false" ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/deptcond">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="valupsnflag" type="combo">
- <choices>
- <item>
- <label>내부</label>
- <value>1</value>
- </item>
- <item>
- <label>외부</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="valupsnidnm" visibility="hidden"/>
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="instnm"/>
- <col ref="unitnm"/>
- <col ref="jobposnm"/>
- <col ref="resdtflag" visibility="hidden"/>
- <col ref="valuestat" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (grd_dutvaluepsn.col == grd_dutvaluepsn.colRef("valupsnflag"))
- {
- if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.col) == "1")
- {
- var status = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status"));
- var valupsnidnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm"));
-
- //var recv_list = "emplno,emplnm,instnm,unitnm,jobposnm";
- var orddeptcd = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("orddeptcd"));
- cmb_deptcd.value = orddeptcd ;
- var recv_list = "guidmedispclinstcd,guidmedispclinstnm,drname,guidmedispcldremplno,deptnm,guidmedispcldrlincno,drrregno,prfshipflagnm,jobposnm";
- misfOpenPopUpList("35", ipt_guidmedispcldremplno,"",recv_list);
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno"))=model.getValue("/root/init/guidmedispcldremplno");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplnm"))=model.getValue("/root/init/drname");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("instnm"))=model.getValue("/root/init/guidmedispclinstnm");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("unitnm"))=model.getValue("/root/init/deptnm");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("jobposnm"))=model.getValue("/root/init/jobposnm");
- model.setValue("/root/init/guidmedispcldremplno", "");
- model.setValue("/root/init/drname", "");
- model.setValue("/root/init/guidmedispclinstnm", "");
- model.setValue("/root/init/deptnm", "");
- model.setValue("/root/init/jobposnm", "");
- //rpbfOpenPopUpList("SPRPB00101", grd_dutvaluepsn, recv_list,"","N");
- //rpbfOpenPopUpList("SPRPB00101", grd_dutvaluepsn, recv_list);
-
- if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno")) != "")
- {
- if (valupsnidnm == "" || status == "i")
- {
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "i";
- grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 1;
- }
- else
- {
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "u";
- grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 2;
- }
- }
- }
- else
- {
- model.setValue("/root/temp/outpsn", grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm")));
- grup_outpsn.attribute("left") = event.targetX;
- grup_outpsn.attribute("top") = event.targetY;
- grup_outpsn.visible = true;
-
- ipt_outpsn.refresh();
- model.setFocus("ipt_outpsn");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // btn_choipsn.dispatch("DOMActivate");
- ]]>
- </script>
- </datagrid>
- <output id="ipt_systemflag" ref="/root/send/req/systemflag" visibility="hidden" style="left:755px; top:47px; width:35px; height:19px; "/>
- <button id="btn_delrow" class="btn2_letter3" style="left:980px; top:47px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) == "" ||
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) == "u")
- {
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "d";
- grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 4;
- }
- ]]>
- </script>
- </button>
- <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; ">
- <![CDATA["btn_mutireg]]>
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_guidmedispcldremplno" ref="/root/init/guidmedispcldremplno" visibility="hidden" style="left:360px; top:45px; width:80px; height:19px; "/>
- <input id="ipt_popupgbn" ref="/root/temp/popupgbn" visibility="hidden" style="left:525px; top:45px; width:150px; height:19px; "/>
- <button id="btn_mutireg" class="btn2_letter7" visibility="hidden" style="left:225px; top:47px; width:97px; height:19px; ">
- <caption>평가자일괄등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var valupsnflag = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnflag"));
- var emplno = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno"));
- var emplnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplnm"));
- var instnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("instnm"));
- var unitnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("unitnm"));
- var jobposnm = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("jobposnm"));
-
- if (emplno == "") {
- messageBox("현재행에서 평가자를 먼저 선택해 주십시오.", "I", "");
- return;
- }
- for (var i=0; i < (grd_dutvaluepsn.rows-grd_dutvaluepsn.fixedRows); i++) {
- if (model.getValue("/root/main/dutvaluepsn["+(i+1)+"]/emplno") == "" && model.getValue("/root/main/dutvaluepsn["+(i+1)+"]/status") == "") {
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/status", "i");
- }else{
- if(model.getValue("/root/main/dutvaluepsn["+(i+1)+"]/status") == ""){
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/status", "u");
- }
- }
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/valupsnflag", valupsnflag);
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/emplno", emplno);
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/emplnm", emplnm);
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/instnm", instnm);
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/unitnm", unitnm);
- model.setValue("/root/main/dutvaluepsn["+(i+1)+"]/jobposnm", jobposnm);
-
- }
-
- for (var i=grd_dutvaluepsn.fixedRows; i < grd_dutvaluepsn.rows; i++) {
- if (grd_dutvaluepsn.valueMatrix(i, grd_dutvaluepsn.colRef("status")) == "i") {
- grd_dutvaluepsn.rowStatus(i) = 1;
- }else{
- grd_dutvaluepsn.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_insrow" class="btn2_letter3" visibility="hidden" style="left:920px; top:47px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_dutvaluepsn, "A");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valueflag") ) = model.getValue("/root/send/req/valueflag");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valueyy") ) = model.getValue("/root/send/req/yy");;
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valueitemflagcd") ) = model.getValue("/root/send/req/valueitemflagcd");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("dutvaluemm") ) = model.getValue("/root/send/req/mm");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("instcd") ) = model.getValue("/root/send/req/instcd");
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <item>
- <label>평가자</label>
- <value>12</value>
- </item>
- <item>
- <label>확인자</label>
- <value>13</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (cmb_resdtflag.value == "13") {
- grd_dutvaluepsn.caption = "평가구분^평가년도^평가항목구분^근무평가월^평가기관^평가임상과^평가자구분^확인자IDNM^확인자ID^확인자명^기관^부서^직위^레지던트평가구분^평가상태^최초등록자id^최초등록일시^최종수정자id^최종수정일시";
- } else {
- grd_dutvaluepsn.caption = "평가구분^평가년도^평가항목구분^근무평가월^평가기관^평가임상과^평가자구분^평가자IDNM^평가자ID^평가자명^기관^부서^직위^레지던트평가구분^평가상태^최초등록자id^최초등록일시^최종수정자id^최종수정일시";
- }
-
- ]]>
- </script>
- </select1>
- <caption id="cap_resdtflag" class="search_name" visibility="hidden" style="left:775px; top:19px; width:112px; height:17px; ">구분 :</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var savedata = grd_dutvaluepsn.getUpdateData();
- model.setValue("/root/send/dutvaluepsn", savedata);
-
- if (submit("TXRTC00201"))
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_choipsn" class="btn3_letter5" style="left:1043px; top:3px; width:92px; height:22px; ">
- <caption>평가자 선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var emplno = grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno"));
- opener.window.javascript.setParameter("SMRTC00200_valupsnidnm", emplno);
-
- window.close();
- ]]>
- </script>
- </button>
- <output id="outp_notice" ref="/root/temp/outpnotice" style="left:3px; top:5; width:600px; height:19px; font-weight:bold; color:#0000ff; "/>
- </group>
- <group id="grup_outpsn" visibility="hidden" style="left:420px; top:160px; width:233px; height:90px; border-color:#3366ff; border-width:3px; border-style:solid; ">
- <button id="button1" class="btn2_letter2" style="left:120px; top:60px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm")) == "")
- {
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "i";
- grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 1;
- }
- else if (grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("valupsnidnm")) != "")
- {
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("status")) = "u";
- grd_dutvaluepsn.rowStatus(grd_dutvaluepsn.row) = 2;
- }
-
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplno")) = model.getValue("/root/temp/outpsn");
- grd_dutvaluepsn.valueMatrix(grd_dutvaluepsn.row, grd_dutvaluepsn.colRef("emplnm")) = model.getValue("/root/temp/outpsn");
-
- grup_outpsn.visible = false;
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:175px; top:60px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grup_outpsn.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption22" class="tit_2" style="left:10px; top:10px; width:165px; height:13px; ">외부 근무평가자 입력</caption>
- <input id="ipt_outpsn" ref="/root/temp/outpsn" style="left:10px; top:30px; width:210px; height:19px; "/>
- </group>
- <button id="btn_year_copy" class="btn2_letter5" style="left:1110px; top:85px; width:75px; height:19px; ">
- <caption>년 copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_yy", "rdo_valueflag", "cmb_instcd") ) {
- return false;
- }
-
- var retMes = messageBox("현재년도 데이가 삭제되고 전년도 데이타가 Copy됩니다.\n전년도 Copy 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- if (submit("TXRTC00203"))
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|