123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <?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>
- <healcarelist/>
- </main>
- <send>
- <appyy/>
- <instcd/>
- <instnm/>
- <healcarevalucd/>
- <grupjobln/>
- <jobln/>
- <jobkind/>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // user 권한체크
- fCheckAuth() ;
-
- fInit() ;
- model.refresh();
- ]]>
- </script>
- <submission id="TRRPS05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/healcarelist"/>
- <submission id="TXRPS05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/healcarelist" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- var FLAG = false;
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fInit() {
- var curdate = getCurrentDate();
- model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
-
- misfComboComCdListMulti("R0059,R0060,R0061", "lst_grupjobln,lst_jobln,lst_jobkind");
-
- model.setValue("/root/send/instnm", getUserInfo("dutplceinstnm") );
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd") );
-
- model.removeNodeset(grd_healcarelist.nodeset);
- misfMsterDetailSet(grd_healcarelist,null, "TRRPS05001" ,"Y");
-
- model.refresh();
- }
- ]]>
- </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:5px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1110px; top:13px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- submit("TRRPS05001");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1073px; y1:10px; x2:1073px; y2:37px; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:59px; x2:1195px; y2:59px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:45px; width:169px; height:13px; ">직종추가</caption>
- <button id="btn_del" class="btn2_letter3" style="left:1070px; top:500px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- misfGridIUD(grd_healcarelist, "D");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter3" visibility="hidden" style="left:1125px; top:485px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- misfGridIUD(grd_rpsmedcdlist, "A");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_instcd" class="search_name" style="left:320px; top:14px; width:86px; height:17px; ">기 관 :</caption>
- <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:500px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_healcarelist);
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_search" style="left:566px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "instcd,instnm";
- misfOpenPopUpList("03", ipt_instnm,"Z0007", recv_list, "", "") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_instnm" ref="/root/send/instnm" class="input_search" appearance="input" style="left:407px; top:14px; width:155px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( ipt_instnm.value.getByteLength() == '0' ) {
- ipt_instcd.value = "" ;
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_instcd" ref="/root/send/instcd" disabled="true" visibility="hidden" style="left:587px; top:14px; width:50px; height:19px; "/>
- <datagrid id="grd_healcarelist" nodeset="/root/main/healcarelist" caption="년도^기관^기관명^seq^의평직종코드^의평직종분류^직군^직군코드^직렬^직렬코드^직종^직종코드" colsep="^" colwidth="70, 50, 199, 39, 100, 130, 130, 52, 130, 42, 130, 56" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:525px; width:1194px; height:207px; ">
- <col ref="appyy" _key="true" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" _key="true" style="text-align:center; "/>
- <col ref="instnm" _key="true" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden" style="text-align:center; "/>
- <col ref="healcarecd" visibility="hidden" _key="true" style="text-align:center; "/>
- <col ref="healcarenm" _key="true" style="text-align:center; "/>
- <col ref="grupjobln" _key="true" style="text-align:center; "/>
- <col ref="grupjoblncd" visibility="hidden" _key="true" style="text-align:center; "/>
- <col ref="jobln" _key="true" style="text-align:center; "/>
- <col ref="joblncd" visibility="hidden" _key="true" style="text-align:center; "/>
- <col ref="jobkind" _key="true" style="text-align:center; "/>
- <col ref="jobkindcd" visibility="hidden" _key="true" style="text-align:center; "/>
- </datagrid>
- <select id="lst_grupjobln" ref="/root/send/grupjobln" overflow="scroll" appearance="compact" sep="|" style="left:0px; top:90px; width:395px; height:395px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- var grupjobln = lst_grupjobln.value;
- grupjoblnlist = grupjobln.split("|");
- lst_grupjobln.value = grupjoblnlist[grupjoblnlist.length-1];
- ]]>
- </script>
- </select>
- <line id="line1" class="line_1" style="x1:0px; y1:520px; x2:1195px; y2:520px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:506px; width:169px; height:14px; ">의평 직종 List</caption>
- <select id="lst_jobln" ref="/root/send/jobln" overflow="scroll" appearance="compact" sep="|" style="left:398px; top:90px; width:395px; height:395px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- var jobln = lst_jobln.value;
- joblnlist = jobln.split("|");
- lst_jobln.value = joblnlist[joblnlist.length-1];
- ]]>
- </script>
- </select>
- <select id="lst_jobkind" ref="/root/send/jobkind" overflow="scroll" appearance="compact" sep="|" style="left:796px; top:90px; width:395px; height:395px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select>
- <caption id="caption2" class="search_name" style="left:700px; top:14px; width:101px; height:17px; ">의 평 직 종 :</caption>
- <select1 id="cmb_healcarevalucd" ref="/root/send/healcarevalucd" appearance="minimal" style="left:810px; top:14px; width:125px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>의사직</label>
- <value>01</value>
- </item>
- <item>
- <label>간호직</label>
- <value>02</value>
- </item>
- <item>
- <label>보건직</label>
- <value>03</value>
- </item>
- <item>
- <label>행정직</label>
- <value>04</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_appyy" class="search_name" style="left:20px; top:15px; width:86px; height:17px; ">년 도 :</caption>
- <input id="ipt_appyy" ref="/root/send/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:103px; top:14px; width:110px; height:19px; "/>
- <caption id="cap_grupjobln" class="cell_1" style="left:0px; top:64px; width:395px; height:25px; font-weight:bold; text-align:center; ">직군</caption>
- <caption id="cap_jobln" class="cell_1" style="left:398px; top:64px; width:395px; height:25px; font-weight:bold; text-align:center; ">직렬</caption>
- <caption id="cap_jobkind" class="cell_1" style="left:796px; top:64px; width:395px; height:25px; font-weight:bold; text-align:center; ">직종</caption>
- <img id="btn_addtrgtman" class="icon_bottom" style="left:570px; top:490px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(!isRequiredControls("ipt_instcd")) return;
- if(cmb_healcarevalucd.value == '' ) {
- messageBox("의평직종을 선택하세요.","I999");
- model.setFocus("cmb_healcarevalucd.input");
- return;
- }
- if(!isRequiredControls("lst_grupjobln")) return;
- if(!isRequiredControls("lst_jobln")) return;
- if(!isRequiredControls("lst_jobkind")) return;
-
- var jobkind = lst_jobkind.value;
- var jobkindnm = lst_jobkind.label;
-
- jobkindnmlist = jobkindnm.split("|");
- jobkindlist = jobkind.split("|");
-
- for ( var i = 0; i < jobkindlist.length ; i++ ) {
- grd_healcarelist.addRow(false);
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("appyy")) = ipt_appyy.value;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("instcd")) = ipt_instcd.value ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("instnm")) = ipt_instnm.value ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("healcarecd")) = cmb_healcarevalucd.value ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("healcarenm")) = cmb_healcarevalucd.label ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("grupjobln")) = lst_grupjobln.label ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("grupjoblncd")) = lst_grupjobln.value ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobln")) = lst_jobln.label ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("joblncd")) = lst_jobln.value ;
-
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobkind")) = jobkindnmlist[i] ;
- grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobkindcd")) = jobkindlist[i] ;
- }
-
- model.refresh();
- ]]>
- </script>
- </img>
- <button id="btn_save" class="btn5_letter2" style="left:1020px; top:500px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkKeyColumn("grd_healcarelist") == false) return;
-
- if( misfSave("TXRPS05001") ) {
- messageBox("","I001");
- btn_init.dispatch("DOMActivate");
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/grupjobln",'');
- model.setValue("/root/send/jobln",'');
- model.setValue("/root/send/jobkind",'');
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|