123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLBT90500_수혈혈액형입력.xrw
- * 설 명 : 수혈혈액형입력
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 :
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <patinfo>
- <pid/>
- <hngnm/>
- <sexage/>
- <btype/>
- <abrnblodyn/>
- <abo/>
- </patinfo>
- <blodflag>
- <tnsblodchoiflag/>
- <abo/>
- <rh/>
- </blodflag>
- <tnsabolist>
- <tnsblodchoiflag/>
- <abo/>
- <rh/>
- <rgstrnm/>
- <rgstdt/>
- <pid/>
- <blodchoiseq/>
- </tnsabolist>
- </main>
- <send>
- <acceptid/>
- <pid/>
- <grid/>
- </send>
- <init>
- </init>
- <hidden>
- <getuserAnm>
- <acceptnm/>
- </getuserAnm>
- <userid>
- <updid/>
- <updnm/>
- <delid/>
- <delnm/>
- </userid>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //fSetInit();
- ]]>
- </script>
- <submission id="TRLBT10404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/getuserAnm"/>
- <submission id="TRLBT90501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TXLBT90501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(pRef){
- if(event.keyCode == "13" || pRef == "B"){
-
- // 등록번호 입력시
- if(event.target == "ipt_pid"){
- model.setvalue("/root/send/pid", ipt_pid.currentText);
- fGetTnsABOList();
-
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
- }
-
- // 등록자 입력시
- if(event.target == "ipt_updid"){
- model.setvalue("/root/send/acceptid", ipt_updid.currentText);
- model.setvalue("/root/hidden/userid/updid", ipt_updid.currentText);
-
- fGetUsernm();
- model.setValue("/root/hidden/userid/updnm", model.getValue("/root/hidden/getuserAnm/acceptnm"));
- model.setFocus("ipt_updid");
- }
-
- // 삭제자 입력시
- if(event.target == "ipt_delid"){
- model.setvalue("/root/hidden/userid/delid", ipt_delid.currentText);
- model.setValue("/root/send/acceptid", ipt_delid.currentText);
-
- fGetUsernm();
- model.setValue("/root/hidden/userid/delnm", model.getValue("/root/hidden/getuserAnm/acceptnm"));
- model.setFocus("ipt_delid");
- }
-
- model.refresh();
- }
- }
-
- // 유저 정보
- function fGetUsernm(){
- submit("TRLBT10404", false);
- }
-
- // 조회
- function fGetTnsABOList(){
-
- if(submit("TRLBT90501", false)){
- if(model.getValue("/root/main/patinfo/abrnblodyn")=="N"){ // 이형아님
-
- if(model.getValue("/root/main/patinfo/abo")=="A"){
- opt_abo.attribute("class") = "font_a";
- opt_abo.attribute("font-size") = 48;
- }else if(model.getValue("/root/main/patinfo/abo")=="AB"){
- opt_abo.attribute("class") = "font_ab";
- opt_abo.attribute("font-size") = 48;
- }else if(model.getValue("/root/main/patinfo/abo")=="B"){
- opt_abo.attribute("class") = "font_b";
- opt_abo.attribute("font-size") = 48;
- }else if(model.getValue("/root/main/patinfo/abo")=="O"){
- opt_abo.attribute("class") = "font_o";
- opt_abo.attribute("font-size") = 48;
- }else{
- opt_abo.attribute("class") = "font_b"; //빨간색
- opt_abo.attribute("font-size") = 28;
- }
- }else if(model.getValue("/root/main/patinfo/abrnblodyn")=="Y"){ // 이형임
- opt_abo.attribute("class") = "font_b"; //빨간색
- opt_abo.attribute("font-size") = 28;
- }
- }
- }
-
- function fExeTnsABO(){
-
- //등록
- if(event.target == "btn_upd"){
-
- var strSave = "m▦pid▦tnsblodchoiflag▦abo▦rh▦rgstrid▩"
- var strPid = model.getValue("/root/main/patinfo/pid");
- var strTnsblodchoiflag = model.getValue("/root/main/blodflag/tnsblodchoiflag");
- var strABO = model.getValue("/root/main/blodflag/abo");
- var strRH = model.getValue("/root/main/blodflag/rh");
- var strUpdid = model.getValue("/root/hidden/userid/updid");
- var strBfABO = model.getValue("/root/main/patinfo/abo");
-
- if(model.getValue("/root/hidden/userid/updnm") == "" || model.getValue("/root/hidden/userid/updid") == ""){
- messageBox("등록자를", "C001");
- return;
- }
- if(strPid == ""){
- messageBox("등록번호를 입력하세요", "E999");
- return;
- }
- if(strTnsblodchoiflag == ""){
- messageBox("성분제제 구분을 선택하세요", "E999");
- return;
- }
- if(strABO == ""){
- messageBox("ABO를 선택하세요", "E999");
- return;
- }
- if(strRH == ""){
- messageBox("RH를 선택하세요", "E999");
- return;
- }
- if(model.getXPathValue('count(/root/main/tnsabolist[tnsblodchoiflag="' + strTnsblodchoiflag + '"])') > 0){
- messageBox("이미 등록된 성분제제는 다시 등록 할 수 없습니다\n등록된 내역 삭제 후 재등록 가능합니다.", "");
- return;
- }
- if(strABO != strBfABO){
- if(messageBox("조회된 ABO와 선택하신 ABO가 일치하지 않습니다. \n", "Q003") != 6){
- return;
- }
- }
-
- strSave += "i▦" + strPid + "▦" + strTnsblodchoiflag + "▦" + strABO + "▦"+ strRH +"▦" + strUpdid + "▩"
- model.setValue("/root/send/grid", strSave);
-
- //삭제
- }else if(event.target == "btn_del"){
-
- if(model.getValue("/root/hidden/userid/delnm") == "" || model.getValue("/root/hidden/userid/delid") == ""){
- messageBox("삭제자를", "C001");
- return;
- }
-
- grd_tnsabolist.addStatus(grd_tnsabolist.row, "delete");
-
- //삭제 확인 및 삭제 대상 Check
- if(messageBox("", "Q001")==6){
- if(!checkGridUpdate(grd_tnsabolist)){
- messageBox("삭제할 자료를 선택하지 않아 실행", "E001");
- return;
- }
- }else{
- grd_tnsabolist.clearStatus();
- return;
- }
- model.setValue("/root/send/acceptid", model.getValue("/root/hidden/userid/delid"));
- model.setValue("/root/send/grid", grd_tnsabolist.getUpdateData());
-
- }
-
- //등록 및 삭제처리
- submit("TXLBT90501", false);
- grd_tnsabolist.clearStatus();
- //재조회
- fGetTnsABOList();
-
- model.refresh();
- }
-
- //저장 데이터 확인
- function checkGridUpdate(grid){
-
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
-
- if (iData=="" && uData=="" && dData==""){
- return false;
- }else{
- return true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="440" pageheight="620" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:5px; width:420px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:420px; height:14px; ">수혈 혈액형 입력</caption>
- </group>
- <group id="group4" style="left:0px; top:25px; width:420px; height:540px; ">
- <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:94px; height:14px; ">환자정보</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:420px; y2:25px; "/>
- <output id="opt_patnm" ref="/root/main/patinfo/hngnm" class="output_fix" style="left:190px; top:31px; width:131px; height:19px; "/>
- <output id="opt_sexage" ref="/root/main/patinfo/sexage" class="output_fix" style="left:73px; top:56px; width:169px; height:19px; "/>
- <output id="opt_regno" ref="/root/main/patinfo/info/regno" class="output_fix" style="left:73px; top:81px; width:169px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:77px; x2:420px; y2:77px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:102px; x2:242px; y2:102px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:235px; x2:420px; y2:235px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:52px; x2:420px; y2:52px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:30px; width:70px; height:21px; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/send/pid" accesskey="f1" class="input_button" inputtype="button" appearance="input" style="left:73px; top:31px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fKeyEvent("B");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="tit_2" style="left:5px; top:242px; width:162px; height:13px; ">수혈 혈액형 목록</caption>
- <line id="line10" class="line_1" style="x1:0px; y1:257px; x2:420px; y2:257px; "/>
- <case id="case4" selected="true"/>
- <line id="line16" class="line_2" style="x1:0px; y1:102px; x2:420px; y2:102px; "/>
- <line id="line17" class="line_3" style="x1:0px; y1:130px; x2:420px; y2:130px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:55px; width:70px; height:21px; ">Sex/Age</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:80px; width:70px; height:21px; ">진료과</caption>
- <datagrid id="grd_tnsabolist" nodeset="/root/main/tnsabolist" caption="구분^ABO^RH^등록자^등록일^pid^blodchoiseq" colsep="^" colwidth="80, 50, 50, 80, 120, 80, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:284px; width:420px; height:253px; text-align:center; ">
- <col disabled="true" ref="tnsblodchoiflag" type="combo">
- <choices>
- <item>
- <label>RBC</label>
- <value>01</value>
- </item>
- <item>
- <label>PLASMA</label>
- <value>02</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="abo" type="combo">
- <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>
- </col>
- <col disabled="true" ref="rh" type="combo">
- <choices>
- <item>
- <label>+</label>
- <value>+</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col ref="rgstrnm"/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="blodchoiseq" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_tnsabolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_delid" ref="/root/hidden/userid/delid" class="input_button" inputtype="button" appearance="input" style="left:219px; top:263px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fKeyEvent("B");
- ]]>
- </script>
- </input>
- <output id="output2" ref="/root/hidden/userid/delnm" class="output_search" appearance="output" style="left:300px; top:263px; width:62px; height:19px; "/>
- <caption id="caption23" class="cell_1" style="left:167px; top:263px; width:50px; height:19px; ">삭제자</caption>
- <line id="line12" class="line_3" style="x1:0px; y1:211px; x2:420px; y2:211px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:187px; width:70px; height:21px; ">혈액형</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:185px; x2:420px; y2:185px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:161px; x2:420px; y2:161px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:163px; width:70px; height:21px; ">혈액형</caption>
- <select1 id="radio1" ref="/root/main/blodflag/abo" appearance="full" cellspacing="18" cols="4" overflow="visible" style="left:73px; top:166px; width:180px; height:15px; border-style:none; ">
- <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="radio2" ref="/root/main/blodflag/rh" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:73px; top:190px; width:174px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>RH+</label>
- <value>+</value>
- </item>
- <item>
- <label>RH-</label>
- <value>-</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:139px; width:70px; height:21px; ">구 분</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:137px; x2:420px; y2:137px; "/>
- <select1 id="radio3" ref="/root/main/blodflag/tnsblodchoiflag" appearance="full" cellspacing="47" cols="2" overflow="visible" style="left:73px; top:142px; width:174px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>RBC</label>
- <value>01</value>
- </item>
- <item>
- <label>PLASMA</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_updid" ref="/root/hidden/userid/updid" class="input_button" inputtype="button" appearance="input" style="left:219px; top:214px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fKeyEvent("B");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="cell_1" style="left:167px; top:214px; width:50px; height:19px; ">등록자</caption>
- <output id="output1" ref="/root/hidden/userid/updnm" class="output_search" appearance="output" style="left:300px; top:214px; width:62px; height:19px; "/>
- <button id="btn_del" class="btn4_letter2" style="left:364px; top:262px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTnsABO();
- ]]>
- </script>
- </button>
- <button id="btn_upd" class="btn4_letter2" style="left:364px; top:213px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTnsABO();
- ]]>
- </script>
- </button>
- <output id="output3" ref="/root/main/patinfo/info/regno" class="output_fix" style="left:73px; top:107px; width:169px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:105px; width:70px; height:21px; ">병동/병실</caption>
- <line id="line8" class="line_2" style="x1:0px; y1:127px; x2:420px; y2:127px; "/>
- <line id="line9" class="line_1" style="x1:0px; y1:132px; x2:420px; y2:132px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:209px; x2:420px; y2:209px; "/>
- <caption id="opt_abo" ref="/root/main/patinfo/btype" class="font_ab" style="left:245px; top:55px; width:175px; height:67px; font-size:36pt; word-wrap:word; "/>
- </group>
- <group id="group2" style="left:0px; top:563px; width:420px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:420px; y2:0px; "/>
- <button id="button4" class="btn4_letter2" style="left:364px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|