123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 채혈접수취소등록.xrw
- * 설 명 : 채혈접수취소등록
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2006.11.11
- * 수정이력 : 2007.04.25 조철형 수정
- * 기 타 :
- -->
- <?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>
- <main>
- <cnclrsn/>
- </main>
- <send>
- <data1/>
- <data2/>
- <data3/>
- <rtnid/>
- <rtnid/>
- </send>
- <init>
- <title/>
- <LB0101>
- <cd/>
- <nm/>
- <etc01/>
- </LB0101>
- </init>
- <hidden>
- <cancel>
- <bcno/>
- <title/>
- </cancel>
- <cancelcombo>
- <resncd/>
- <resndesc/>
- <resncdkind/>
- </cancelcombo>
- <cancelinfo>
- <resndesc/>
- <resncd/>
- <resncdkind/>
- </cancelinfo>
- <openerdata>
- <data1/>
- <data2/>
- </openerdata>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <submission id="TXLLC90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TXLLC90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fBaseInfoRef("0101|");
- // 채혈취소// 접수취소 제목 설정
- var resn = model.getValue("/root/hidden/openerdata/data2");
- model.setvalue("/root/hidden/cancelinfo/resncdkind" , resn);
- if(resn == "02"){
- model.makeValue("/root/init/title", "접수취소등록");
- cap_cmt.visible = true;
- }else if(resn == "01"){
- model.makeValue("/root/init/title", "채혈취소등록");
- cap_cmt.visible = false;
- }
- cap_cancel.refresh();
-
- //취소사유별로 콤보내용변경..
- fSetCancelCombo(resn);
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- // 채혈/접수 취소등록
- function fSetBcollAcptCncl(){
- model.setvalue("/root/send/data1",model.getvalue("/root/hidden/openerdata/data1"));
- model.setvalue("/root/send/data2",model.getvalue("/root/hidden/openerdata/data2"));
- model.copyNode("/root/send/data3" , "/root/hidden/cancelinfo");
- model.setvalue("/root/send/rtnid", "-");
-
- var strCd = model.getValue("/root/hidden/cancelinfo/resncd");
- //01000 채혈 취소사유, 02000 접수취소 사유, 03000 채혈접수취소 사유
- if(strCd.substring(2, 6) == "000" || strCd.substring(2, 6) == ""){
- messageBox("취소구분을 선택하세요", "E");
- return;
- }
-
- if(model.getvalue("/root/hidden/openerdata/data2") == "01"){
- submit("TXLLC90401");
- }
- else if(model.getvalue("/root/hidden/openerdata/data2") == "02"){
- submit("TXLLC90402");
- window.opener.javascript.fGetSpcListref("C");
- }
-
- window.close();
- }
-
-
- // 취소 콤보 변경
- function fSetCancelCombo(value){
- //alert("01");
- model.resetInstanceNode("/root/hidden/cancelcombo");
-
- //var Cnt = getNodesetCnt("/root/init/cancelresn");
- var vInstance = document.models(0).instances(0);
- var cntCR = vInstance.selectNodes("/root/init/LB0101").length;
- //alert("cnt= " + cntCR);
- NodeCnt = 1;
-
- for(i=1; i<= cntCR; i++){
- // alert("kind= " + model.getValue("/root/init/cancelresn["+ i +"]/resncdkind") + " value= " + value);
- if(model.getValue("/root/init/LB0101["+ i +"]/etc01") == value){
-
- model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd");
- model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc");
- model.makeNode("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind");
-
- model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncd", model.getValue("/root/init/LB0101["+ i +"]/cd"));
- model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc", model.getValue("/root/init/LB0101["+ i +"]/nm"));
- model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind", model.getValue("/root/init/LB0101["+ i +"]/etc01"));
-
- NodeCnt++;
- }
-
- }
- model.refresh();
- }
-
- // 취소 콤보 선택
- function fSetCancelResn(){
- model.setvalue("/root/hidden/cancelinfo/resndesc" , cmb_cancelgbn.label);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="340" pageheight="200" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:311px; height:155px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:310px; y2:26px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:55px; width:100px; height:96px; ">취소사유</caption>
- <textarea id="textarea1" ref="/root/hidden/cancelinfo/resndesc" style="left:103px; top:56px; width:207px; height:92px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:150px; x2:310px; y2:150px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:310px; y2:53px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; ">취소구분</caption>
- <caption id="cap_cancel" ref="/root/init/title" class="tit_2" style="left:5px; top:11px; width:250px; height:14px; "/>
- <select1 id="cmb_cancelgbn" ref="/root/hidden/cancelinfo/resncd" class="combo_default" appearance="minimal" style="left:103px; top:32px; width:207px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/cancelcombo">
- <label ref="resndesc"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fSetcnclrsn();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fSetCancelResn();
-
- ]]>
- </script>
- </select1>
- <caption id="cap_cmt" visibility="hidden" style="left:130px; top:8px; width:179px; height:20px; font-size:9pt; color:#0033cc; ">※ 선택된 한 검체만 취소됩니다.</caption>
- </group>
- <group id="group2" style="left:0px; top:155px; width:310px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:195px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 채혈취소등록
- fSetBcollAcptCncl();
-
- ]]>
- </script>
- </button>
- <button id="btn_can" class="btn4_letter2" style="left:254px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:310px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|