123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLJ00300_검체취소관리.xrw
- * 설 명 : 검체취소관리
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2006.12.22
- * 수정이력 : 2007-08-01 박정은 코드인스펙션
- * 기 타 :
- -->
- <?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>
- <main>
- <cancelspc>
- <chk/>
- <tclscd/>
- <testcd/>
- <tclsnm/>
- <rsltstat/>
- <orddeptnm/>
- <orddrnm/>
- <bcno/>
- <spccd/>
- <spcnm/>
- <prcpgenrflag/>
- <sectcd/>
- <tsectcd/>
- <tclskind/>
- </cancelspc>
- <spcinfo>
- <bcno/>
- <prcpdd/>
- <patnm/>
- <pid/>
- <sexage/>
- <prgstno/>
- <wardroom/>
- <spccd/>
- <barcdprntdt/>
- <barcdprntid/>
- <bcolldt/>
- <bcollid/>
- <spcarvdt/>
- <spcarvid/>
- <spcacptdt/>
- <spcacptid/>
- <spcstat/>
- <rsltstat/>
- <orddrnm/>
- <returnnm/>
- </spcinfo>
- <newElement/>
- <getuserAnm>
- <acceptnm/>
- </getuserAnm>
- </main>
- <send>
- <Data1/>
- <Data2/>
- <bcno/>
- <cancelgbn/>
- <resncd/>
- <resndesc/>
- <cmt/>
- <pid/>
- <spcstat/>
- <cancelgrd/>
- <tclscd/>
- <resncdkind/>
- <codeflag/>
- <deptflag/>
- <rtnid/>
- </send>
- <init>
- <cancelresn>
- <resncd/>
- <resndesc/>
- <resncdkind/>
- <rtnid/>
- </cancelresn>
- </init>
- <hidden>
- <ref>
- <bcno/>
- <cnclkind>01</cnclkind>
- </ref>
- <cancel>
- <cancelgbn/>
- <resncd/>
- <resndesc/>
- <rtnid/>
- </cancel>
- <cmt/>
- <cancelcombo/>
- <truststat/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <!-- 기초정보 사유코드 조회-->
- <submission id="TRLLJ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cancelresn"/>
- <!-- 검체정보목록 조회 -->
- <submission id="TRLLJ00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cancelspc"/>
- <!-- 검체 정보 조회 -->
- <submission id="TRLLJ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcinfo"/>
- <submission id="TXLLJ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/MSG"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0000"/>
- <submission id="TRLBT10404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getuserAnm"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/cancelspc");
- model.removeNodeset("/root/main/spcinfo");
- model.refresh();
-
- // 체크박스 전체선택
- grd_spccancel.fixedcellcheckbox(0, 1) = true;
- grd_spccancel.fixedcellischeck(0, 1) = false;
-
- model.setValue("/root/send/codeflag", "0000|"); //0000 userdeptflagcd
- submit("TRLZZ00101");
-
- // 기초정보 사유코드 조회
- submit("TRLLJ00301");
-
- //취소사유별로 콤보내용변경..
- fSetCancelCombo("01");
- ]]>
- </script>
- <submission id="TRLLJ00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/truststat"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // *사용* 키이벤트 엔터키 입력시 접수flow
- function fKeyEvent(){
-
- if(event.keyCode == "13"){
- if(event.target == "ipt_bcno"){
- model.setvalue("/root/hidden/ref/bcno", ipt_bcno.currentText);
- fGetCancelSpc();
-
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
- }
-
- // 피통보자 id입력시 usernm 보이게
- if(event.target == "ipt_rtnnm"){
- model.setvalue("/root/hidden/cancel/rtnid", ipt_rtnnm.currentText.toUpperCase());
- model.refresh();
-
- if(model.getValue("/root/hidden/cancel/rtnid") != ""){
- model.makeValue("/root/send/acceptid", model.getvalue("/root/hidden/cancel/rtnid"));
- submit("TRLBT10404");
-
- ipt_rtnnm.selBegin = 0;
- ipt_rtnnm.selEnd = ipt_rtnnm.currentText.length;
- model.setFocus("ipt_rtnnm");
- output3.refresh();
-
- }
-
- }
- }
- /*
- inputEnterKey("ipt_bcno", "DOMActivate");
- model.setvalue("/root/hidden/ref/bcno", ipt_bcno.currentText);
- // 검체 정보 조회
- fGetCancelSpc();
-
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
- */
- }
-
-
- function fSetInit() {
- //model.reset();
- model.removeNodeset("/root/main/cancelspc");
- model.removeNodeset("/root/main/spcinfo");
- model.setValue("/root/send/Data1", "");
- model.setValue("/root/send/Data2", "");
- model.setValue("/root/send/bcno", "");
- model.setValue("/root/send/cancelgbn", "");
- model.setValue("/root/send/resncd", "");
- model.setValue("/root/send/resndesc", "");
- model.setValue("/root/send/cmt", "");
- model.setValue("/root/send/pid", "");
- model.setValue("/root/send/spcstat", "");
- model.setValue("/root/send/cancelgrd", "");
- model.setValue("/root/send/tclscd", "");
- model.setValue("/root/send/resncdkind", "");
-
-
- model.refresh();
-
- }
-
- // 취소방법 RadioButton을 변경한 경우
- function fSetCancelGbn(){
- // 그리드 status상태 초기화
- grd_spccancel.clearStatus();
-
- for(i=1; i<grd_spccancel.rows; i++){
- model.setValue("/root/main/cancelspc["+i+"]/chk", "false");
- }
-
- var gbn = rdo_cancelgbn.value;
- var spcstat = model.getValue("/root/main/spcinfo/spcstat");
- var rsltstat = model.getValue("/root/main/spcinfo/rsltstat");
-
-
- switch (gbn){
- case "01" : // 채혈취소
-
- if((spcstat == "3") || (spcstat == "4")){
- messageBox("채혈 상태가 아닙니다. 채혈취소 ", "E001"); // 할 수 없습니다.
- return;
- }
-
- for(i=1; i<= getNodesetCount("/root/main/cancelspc"); i++){
- grd_spccancel.fixedcellischeck(0, i) = true;
- }
-
- grd_spccancel.colHidden(1) = false;
- break;
-
-
- //grd_spccancel.refresh();
- case "02": // 접수취소
-
- if((spcstat =="2" ) || ((spcstat == "4") &&(rsltstat != "-"))){
- messageBox("접수 상태가 아닙니다. 접수취소 ", "E001"); // 할 수 없습니다.
- return;
- }
-
- grd_spccancel.colHidden(1) = true;
-
- for(i=1; i<grd_spccancel.rows; i++){
- grd_spccancel.rowStatus(i) = 2;
- }
-
- break;
-
- case "03": // 채혈/접수취소
-
- if((spcstat =="2" ) || ((spcstat == "4") &&(rsltstat != "-"))){
- messageBox("접수 상태가 아닙니다. 접수취소 ", "E001"); // 할 수 없습니다.
- return;
- }
-
- grd_spccancel.colHidden(1) = true;
-
- for(i=1; i<grd_spccancel.rows; i++){
- grd_spccancel.rowStatus(i) = 2;
- }
-
- break;
-
- case "04": // 검사취소
-
- if((spcstat =="2") || (spcstat =="3")){
- messageBox("접수 상태가 아닙니다. 검사취소 ", "E001"); // 할 수 없습니다.
- return;
- }
- grd_spccancel.fixedcellischeck(0, 1) = true;
- grd_spccancel.colHidden(1) = false;
- break;
-
- case "05": // poct dc
- grd_spccancel.fixedcellischeck(0, 1) = true;
- grd_spccancel.colHidden(1) = false;
- break;
- }
- fSetCancelCombo(model.getValue("/root/hidden/ref/cnclkind"));
- }
-
-
- // 검체번호 또는 등록번호 입력 후 엔터를 쳤을 경우
- function fsearchtxt_validate()
- {
- var bcno = model.getvalue("/root/hidden/ref/bcno");
-
- if ( bcno != "" )
- {
- //alert("222");
- // 바코드에서 직접 입력하는 경우
- /* if ( bcno.length == 11 || bcno.length == 9 )
- {
- // 바코드번호(검체번호)를 표시형 검체번호로 변경
- }
- else if ( bcno.length == 14 || bcno.length == 15 )
- {
- }
- else
- {
- //TFGetMsgBox(1, "잘못된 검체번호 입니다");
- model.alert("잘못된 검체번호 입니다");
- return false;
- }*/
-
- }
- } // end of searchtxt_validate()
-
- // 검체정보목록 조회
- function fGetCancelSpc(){
- // 유효성 체크
- if ( fsearchtxt_validate() == false ){
-
- }else {
-
- // 검체번호를 이용하여 검색
- var bcno = model.getvalue("/root/hidden/ref/bcno");
-
- cap_label.attribute("background-color") = "#ffffff";
- cap_bcoll.attribute("background-color") = "#ffffff";
- cap_cnfm.attribute("background-color") = "#ffffff";
- cap_acpt.attribute("background-color") = "#ffffff";
-
- //검체번호 대문자만 추가
- var ubcno = bcno.toUpperCase();
-
- // SendData Set
- model.setValue("/root/send/bcno", ubcno);
-
- if(bcno == "" || bcno == null){
-
- messageBox("바코드번호를 입력해주십시오.", "I", "");
- return;
-
- }
-
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
-
- // Submit
- if(submit("TRLLJ00302")){
-
- //if(grd_spccancel.rows > 1){
- fGetSpcInfo("ref");
-
- //}
- }
-
- /* if ( model.submitInstance("reqGetChwiSoData") ) {
-
-
-
- // 취소방법 선택!!!
- //model.control("rdoChwiSoGbn");
-
- }
- model.resetInstanceNode("/root/SendData");
- */
- //TFSetMessage("/root/MainData");
- }
-
- //model.setValue("/root/hidden/ref/bcno", "");
- //model.refresh();
- //model.setfocus("input3");
- //fGetSpcInfo();
- }
-
- // 환자 검체 정보 조회
- function fGetSpcInfo(ref){
-
- cap_label.attribute("background-color") = "#ffffff";
- cap_bcoll.attribute("background-color") = "#ffffff";
- cap_cnfm.attribute("background-color") = "#ffffff";
- cap_acpt.attribute("background-color") = "#ffffff";
-
- var bcno = model.getValue("/root/hidden/ref/bcno");
- var ubcno = bcno.toUpperCase();
-
- model.setValue("/root/send/bcno", ubcno);
-
- if(ref == "ref"){
- grd_spccancel.row = 1;
- } else {
- model.setValue("/root/send/tclscd", model.getValue("/root/main/cancelspc["+grd_spccancel.row+"]/tclscd"));
- }
-
- submit("TRLLJ00303");
-
- var spcstat = model.getValue("/root/main/spcinfo/spcstat");
- if(spcstat == "1"){
- cap_label.attribute("background-color") = "#fec34d";
- }else if(spcstat == "2"){
- cap_bcoll.attribute("background-color") = "#fec34d";
- }else if(spcstat == "3"){
- cap_cnfm.attribute("background-color") = "#fec34d";
- }else if(spcstat == "4"){
- cap_acpt.attribute("background-color") = "#fec34d";
- }
-
- fSetSpcInfoRDOGbn();
-
- // cmc위수탁 의뢰된거 메세지 띄우기 -- 위탁병원용
- if(model.getValue("/root/main/spcinfo/spcflag")=="U"){
-
- model.makeValue("/root/send/reqbcno", ubcno);
- submit("TRLLJ00304");
-
- if(model.getValue("/root/hidden/truststat/acptstatcd")=="2"){ // 수탁병원에서 접수된 상태
- messageBox("cmc수탁접수된 검사입니다. 수탁병원과 협의후 진행하십시오.", "I");
- return;
- }else{ // 의뢰만 된거랑 기타상태
- messageBox("cmc위탁의뢰 된 검사 입니다. 취소 하시려면 CMC위탁 화면에서 의뢰취소 후 진행하십시오.", "I");
- return;
- }
- }
-
- // 수탁기관용 수탁접수된거는 cmc수탁에서만 취소되도록
- if(model.getValue("/root/main/spcinfo/trustbcno") != "-" && model.getValue("/root/main/spcinfo/trustbcno") != ""){
- messageBox("cmc수탁접수된 검사입니다. cmc수탁화면에서 접수취소 하십시오.", "I");
- return;
- }
-
- }
-
- // 검체상태별 라디오 버튼 상태 변경 2007.09.06
- function fSetSpcInfoRDOGbn(){
-
- var spcstat = model.getValue("/root/main/spcinfo/spcstat");
- var rsltstat = model.getValue("/root/main/spcinfo/rsltstat");
-
- if(spcstat == "0"){
- messageBox("취소된 검체 ", "E008");
- return;
- }
-
- if(spcstat =="1"){
- // 라벨출력
- model.setValue("/root/hidden/ref/cnclkind", "01");
-
- }else if(spcstat =="2"){
- // 채혈상태
- model.setValue("/root/hidden/ref/cnclkind", "01");
-
- }else if(spcstat =="3"){
- // 가접수 상태
- model.setValue("/root/hidden/ref/cnclkind", "02");
-
- }else if((spcstat =="4") && (rsltstat == "-")){
- // 접수 & 결과 미등록
- model.setValue("/root/hidden/ref/cnclkind", "02");
-
- }else if((spcstat =="4") && (rsltstat != "-")){
- // 접수 & 결과 등록
- model.setValue("/root/hidden/ref/cnclkind", "04");
-
- }
-
- rdo_cancelgbn.refresh();
-
- fSetCancelGbn();
- }
-
- // 취소 콤보 변경
- function fSetCancelCombo(value){
- 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") == value){
- 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 fSetSpcCancel(){
- // 취소 구분
- var cancelGbn = rdo_cancelgbn.value;
- //alert("cancelGbn= " + cancelGbn);
- // 현장검사 취소
- /*if(cancelGbn == "05"){
- fPoctCancel();
- return;
- }*/
- if(grd_spccancel.rows < 2 ){
- //alert("취소할 검체가 없습니다.");
- messageBox("취소할 검체가 ", "I004");
- return;
- }
-
-
- if(cancelGbn == "02" || cancelGbn == "03"){
- for(i=1; i< grd_spccancel.rows; i++){
- //alert("i= " + i);
- model.setValue("/root/main/cancelspc["+i+"]/chk", "true");
- }
- }
-
- var bcno = model.getValue("/root/hidden/ref/bcno");
-
- // 채혈/접수취소 버튼을 눌렀을 경우의 처리!!
- if((grd_spccancel.rows >= 1) && (bcno.substr(0, 1) != "G")){
- grd_spccancel.clearStatus();
-
- var checkin = false;
-
- for(i=1; i<=grd_spccancel.rows; i++){
- var chk = model.getValue("/root/main/cancelspc["+i+"]/chk");
-
- if(chk == "true"){
-
- checkin = "true";
- grd_spccancel.rowStatus(i) = 2;
- }
- }
-
- // 현장검사 아닌데 취소코드 없을때
- if(cancelGbn != "05"){
- if(model.getValue("/root/hidden/cancel/resncd")==""){
- messageBox("취소 코드를 ", "C001");
- return;
- }
- }
-
- // 취소사유 없을때
- if(model.getValue("/root/hidden/cancel/resndesc")==""){
- messageBox("취소 사유를 ", "C001");
- return;
- }
-
- if(checkin == false && (cancelGbn=="01" || cancelGbn=="04")){
- // 아무것도 체크되지 않은 경우 -> 채혈취소만 해당?!!!
- messageBox("채혈/취소할 항목을 ", "C002");
- return;
- }else{
- // SendData Set
- var cancelgrd = grd_spccancel.getUpdateData();
-
- model.setValue("/root/send/cancelgrd", cancelgrd); // 그리드 업데이트 정보 (i,u,d 상관없이 다 넘어감)
-
- //alert("cancelgrd = \n" + cancelgrd);
-
- var spcstat = model.getValue("/root/main/spcinfo/spcstat");
-
- if(spcstat == "4" && cancelGbn == "01"){
- messageBox("접수상태 입니다. 채혈취소 하실 수 ", "I004");
- return;
- }
-
- var rsltstat = model.getValue("/root/main/spcinfo/rsltstat");
-
- if(rsltstat != "-"){
- if(cancelGbn != "04"){
-
- messageBox("결과 등록된 상태 입니다. 검사취소만 하실 수 있습니다. ", "I");
- return;
- }
- }
-
- // cmc위수탁 의뢰된거 메세지 띄우기
- if(model.getValue("/root/main/spcinfo/spcflag")=="U"){
-
- //model.makeValue("/root/send/reqbcno", ubcno);
- //submit("TRLLJ00304");
-
- if(model.getValue("/root/hidden/truststat/acptstatcd")=="2"){ // 수탁병원에서 접수된 상태
- messageBox("cmc수탁접수된 검사입니다. 수탁병원과 협의후 진행하십시오.", "I");
- return;
- }else{ // 의뢰만 된거랑 기타상태
- messageBox("cmc위탁의뢰 된 검사 입니다. 취소 하시려면 CMC위탁 화면에서 의뢰취소 후 진행하십시오.", "I");
- return;
- }
- }
-
- // 수탁기관용 수탁접수된거는 cmc수탁에서만 취소되도록
- if(model.getValue("/root/main/spcinfo/trustbcno") != "-"){
- messageBox("cmc수탁접수된 검사입니다. cmc수탁화면에서 접수취소 하십시오.", "I");
- return;
- }
-
- model.setValue("/root/send/bcno", model.getValue("/root/hidden/ref/bcno")); // bcno
- model.setValue("/root/send/cancelgbn", rdo_cancelgbn.value); // 취소구분
- model.setValue("/root/send/resncd", cmb_resn.value); // 취소 코드
- model.setValue("/root/send/resndesc", model.getValue("/root/hidden/cancel/resndesc")); // 취소 사유
- model.setValue("/root/send/cmt", chk_cmt.value); // comment 전달
- model.setValue("/root/send/pid", model.getValue("/root/main/spcinfo/pid")); // 등록번호
- model.setValue("/root/send/spcstat", spcstat); // 검체 상태
- // 사유코드종류(01: 채혈취소, 02 : 접수취소, 03 : 채혈접수취소... 사유코드관리마스터 참조)
- model.setValue("/root/send/resncdkind", model.getValue("/root/init/cancelresn[resncd = '"+ cmb_resn.value +"']/resncdkind"));
-
- model.setValue("/root/hidden/cancel/rtnid", ipt_rtnnm.currentText);
-
- if(model.getValue("/root/hidden/cancel/rtnid") == ""){
- model.setvalue("/root/send/rtnid","-");
- }else {
- model.setvalue("/root/send/rtnid",model.getValue("/root/hidden/cancel/rtnid"));
- }
- //alert(model.getValue("/root/send/rtnid"));
- // Submit
- if(submit("TXLLJ00301")==true){
- model.reset();
- }
-
- //model.resetInstanceNode("/root/hidden/cancel");
- //model.resetInstanceNode("/root/send");
- //model.resetInstanceNode("/root/hidden/ref/bcno");
- //model.refresh();
-
- //cap_label.attribute("background-color") = "#ffffff";
- cap_bcoll.attribute("background-color") = "#ffffff";
- cap_cnfm.attribute("background-color") = "#ffffff";
- cap_acpt.attribute("background-color") = "#ffffff";
-
- //그리드 상태 Flag Clear
- //grd_spccancel.clearStatus();
- model.setFocus("ipt_bcno");
- }
- }else{
- if(bcno.substr(0, 1) == "G") {
- messageBox("헌혈 검체는 취소", "E001"); //헌혈검체는 취소할 수 없습니다.
- } else {
- messageBox("채혈/접수취소 할 검체리스트가 존재하지 않습니다. ", "I");
- }
- }
-
- /*
- // 채혈/접수취소 버튼을 눌렀을 경우의 처리!!
- if ( model.vsgrid("grdChwiSo").rows >= 1) {
- model.clearGridUpdateCheck("grdChwiSo");
-
- var blnCheck = false;
- for(i=1; i<=TFGetGridCount("grdChwiSo"); i++ ) {
- var chk = model.getvalue("/root/MainData/ChwiSoData[" + i + "]/chk");
- if (chk == "true") { // true -> check 되어있음.
- model.setGridFlag ("grdChwiSo", i, 1 ); // Update Flag Setting
- blnCheck = true;
- }
- }
-
- */
- //model.resetInstanceNode("/root/main/cancelspc");
- //model.resetInstanceNode("/root/main/spcinfo");
- //model.reset();
- //grd_spccancel.rebuild();
- }
-
- // 사유코드 콤보 선택
- 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/resndesc", model.getValue("/root/init/cancelresn["+i+"]/resndesc"));
- model.refresh();
- break;
- }
- }
- }
-
- // 부적합검체관리
- function fSetBadSpc(){
- //window.load("../../../lis/commonweb/xrw/SPLLJ90100_부적합검체등록.xrw","modeless", "SPLLJ90100_부적합검체등록", "width:360px; height:465;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
- //open(id,monNo,xPos,yPos,wid,ref,resultref,userProp,prevPos)
- open("SPLLJ90100", 1 ,300, 400, "SPLLJ90100");
- }
-
- // 그리드 체크박스 선택시 row 상태 변경
- function fSetRowStatus(){
- if(grd_spccancel.isCell(event.target) && grd_spccancel.row >= grd_spccancel.fixedRows){
- if(model.getValue("/root/main/cancelspc["+grd_spccancel.row+"]/chk")=="true"){
- grd_spccancel.rowStatus(grd_spccancel.row) = 2;
- }else{
- grd_spccancel.rowStatus(grd_spccancel.row) = 0;
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1195px; y2:71px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:95px; height:13px; ">검체정보목록</caption>
- <caption id="caption4" class="tit_2" style="left:5px; top:500px; width:70px; height:13px; ">검체상태</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:515px; x2:375; y2:515px; "/>
- <caption id="caption3" class="tit_2" style="left:385px; top:500px; width:70px; height:13px; ">검체정보</caption>
- <line id="line3" class="line_1" style="x1:380px; y1:515px; x2:755px; y2:515px; "/>
- <caption id="caption5" class="tit_2" style="left:765px; top:500px; width:70px; height:13px; ">취소사유</caption>
- <line id="line5" class="line_2" style="x1:760px; y1:542px; x2:1195px; y2:542px; "/>
- <caption id="caption8" class="cell_1" style="left:760px; top:568px; width:125px; height:166px; ">사유내용</caption>
- <line id="line4" class="line_1" style="x1:760; y1:515px; x2:1195px; y2:515px; "/>
- <line id="line8" class="line_2" style="x1:380px; y1:566px; x2:755px; y2:566px; "/>
- <line id="line7" class="line_2" style="x1:380px; y1:542px; x2:755px; y2:542px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:619px; x2:375px; y2:619px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:643px; x2:325px; y2:643px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:553px; width:125px; height:13px; ">환자기본신상정보</caption>
- <line id="line16" class="line_1" style="x1:0px; y1:568px; x2:375px; y2:568px; "/>
- <line id="line18" class="line_2" style="x1:0px; y1:595px; x2:375px; y2:595px; "/>
- <line id="line9" class="line_2" style="x1:380px; y1:590px; x2:755px; y2:590px; "/>
- <line id="line20" class="line_2" style="x1:380px; y1:662px; x2:755px; y2:662px; "/>
- <line id="line10" class="line_2" style="x1:380px; y1:614px; x2:755px; y2:614px; "/>
- <line id="line19" class="line_2" style="x1:380px; y1:638px; x2:755px; y2:638px; "/>
- <line id="line21" class="line_2" style="x1:380px; y1:686px; x2:755px; y2:686px; "/>
- <caption id="caption25" class="cell_1" style="left:380px; top:712px; width:125px; height:23px; ">접수자</caption>
- <line id="line22" class="line_2" style="x1:380px; y1:710px; x2:755px; y2:710px; "/>
- <line id="line11" class="line_3" style="x1:380px; y1:734px; x2:755px; y2:734px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:643px; x2:375px; y2:643px; "/>
- <line id="line25" class="line_2" style="x1:0px; y1:667px; x2:375px; y2:667px; "/>
- <line id="line26" class="line_2" style="x1:0px; y1:691px; x2:375px; y2:691px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:715px; x2:375px; y2:715px; "/>
- <line id="line6" class="line_3" style="x1:760px; y1:734px; x2:1195px; y2:734px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line15" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:115px; height:17px; ">바코드번호 :</caption>
- <input id="ipt_bcno" ref="/root/hidden/ref/bcno" class="input_button" imemode="disabled" inputtype="button" _chartype="upper" style="left:118px; top:8px; width:162px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- // 바코드번호 리딩 검체정보목록 조회
- //fGetCancelSpc();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 바코드번호 버튼 클릭 검체정보목록 조회
- fGetCancelSpc();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCancelSpc();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption21" class="cell_1" style="left:0px; top:693px; width:125px; height:23px; ">주민등록번호</caption>
- <caption id="caption22" class="cell_1" style="left:0px; top:717px; width:125px; height:23px; ">병동/병실</caption>
- <caption id="caption24" class="cell_1" style="left:0px; top:573px; width:125px; height:23px; ">바코드번호</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:669px; width:125px; height:23px; ">Sex/Age</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:597px; width:125px; height:23px; ">처방일자</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:621px; width:125px; height:23px; ">등록번호</caption>
- <caption id="caption19" class="cell_1" style="left:0px; top:645px; width:125px; height:23px; ">성명</caption>
- <line id="line24" class="line_3" style="x1:0px; y1:739px; x2:375px; y2:739px; "/>
- <caption id="caption10" class="cell_1" style="left:380px; top:544px; width:125px; height:23px; ">라벨발행일시</caption>
- <caption id="caption11" class="cell_1" style="left:380px; top:568px; width:125px; height:23px; ">라벨발행자</caption>
- <caption id="caption23" class="cell_1" style="left:380px; top:688px; width:125px; height:23px; ">접수일시</caption>
- <caption id="caption12" class="cell_1" style="left:380px; top:592px; width:125px; height:23px; ">채혈일시</caption>
- <caption id="caption13" class="cell_1" style="left:380px; top:640px; width:125px; height:23px; ">확인일시</caption>
- <caption id="caption14" class="cell_1" style="left:380px; top:664px; width:125px; height:23px; ">확인자</caption>
- <caption id="caption15" class="cell_1" style="left:380px; top:616px; width:125px; height:23px; ">채혈자</caption>
- <caption id="caption9" class="cell_1" style="left:380px; top:520px; width:125px; height:23px; ">검체명</caption>
- <caption id="caption7" class="cell_1" style="left:760px; top:520px; width:80px; height:23px; ">처방의</caption>
- <line id="line14" class="line_3" style="x1:0px; y1:543px; x2:375px; y2:543px; "/>
- <select1 id="rdo_cancelgbn" ref="/root/hidden/ref/cnclkind" appearance="full" cellspacing="20" cols="5" overflow="visible" style="left:120px; top:54px; width:510px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>채혈취소</label>
- <value>01</value>
- </item>
- <item>
- <label>접수취소</label>
- <value>02</value>
- </item>
- <item>
- <label>채혈/접수취소</label>
- <value>03</value>
- </item>
- <item>
- <label>검사취소</label>
- <value>04</value>
- </item>
- <item>
- <label>POCT DC처방취소</label>
- <value>05</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 취소방법 RadioButton을 변경한 경우
- fSetCancelGbn();
-
- //취소콤보 사유에 따라 변경...
- fSetCancelCombo(model.getValue("/root/hidden/ref/cnclkind"));
- ]]>
- </script>
- </select1>
- <datagrid id="grd_spccancel" nodeset="/root/main/cancelspc" caption="^검사코드^검사명^결과상태^진료과^의뢰의사^바코드번호^검체코드^검체명^IO구분^계코드^검사계코드^execprcpuniqno" colwidth="26, 90, 308, 100, 100, 90, 120, 60, 100, 50, 49, 80, 0" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:0px; top:76px; width:1195; height:416; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="tclscd"/>
- <col ref="tclsnm"/>
- <col ref="rsltstat"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="bcno"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <col ref="prcpgenrflag"/>
- <col ref="sectcd"/>
- <col ref="tsectcd"/>
- <col ref="execprcpuniqno"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetRowStatus();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 환자별 검체 정보 조회
- //alert(grd_spccancel.col ); //2008-06-18 윤재한 막음(한 검사만 결과저장된 경우 결과저장안된 검사 선택시 접수 취소가 된다. 그리 되믄 안되)
- //if(grd_spccancel.col >1){
- // fGetSpcInfo("select");
- //}
- ]]>
- </script>
- </datagrid>
- <caption id="cap_label" style="left:0px; top:521px; width:91px; height:20px; text-align:center; vertical-align:middle; background-color:#ffffff; border-color:#c0c0c0; border-width:1px; border-style:solid; ">라벨발행</caption>
- <caption id="cap_bcoll" style="left:95px; top:521px; width:91px; height:20px; text-align:center; vertical-align:middle; background-color:#ffffff; border-color:#c0c0c0; border-width:1px; border-style:solid; ">채혈</caption>
- <caption id="cap_cnfm" style="left:190px; top:521px; width:91px; height:20px; text-align:center; vertical-align:middle; background-color:#ffffff; border-color:#c0c0c0; border-width:1px; border-style:solid; ">확인</caption>
- <caption id="cap_acpt" style="left:285px; top:521px; width:90px; height:20px; text-align:center; vertical-align:middle; background-color:#ffffff; border-color:#c0c0c0; border-width:1px; border-style:solid; ">접수</caption>
- <caption id="caption26" visibility="hidden" style="left:275px; top:548px; width:58px; height:20px; vertical-align:middle; ">
- <![CDATA[숨길꺼 ->]]>
- </caption>
- <select1 id="cmb_resn" ref="/root/hidden/cancel/resncd" class="combo_default" appearance="minimal" style="left:888px; top:545px; width:307px; 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>
- <select id="chk_cmt" ref="/root/hidden/cmt" overflow="visible" appearance="full" style="left:855px; top:500px; width:100px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>comment 전달</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <output id="opt_bcno" ref="/root/main/spcinfo/bcno" class="output_fix" style="left:128px; top:574px; width:247px; height:19px; "/>
- <output id="opt_prcpdd" ref="/root/main/spcinfo/prcpdd" class="output_fix" format="yyyy-mm-dd" style="left:128px; top:598px; width:247px; height:19px; "/>
- <output id="opt_pid" ref="/root/main/spcinfo/pid" class="output_fix" style="left:128px; top:622px; width:247px; height:19px; "/>
- <output id="opt_patnm" ref="/root/main/spcinfo/patnm" class="output_fix" style="left:128px; top:646px; width:247px; height:19px; "/>
- <output id="opt_sexage" ref="/root/main/spcinfo/sexage" class="output_fix" style="left:128px; top:670px; width:247px; height:19px; "/>
- <output id="opt_prgstno" ref="/root/main/spcinfo/prgstno" class="output_fix" style="left:128px; top:694px; width:247px; height:19px; "/>
- <output id="opt_wardroom" ref="/root/main/spcinfo/wardroom" class="output_fix" style="left:128px; top:718px; width:247px; height:19px; "/>
- <output id="opt_spccd" ref="/root/main/spcinfo/spccd" class="output_fix" style="left:508px; top:521px; width:247px; height:19px; "/>
- <output id="opt_barcdprntdt" ref="/root/main/spcinfo/barcdprntdt" class="output_fix" format="yyyy-mm-dd" style="left:508px; top:545px; width:247px; height:19px; "/>
- <output id="opt_barcdprntid" ref="/root/main/spcinfo/barcdprntid" class="output_fix" style="left:508px; top:569px; width:247px; height:19px; "/>
- <output id="opt_bcolldt" ref="/root/main/spcinfo/bcolldt" class="output_fix" format="yyyy-mm-dd" style="left:508px; top:593px; width:247px; height:19px; "/>
- <output id="opt_bcollid" ref="/root/main/spcinfo/bcollid" class="output_fix" style="left:508px; top:617px; width:247px; height:19px; "/>
- <output id="opt_spcarvdt" ref="/root/main/spcinfo/spcarvdt" class="output_fix" format="yyyy-mm-dd" style="left:508px; top:641px; width:247px; height:19px; "/>
- <output id="opt_spcarvid" ref="/root/main/spcinfo/spcarvid" class="output_fix" style="left:508px; top:665px; width:247px; height:19px; "/>
- <output id="opt_spcacptdt" ref="/root/main/spcinfo/spcacptdt" class="output_fix" format="yyyy-mm-dd" style="left:508px; top:689px; width:247px; height:19px; "/>
- <output id="opt_spcacptid" ref="/root/main/spcinfo/spcacptid" class="output_fix" style="left:508px; top:713px; width:247px; height:19px; "/>
- <textarea id="tar_resn" ref="/root/hidden/cancel/resndesc" style="left:888px; top:569px; width:307px; height:162px; "/>
- <output id="opt_hidden" ref="/root/main/spcinfo/spcstat" visibility="hidden" style="left:335px; top:547px; width:40px; height:19px; border-style:dotted; "/>
- <line id="line17" class="line_2" style="x1:760px; y1:566px; x2:1195px; y2:566px; "/>
- <caption id="caption27" class="cell_1" style="left:760px; top:544px; width:125px; height:23px; ">사유코드</caption>
- <output id="output1" ref="/root/main/spcinfo/orddrnm" class="output_fix" style="left:843px; top:521px; width:90px; height:19px; "/>
- <caption id="caption28" class="cell_1" style="left:936px; top:520px; width:72px; height:23px; ">피통보자</caption>
- <output id="output3" ref="/root/main/getuserAnm/acceptnm" class="output_fix" style="left:1104px; top:521px; width:90px; height:19px; "/>
- <input id="ipt_rtnnm" ref="/root/hidden/cancel/rtnid" appearance="input" style="left:1011px; top:521px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_cancel" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetSpcCancel();
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_badspc" class="btn3_letter7" style="left:0px; top:3px; width:116px; height:22px; ">
- <caption>부적합검체관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //window.load("SMLLJ90100_부적합검체등록.xrw","modeless","width:312px; height:415;min:hidden;max:hidden;align:center");
- //window.load("SPLLJ90100_부적합검체등록.xrw","modeless", "SPLLJ90100_부적합검체등록", "width:360px; height:465;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
- fSetBadSpc();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; background-repeat:no-repeat; ">검체취소관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|