123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB00600.xrw
- * 설 명 : 종합건진 기본코드관리
- * 설 계 자 : 김영국
- * 작 성 자 : 김영국
- * 작 성 일 : 2007.06.11
- * 수정이력 : 2007.10.04 김다영 화면권한추가
- * 기 타 :
- -->
- <?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>
- <etclst>
- <item>
- <etccd/>
- <etcdetlcd/>
- <etccdkey/>
- <etcdetlnm/>
- <useyn/>
- </item>
- </etclst>
- <detlcodelst>
- <item>
- <etccd/>
- <etcdetlcd/>
- <etcdetlcdkey/>
- <etcdetlnm/>
- <etcitemcnts/>
- <etcitemcnts2/>
- <etcitemcnts3/>
- <useyn/>
- </item>
- </detlcodelst>
- </main>
- <send>
- <clscd/>
- <req>
- <savedata/>
- <clscd/>
- <etccd/>
- </req>
- </send>
- <init>
- <selectinput>
- <item>
- <etcdetlnm/>
- <etcdetlcd/>
- </item>
- </selectinput>
- </init>
- <hidden>
- <item/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // fGetEtcList();
- fGetSelInputInit();
- var node = instance1.selectSingleNode("/root/init/selectinput/item");
- if( node != null ){
- cmb_clscd.select(0);
- }
-
- //화면권한추가
- btn_search.disabled = ! checkAuth("R");
- btn_clear1.disabled = ! checkAuth("X");
- btn_clear2.disabled = ! checkAuth("X");
- btn_save1.disabled = ! checkAuth("X");
- btn_save2.disabled = ! checkAuth("X");
- ]]>
- </script>
- <submission id="TRAHB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clscd" replace="instance" resultref="/root/main/etclst"/>
- <submission id="TXAHB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
- <submission id="TRAHB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detlcodelst"/>
- <submission id="TXAHB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
- <submission id="TRAHB00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/selectinput"/>
- <bind id="bind_etccd" ref="/root/main/etclst/item/etccd" readonly="../etccdkey!=''"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 셀렉트박스 초기화
- */
- function fGetSelInputInit(){
- var ret = submit("TRAHB00603");
- return ret;
- }
- /**
- * 분류코드 리스트 조회
- */
- function fGetEtcList(){
- model.removeNodeset("/root/main/etclst/item");
- model.removeNodeset("/root/main/detlcodelst/item");
- var ret = submit("TRAHB00601");
- return ret;
- }
- /**
- * 분류코드 저장
- */
- function fSaveEtc(){
- if( ! getGridUpdateData(grd_etclst) )
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
-
- var rsv_cnt = grd_etclst.rows ;
- var sNode = grd_etclst.nodeset+ "[";
- for( var i = 1; i < rsv_cnt ; i++){
- if( model.getValue(sNode + i + "]/etccd" ) == "") {
- alert("분류코드의 코드값이 비어있습니다.");
- return ;
- }
- }
-
- var ret = false;
- if ( messageBox("기본코드정보를","Q002")==6 ) {
- model.setValue("/root/send/req/savedata", grd_etclst.getUpdateData());
- model.setValue("/root/send/req/clscd", model.getValue("/root/send/clscd") );
- ret = submit("TXAHB00601");
- }
- return ret;
- }
- /**
- * 상세코드 리스트 조회
- */
- function fGetDetlCodeList(){
- var idx = grd_etclst.row;
- if( idx < 1) return ;
- model.removeNodeset("/root/main/detlcodelst/item");
- model.setValue("/root/send/req/clscd", model.getValue("/root/send/clscd") );
- model.setValue("/root/send/req/etccd", grd_etclst.valueMatrix(grd_etclst.row, 2) );
- var ret = submit("TRAHB00602");
- return ret;
- }
- /**
- * 상세코드 저장
- */
- function fSaveDetlCode(){
- if( ! getGridUpdateData(grd_detlcodelst) ){
- alert("저장할 내역이 없습니다.");
- return ;
- }
-
- if ( model.getValue("/root/send/req/etccd") == null || model.getValue("/root/send/req/etccd") == "" ){
- alert("분류코드가 선택되지 않았습니다.");
- return ;
- }
-
- var rsv_cnt = grd_detlcodelst.rows ;
- var sNode = grd_detlcodelst.nodeset+ "[";
- for( var i = 1; i < rsv_cnt ; i++){
- if( model.getValue(sNode + i + "]/etcdetlcd" ) == "") {
- alert("상세코드의 코드값이 비어있습니다.");
- return ;
- }
- }
-
- var ret = false;
- if ( messageBox("상세코드정보를","Q002")==6 ) {
- model.setValue("/root/send/req/savedata", grd_detlcodelst.getUpdateData());
- model.setValue("/root/send/req/clscd", model.getValue("/root/send/clscd") );
- ret = submit("TXAHB00602");
- }
- return ret;
- }
- /**
- * 초기화
- */
- function fEtcclear(){
- model.removeNodeset("/root/main/etclst/item");
- model.removeNodeset("/root/main/detlcodelst/item");
- model.refresh();
- }
- function fDeticodeclear(){
- model.removeNodeset("/root/main/detlcodelst/item");
- model.refresh();
- }
- /**
- * xls 파일 업로드
- */
- function fExcelUpload(grdObj){
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grdObj.loadExcel(fileName, 1, true);
- var cnt = grdObj.rows;
- var i = 0;
- for( i = 1; i < cnt +1 ; i++)
- {
- grdObj.addStatus(i, "insert");
- }
- grdObj.deleteRow(1);
- grdObj.refresh();
- }
-
- /**
- * etccode 설정 ( 상세코드 저장시 사용 )
- */
- function fSetEtcCode(vGrdObj){
- if( vGrdObj == null ) return false;
- var sNode = vGrdObj.nodeset+ "[";
- var etccd = model.getValue(sNode + vGrdObj.row + "]/etccd" ) ;
- model.setValue("/root/send/req/etccd", etccd );
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:149px; height:14px; ">기본코드 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:78px; height:14px; ">분류코드</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:594px; y2:70px; "/>
- <button id="btn_grddel" class="btn2_letter3" style="left:540px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_etclst.addStatus(grd_etclst.row,"delete");
- deleteSelectedRows(grd_etclst,true);
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">건진구분 :</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <select1 id="cmb_clscd" ref="/root/send/clscd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/selectinput/item">
- <label ref="etcdetlnm"/>
- <value ref="etcdetlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetEtcList();
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetEtcList();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption3" class="tit_2" style="left:606px; top:55px; width:78px; height:14px; ">상세코드</caption>
- <line id="line2" class="line_1" style="x1:601px; y1:70px; x2:1195px; y2:70px; "/>
- <button id="button1" class="btn2_letter3" style="left:980px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_detlcodelst.addStatus(grd_detlcodelst.row,"delete");
- deleteSelectedRows(grd_detlcodelst,true);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:925px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_detlcodelst.addRow();
- grd_detlcodelst.col = 3;
- grd_detlcodelst.editCell();
- ]]>
- </script>
- </button>
- <datagrid id="grd_detlcodelst" nodeset="/root/main/detlcodelst/item" caption="caption1^caption2^코드^상세코드명^기타1^기타2^기타3^적용여부" colsep="^" colwidth="10, 10, 100, 215, 70, 70, 70, 102" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:601px; top:75px; width:594px; height:663px; ">
- <col ref="etccd" visibility="hidden"/>
- <col ref="etcdetlcdkey" type="output" visibility="hidden"/>
- <col disabled="false" imemode="alpha" ref="etcdetlcd" type="input" maxbyte="12"/>
- <col ref="etcdetlnm" type="input" maxlength="50"/>
- <col ref="etcitemcnts" type="input" maxlength="50"/>
- <col ref="etcitemcnts2" type="input" maxlength="50"/>
- <col ref="etcitemcnts3" type="input" maxlength="50"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <!--
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( event.keyCode == 13 ){
- if( grd_detlcodelst.col == 3 ){
- grd_detlcodelst.col = 4;
- grd_detlcodelst.editCell();
- }else if( grd_detlcodelst.col == 4){
- grd_detlcodelst.addRow();
- grd_detlcodelst.col = 3 ;
- grd_detlcodelst.editCell();
- }
- }
- ]]>
- </script>
- -->
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- if( grd_detlcodelst.colType(grd_detlcodelst.col) == "input" ){
- grd_detlcodelst.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter3" style="left:484px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_etclst.addItem();
- grd_etclst.col = 2;
- grd_etclst.editCell();
- ]]>
- </script>
- </button>
- <datagrid id="grd_etclst" nodeset="/root/main/etclst/item" caption="caption1^코드^상세코드^분류코드명^적용여부" colsep="^" colwidth="0, 100, 0, 373, 99" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:594px; height:663px; ">
- <col ref="etccdkey" visibility="hidden"/>
- <col ref="etccd" type="input" maxlength="12"/>
- <col ref="etcdetlcd" visibility="hidden"/>
- <col ref="etcdetlnm" type="input" maxlength="50"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetDetlCodeList();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetEtcCode(grd_etclst);
- ]]>
- </script>
- </datagrid>
- <button id="btn_fileupload" class="btn2_letter5" style="left:1115px; top:50px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcelUpload(grd_detlcodelst);
- ]]>
- </script>
- </button>
- <button id="btn_seldeldetl" class="btn2_letter5" style="left:1037px; top:50px; width:75px; height:19px; ">
- <caption>선택행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_detlcodelst, true);
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_clear2" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeticodeclear();
- ]]>
- </script>
- </button>
- <button id="btn_save2" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSaveDetlCode() == true ){
- fGetDetlCodeList();
- }
- ]]>
- </script>
- </button>
- <button id="btn_save1" class="btn4_letter2" style="left:537px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSaveEtc() == true ){
- fGetEtcList();
- }
- ]]>
- </script>
- </button>
- <button id="btn_clear1" class="btn4_letter3" style="left:466px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEtcclear();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|