123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>BMT 이식환자관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <cmbinfo>
- <trnptkindcd>
- <A0161/>
- </trnptkindcd>
- <btype>
- <M0376>
- <cdid/>
- <cdnm/>
- </M0376>
- </btype>
- </cmbinfo>
- </init>
- <main>
- <cond>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- </cond>
- <patinfo>
- <patlist>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <trnptkind/>
- <trnptkindcd/>
- <trnptdd/>
- <pattrnptbfbtype/>
- <dnorbtype/>
- </patlist>
- </patinfo>
- <paminfo/>
- </main>
- <temp>
- <tempcodeinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var pid="";
- var indd="";
- var cretno="";
-
- model.makeNode("/root/main/paminfo");
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
-
- //팝업화면이 아닐경우 상단에 환자 정보가 있는지 여부를 확인하고
- if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
- pid = model.getValue("/root/main/paminfo/list/pid");
- } else {
- //팝업으로 뜬화면인가 여부확인.팝업일 경우 팝업화면 파라메터를 가지고온다.
- if(checkOpener()) {
- pid = opener.javascript.getParameter("SMMNW20010_PID");
- }
- }
- zbcfGetCodeList( new Array("M0376"), new Array("/root/init/cmbinfo/btype") );
-
- //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
- aboGetCodeList( new Array("A0161"), new Array("/root/init/cmbinfo/trnptkindcd"));
-
- //환자 등록번호가 존재할 경우에는
- if(pid != "") {
- model.setValue(ipt_pid.attribute("ref"), pid);
- ipt_pid.refresh();
- fSearchPatInfo();
- }
-
- ]]>
- </script>
- <submission id="TRMNW20010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfo"/>
- <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSearchPatInfo() {
- model.makeValue("/root/send/reqdata/pid", model.getValue(ipt_pid.attribute("ref")));
- submit("TRMNW20010");
- //model.copyNode("/root/main/cond", "/root/main/patinfo/patlist");
- model.refresh();
- }
- ]]>
- </script>
- <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"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="385" pageheight="235" 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:365px; height:235px; ">
- <caption id="caption6" class="tit_2" style="left:0px; top:5px; width:178px; height:15px; ">BMT 이식환자관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:360px; y2:20px; "/>
- <input id="ipt_pid" ref="/root/main/patinfo/patlist/pid" disabled="true" style="left:77px; top:26px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- //setInputNodeCurText();
- fSearchPatInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- //setInputNodeCurText();
- fSearchPatInfo();
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/main/patinfo/patlist/hngnm" disabled="true" style="left:257px; top:26px; width:100px; height:19px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:47px; x2:360px; y2:47px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:25px; width:75px; height:23px; text-align:center; ">등록번호</caption>
- <caption id="caption3" class="cell_1" style="left:180px; top:25px; width:75px; height:23px; text-align:center; ">환자명</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:71px; x2:360px; y2:71px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:49px; width:75px; height:23px; text-align:center; ">이식종류</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:95px; x2:360px; y2:95px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:192px; x2:360px; y2:192px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:73px; width:75px; height:23px; text-align:center; ">이식일</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:147px; x2:360px; y2:147px; "/>
- <caption id="caption14" style="left:4px; top:191px; width:356px; height:29px; color:#ff0000; ">*상기환자는 동종조혈모세포 이식환자로 수혈 시 주의를 요합니다</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:120px; x2:360px; y2:120px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:105px; width:240px; height:13px; ">환자/공여자 정보(이식전 혈액형)</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:125px; width:75px; height:23px; text-align:center; ">Recipient</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:149px; width:75px; height:23px; text-align:center; ">Donor</caption>
- <line id="line8" class="line_2" style="x1:0px; y1:171px; x2:360px; y2:171px; "/>
- <select1 id="radio2" ref="/root/main/patinfo/patlist/trnptkind" class="radio_default" disabled="true" appearance="full" cols="2" rows="1" overflow="visible" style="left:78px; top:50px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>자가</label>
- <value>1</value>
- </item>
- <item>
- <label>동종</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- // 자가일때는 공여자 정보 모두 비활성화
- // 동종일 때 아래와 맞게 활성화/비활성화 시킨다
- // Related : 01 Sibling Standard , 02 Sibling NST, 03 FMM Standard, 04 FMM NST, 05 FM Standard, 06 FM NST
- // Unrelated : 07 Unrelated Standard, 08 Unrealted NST
- // Cord : 09 Cord Standard , 10 Cord NST
- if (model.getValue("/root/main/hsctinfo/trnptinfo/trnptkind") == "1") {
- // 만약 이식종류를 변경할 때 관련 공여자 정보가 있을 경우 진행해서는 안된다.
- if ( model.getValue("/root/main/hsctinfo/dnorinfo/dnorid") != "" ||
- model.getValue("/root/main/hsctinfo/ubmtinfo/dnorid") != "" ||
- model.getValue("/root/main/hsctinfo/cordinfo[" + 1 + "]/dnorid") != "" ) {
- messageBox("다른 이식종류로 이미 공여자가 등록되어 있으므로 이식종류를 변경 ", "E001");
- model.setValue("/root/main/hsctinfo/trnptinfo/trnptkind", "2");
- model.refresh();
- return;
- }
- model.setValue("/root/main/hsctinfo/trnptinfo/trnpttype", "1");
- model.setValue("/root/main/hsctinfo/trnptinfo/trnptkindcd", "");
- model.refresh();
- fSetDisabled("AUTO");
- } else {
- model.setValue("/root/main/hsctinfo/trnptinfo/trnpttype", "2");
- fSetDisabled("ALLO");
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_trnptkindcd" ref="/root/main/patinfo/patlist/trnptkindcd" class="combo_default" disabled="true" appearance="minimal" style="left:175px; top:50px; width:183px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptkindcd/A0161">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var strnptkindcd = model.getValue("/root/main/hsctinfo/trnptinfo/trnptkindcd");
- if ( strnptkindcd == "09" || strnptkindcd == "10") {
- if ( model.getValue("/root/main/hsctinfo/dnorinfo/dnorid") != "" ||
- model.getValue("/root/main/hsctinfo/ubmtinfo/dnorid") != "" ) {
- messageBox("다른 이식종류로 공여자가 등록되어 있으므로 Sub 이식종류를 변경 ", "E001");
- model.setValue("/root/main/hsctinfo/trnptinfo/trnptkindcd", model.getValue("/root/temp/trnptkindcd"));
- model.refresh();
- return;
- }
- model.setValue("/root/main/hsctinfo/trnptinfo/trnpttype", "4");
- fSetDisabled("CORD");
- } else if ( strnptkindcd == "07" || strnptkindcd == "08") {
- if ( model.getValue("/root/main/hsctinfo/dnorinfo/dnorid") != "" ||
- model.getValue("/root/main/hsctinfo/cordinfo[" + 1 + "]/dnorid") != "" ) {
- messageBox("다른 이식종류로 공여자가 등록되어 있으므로 Sub 이식종류를 변경 ", "E001");
- model.setValue("/root/main/hsctinfo/trnptinfo/trnptkindcd", model.getValue("/root/temp/trnptkindcd"));
- model.refresh();
- return;
- }
- model.setValue("/root/main/hsctinfo/trnptinfo/trnpttype", "3");
- fSetDisabled("UBMT");
- } else {
- if ( model.getValue("/root/main/hsctinfo/ubmtinfo/dnorid") != "" ||
- model.getValue("/root/main/hsctinfo/cordinfo[" + 1 + "]/dnorid") != "" ) {
- messageBox("다른 이식종류로 공여자가 등록되어 있으므로 Sub 이식종류를 변경 ", "E001");
- model.setValue("/root/main/hsctinfo/trnptinfo/trnptkindcd", model.getValue("/root/temp/trnptkindcd"));
- model.refresh();
- return;
- }
- model.setValue("/root/main/hsctinfo/trnptinfo/trnpttype", "2");
- fSetDisabled("ALLO");
- }
- // 이식종류를 변경할 때 이전에 공여자가 정리되지 않은 상태에서 변경할려고 할 때 변경하지 못하게 하기 위함.
- // 이때 Sub이식종류를 원래꺼로 돌리기 위해서 이전 정보를 백업한다.
- model.setValue("/root/temp/trnptkindcd", model.getValue("/root/main/hsctinfo/trnptinfo/trnptkindcd"));
- ]]>
- </script>
- </select1>
- <input id="input16" ref="/root/main/patinfo/patlist/trnptdd" class="input_default" disabled="true" inputtype="date" style="left:79px; top:74px; width:90px; height:19px; "/>
- <select1 id="cmb_pattrnptbfbtype" ref="/root/main/patinfo/patlist/pattrnptbfbtype" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:78px; top:126px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/btype/M0376">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/main/patinfo/patlist/dnorbtype" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:78px; top:150px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/btype/M0376">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|