123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAVB00200.xrw
- * 설 명 : 조직은행 부위코드관리
- * 설 계 자 : 손승현
- * 작 성 자 : 손승현
- * 작 성 일 : 2010.07.05
- * 수정이력 : 2010.07.05 손승현 신규
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <ptcdlst>
- <item>
- <partcode/>
- <partname/>
- <partaname/>
- <tissuemcd/>
- <tissuedcd/>
- <tissuegbmcd/>
- <tissuegbdcd/>
- <useyn/>
- <lastupdtdt/>
- </item>
- </ptcdlst>
- </main>
- <send>
- <srchpartcode/>
- <srchpartname/>
- <req>
- <savedata/>
- </req>
- </send>
- <init>
- <combobscdlst/>
- </init>
- <hidden>
- <item/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetPtcdInputInit();
- submit("TRAVB00201");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /**
- * 콤보 초기화
- */
- function fGetPtcdInputInit(){
- tbGetBscdList( new Array("C01", "C05"), new Array("/root/init/combobscdlst") );
- }
-
- /**
- * 부위코드 리스트 조회
- */
- function fGetPartCodeList(){
- model.removeNodeset("/root/main/ptcdlst/item");
- model.refresh();
- var ret = submit("TRAVB00201");
- return ret;
- }
- /**
- * 부위코드 저장
- */
- function fSaveExer() {
- if( ! getGridUpdateData(grd_ptcdlst) )
- {
- alert("저장할 내역이 없습니다.");
- return ;
- }
-
- var rsv_cnt = grd_ptcdlst.rows ;
- var sNode = grd_ptcdlst.nodeset+ "[";
- for( var i = 1; i < rsv_cnt ; i++){
- if( model.getValue(sNode + i + "]/partcode" ) == "") {
- alert("부위코드의 코드값이 비어있습니다.");
- return ;
- }
- }
-
- var ret = false;
- if ( messageBox("부위코드정보를","Q002")==6 ) {
- model.setValue("/root/send/req/savedata", grd_ptcdlst.getUpdateData());
- ret = submit("TXAVB00201");
- }
-
- return ret;
- }
- ]]>
- </script>
- <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"/>
- <submission id="TRAVB00001"/>
- <submission id="TRAVB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ptcdlst"/>
- <submission id="TXAVB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" ref="tissuemcd" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPartCodeList();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">부위코드 :</caption>
- <input id="ipt_partcd" ref="/root/send/srchpartcode" class="input_search" style="left:103px; top:8px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:195px; top:9px; width:90px; height:17px; ">부 위 명 :</caption>
- <input id="ipt_partnm" ref="/root/send/srchpartname" class="input_search" style="left:280px; top:8px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <button id="btn_gedadd" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ptcdlst.addRow();
- var addRow = grd_ptcdlst.rows -1 ;
- //grd_ptcdlst.valueMatrix(addRow , grd_ptcdlst.colRef("tissuedcd")) = model.getValue("/root/init/combobscdlst");
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_ptcdlst, true);
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:120px; height:14px; ">부위코드관리</caption>
- <line id="line1" class="line_1" style="x1:3px; y1:73px; x2:1194px; y2:74px; "/>
- <datagrid id="grd_ptcdlst" nodeset="/root/main/ptcdlst/item" caption="부위코드 ^부위명^부위약어^조직코드M^조직^조직구분M^조직구분^사용여부^수정일자" colsep="^" colwidth="80, 300, 150, 70, 100, 70, 100, 70, 150" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:1191px; height:650px; ">
- <col ref="partcode" type="input"/>
- <col imemode="alpha" ref="partname" type="input" maxlength="100"/>
- <col imemode="alpha" ref="partaname" type="input" maxlength="50" _chartype="upper"/>
- <col ref="tissuemcd" visibility="hidden"/>
- <col ref="tissuedcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C01">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col visibility="hidden"/>
- <col ref="tissuegbdcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C05">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var col = grd_ptcdlst.col;
- var row = grd_ptcdlst.row;
- if(col == grd_ptcdlst.colRef("partcode")) {
- var count = -1;
- var chkRow = 0;
- var partCd = grd_ptcdlst.valueMatrix(row,grd_ptcdlst.colRef("partcode"));
- //선행검사 중복체크
- while(chkRow >= 0) {
- chkRow = grd_ptcdlst.findRow(partCd,chkRow+1,grd_ptcdlst.colRef("partcode"),false,true);
- count++;
- }
-
- if(count >= 2) {
- messageBox("부위코드가 ","E006");
- model.resetInstanceNode(grd_ptcdlst.nodeset + "[" + row + "]");
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSaveExer() == true ){
- submit("TRAVB00201");
- }
- ]]>
- </script>
- </button>
- </group>
- <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:200px; height:13px; ">조직은행 부위코드 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|