123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750 |
- <?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>방사선조사</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <acptlist>
- <item>
- <graftno/>
- <pid/>
- <hngnm/>
- <abo/>
- <partseq/>
- <radialynd/>
- <partcode/>
- <stated/>
- </item>
- </acptlist>
- <batchlist>
- <item>
- <sel/>
- <graftno/>
- <partseq/>
- <batchno/>
- <radialynd/>
- <partcode/>
- <sizewcnt/>
- <ryn/>
- </item>
- </batchlist>
- <batchaddlist>
- <item>
- <graftno/>
- <partseq/>
- <batchno/>
- <radialynd/>
- <partcode/>
- <sizewcnt/>
- <bigo/>
- <rstatem/>
- <rstated/>
- <ryn/>
- <radialvlmd/>
- </item>
- <item1>
- <rdd/>
- <rseq/>
- <rpathm/>
- <rpathd/>
- <rplacem/>
- <rplaced/>
- <dryiceb/>
- <dryicea/>
- </item1>
- </batchaddlist>
- </main>
- <send>
- <srch>
- <srchsearch/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchhngnm/>
- </srch>
- <req>
- <savedata/>
- <rdd/>
- <rseq/>
- <rpathm/>
- <rpathd/>
- <rplacem/>
- <rplaced/>
- <dryiceb/>
- <dryicea/>
- <sdd/>
- <stm/>
- <edd/>
- <etm/>
- </req>
- <graftno/>
- <partseq/>
- <rdd/>
- </send>
- <init>
- <combobscdlst/>
- <comboptcdlst>
- <item>
- <partcode/>
- <partname/>
- </item>
- </comboptcdlst>
- </init>
- <hidden>
- <item/>
- </hidden>
- <temp>
- <templst/>
- </temp>
- <rexreptinfo>
- <batchlistinfo>
- <item/>
- <rdd/>
- <rpath/>
- <rplace/>
- </batchlistinfo>
- </rexreptinfo>
- </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/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetComboInit();
- fGetScreenInit();
- fGetAcptList();
- fGetBatchAddList();
- // 그리드 체크박스
- grd_batchlist.fixedcellcheckbox(0 , 1) = true;
- model.refresh();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRAVB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
- <submission id="TRAVT00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/acptlist"/>
- <submission id="TRAVT00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/batchlist"/>
- <submission id="TRAVT00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/batchaddlist"/>
- <submission id="TXAVT00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAVT00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 콤보 초기화
- */
- function fGetComboInit() {
- tbGetBscdList( new Array("C08", "C09", "C13", "C20", "C21", "C22", "C23"),
- new Array("/root/init/combobscdlst", // C08 상태
- "/root/init/combobscdlst", // C09 유무구분
- "/root/init/combobscdlst", // C13 조회조건
- "/root/init/combobscdlst", // C20 방사선량
- "/root/init/combobscdlst", // C21 이송방법 및 온도
- "/root/init/combobscdlst", // C22 방사선조사 장소
- "/root/init/combobscdlst") ); // C22 방사선조사 상태
- // 코드없는값 첫번째 내용 삭제
- model.removeNodeset("/root/init/combobscdlst/C08[" + 1 + "]");
- model.removeNodeset("/root/init/combobscdlst/C09[" + 1 + "]");
- model.removeNodeset("/root/init/combobscdlst/C13[" + 1 + "]");
- model.removeNodeset("/root/init/combobscdlst/C21[" + 1 + "]");
- model.removeNodeset("/root/init/combobscdlst/C22[" + 1 + "]");
- model.removeNodeset("/root/init/combobscdlst/C23[" + 1 + "]");
- model.refresh();
- // 콤보선택
- cmb_srchsearch.select(3);
- // 부위콤보 List
- model.removeNodeset("/root/init/comboptcdlst/item");
- model.refresh();
- submit("TRAVB00002");
- }
- /**
- * 화면 기본 초기화
- */
- function fGetScreenInit() {
- model.removeNodeset("/root/main/acptlist/item");
- model.removeNodeset("/root/main/batchlist/item");
- model.removeNodeset("/root/main/batchaddlist/item");
- var curDD = getCurrentDate();
- model.setValue("/root/send/req/rdd", curDD);
- model.setValue("/root/send/req/sdd", curDD);
- model.setValue("/root/send/req/edd", curDD);
- cmb_rpath.select(0);
- cmb_rplace.select(1);
-
- model.refresh();
- }
-
- /**
- * 기증정보 List 조회
- */
- function fGetAcptList() {
- model.removeNodeset("/root/main/acptlist/item");
- model.refresh();
-
- // 조회조건이 전체 인경우는 등록번호를 지정해야함.
- if (cmb_srchsearch.value == 1) {
- if (model.getValue("/root/send/srch/srchpid") == "") {
- messageBox("조회조건이 전체인경우는 등록번호를 " , "C001");
- return;
- }
- }
-
- var ret = submit("TRAVT00201");
- return ret;
- }
-
- /**
- * 배치정보 List 조회
- */
- function fGetBatchList() {
- model.removeNodeset("/root/main/batchlist/item");
- model.refresh();
- var idx = grd_acptlist.row;
- model.setValue("/root/send/graftno", model.getValue("/root/main/acptlist/item[ " + idx + "]/graftno") );
- model.setValue("/root/send/partseq", model.getValue("/root/main/acptlist/item[ " + idx + "]/partseq") );
- submit("TRAVT00202");
- }
-
- /**
- * 방사선조사정보 List 조회
- */
- function fGetBatchAddList() {
- model.removeNodeset("/root/main/batchaddlist/item");
- model.removeNodeset("/root/main/batchaddlist/item1");
- model.refresh();
-
- submit("TRAVT00203");
-
- if ( instance1.selectNodes("/root/main/batchaddlist/item1").length > 0 ) {
- model.setValue("/root/send/req/rpathm", model.getValue("/root/main/batchaddlist/item1/rpathm") );
- model.setValue("/root/send/req/rpathd", model.getValue("/root/main/batchaddlist/item1/rpathd") );
- model.setValue("/root/send/req/rplacem", model.getValue("/root/main/batchaddlist/item1/rplacem") );
- model.setValue("/root/send/req/rplaced", model.getValue("/root/main/batchaddlist/item1/rplaced") );
- model.setValue("/root/send/req/dryiceb", model.getValue("/root/main/batchaddlist/item1/dryiceb") );
- model.setValue("/root/send/req/dryicea", model.getValue("/root/main/batchaddlist/item1/dryicea") );
- model.refresh();
- }
- }
-
- /**
- * 방사선 조사 저장
- */
- function fSetBatchAdd(grd_tmp) {
-
- if (model.getValue("/root/send/req/dryiceb") == "") {
- if ( messageBox("방사선 조사전 Dry Ice량이 없습니다. ","Q003") != 6 ) {
- return false;
- }
- }
- if (! getGridUpdateData(grd_tmp) ) {
- alert("저장할 내역이 없습니다.");
- return ;
- }
-
- var ret = false;
- if ( messageBox("방사선 조사 정보를", "Q002") == 6 ) {
- model.setValue("/root/send/req/savedata", grd_tmp.getUpdateData() );
- ret = submit("TXAVT00201");
- }
-
- return ret;
- }
-
- function fSetProcBatchUpdate(grd_tmp) {
- // 변경해야할 자료 "u"로 변경
- var vgraftno = "";
- var vpartseq = "";
- var Check = false;
-
- if (model.getValue("/root/send/req/dryicea") == "") {
- if ( messageBox("방사선 조사후 Dry Ice량이 없습니다. ","Q003") != 6 ) {
- return false;
- }
- }
-
- model.removenode("/root/temp/templst/list");
- model.refresh();
- for (var i=1;i<=grd_tmp.rows;i++) {
- // 방사선 조사 완료되면 패스
- if (model.getValue(grd_tmp.nodeset+"[" + i + "]/ryn") == "Y")
- continue;
-
- vgraftno = model.getValue(grd_tmp.nodeset+"[" + i + "]/graftno");
- vpartseq = model.getValue(grd_tmp.nodeset+"[" + i + "]/partseq")
-
- if (vgraftno == "" )
- continue;
-
- // 추가한거 중에 비교건과 동일건이 있는지 찾음.
- Check = false;
- var idx = instance1.selectNodes("/root/temp/templst/list").length;
- if (idx > 0) {
- for (j=1;j<=idx;j++) {
- if (vgraftno == model.getValue("/root/temp/templst/list[" + j + "]/graftno") && vpartseq == model.getValue("/root/temp/templst/list[" + j + "]/partseq") ) {
- Check = true;
- }
- }
- }
-
- // 동일건이 없는 경우 추가함
- if (Check == false) {
- idx = idx + 1;
- model.makeNode("/root/temp/templst/list[" + idx + "]/graftno");
- model.makeValue("/root/temp/templst/list[" + idx + "]/graftno", vgraftno);
- model.makeNode("/root/temp/templst/list[" + idx + "]/partseq");
- model.makeValue("/root/temp/templst/list[" + idx + "]/partseq", vpartseq);
- model.makeNode("/root/temp/templst/list[" + idx + "]/bandcd");
- model.makeValue("/root/temp/templst/list[" + idx + "]/bandcd", "C04");
- model.makeNode("/root/temp/templst/list[" + idx + "]/bandmcd");
- model.makeValue("/root/temp/templst/list[" + idx + "]/bandmcd", "P01");
- model.makeNode("/root/temp/templst/list[" + idx + "]/banddcd");
- model.makeValue("/root/temp/templst/list[" + idx + "]/banddcd", "99");
- model.makeNode("/root/temp/templst/list[" + idx + "]/procseq");
- model.makeNode("/root/temp/templst/list[" + idx + "]/gbmcd");
- model.makeValue("/root/temp/templst/list[" + idx + "]/gbmcd", "C06");
- model.makeNode("/root/temp/templst/list[" + idx + "]/gbdcd");
- model.makeValue("/root/temp/templst/list[" + idx + "]/gbdcd", "P");
- }
- }
-
- // 저장할건이 없으면 취소
- if ( instance1.selectNodes("/root/temp/templst/list").length <= 0 ) {
- alert("방사선조사를한 모든내용이 방사선조사완료상태여서 처리내용을 등록할수가 없습니다.");
- return false;
- }
-
- var ret = false;
- if ( messageBox("조사기록시간 정보를", "Q002") == 6 ) {
- var nodeList = instance1.selectNodes("/root/temp/templst/list");
- model.setValue("/root/send/req/savedata", getNodeListCSV(nodeList) );
- ret = submit("TXAVT00202");
- }
- return ret;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:200px; height:14px; ">조직은행 방사선조사</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:2px; top:3px; width:56px; height:17px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //Reset
- model.resetInstanceNode("/root/rexreptinfo/batchlistinfo");
-
- //조회됐는지 확인.
- // if(model.getValue("/root/send/req/rseq") != "" ){
- if( grd_batchaddlist.rows >1 )
- {
- if(model.getValue("/root/send/req/rseq") != "" )
- model.setValue("/root/rexreptinfo/batchlistinfo/rdd", ipt_rdd.label + " / " + model.getValue("/root/send/req/rseq") );
- else
- model.setValue("/root/rexreptinfo/batchlistinfo/rdd", ipt_rdd.label );
-
- model.setValue("/root/rexreptinfo/batchlistinfo/rpath", cmb_rpath.label );
- model.setValue("/root/rexreptinfo/batchlistinfo/rplace", cmb_rplace.label );
- var idx, batchno;
- for( idx = 1; idx < grd_batchaddlist.rows; idx++ )
- {
- model.makeNode("/root/rexreptinfo/batchlistinfo/item["+ idx + "]");
- model.copyNode("/root/rexreptinfo/batchlistinfo/item["+ idx + "]" , "/root/main/batchaddlist/item["+ idx + "]");
-
- batchno = model.getValue("/root/rexreptinfo/batchlistinfo/item["+ idx + "]/batchno");
-
- if( 1 == batchno.length )
- model.setValue("/root/rexreptinfo/batchlistinfo/item["+ idx + "]/batchno", "00" + model.getValue("/root/rexreptinfo/batchlistinfo/item["+ idx + "]/batchno"));
- else if( 2 == batchno.length )
- model.setValue("/root/rexreptinfo/batchlistinfo/item["+ idx + "]/batchno", "0" + model.getValue("/root/rexreptinfo/batchlistinfo/item["+ idx + "]/batchno"));
-
- model.setValue("/root/rexreptinfo/batchlistinfo/item["+ idx + "]/rstated", grd_batchaddlist.labelMatrix( idx, grd_batchaddlist.colRef("rstated") ) );
- }
- model.refresh();
-
- exeReportPreview("RPAVT00107", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- } else {
- alert("방사선LIST 조회를 하지않았습니다. 방사선 조회 후 출력하세요.");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter8" disabled="true" style="left:1063px; top:3px; width:128px; height:22px; ">
- <caption>방사선 조사 등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fSetBatchAdd(grd_batchaddlist) == true) {
- fGetBatchAddList();
- }
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:993px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetScreenInit();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_main" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_srch" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line16" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <button id="btn_select" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAcptList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchsearch" ref="/root/send/srch/srchsearch" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C13">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var curDD = getCurrentDate();
- var idate = new Date();
-
- if (cmb_srchsearch.value == 4 || cmb_srchsearch.value == 5) {
- ipt_srchfromdd.disabled = false;
- ipt_srchtodd.disabled = false;
- } else {
- ipt_srchfromdd.disabled = true;
- ipt_srchtodd.disabled = true;
- }
-
- // 오늘이 선택되면 등록번호 와 성명을 지움
- if (cmb_srchsearch.value == 2) {
- model.setValue("/root/send/srch/srchpid", "" ); // 등록번호
- model.setValue("/root/send/srch/srchhngnm" , "" ); // 성명
- }
- if (cmb_srchsearch.value == 3) {
- // 일수만큼 차감하고 문자형으로 변형
- var chacng_date = idate.getAddDate(-7, "D").getDateFormat();
- model.setValue("/root/send/srch/srchfromdd" , chacng_date ); // 조회시작일자
- model.setValue("/root/send/srch/srchtodd" , curDD ); // 조회종료일자
- } else {
- model.setValue("/root/send/srch/srchfromdd" , curDD ); // 조회시작일자
- model.setValue("/root/send/srch/srchtodd" , curDD ); // 조회종료일자
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdd" class="input_s_essential" inputtype="date" style="left:288px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/srch/srchtodd" class="input_s_essential" inputtype="date" style="left:405px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_srchpid" ref="/root/send/srch/srchpid" class="input_search" style="left:610px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_srchpid.value == "") {
- opt_srchhngnm.value = "";
- }
- ]]>
- </script>
- </input>
- <output id="opt_srchhngnm" ref="/root/send/srch/srchhngnm" class="output_search" style="left:714px; top:8px; width:100px; height:19px; "/>
- <button id="btn_search1" class="icon_search" style="left:694px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택화면 Call
- modal("SPAVT00100");
-
- // 정상인 경우 가져온값 setting
- if (model.getValue("/root/temp/okflag") == "ok") {
- // 조회조건에 값넣기
- model.setValue("/root/send/srch/srchpid", model.getValue("/root/temp/templst/item/pid" ) );
- model.setValue("/root/send/srch/srchhngnm", model.getValue("/root/temp/templst/item/hngnm" ) );
-
- // 임시 Node 삭제
- model.removenode("/root/temp/okflag");
- model.removenode("/root/temp/templst/item");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="lbl_srchpid" class="search_name" style="left:521px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="lbl_srchsearch" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <caption id="lbl_srchdd" class="search_name" style="left:225px; top:9px; width:60px; height:17px; ">기간 :</caption>
- <caption id="lbl_~" class="search_no_b" style="left:391px; top:10px; width:12px; height:17px; ">~</caption>
- </group>
- <line id="line30" class="line_1" style="x1:545px; y1:332px; x2:1194px; y2:332px; "/>
- <caption id="caption10" class="tit_2" style="left:550px; top:317px; width:127px; height:13px; ">방사선 List</caption>
- <datagrid id="grd_batchaddlist" nodeset="/root/main/batchaddlist/item" caption="Graft No.^Seq^No.^방사선^방사선 조사량^부위^Size^비고^rstatem^상태^ryn" colsep="^" colwidth="80, 40, 40, 45, 45, 130, 150, 25, 60, 25, 100" dataheight="23" defaultrows="1" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="byrestriccol" rowheader="update" rowheight="23" rowsep="|" style="left:546px; top:345px; width:649px; height:308px; text-align:center; ">
- <col ref="graftno" type="output"/>
- <col ref="partseq" type="output"/>
- <col ref="batchno" type="output"/>
- <col disabled="true" ref="radialynd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C09">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="radialvlmd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C20">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="partcode" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/comboptcdlst/item">
- <label ref="partname"/>
- <value ref="partcode"/>
- </itemset>
- </choices>
- </col>
- <col ref="sizewcnt" style="text-align:left; "/>
- <col ref="bigo" type="input" style="text-align:left; "/>
- <col ref="rstatem" visibility="hidden"/>
- <col ref="rstated" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C23">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="ryn" visibility="hidden"/>
- </datagrid>
- <line id="line13" class="line_1" style="x1:0px; y1:70px; x2:540px; y2:70px; "/>
- <caption id="caption77" class="tit_2" style="left:5px; top:55px; width:72px; height:13px; ">기증정보</caption>
- <line id="line1" class="line_1" style="x1:545px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption9" class="tit_2" style="left:550px; top:55px; width:120px; height:13px; ">Batch List</caption>
- <datagrid id="grd_acptlist" nodeset="/root/main/acptlist/item" caption="Graft No.^등록번호^성명^혈액형^partseq^부위^상태" colsep="^" colwidth="80, 70, 65, 70, 25, 180, 60" dataheight="23" defaultrows="1" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:540px; height:665px; text-align:center; ">
- <col ref="graftno"/>
- <col ref="pid"/>
- <col ref="hngnm" type="output"/>
- <col ref="abo" type="output"/>
- <col ref="partseq" visibility="hidden"/>
- <col disabled="true" ref="partcode" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/comboptcdlst/item">
- <label ref="partname"/>
- <value ref="partcode"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="stated" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C08">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetBatchList();
- ]]>
- </script>
- </datagrid>
- <button id="btn_seladd" class="btn2_letter4" style="left:1057px; top:310px; width:64px; height:19px; ">
- <caption>선택추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var maxrow = grd_batchaddlist.rows;
- var srcGraftno = "";
- var srcPartseq = "";
- var srcBatchno = "";
- var srcRadialynd = "";
- var srcPartcode = "";
- var srcSizewcnt = "";
- var srcRyn = "";
-
- for (var i=1; i <= grd_batchlist.rows; i++)
- {
- if (model.getValue(grd_batchlist.nodeset + "[" + i + "]/sel") != "Y") {
- continue;
- }
-
- srcGraftno = model.getValue(grd_batchlist.nodeset + "[" + i + "]/graftno");
- srcPartseq = model.getValue(grd_batchlist.nodeset + "[" + i + "]/partseq");
- srcBatchno = model.getValue(grd_batchlist.nodeset + "[" + i + "]/batchno");
- srcRadialynd = model.getValue(grd_batchlist.nodeset + "[" + i + "]/radialynd ");
- srcPartcode = model.getValue(grd_batchlist.nodeset + "[" + i + "]/partcode");
- srcSizewcnt = model.getValue(grd_batchlist.nodeset + "[" + i + "]/sizewcnt");
- srcRyn = model.getValue(grd_batchlist.nodeset + "[" + i + "]/ryn");
-
- if (instance1.selectNodes(grd_batchaddlist.nodeset + "[graftno='" + srcGraftno + "']").length == 0 ||
- instance1.selectNodes(grd_batchaddlist.nodeset + "[partseq='" + srcPartseq + "']").length == 0 ||
- instance1.selectNodes(grd_batchaddlist.nodeset + "[batchno='" + srcBatchno + "']").length == 0 ) {
-
- // 키값이 하나라도 틀린경우 추가
- grd_batchaddlist.addRow();
- model.makeValue(grd_batchaddlist.nodeset + "[" + maxrow + "]/graftno", srcGraftno );
- model.makeValue(grd_batchaddlist.nodeset + "[" + maxrow + "]/partseq", srcPartseq );
- model.makeValue(grd_batchaddlist.nodeset + "[" + maxrow + "]/batchno", srcBatchno );
- model.makeValue(grd_batchaddlist.nodeset + "[" + maxrow + "]/radialynd", srcRadialynd );
- model.makeValue(grd_batchaddlist.nodeset + "[" + maxrow + "]/partcode", srcPartcode );
- model.makeValue(grd_batchaddlist.nodeset + "[" + maxrow + "]/sizewcnt", srcSizewcnt );
- model.makeValue(grd_batchaddlist.nodeset + "[" + maxrow + "]/ryn", srcRyn );
- grd_batchaddlist.rowStatus(maxrow) = 1;
-
- maxrow++;
- }
-
- }
- ]]>
- </script>
- </button>
- <button id="btn_seldel" class="btn2_letter4" style="left:1124px; top:310px; width:64px; height:19px; ">
- <caption>선택삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selRow = grd_batchaddlist.row;
-
- if (model.getValue(grd_batchaddlist.nodeset + "[" + selRow + "]/ryn") == "Y") {
- alert("방사선 조사가 확정된자료는 삭제 할수 없습니다.");
- } else {
- deleteSelectedRows(grd_batchaddlist, true);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_batchlist" nodeset="/root/main/batchlist/item" caption="선택^Graft No.^Seq^No.^방사선^부위^Size^ryn" colsep="^" colwidth="50, 80, 40, 40, 45, 210, 140, 25" dataheight="23" defaultrows="1" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:545px; top:75px; width:649px; height:230px; text-align:center; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="graftno" type="output"/>
- <col ref="partseq" type="output"/>
- <col ref="batchno" type="output"/>
- <col disabled="true" ref="radialynd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C09">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="partcode" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/comboptcdlst/item">
- <label ref="partname"/>
- <value ref="partcode"/>
- </itemset>
- </choices>
- </col>
- <col ref="sizewcnt" style="text-align:left; "/>
- <col ref="ryn" visibility="hidden"/>
- </datagrid>
- <caption id="lbl_partsize" class="cell_1" style="left:545px; top:720px; width:105px; height:20px; text-align:center; vertical-align:middle; ">방사선 조사 시간</caption>
- <caption id="lbl_partseq" class="cell_1" style="left:545px; top:654px; width:105px; height:20px; text-align:center; vertical-align:middle; ">방사선 조사 날짜</caption>
- <caption id="lbl_course" class="cell_1" style="left:545px; top:698px; width:105px; height:20px; text-align:center; vertical-align:middle; ">방사선조사 장소</caption>
- <caption id="lbl_partcode" class="cell_1" style="left:545px; top:676px; width:105px; height:20px; text-align:center; vertical-align:middle; ">이송방법 및 온도</caption>
- <input id="ipt_rdd" ref="/root/send/req/rdd" class="input_essential" inputtype="date" style="left:655px; top:654px; width:100px; height:19px; "/>
- <input id="ipt_rseq" ref="/root/send/req/rseq" class="input_default" maxlength="3" format="hh:nn:ss" style="left:760px; top:654px; width:30px; height:19px; "/>
- <button id="btn_srchbatch" class="btn5_letter6" visibility="visible" style="left:796px; top:654px; width:86px; height:19px; ">
- <caption>방사선 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBatchAddList();
- if (model.getValue("/root/send/req/rseq") == "" ) {
- btn_save.disabled = true;
- } else {
- btn_save.disabled = false;
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_rpath" ref="/root/send/req/rpathd" class="combo_search" appearance="minimal" style="left:655px; top:676px; width:380px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C21">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/req/rpathm", "C21");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_rplace" ref="/root/send/req/rplaced" class="combo_search" appearance="minimal" style="left:655px; top:698px; width:380px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combobscdlst/C22">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/req/rplacem", "C22");
- ]]>
- </script>
- </select1>
- <input id="ipt_dryiceb" ref="/root/send/req/dryiceb" class="input_default" maxlength="3" style="left:1125px; top:676px; width:40px; height:19px; "/>
- <input id="ipt_dryicea" ref="/root/send/req/dryicea" class="input_default" maxlength="3" style="left:1125px; top:698px; width:40px; height:19px; "/>
- <input id="ipt_sdd" ref="/root/send/req/sdd" class="input_default" inputtype="date" style="left:655px; top:720px; width:100px; height:19px; "/>
- <input id="ipt_stm" ref="/root/send/req/stm" class="input_default" maxlength="6" format="hh:nn:ss" style="left:757px; top:720px; width:71px; height:19px; "/>
- <caption id="caption1" class="search_no_b" style="left:830px; top:721px; width:12px; height:17px; ">~</caption>
- <input id="ipt_edd" ref="/root/send/req/edd" class="input_default" inputtype="date" style="left:845px; top:720px; width:100px; height:19px; "/>
- <input id="ipt_etm" ref="/root/send/req/etm" class="input_default" maxlength="6" format="hh:nn:ss" style="left:947px; top:720px; width:71px; height:19px; "/>
- <button id="btn_procsave" class="btn5_letter9" visibility="visible" style="left:1025px; top:720px; width:119px; height:19px; ">
- <caption>조사기록시간 입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var Check = false;
-
- if (model.getValue("/root/send/req/stm") == "") {
- alert("방사선조사 시작시간을 입력하세요");
- Check = true;
- model.setFocus("ipt_stm");
- }
-
- if (model.getValue("/root/send/req/etm") == "" && Check == false) {
- alert("방사선조사 완료시간을 입력하세요");
- Check = true;
- model.setFocus("ipt_etm");
- }
- if (getNodesetCount("/root/main/batchaddlist/item") <= 0 && Check == false) {
- Check = true;
- alert("저장할 자료가 없습니다.");
- }
-
- if ( Check == false) {
- if (fSetProcBatchUpdate(grd_batchaddlist) == true) {
- fGetBatchAddList();
- }
- }
- ]]>
- </script>
- </button>
- <caption id="lbl_dryice" class="cell_1" style="left:1040px; top:676px; width:55px; height:41px; text-align:center; vertical-align:middle; ">Dry Ice</caption>
- <caption id="lbl_dryiceb" class="cell_1" style="left:1097px; top:676px; width:25px; height:20px; text-align:center; vertical-align:middle; ">전</caption>
- <caption id="lbl_dryicea" class="cell_1" style="left:1097px; top:698px; width:25px; height:20px; text-align:center; vertical-align:middle; ">후</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|