123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLJ90300_검체취소사유관리.xrw
- * 설 명 : 다중결과
- * 설 계 자 : (주)에이씨케이 - 송요셉
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2008.03.04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <cancellist/>
- </main>
- <send>
- </send>
- <init>
- </init>
- <hidden>
- <cancel>
- <resncd/>
- <resndesc/>
- </cancel>
- <ref>
- <tclsnmlist/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <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/stringHelper.js"/>
- <submission id="TRLLJ00301" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/cancelresn"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fInit(){
- submit("TRLLJ00301");
-
- model.setValue("/root/main/cancellist", model.getValue("/root/hidden/ref/tclsnmlist"));
-
- model.resetInstanceNode("/root/hidden/cancelcombo");
-
- var cntCR = instance1.selectNodes("/root/init/cancelresn").length;
-
- NodeCnt = 1;
-
- for(i=1; i<= cntCR; i++){
-
- if(model.getValue("/root/init/cancelresn["+ i +"]/resncdkind") == "04"){
- 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/cancelresn["+ i +"]/resncd"));
- model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resndesc", model.getValue("/root/init/cancelresn["+ i +"]/resndesc"));
- model.setValue("/root/hidden/cancelcombo["+ NodeCnt +"]/resncdkind", model.getValue("/root/init/cancelresn["+ i +"]/resncdkind"));
-
- NodeCnt++;
- }
- }
- model.refresh();
- }
-
- function fSelect_Click(){
- if(model.getValue("/root/hidden/cancel/resncd") == "" || model.getValue("/root/hidden/cancel/resndesc") == ""){
- messageBox("사유를 " , "C001" ,"");
- return;
- }
- var retval = window.alert( "검체취소시 최종보고 데이터가 삭제될 수 있습니다. 취소 하시겠습니까?", "결과관리", "35" );
- if (retval != "6") return; // yes = 6, no = 7
-
- window.opener.model.setvalue("/root/send/cancelgrd/resncd", model.getvalue("/root/hidden/cancel/resncd"));
- window.opener.model.setvalue("/root/send/cancelgrd/resndesc", model.getvalue("/root/hidden/cancel/resndesc"));
- window.opener.javascript.fcancelClick();
- window.close();
- }
-
- function fSetResnCombo(){
-
- var cntCR = instance1.selectNodes("/root/init/cancelresn").length;
-
- for(i=1; i< cntCR; i++){
- if(cmb_resn.value == model.getValue("/root/init/cancelresn["+i+"]/resncd")){
- model.setValue("/root/hidden/cancel/resncd", model.getValue("/root/init/cancelresn["+i+"]/resncd"));
- model.setValue("/root/hidden/cancel/resndesc", model.getValue("/root/init/cancelresn["+i+"]/resndesc"));
- model.refresh();
- break;
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="450" pageheight="160" guideline="1,1194;2,-2;2,-3;2,-1;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:415px; height:84px; ">
- <caption id="caption31" class="tit_2" style="left:5px; top:10px; width:121px; height:14px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검체취소사유</caption>
- <output id="output4" ref="/root/main/cancellist" class="output_fix" style="left:65px; top:55px; width:335px; height:19px; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:25px; x2:400px; y2:25px; "/>
- <caption id="caption32" class="cell_1" style="left:0px; top:30px; width:60px; height:23px; vertical-align:middle; ">사유</caption>
- <caption id="caption33" class="cell_1" style="left:0px; top:54px; width:60px; height:23px; vertical-align:middle; ">취소항목</caption>
- <select1 id="cmb_resn" ref="/root/hidden/cancel/resncd" class="combo_default" appearance="minimal" style="left:65px; top:30px; width:335px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/cancelcombo">
- <label ref="resndesc"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 사유코드 콤보 선택
- fSetResnCombo();
- ]]>
- </script>
- </select1>
- </group>
- <button id="button3" class="btn4_letter2" visibility="visible" style="left:205px; top:95px; width:56px; height:22px; ">
- <caption>YES</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelect_Click();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:270px; top:95px; width:56px; height:22px; ">
- <caption>NO</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:15px; top:95px; width:175px; height:20px; ">검체취소를 실행하시겠습니까?</caption>
- </xhtml:body>
- </xhtml:html>
|