123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?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>SMRPC99900_KRI코드매핑</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <kricodelist/>
- <nucodelist/>
- <mapheadlist/>
- </grid>
- </main>
- <search>
- <defaultval/>
- <kridtcd/>
- <nudtcd/>
- <outvalue/>
- <kriflag>C</kriflag>
- <krischnm/>
- <nuflag>M</nuflag>
- <nuschnm/>
- <kricd/>
- <nucd/>
- </search>
- <init>
- <kricd>
- <kridtcd/>
- <kridtcdnm/>
- </kricd>
- <nucd>
- <nudtcd/>
- <nudtcdnm/>
- </nucd>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // user 권한체크
- fCheckAuth() ;
-
- fInit() ;
- model.refresh();
- ]]>
- </script>
- <submission id="TRRCS99901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/main/grid"/>
- <submission id="TRRCS99902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/main/grid"/>
- <submission id="TRRCS99903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/init/kricd"/>
- <submission id="TRRCS99904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/search" resultref="/root/init/nucd"/>
- <submission id="TXRCS99901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.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() {
- model.removeNodeset(grd_kricodelist.nodeset);
- model.removeNodeset(grd_nucodelist.nodeset);
- model.removeNodeset(grd_mapheadlist.nodeset);
- misfMsterDetailSet(grd_kricodelist,null, "TRRCS99901" ,"N");
- misfMsterDetailSet(grd_nucodelist,null, "TRRCS99901" ,"N");
- misfMsterDetailSet(grd_mapheadlist,grd_kricodelist, "TRRCS99902" ,"Y");
-
- misfMsterDetailRetrieve();
- 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; ">KRI코드매핑</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; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:44px; x2:1192px; y2:44px; "/>
- <button id="btn_del" class="btn2_letter3" style="left:1070px; top:475px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- misfGridIUD(grd_mapheadlist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:475px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_mapheadlist);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:495px; x2:1192px; y2:495px; "/>
- <select id="lst_nudtcd" ref="/root/search/nudtcd" overflow="scroll" appearance="compact" sep="|" style="left:896px; top:75px; width:295px; height:372px; ">
- <choices>
- <itemset nodeset="/root/init/nucd">
- <label ref="nudtcdnm"/>
- <value ref="nudtcd"/>
- </itemset>
- </choices>
- </select>
- <caption id="cap_grupjobln" class="cell_1" style="left:0px; top:49px; width:297px; height:25px; font-weight:bold; text-align:center; ">KRI코드</caption>
- <caption id="cap_jobln" class="cell_1" style="left:298px; top:49px; width:297px; height:25px; font-weight:bold; text-align:center; ">세부코드</caption>
- <caption id="cap_jobkind" class="cell_1" style="left:895px; top:49px; width:297px; height:25px; font-weight:bold; text-align:center; ">세부코드</caption>
- <img id="btn_addtrgtman" class="icon_bottom" style="left:583px; top:473px; 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 nudtcd = lst_nudtcd.value;
- var nudtcdnm = lst_nudtcd.label;
-
- nudtcdnmlist = nudtcdnm.split("|");
- nudtcdlist = nudtcd.split("|");
-
- for ( var i = 0; i < nudtcdlist.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:475px; 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>
- <caption id="caption2" class="cell_1" style="left:598px; top:49px; width:296px; height:25px; font-weight:bold; text-align:center; ">nU코드</caption>
- <datagrid id="grd_kricodelist" nodeset="/root/main/grid/kricodelist" caption="코드^코드명" colsep="^" colwidth="90, 193" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:0px; top:75px; width:296px; height:372px; ">
- <col ref="kricd"/>
- <col ref="kricdnm"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/search/kricd",grd_kricodelist.valueMatrix(grd_kricodelist.row,grd_kricodelist.colRef("kricd")));
- submit("TRRCS99903");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <output id="opt_comment" ref="/root/search/outvalue" style="left:265px; top:10px; width:590px; height:25px; font-size:14pt; "/>
- <datagrid id="grd_nucodelist" nodeset="/root/main/grid/nucodelist" caption="코드^코드명" colsep="^" colwidth="90, 193" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:598px; top:75px; width:296px; height:372px; ">
- <col ref="nucd"/>
- <col ref="nucdnm"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/search/nucd",grd_kricodelist.valueMatrix(grd_nucodelist.row,grd_nucodelist.colRef("nucd")));
- submit("TRRCS99904");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_mapheadlist" nodeset="/root/main/grid/mapheadlist" caption="KRI코드^KRI코드명^KRI세부코드^KRI세부코드명^nU코드^nU코드명^nU세부코드^nU세부코드명^default" colsep="^" colwidth="100, 140, 100, 200, 100, 140, 100, 200, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:500px; width:1190px; height:225px; ">
- <col ref="kricd" _key="true" style="text-align:center; "/>
- <col ref="kricdnm" _key="true" style="text-align:center; "/>
- <col ref="krtdtcd"/>
- <col ref="krtdtcdnm"/>
- <col ref="nucd" _key="true" style="text-align:center; "/>
- <col ref="nucdnm" style="text-align:center; "/>
- <col ref="nudtcd"/>
- <col ref="nudtcdnm"/>
- <col ref="defaultval"/>
- </datagrid>
- <caption id="caption1" class="cell_1" style="left:896px; top:450px; width:120px; height:20px; font-weight:bold; text-align:center; ">Default값</caption>
- <input id="ipt_default" ref="/root/search/defaultval" style="left:1019px; top:450px; width:172px; height:19px; "/>
- <select1 id="combo1" ref="/root/search/kriflag" appearance="minimal" style="left:3px; top:450px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>코드</label>
- <value>C</value>
- </item>
- <item>
- <label>코드명</label>
- <value>M</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_krischnm" ref="/root/search/krischnm" style="left:101px; top:450px; width:150px; height:19px; "/>
- <button id="btn_krisearch" class="btn2_letter2" style="left:254px; top:450px; width:42px; height:19px; ">
- <caption>찾기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_krischnm")) return;
-
- misfMsterDetailRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_nusearch" class="btn2_letter2" style="left:850px; top:450px; width:42px; height:19px; ">
- <caption>찾기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_appyy")) return;
-
- misfMsterDetailRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_nuflag" ref="/root/search/nuflag" appearance="minimal" style="left:599px; top:450px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>코드</label>
- <value>C</value>
- </item>
- <item>
- <label>코드명</label>
- <value>M</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_nuschnm" ref="/root/search/nuschnm" style="left:697px; top:450px; width:150px; height:19px; "/>
- <select id="lst_kridtcd" ref="/root/search/kridtcd" overflow="scroll" appearance="compact" style="left:298px; top:75px; width:297px; height:394px; ">
- <choices>
- <itemset nodeset="/root/init/kricd">
- <label ref="kridtcdnm"/>
- <value ref="kridtcd"/>
- </itemset>
- </choices>
- </select>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button1" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|