123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <reqitem>
- <bcno/>
- <reqbcno/>
- <tclsnm/>
- <reqkind/>
- </reqitem>
- <patinfo>
- <pathngnm/>
- <patsex/>
- <patage/>
- <roomcd/>
- <orddeptnm/>
- <orddrnm/>
- </patinfo>
- </main>
- <send>
- <req>
- <bcno/>
- <tclscd/>
- <spccd/>
- <testcd/>
- <rsltseq/>
- <reqkind/>
- <reqbcno/>
- <reqspcacptdt/>
- </req>
- <searchbcno/>
- <searchpid/>
- <searchspccd/>
- <acptset>
- <bcno/>
- <userid/>
- <instcd/>
- </acptset>
- </send>
- <temp>
- <tbtestrsltinfo>
- <spcacptdt/>
- <pid/>
- <pathngnm/>
- <bcno/>
- <rsltrgstdt/>
- <reptrslt/>
- <spcnm/>
- <reqdt/>
- <reqkind/>
- <tclscd/>
- <testcd/>
- <rsltseq/>
- <spccd/>
- <tclsnm/>
- <orddrnm/>
- <orddeptnm/>
- <roomcd/>
- <patsex/>
- <patage/>
- </tbtestrsltinfo>
- <reqbcnoinfo>
- <bcno/>
- <tclscd/>
- </reqbcnoinfo>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //model.setValue("/root/main/reqitem/testcd", model.getValue("/root/temp/tbtestrsltinfo/testcd"));
- model.setValue("/root/main/reqitem/bcno", model.getValue("/root/temp/tbtestrsltinfo/bcno"));
- //model.setValue("/root/main/reqitem/tclsnm", model.getValue("/root/temp/tbtestrsltinfo/tclsnm"));
-
- model.setValue("/root/main/patinfo/pathngnm", model.getValue("/root/temp/tbtestrsltinfo/pathngnm"));
- model.setValue("/root/main/patinfo/patsex", model.getValue("/root/temp/tbtestrsltinfo/sex"));
- model.setValue("/root/main/patinfo/patage", model.getValue("/root/temp/tbtestrsltinfo/patage"));
- model.setValue("/root/main/patinfo/roomcd", model.getValue("/root/temp/tbtestrsltinfo/roomcd"));
- model.setValue("/root/main/patinfo/orddeptnm", model.getValue("/root/temp/tbtestrsltinfo/orddeptnm"));
- model.setValue("/root/main/patinfo/orddrnm", model.getValue("/root/temp/tbtestrsltinfo/orddrnm"));
-
-
- model.refresh();
- ]]>
- </script>
- <submission id="TXLMP90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/temp/item"/>
- <submission id="TRLMP90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/reqbcnoinfo"/>
- <submission id="TXLII00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acptset" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fExeSave() {
-
-
- if(model.getValue("/root/main/reqitem/reqkind") == ""){
-
- alert("외부의뢰 항목이 입력되지 않았습니다.");
- return;
-
- }else{
-
- model.setValue("/root/send/req/bcno", model.getValue("/root/temp/tbtestrsltinfo/bcno"));
- model.setValue("/root/send/req/reqbcno", model.getValue("/root/main/reqitem/reqbcno"));
- model.setValue("/root/send/req/spccd", model.getValue("/root/temp/tbtestrsltinfo/spccd"));
- model.setValue("/root/send/req/tclscd", model.getValue("/root/temp/tbtestrsltinfo/tclscd"));
- model.setValue("/root/send/req/testcd", model.getValue("/root/main/reqitem/reqkind"));
- model.setValue("/root/send/req/rsltseq", "1");
- model.setValue("/root/send/req/reqkind", model.getValue("/root/main/reqitem/reqkind"));
- model.setValue("/root/send/req/reqspcacptdt", model.getValue("/root/temp/reqbcnoinfo/spcacptdt"));
-
- submit("TXLMP90101");
- }
- }
-
- function fKeyEvent(){
-
- if(event.keyCode == "13"){
-
- model.setvalue("/root/main/reqitem/reqbcno", iptSearch.currentText);
- model.refresh();
- fOnclickBtnRef();
- iptSearch.selBegin = 0;
- iptSearch.selEnd = iptSearch.currentText.length;
- model.setFocus("iptSearch");
-
- }
- }
-
- function fOnclickBtnRef(){
-
-
- model.setvalue("/root/send/acptset/instcd", getUserInfo("dutplceinstcd"));
- model.setvalue("/root/send/acptset/bcno", model.getValue("/root/main/reqitem/reqbcno"));
- model.setvalue("/root/send/acptset/userid", getUserInfo("userid"));
-
- //alert(model.getvalue("/root/send/acptset/instcd"));
- //alert(model.getvalue("/root/send/acptset/bcno"));
- //alert(model.getvalue("/root/send/acptset/userid"));
- submit("TXLII00107");
-
- model.setvalue("/root/send/searchbcno", model.getValue("/root/main/reqitem/reqbcno"));
- model.setvalue("/root/send/searchpid", model.getValue("/root/temp/tbtestrsltinfo/pid"));
- model.setvalue("/root/send/searchspccd", model.getValue("/root/temp/tbtestrsltinfo/spccd"));
- submit("TRLMP90101");
-
- if(model.getValue("/root/temp/reqbcnoinfo/tclscd") == ""){
- alert("의뢰할 수 없는 바코드입니다.");
- }else{
-
- model.setValue("/root/main/reqitem/tclsnm", model.getValue("/root/temp/reqbcnoinfo/tclsnm"));
-
-
- var cv = model.getValue("/root/temp/reqbcnoinfo/tclscd");
-
- //var cvr = cv.substring(0, cv.length -1);
-
- //checkbox1.value = cvr;
-
- checkbox1.value = cv;
-
- checkbox1.refresh();
-
-
- }
-
-
-
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="415" pageheight="225" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:395px; height:185px; ">
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:390px; y2:25px; "/>
- <caption id="cpt_title" class="tit_2" style="left:10px; top:10px; width:170px; height:13px; ">의뢰항목</caption>
- <input id="ipt_wbc" ref="/root/main/reqitem/bcno" class="input_default" navindex="2" style="left:105px; top:31px; width:285px; height:19px; "/>
- <input id="input8" ref="/root/main/reqitem/tclsnm" class="input_default" navindex="4" style="left:105px; top:79px; width:285px; height:19px; "/>
- <line id="line2" class="line_2" style="x1:5px; y1:52px; x2:390px; y2:52px; "/>
- <line id="line3" class="line_2" style="x1:5px; y1:76px; x2:390px; y2:76px; "/>
- <line id="line4" class="line_2" style="x1:5px; y1:100px; x2:390px; y2:100px; "/>
- <line id="line5" class="line_2" style="x1:5px; y1:124px; x2:205px; y2:124px; "/>
- <caption id="cpt_prc" class="cell_1" style="left:5px; top:102px; width:97px; height:23px; ">의뢰항목</caption>
- <caption id="cpt_hgb" class="cell_1" style="left:5px; top:54px; width:97px; height:23px; ">외부의뢰바코드</caption>
- <caption id="cpt_wbc" class="cell_1" style="left:5px; top:30px; width:97px; height:23px; ">바코드번호</caption>
- <caption id="cpt_plt" class="cell_1" style="left:5px; top:78px; width:97px; height:23px; ">처방명칭</caption>
- <line id="line7" class="line_3" style="x1:5px; y1:124px; x2:390px; y2:124px; "/>
- <select id="checkbox1" ref="/root/main/reqitem/reqkind" disabled="true" navindex="1" overflow="visible" appearance="full" cellspacing="10" cols="4" sep="," style="left:105px; top:105px; width:285px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>LMA107</label>
- <value>LMA107</value>
- </item>
- <item>
- <label>LMA001</label>
- <value>LMA001</value>
- </item>
- <item>
- <label>LPD193</label>
- <value>LPD193</value>
- </item>
- <item>
- <label>LPD011</label>
- <value>LPD011</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- alert(checkbox1.value);
- ]]>
- </script>
- </select>
- <datagrid id="grd_patinfo" nodeset="/root/main/patinfo" caption="환자명^성별^나이^병실^처방과^처방의" colsep="^" colwidth="93, 37, 37, 56, 63, 93" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:130px; width:385px; height:48px; ">
- <col ref="pathngnm"/>
- <col ref="patsex"/>
- <col ref="patage"/>
- <col ref="roomcd"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- </datagrid>
- <input id="iptSearch" ref="/root/main/reqitem/reqbcno" class="input_button" navindex="1" imemode="alpha" inputtype="button" style="left:105px; top:55px; width:285px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fOnclickBtnRef();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:185px; width:395px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" navindex="5" style="left:275px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeSave();
- ]]>
- </script>
- <close ev:event="onclick"/>
- </button>
- <button id="btn_cancel" class="btn4_letter2" navindex="6" style="left:334px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|