123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLBD90100_지정헌혈정보등록.xrw
- * 설 명 : 지정헌혈정보등록
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 윤재한
- * 작 성 일 : 2007.08.07
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <benf>
- <ward/>
- <room/>
- <pid/>
- <patnm/>
- <btype/>
- <blodkind/>
- <rem/>
- </benf>
- <dnor>
- <nm/>
- <rrgstno1/>
- <rrgstno2/>
- <sex/>
- <age/>
- <abo/>
- <rh/>
- <cntctel/>
- <blodhous/>
- <dd/>
- </dnor>
- </main>
- <send>
- <codeflag/>
- <ward/>
- <room/>
- <pid/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <patnm/>
- <btype/>
- <rem/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0001"/>
- <submission id="TRLBD90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/pid"/>
- <submission id="TRLBD90102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TXLBD90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance"/>
- <submission id="TRLLC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/pat"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit() {
- var today = getCurrentDate();
-
- model.removeNodeset("/root/init/LB0114");
- model.removeNodeset("/root/init/LB0001");
- model.removeNodeset("/root/init/LB1001");
-
- model.resetInstanceNode("/root/main/benf");
- model.resetInstanceNode("/root/main/dnor");
-
- model.setValue("/root/send/codeflag", "0001|0114|1001|");
- if(submit("TRLZZ00101")) {
- model.setValue("/root/main/benf/ward", "00");
- model.setValue("/root/main/benf/blodkind", "-");
- //model.setValue("/root/main/dnor/sex", "M");
- //model.setValue("/root/main/dnor/abo", "A");
- //model.setValue("/root/main/dnor/rh", "+");
- fSetRoom();
- }
-
- model.setValue("/root/main/dnor/dd ", today);
-
- //fGetPID();
-
- var menu = model.getValue("/root/properties/menu/menuitemcd");
-
- if(menu != "MI00410211" && menu != "MI00410193") {
- var pid = getPatientInfo("pid");
-
- if(pid != "") {
- model.setValue("/root/main/benf/pid", pid);
-
- fGetPatNmABO();
- }
- }
- model.refresh();
- }
-
- //병동에 따른 병실 조회
- function fSetRoom() {
- var ward = model.getValue("/root/main/benf/ward");
-
- if(ward == "00") {
- model.setValue("/root/main/benf/room", "000000");
- cmb_Room.choices.itemset.attribute("nodeset") = "root/init/LB0114";
- } else {
- model.setValue("/root/main/benf/room", "000000");
- cmb_Room.choices.itemset.attribute("nodeset") = "root/init/LB0114[cd = '000000' or etc01='"+ ward + "']";
- }
- cmb_Room.refresh();
-
- //fGetPID();
- }
-
- //병동, 병실에 따른 환자의 등록번호 조회
- function fGetPID() {
-
- model.removeNodeset("/root/init/pid");
- model.setValue("/root/main/benf/pid", "");
- model.setValue("/root/send/ward", model.getValue("/root/main/benf/ward"));
- model.setValue("/root/send/room", model.getValue("/root/main/benf/room"));
-
- //submit("TRLBD90101");
-
- var wcd = model.getvalue("/root/main/benf/ward");
- var rcd = model.getvalue("/root/main/benf/room");
-
- if(wcd != "00" && rcd != "000000") {
- model.makeValue("/root/send/flag", "a");
- model.makeValue("/root/send/basecdid", rcd);
- model.makeValue("/root/send/basecdid2", wcd);
- //combo5.disabled = false;
- }else if(rcd != "000000") {
- model.makeValue("/root/send/flag", "r");
- model.makeValue("/root/send/basecdid", rcd);
-
- //combo5.disabled = false;
- }else if(wcd != "00"){
- model.makeValue("/root/send/flag", "w");
- model.makeValue("/root/send/basecdid", wcd);
-
- //combo5.disabled = true;
- } else {
- //combo5.disabled = true;
- return;
- }
-
- //submit("TRLLC00201");
- submit("TRLBD90101");
-
- //model.makeValue("/root/hidden/JoHoiFlag/pat", "00");
- }
-
- //등록번호에 따른 환자명과 혈액형 조회
- function fGetPatNmABO() {
- //model.setValue("/root/send/ward", model.getValue("/root/main/benf/ward"));
- //model.setValue("/root/send/room", model.getValue("/root/main/benf/room"));
- model.setValue("/root/send/pid", model.getValue("/root/main/benf/pid"));
-
- if(model.getValue("/root/send/pid") == ""){
- messageBox("등록번호를 확인해주세요.","I");
- return;
- }
- if(submit("TRLBD90102")) {
- opt_PatNm.value = model.getValue("/root/hidden/ref/patnm");
- opt_BType.value = model.getValue("/root/hidden/ref/btype");
- ipt_Rem.value = model.getValue("/root/hidden/ref/rem");
- }
- }
- //저장
- function fSetApntDonInfo() {
-
- model.setValue("/root/main/dnor/nm", model.getValue("/root/main/dnor/nm").getTrim());
-
- if(model.getValue("/root/main/benf/ward").getTrim() == "00") {
- messageBox("병동을", "C002");
- return;
- }else if(model.getValue("/root/main/benf/room").getTrim() == "000000") {
- messageBox("병실을", "C002");
- return;
- //수혜자, 공여자 혈액형 달라도 등록될수 있게 수정. 20090417 김성희 - 혈액은행 요청사항
- //}else if(model.getValue("/root/main/benf/btype") != (model.getValue("/root/main/dnor/abo") + model.getValue("/root/main/dnor/rh"))) {
- //messageBox("수혜자와 공여자의 혈액형이", "E004");
- }else if(model.getValue("root/main/benf/pid").getTrim() == "" || model.getValue("root/main/benf/pid").getTrim() == "00") {
- messageBox("등록번호를 확인해주세요.", "I");
- return;
- }else if(model.getValue("/root/main/benf/blodkind").getTrim() == "-") {
- messageBox("혈액종류를 선택해주세요.", "I");
- return;
- }else if(model.getValue("/root/main/dnor/nm").getTrim() == "") {
- messageBox("공여자명을 입력해주세요. 공여자명이 없는 경우는 예) 지정1, 지정2, 지정3 으로 입력해주세요.", "I");
- return;
- }
-
- submit("TXLBD90101");
- fSetInit();
- }
-
- function fClose() {
- window.close();
- }
-
- //키이벤트
- function fKeyEvent(){
- if(event.keyCode == "13"){
-
- var inputpid = model.getValue("/root/main/benf/pid");
-
- model.makeValue("/root/send/flag", "p");
- model.makeValue("/root/send/basecdid", inputpid);
- submit("TRLLC00201"); //pid로 병동/병실조회
-
- //병동/병실 set
- model.setValue("/root/main/benf/ward", model.getValue("/root/init/pat[cd = '"+ inputpid +"']/etc01"));
- model.setValue("/root/main/benf/room", model.getValue("/root/init/pat[cd = '"+ inputpid +"']/etc02"));
- model.setValue("/root/main/benf/pid", inputpid);
-
- //병동/병실에 따른 환자조회
- model.makeValue("/root/send/flag", "a");
- model.makeValue("/root/send/basecdid", model.getvalue("/root/main/benf/room"));
- model.makeValue("/root/send/basecdid2", model.getvalue("/root/main/benf/ward"));
- submit("TRLLC00201");
-
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/send/flag");
-
- model.refresh();
-
- fGetPatNmABO();
- }
-
- }
-
- function fWardSelect(flag){
-
- model.setValue("/root/main/benf/pid", "");
-
- if(flag == "W") { //병동 체인지 시
- var wcd = model.getvalue("/root/main/benf/ward");
- var rcd = model.getvalue("/root/main/benf/room");
-
- if(wcd != "00"){
- model.makeValue("/root/send/flag", "w");
- model.makeValue("/root/send/basecdid", wcd);
-
- //submit("TRLLC00201");
- cmb_Room.choices.itemset.attribute("nodeset") ="/root/init/LB0114[cd='000000' or etc01='"+ wcd +"']"; // 병실
- model.setValue("/root/main/benf/room", "000000");
- } else {
- cmb_Room.choices.itemset.attribute("nodeset") ="/root/init/LB0114";
- model.setValue("/root/main/benf/room", "000000");
- }
- model.setValue("/root/main/benf/pid", "00");
-
- }else if(flag == "R") { //병실 체인지시
- var wcd = model.getvalue("/root/main/benf/ward");
- var rcd = model.getvalue("/root/main/benf/room");
-
- if(wcd != "00" && rcd != "000000") {
- model.makeValue("/root/send/flag", "a");
- model.makeValue("/root/send/basecdid", rcd);
- model.makeValue("/root/send/basecdid2", wcd);
- }else if(rcd != "000000") {
- model.makeValue("/root/send/flag", "r");
- model.makeValue("/root/send/basecdid", rcd);
- }else if(wcd != "00"){
- model.makeValue("/root/send/flag", "w");
- model.makeValue("/root/send/basecdid", wcd);
- } else {
- return;
- }
- submit("TRLLC00201");
-
- model.setValue("/root/main/benf/pid", "00");
-
- }else if(flag == "P") {
- if(model.getValue("/root/hidden/JoHoiFlag/pat") == "00") {
- model.setValue("/root/hidden/JoHoiFlag/regnopatnm", "");
- }else {
- model.setValue("/root/hidden/JoHoiFlag/regnopatnm", model.getValue("/root/hidden/JoHoiFlag/pat"));
- }
- }
-
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/send/flag");
- //model.setvalue("/root/hidden/JoHoiFlag/nursid" , "00");
- model.refresh();
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="335" pageheight="462" guideline="1,1194;" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:315px; height:417px; font-size:18pt; ">
- <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:313px; y2:25px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:150px; width:130px; height:23px; ">혈액종류</caption>
- <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:115px; height:13px; ">수혜자 정보</caption>
- <caption id="caption10" class="tit_2" style="left:5px; top:206px; width:139px; height:13px; ">공여자 정보</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:394px; width:130px; height:23px; ">공여일</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:221px; x2:313px; y2:221px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:52px; x2:313px; y2:52px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:76px; x2:313px; y2:76px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:100px; x2:313px; y2:100px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:124px; x2:313px; y2:124px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:148px; x2:313px; y2:148px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:248px; x2:313px; y2:248px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:320px; x2:313px; y2:320px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:344px; x2:313px; y2:344px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:368px; x2:313px; y2:368px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:392px; x2:313px; y2:392px; "/>
- <line id="line1" class="line_3" style="x1:0px; y1:416px; x2:313px; y2:416px; "/>
- <caption id="cap_room" class="cell_1" style="left:0px; top:54px; width:130px; height:23px; ">병실</caption>
- <caption id="cap_name" class="cell_1" style="left:0px; top:226px; width:130px; height:23px; ">성명</caption>
- <caption id="cap_ward" class="cell_1" style="left:0px; top:30px; width:130px; height:23px; ">병동</caption>
- <caption id="cap_patient" class="cell_1" style="left:0px; top:78px; width:130px; height:23px; ">등록번호</caption>
- <caption id="cap_resdnreg" class="cell_1" style="left:0px; top:250px; width:130px; height:23px; ">주민등록번호</caption>
- <caption id="cap_regno" class="cell_1" style="left:0px; top:102px; width:130px; height:23px; ">환자명</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:370px; width:130px; height:23px; ">혈액원</caption>
- <caption id="cap_cntctelno" class="cell_1" style="left:0px; top:346px; width:130px; height:23px; ">연락처</caption>
- <caption id="cap_btype1" class="cell_1" style="left:0px; top:322px; width:130px; height:23px; ">혈액형</caption>
- <caption id="cap_btype" class="cell_1" style="left:0px; top:126px; width:130px; height:23px; ">혈액형</caption>
- <caption id="caption1" class="cell_1" style="left:0px; top:174px; width:130px; height:23px; ">비고</caption>
- <line id="line9" class="line_3" style="x1:0px; y1:196px; x2:313px; y2:196px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:274px; width:130px; height:23px; ">성별</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:298px; width:130px; height:23px; ">나이</caption>
- <line id="line5" class="line_2" style="x1:0px; y1:172px; x2:313px; y2:172px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:272px; x2:313px; y2:272px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:296px; x2:313px; y2:296px; "/>
- <select1 id="cmb_Room" ref="/root/main/benf/room" class="combo_essential" navindex="2" appearance="minimal" itemcount="10" style="left:133px; top:55px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="root/init/LB0114">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGetPID();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fWardSelect("R");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_Ward" ref="/root/main/benf/ward" class="combo_essential" navindex="1" appearance="minimal" itemcount="10" style="left:133px; top:31px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="root/init/LB0001">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ////fSetRoom();
- //fGetPID();
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fWardSelect("W");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_PID" ref="/root/main/benf/pid" class="combo_essential" navindex="3" appearance="minimal" editmode="input" itemcount="10" style="left:133px; top:79px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/pat">
- <label ref="cd"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGetPatNmABO();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fKeyEvent();
- fGetPatNmABO();
- ]]>
- </script>
- </select1>
- <output id="opt_PatNm" ref="/root/main/benf/patnm" class="output_fix" style="left:133px; top:103px; width:180px; height:19px; "/>
- <output id="opt_BType" ref="/root/main/benf/btype" class="output_fix" style="left:133px; top:127px; width:180px; height:19px; "/>
- <select1 id="cmb_BlodKind" ref="/root/main/benf/blodkind" class="combo_essential" navindex="4" appearance="minimal" style="left:133px; top:151px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB1001">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_DnorNm" ref="/root/main/dnor/nm" class="input_essential" navindex="6" style="left:133px; top:227px; width:180px; height:19px; "/>
- <input id="ipt_RrgstNo1" ref="/root/main/dnor/rrgstno1" navindex="7" maxlength="6" style="left:133px; top:251px; width:82px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(model.getValue("/root/main/dnor/rrgstno1") =="") return;
-
- var born = ipt_RrgstNo1.currentText;
- var today = getCurrentDate();
- var toyear = getCurrentDate();
-
- born = born.substr(0, 2);
- today = today.substr(2, 2);
- toyear = toyear.substr(0, 4);
-
- if(born > today) {
- born = parseInt(born) + 1900;
- } else {
- born = parseInt(born) + 2000;
- }
-
- var age = parseInt(toyear) - born + 1;
-
- model.setValue("/root/main/dnor/age" , age);
- ipt_Age.currentText = age;
- ]]>
- </script>
- </input>
- <select1 id="rdo_Sex" ref="/root/main/dnor/sex" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:158px; top:276px; width:122px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>M</label>
- <value>M</value>
- </item>
- <item>
- <label>F</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_Age" ref="/root/main/dnor/age" style="left:133px; top:299px; width:180px; height:19px; "/>
- <select1 id="cmb_ABO" ref="/root/main/dnor/abo" class="combo_essential" navindex="9" appearance="minimal" style="left:133px; top:323px; width:87px; height:19px; ">
- <choices>
- <item>
- <label>A</label>
- <value>A</value>
- </item>
- <item>
- <label>B</label>
- <value>B</value>
- </item>
- <item>
- <label>O</label>
- <value>O</value>
- </item>
- <item>
- <label>AB</label>
- <value>AB</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_Rh" ref="/root/main/dnor/rh" class="combo_essential" navindex="10" appearance="minimal" style="left:226px; top:323px; width:87px; height:19px; ">
- <choices>
- <item>
- <label>Rh+</label>
- <value>+</value>
- </item>
- <item>
- <label>Rh-</label>
- <value>-</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_CntcTel" ref="/root/main/dnor/cntctel" navindex="11" style="left:133px; top:347px; width:180px; height:19px; "/>
- <input id="ipt_BlodHous" ref="/root/main/dnor/blodhous" class="input_essential" navindex="12" style="left:133px; top:371px; width:180px; height:19px; "/>
- <input id="ipt_DnorDd" ref="/root/main/dnor/dd" class="input_essential" navindex="13" inputtype="date" style="left:133px; top:395px; width:180px; height:19px; "/>
- <input id="ipt_RrgstNo2" ref="/root/main/dnor/rrgstno2" navindex="8" maxlength="7" style="left:231px; top:251px; width:82px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
-
- var sex = ipt_RrgstNo2.currentText;
-
- sex = sex.substr(0, 1);
-
- if(sex == "1") {
- rdo_Sex.value = 'M';
- } else if(sex == "2") {
- rdo_Sex.value = 'F';
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_no_b" style="left:218px; top:250px; width:10px; height:17px; ">-</caption>
- <input id="ipt_Rem" ref="/root/main/benf/rem" class="input_essential" navindex="5" style="left:133px; top:175px; width:180px; height:19px; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:417px; width:315px; height:30px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:254px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fClose();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:195px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetApntDonInfo();
- ]]>
- </script>
- </button>
- <line id="line19" class="line_6" style="x1:10px; y1:0px; x2:315px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|