123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAV00100.xrw
- * 설 명 : 처리&물품 관리
- * 설 계 자 : 손승현
- * 작 성 자 : 손승현
- * 작 성 일 : 2010.07.28
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <bdcdlstmst>
- <item>
- <bdlcd/>
- <bdlnm/>
- <useyn/>
- </item>
- </bdcdlstmst>
- <bdcdlstdtl>
- <item>
- <sel/>
- <bandmcd/>
- <banddcd/>
- <banddnm/>
- <gbdcd/>
- <qty/>
- <useyn/>
- </item>
- </bdcdlstdtl>
- </main>
- <send>
- <srchbdlcd/>
- <srchbdlnm/>
- <bdlcd/>
- <bandcd/>
- <useyn/>
- </send>
- <init>
- <combobscdlst>
- </combobscdlst>
- </init>
- <temp>
- <list/>
- </temp>
- </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[
- fGetComboInit();
- fGetBdCdListMst();
- // 그리드 체크박스
- grd_choices.fixedcellcheckbox(0 , 1) = true;
- model.refresh();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRAVB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/bdcdlstmst"/>
- <submission id="TRAVB00402" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/bdcdlstdtl"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 콤보 초기화
- */
- function fGetComboInit(){
- // 콤보내용 불러오기
- tbGetBscdList( new Array("C04","C06"), new Array("/root/init/combobscdlst", "/root/init/combobscdlst") );
-
- // 코드없는값 첫번째 내용 삭제
- model.removeNodeset("/root/init/combobscdlst/C04[" + 1 + "]");
- model.refresh();
- }
-
- /**
- * 묶음코드 리스트 조회
- */
- function fGetBdCdListMst(){
- // 조회 Node Clear
- model.removeNodeset("/root/main/bdcdlstmst/item");
- model.removeNodeset("/root/main/bdcdlstdtl/item");
- model.refresh();
- // 조회값 setting
- model.setValue("root/send/bandcd", "-");
- model.setValue("/root/send/useyn", "Y");
- // 조회 Call
- submit("TRAVB00401");
- }
-
- /**
- * 상세코드 리스트 조회
- */
- function fGetBdCdListDtl(){
- var idx = grd_bdllst.row;
- if( idx < 1) return ;
- // 조회 Node Clear
- model.removeNodeset("/root/main/bdcdlstdtl/item");
- model.refresh();
- // 조회값 setting
- model.setValue("root/send/bdlcd", model.getValue(grd_bdllst.nodeset + "[" + idx + "]/bdlcd" ) );
- model.setValue("root/send/bandcd", "" );
- model.setValue("/root/send/useyn", "Y");
- // 조회 Call
- submit("TRAVB00402");
- }
- /**
- * Open 화면에 값 넘기기
- */
- function fSetData(){
-
- if( checkOpener() ){
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag", "");
-
- var vRet = 0;
- model.removeNodeset("/root/temp/list" );
-
- vRet = fSetTestCd();
- // Open 화면에 Check 값설정
- if( vRet == 1) {
- opener.model.setValue("/root/temp/okflag", "ok");
- } else {
- opener.model.setValue("/root/temp/okflag", "");
- }
- }
- }
- /**
- * 추가검사 및 검사코드선택 시 데이터 setting
- */
- function fSetTestCd(){
- var nodeList = instance1.selectNodes(grd_choices.nodeset + "[sel='Y']");
- if( nodeList.length > 0) {
- var rCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/temp", rCSV);
-
- // Opener Node에 복사
- copyNodeListType("/root/temp/templst", "/root/temp/list", "replace", opener.model, model );
- }
- else return 0;
- return 1;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="590" pageheight="780" guideline="1,1194;1,560;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group4" scroll="auto" style="left:0px; top:741px; width:555px; height:28px; ">
- <button id="button9" class="btn4_letter2" style="left:492px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( checkOpener() ) {
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag", "");
- }
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:433px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetData();
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:555px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">묶음 관리</caption>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:13px; width:555px; height:727px; ">
- <group id="group5" style="left:0px; top:10px; width:555px; height:38px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:554px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_sel" class="btn1_letter2" style="left:490px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBdCdListMst();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:8px; top:9px; width:87px; height:17px; ">조회코드 :</caption>
- <caption id="caption7" class="search_name" style="left:209px; top:9px; width:87px; height:17px; ">조회내용 :</caption>
- <input id="ipt_partcd" ref="/root/send/srchbdlcd" class="input_search" style="left:95px; top:8px; width:107px; height:19px; "/>
- <input id="ipt_partnm" ref="/root/send/srchbdlnm" class="input_search" style="left:300px; top:8px; width:161px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:555px; y2:71px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:100px; height:13px; ">묶음코드 List</caption>
- <datagrid id="grd_bdllst" nodeset="/root/main/bdcdlstmst/item" caption="묶음코드^묶음명" colsep="^" colwidth="100, 404" dataheight="25" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:74px; width:555px; height:216px; ">
- <col ref="bdlcd"/>
- <col ref="bdlnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetBdCdListDtl();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_choices" nodeset="/root/main/bdcdlstdtl/item" caption="선택^밴드^상세코드^상세코드명^구분^수량" colsep="^" colwidth="55, 70, 60, 190, 90, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:314px; width:555px; height:413px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col disabled="true" ref="bandmcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C04">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="banddcd" type="output"/>
- <col ref="banddnm" style="text-align:left; "/>
- <col disabled="true" ref="gbdcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C06">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="qty" style="text-align:right; "/>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:294px; width:100px; height:13px; ">상세코드 List</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:310px; x2:555px; y2:311px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|