123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAVB00100.xrw
- * 설 명 : 조직은행 기본코드관리
- * 설 계 자 : 손승현
- * 작 성 자 : 손승현
- * 작 성 일 : 2010.06.29
- * 수정이력 : 2010.06.29 손승현 신규
- * 기 타 :
- -->
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <bscdlstmst>
- <item>
- <clscd/>
- <etccd/>
- <etccdkey/>
- <etcdetlnm/>
- <useyn/>
- </item>
- </bscdlstmst>
- <bscdlstdtl>
- <item>
- <clscd/>
- <etccd/>
- <etcdetlcd/>
- <etcdetlcdkey/>
- <etcdetlnm/>
- <etcitemcnts/>
- <etcitemcnts2/>
- <useyn/>
- </item>
- </bscdlstdtl>
- </main>
- <send>
- <clscd/>
- <etccd/>
- <req>
- <savedata/>
- <clscd/>
- <etccd/>
- <etcdetlcd/>
- </req>
- <useyn/>
- </send>
- <init>
- <selectinput>
- <item>
- <etcdetlnm/>
- <etcdetlcd/>
- </item>
- </selectinput>
- <combobscdlst/>
- </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="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetPtcdInputInit();
- fGetSelInputInit();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRAVB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/init/selectinput"/>
- <submission id="TRAVB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/bscdlstmst"/>
- <submission id="TRAVB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/bscdlstdtl"/>
- <submission id="TXAVB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
- <submission id="TXAVB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 콤보 초기화
- */
- function fGetPtcdInputInit(){
- tbGetBscdList( new Array("C06", "C07"), new Array("/root/init/combobscdlst", "/root/init/combobscdlst") );
- }
- /**
- * 분류구분 초기화
- */
- function fGetSelInputInit(){
- model.setValue("root/send/clscd", "00");
- model.setValue("root/send/etccd", "00");
- var ret = submit("TRAVB00101");
- cmb_clscd.select(0);
- bool_pastdata.selected = false;
- return ret;
- }
-
- /**
- * 분류코드 리스트 조회
- */
- function fGetBsCdListMst(){
- // 분류구분에 따라 상세코드 타이틀 변경 및 콤보변경
- if (cmb_clscd.value== "M") {
- bool_pastdata.visible = false;
- caption5.visible = false;
- grd_detlcodelst.colhidden(3) = true;
- grd_detlcodelst.colhidden(4) = false;
- grd_detlcodelst.colhidden(5) = true;
- } else if (cmb_clscd.value== "P") {
- bool_pastdata.visible = true;
- caption5.visible = true;
- bool_pastdata.selected = false;
- grd_detlcodelst.colhidden(3) = true;
- grd_detlcodelst.colhidden(4) = true;
- grd_detlcodelst.colhidden(5) = false;
- } else {
- bool_pastdata.visible = false;
- caption5.visible = false;
- grd_detlcodelst.colhidden(3) = false;
- grd_detlcodelst.colhidden(4) = true;
- grd_detlcodelst.colhidden(5) = true;
- }
-
- model.removeNodeset("/root/main/bscdlstmst/item");
- model.removeNodeset("/root/main/bscdlstdtl/item");
- model.refresh();
- model.setValue("root/send/etccd", "");
- var ret = submit("TRAVB00102");
- return ret;
- }
-
- /**
- * 상세코드 리스트 조회
- */
- function fGetBsCdListDtl(){
- var idx = grd_etclst.row;
- if( idx < 1) return ;
- model.removeNodeset("/root/main/bscdlstdtl/item");
- model.refresh();
- model.setValue("root/send/etccd", model.getValue(grd_etclst.nodeset + "[" + idx + "]/etccd" ) );
- var ret = submit("TRAVB00103");
- return ret;
- }
-
- /**
- * 초기화
- */
- function fBscdmstclear(){
- model.removeNodeset("/root/main/bscdlstmst/item");
- model.removeNodeset("/root/main/bscdlstdtl/item");
- model.refresh();
- }
-
- function fBscddtlclear(){
- model.removeNodeset("/root/main/bscdlstdtl/item");
- model.refresh();
- }
-
- /**
- * 분류코드 저장
- */
- function fSaveBsCdMst(){
- 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") );
- model.setValue("/root/send/req/etcdetlcd", "-" );
- ret = submit("TXAVB00101");
- }
- return ret;
- }
-
- /**
- * 상세코드 저장
- */
- function fSaveDetlCode(){
- var idx = grd_etclst.row;
- if( idx < 1) return ;
-
- if( ! getGridUpdateData(grd_detlcodelst) )
- {
- 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") );
- model.setValue("root/send/req/etccd", model.getValue(grd_etclst.nodeset + "[" + idx + "]/etccd" ) );
- ret = submit("TXAVB00102");
- }
- return ret;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="font-family:굴림체; ">
- <group id="grp_title" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">조직은행 기본코드관리</caption>
- </group>
- <group id="group1" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:5px; 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; "/>
- <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[
- fGetBsCdListMst();
- ]]>
- </script>
- </button>
- <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[
- fGetBsCdListMst();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" 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; "/>
- <datagrid id="grd_etclst" nodeset="/root/main/bscdlstmst/item" caption="코드^분류코드명^적용여부" colsep="^" colwidth="100, 373, 99" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:594px; height:663px; ">
- <col disabled="false" imemode="alpha" ref="etccd" type="input" maxlength="10"/>
- <col imemode="hangul" ref="etcdetlnm" type="input" maxlength="50"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetBsCdListDtl();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:606px; top:55px; width:78px; height:14px; ">상세코드</caption>
- <datagrid id="grd_detlcodelst" nodeset="/root/main/bscdlstdtl/item" caption="코드^상세코드명^내용^구분^참고치^비고^적용여부" colsep="^" colwidth="60, 250, 90, 90, 90, 90, 60" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:601px; top:75px; width:594px; height:663px; ">
- <col ref="etcdetlcd" type="input" maxlength="50"/>
- <col imemode="hangul" ref="etcdetlnm" type="input" maxlength="50"/>
- <col ref="etcitemcnts" type="input" maxlength="50" style="left:360px; top:23px; width:77px; height:23px; "/>
- <col ref="etcitemcnts" type="combo" maxlength="70" style="left:360px; top:23px; width:77px; height:23px; ">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C06">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="etcitemcnts" type="combo" maxlength="70" style="left:360px; top:23px; width:77px; height:23px; ">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C07">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="etcitemcnts2" type="input" maxlength="50"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- if( grd_detlcodelst.colType(grd_detlcodelst.col) == "input" ){
- grd_detlcodelst.editCell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode == 13 ) {
- if( grd_detlcodelst.col == 1 ){
- grd_detlcodelst.col = 2 ;
- grd_detlcodelst.editCell();
- }
- else
- if( grd_detlcodelst.col == 2 ){
- grd_detlcodelst.addRow();
- grd_detlcodelst.col = 1 ;
- grd_detlcodelst.editCell();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_detlcodelst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:601px; y1:70px; x2:1195px; y2:70px; "/>
- <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 = 1;
- grd_etclst.editCell();
- ]]>
- </script>
- </button>
- <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[
- deleteSelectedRows(grd_etclst,true);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:1060px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_detlcodelst,true);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1005px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_detlcodelst.addRow();
- grd_detlcodelst.col = 1;
- grd_detlcodelst.editCell();
- ]]>
- </script>
- </button>
- <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>
- <bool id="bool_pastdata" ref="/root/send/useyn" style="left:914px; top:50px; width:20px; height:20px; "/>
- <caption id="caption5" style="left:934px; top:52px; width:65px; height:15px; ">과거DATA</caption>
- </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[
- fBscddtlclear();
- ]]>
- </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 ){
- fGetBsCdListDtl();
- }
- ]]>
- </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( fSaveBsCdMst() == true ){
- fGetBsCdListMst();
- }
- ]]>
- </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[
- fBscdmstclear();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|