123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLC00100.xrw
- * 설 명 : 외래채혈관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2006.02.08
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" ztype="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>
- <bcoll>
- <bcolllist>
- <chk/>
- <prcpdd/>
- <orddeptnm/>
- <execdeptnm/>
- <ordrsrvdt/>
- <pid/>
- <prcphopedd/>
- <barcdprntdt/>
- </bcolllist>
- <ordrsrvinfo>
- <nm/>
- <cd/>
- </ordrsrvinfo>
- <tnsprcpinfo>
- <tnsprcpyn/>
- <bftnsprcpyn/>
- <today/>
- </tnsprcpinfo>
- <hngnminfo>
- <hngnm/>
- </hngnminfo>
- <jaewoninfo>
- <jaewon/>
- </jaewoninfo>
- <bloodinfo>
- <bloodchk/>
- </bloodinfo>
- </bcoll>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <bbcoll/>
- <PatNmBarCdPrint/>
- </main>
- <send>
- <data1/>
- <data2/>
- </send>
- <init>
- </init>
- <hidden>
- <JoHoiFlag>
- <refflag>1</refflag>
- <regnopatnm/>
- <bcollflag>1</bcollflag>
- <bizflag>Out</bizflag>
- <pid/>
- <hdisp/>
- <prcpgenrflag/>
- <xrwGBN/>
- <erflag/>
- <arvtime/>
- <orddeptcd/>
- <bcollflag1>1</bcollflag1>
- <ibftest/>
- <donorbcoll/>
- <prcpkindcd>-</prcpkindcd>
- </JoHoiFlag>
- <bcoll>
- <bcolllist>
- <chk/>
- <prcpdd/>
- <orddeptnm/>
- <execdeptnm/>
- <ordrsrvdt/>
- <pid/>
- </bcolllist>
- <ordrsrvinfo>
- <prestr/>
- </ordrsrvinfo>
- </bcoll>
- <cancelyn>1</cancelyn>
- <pflag>3</pflag>
- <autoref/>
- <ref>
- <searchtext/>
- <spccho/>
- </ref>
- <prcprcptyn/>
- <prcprcptinfo>
- <instcd/>
- <pid/>
- <flagvalue/>
- <flag/>
- </prcprcptinfo>
- </hidden>
- <temp>
- <locatelist/>
- <locatesend>
- <pid/>
- <prcpdd/>
- </locatesend>
- </temp>
- <spccdlist>
- <tclscd/>
- <tclsnm/>
- </spccdlist>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fBaseInfoRef("8001|0401|9990|0138|0139|");
-
- model.setValue( "/root/hidden/pflag", model.getValue("/root/init/LB9990/cd"))
- model.setvalue("/root/hidden/JoHoiFlag/xrwGBN" , "outbcoll");
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("bcollbarcdprntcnt"))=true; // 바코드갯수
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("reprntcnt"))=true; // 재출력범위
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("tclscd"))=true; // 검사코드
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("prcpdd"))=true; // 처방등록일
- grd_BcollInfo.colHidden(grd_BcollInfo.colRef("barcdprntdt"))=true; // 바코드출력일시
-
-
- grd_BcollInfo.fixedcellcheckbox(0,1) = true;
-
- if(getUserInfo("dutplceinstcd") == "012") {
- datagrid1.visible = true;
- }
-
- btn_chkn.attribute("visibility") = "visible"; //전체선택해제 보이기
-
- fChangeDonorYN();
-
- model.setValue("/root/hidden/JoHoiFlag/ibftest", model.getValue("/root/init/LB0138/cd"));
- fSetBcollFlag();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <submission id="TRLLC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/locatelist"/>
- <submission id="TRLLC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bcoll"/>
- <submission id="TRLLC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bbcoll"/>
- <submission id="TRLZZ90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/PatNmBarCdPrint"/>
- <submission id="TRAEA01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/prcprcptinfo" replace="instance" resultref="/root/hidden/prcprcptyn"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLC90904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/ordlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 채혈구분 선택시 버튼영역 변경
- function fSetBcollFlag(){
- fInitForm_Click();
-
- if(model.getValue("/root/hidden/JoHoiFlag/bcollflag")=="1"){
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("bcno"))=true; // 바코드번호
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("canceldesc"))=true; // 취소사유
- grd_BcollInfo.colHidden(grd_BcollInfo.colRef("barcdprntdt"))=true; // 바코드출력일
- checkbox4.visible = true;
- }else{
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("bcno"))=false; // 바코드번호
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("canceldesc"))=false; // 취소사유
- grd_BcollInfo.colHidden(grd_BcollInfo.colRef("barcdprntdt"))=false; // 바코드출력일
- checkbox4.visible = false;
- model.setValue("/root/hidden/JoHoiFlag/hdisp", "");
- }
-
- if(model.getValue("/root/hidden/JoHoiFlag/bcollflag")=="1"){
- group4.attribute("visibility") = "visible";
- group6.attribute("visibility") = "hidden";
- group7.attribute("visibility") = "hidden";
- }else if(model.getValue("/root/hidden/JoHoiFlag/bcollflag")=="2"){
- group4.attribute("visibility") = "hidden";
- group6.attribute("visibility") = "visible";
- group7.attribute("visibility") = "hidden";
- }else{
- group4.attribute("visibility") = "hidden";
- group6.attribute("visibility") = "hidden";
- group7.attribute("visibility") = "visible";
- }
- }
-
- function fInitForm_Click() {
- fInitDetailForm();
- }
- // 외래 환자 채혈 리스트 조회
- function fGetOutBCollJoHoi(){
-
- caption1.visible = false;
- caption7.visible = false;
-
- if(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm") == ""){
- messageBox("등록번호를","C001","") ;
- return;
- }
- /* 2014.7월 30일 수사변경에 따른 작업 */
- // if( model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1" )
- // {
- // getPrcpRcptCheck(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm"));
- // }
- /* 2014.7월 30일 수사변경에 따른 작업 */
- delPatientInfos(); //새로운 등록번호 치면 상단정보 초기화
-
- fInitDetailForm();
-
- var gbn = model.getvalue("/root/hidden/JoHoiFlag/refflag");
-
- model.setvalue("/root/hidden/JoHoiFlag/regnopatnm", model.getValue("/root/hidden/JoHoiFlag/regnopatnm").getTrim());
- model.copyNode("/root/send/data1","/root/hidden/JoHoiFlag");
-
- submit("TRLLC00101");
- //messageBox(model.getValue("/root/main/bcoll/jaewon"));
- //messageBox(model.getValue("/root/main/bcoll/jaewoninfo/jaewon"),'1010');
- // alert(model.getValue("/root/main/bcoll/jaewoninfo/jaewon"));
-
- //=============================================================
- //2012 08. 30일 입원유무체크 이재오 추가
- //=============================================================
- if(model.getValue("/root/main/bcoll/jaewoninfo/jaewon") == "Y") {
- messageBox("입원중인 환자입니다. 확인하세요", "1");
- }
- //=============================================================
-
- //=============================================================
- //2012 08. 30일 입원유무체크 이재오 추가
- //=============================================================
- if(model.getValue("/root/main/bcoll/bloodinfo/bloodchk") == "Y") {
- messageBox("사혈 또는 자가채혈이 존재하는 환자입니다. 확인하세요", "1");
- }
- //=============================================================
- //=============================================================
- //외래 수혈 처방 존재 여부 메시지 - 2009.04.02 김성희 추가
- //=============================================================
- if(model.getValue("/root/main/bcoll/tnsprcpinfo/tnsprcpyn") == "Y") {
- messageBox("수혈처방이", "I010");
- }else if(model.getValue("/root/main/bcoll/tnsprcpinfo/tnsprcpyn") == "N" && model.getValue("/root/main/bcoll/tnsprcpinfo/bftnsprcpyn") == "Y") {
- messageBox("한달 이내에 수혈 내역이", "I010");
- }
- model.removeNodeset("/root/send/data1");
- model.makeNode("/root/send/data1");
-
- //진료예약정보 기본선택
- cmb_prestr.select(0);
- fClick_grdBcollinfo("1");
-
- //========================================================================
- //2009.07.01 고시변경에 의한 본인부담 요율변경 대상 환자
- //원무 수납 재정산 안내 메시지 및 메시지 출력 여부 (2009.06.30 김성희 추가)
- //========================================================================
- fGetPrcpRcptInfo(getUserInfo("dutplceinstcd")
- , model.getValue("/root/hidden/JoHoiFlag/regnopatnm").getTrim()
- , model.getValue("/root/init/LB8001/cd")
- , "1");
- // 당일검사시 검사희망일 및 처방일 색깔 빨강색으로 둔다
- if(grd_BcollInfo.rows > 0) {
- for(iRow = 1; iRow < grd_BcollInfo.rows;iRow++)
- {
- if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today"))
- {
- grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcphopedd")) = "#ff3300";
- grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcpdd")) = "#ff3300";
- }
- }
- }
- // for(iRow = fRow + 1; iRow < grd_BcollInfo.rows;iRow++){
- // if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today")){
- // grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcphopedd")) = "#ff3300";
- //
- // }
- // }
-
- }
- //리스트 클릭
- function fGetTclscdList(row){
-
- btn_chky.attribute("visibility") = "hidden"; //전체선택 숨기기
- btn_chkn.attribute("visibility") = "visible"; //전체선택해제 보이기
-
- if(model.getvalue("/root/hidden/JoHoiFlag/hdisp") != "1"){ //통합표시 아닐때.
- model.setvalue("/root/hidden/JoHoiFlag/pid",model.getvalue("/root/main/bcoll/bcolllist["+row+"]/pid"));
- model.setvalue("/root/hidden/JoHoiFlag/prcpgenrflag",model.getvalue("/root/main/bcoll/bcolllist["+row+"]/prcpgenrflag"));
- model.setvalue("/root/hidden/JoHoiFlag/orddeptcd",model.getvalue("/root/main/bcoll/bcolllist["+row+"]/orddeptcd"));
-
- model.copyNode("/root/send/data1","/root/main/bcoll/bcolllist["+row+"]");
- model.copyNode("/root/send/data2","/root/hidden/JoHoiFlag");
- }
- else{ //통합표시일 경우.
- if(model.getValue("/root/hidden/JoHoiFlag/bcollflag1") == "1") { //희망일시인 경우.
- var prcphopedtList = "";
- var orddeptcdList = "";
- var orddridList = "";
- var prcpddList = "";
-
- if(grd_BcollInfo.rows > 0) {
- var fRow = grd_BcollInfo.findRow("true",1,1,true);
-
- if(fRow < 1) return;
-
- prcphopedtList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/prcphopedd") + "'";
- orddeptcdList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/orddeptcd") + "'";
- orddridList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/orddrid") + "'";
- prcpddList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/prcpdd") + "'";
-
- for(iRow = fRow + 1; iRow < grd_BcollInfo.rows;iRow++){
- if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/chk") == "true"){
-
- prcphopedtList = prcphopedtList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") + "'";
- orddeptcdList = orddeptcdList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/orddeptcd") + "'";
- orddridList = orddridList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/orddrid") + "'";
- prcpddList = prcpddList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcpdd") + "'";
-
- }
- }
-
- model.copyNode("/root/send/data1","/root/main/bcoll/bcolllist["+fRow+"]");
- model.copyNode("/root/send/data2","/root/hidden/JoHoiFlag");
- model.makeValue("/root/send/data1/prcpdd",prcphopedtList);
- model.makeValue("/root/send/data1/orddeptcd",orddeptcdList);
- model.makeValue("/root/send/data1/orddrid",orddridList);
- model.makeValue("/root/send/data1/prcpdd2",prcpddList); // prcpdd는 이미 쓰이고 있어서 prcpdd2 로... 왜 희망일시를 prcpdd로 셋하는지 모르겠음.
-
- model.refresh();
- }
- }
- }
-
- // alert(model.getValue("/root/main/TestInfo/bfcontrol/bfcontrolyn"));
- // 이재오 추가 2013
-
- model.removeNodeset("/root/main/TestInfo/getTestInfoCnts");
- model.resetInstanceNode("/root/main/TestInfo/TestspcfInfo");
-
- model.refresh();
-
- submit("TRLLC00102");
- //=============================================================
- //2013 10. 30일 주의사항 관리 이재오 추가
- //=============================================================
- var ordList = model.getvalue("/root/main/TestInfo/getTestInfoCnts[0]/tclscd") ; ;
- if(grd_TestInfoCnts.rows > 0) {
- // alert(grd_TestInfoCnts.rows);
- for(iRow = 1; iRow < grd_TestInfoCnts.rows ;iRow++){
- ordList = ordList + "','" + model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/tclscd") ;
- }
-
- model.makeValue("/root/send/data1/tclscdlist","'" + ordList + "'");
- submit("TRLLC90904");
- var count = getNodesetCount("/root/spccdlist");
- if(count > 0){
- for(i=1; i<= count; i++){
- var tclscd = model.getValue("/root/spccdlist["+i+"]/tclscd");
- var tclscdnm = model.getValue("/root/spccdlist["+i+"]/tclsnm");
- if(model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1") { //미채혈 일때
- if (tclscd != "" ){
- messageBox("주의! " + tclscd + " : " + tclscdnm, "I007");
- }
- }
- }
- }
- model.removeNodeset("/root/spccdlist");
- }
-
- //=============================================================
- //2012 08. 30일 사전체크 이재오 추가
- //=============================================================
- if(model.getValue("/root/main/TestInfo/bfcontrol/bfcontrolyn") == "Y") {
- messageBox("최근 90일 이내에 실시된 검사가 있습니다. HbA1c는 3~4개월에 1회만 보험인정됩니다", "I007");
- }
-
- //=============================================================
- //2014 07. 31일 수가변경에 따른 검사오더 검증 사전체크 이재오 추가
- //=============================================================
- iMaxRowCnt = getNodesetCount("/root/main/TestInfo/getTestInfoCnts");
- if( model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1" && iMaxRowCnt > 0 ) {
- for(iRow = 1; iRow <= iMaxRowCnt ;iRow++){
- var pid = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/pid") ;
- var prcpdd = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/prcpdd") ;
- var execprcpuniqno = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/execprcpuniqno") ;
- var cnt = getPrcpRcptCheck('LIS', pid, '', '', prcpdd, execprcpuniqno);
- if ( cnt > 0 ) break;
- }
- }
-
- model.removeNodeset("/root/send/data1");
- model.removeNodeset("/root/send/data2");
- model.makeNode("/root/send/data1");
- model.makeNode("/root/send/data2");
-
- fGridReMake();
- model.refresh();
- }
-
- function fClick_grdBcollinfo (flag){
-
-
- if(flag == "1"){
- if(grd_BcollInfo.rows > 1) {
- grd_BcollInfo.row= 1;
- fGetBBcoll(1);
- fGetTclscdList(1);
- fGetPopupLocate(1);
- }else{
- //채혈정보 존재하지 않으면 탑정보 초기화.
- //delPatientInfos(); //미채혈 화면에서 환자 바코드 출력후 환자의 검사 정보가 바로 채혈화면으로
- //활성화 되지 않고 다음번 행위부터 활성화요청 바람.( 화면이 사라지지 않게 바람
- //라는 요구사항(상단 탑정보 초기화 하지 않길 원함 변경요청 10763 20100211수정
- fGetPopupLocate(1);
- return;
- }
- }
- else{
- var row = grd_BcollInfo.row;
- if(grd_BcollInfo.isCell(event.target) && grd_BcollInfo.row >= grd_BcollInfo.fixedRows ){
- if(row > 0){
- fGetBBcoll(row)
- fGetTclscdList(row);
- fGetPopupLocate(1);
- }
- }
- }
-
-
- }
-
- //성가병원 가야할 곳
- function fGetPopupLocate(row){
-
- iPopupLocateCount= getNodesetCount("/root/init/LB0401");
- caption1.visible = false;
- caption7.visible = false;
-
-
- if(iPopupLocateCount > 0){
-
- var prcpdd = model.getvalue("/root/main/bcoll/bcolllist["+row+"]/prcphopedd");
-
- if(prcpdd == ""){
-
- var toDay = getCurrentDate();
-
- model.setValue("/root/temp/locatesend/prcpdd", toDay);
- }else{
- model.setValue("/root/temp/locatesend/prcpdd", prcpdd);
- }
- model.setValue("/root/temp/locatesend/pid", model.getValue("/root/hidden/JoHoiFlag/regnopatnm"));
- model.copyNode("/root/send/data2","/root/temp/locatesend");
-
- submit("TRLLC00104");
-
- model.removeNodeset("/root/send/data2");
- model.makeNode("/root/send/data2");
-
- var ekg = model.getValue("/root/temp/locatelist/ekg");
- var inject = model.getValue("/root/temp/locatelist/inject");
- var pat = model.getValue("/root/temp/locatelist/pat");
- var exam = model.getValue("/root/temp/locatelist/exam");
- var inpt = model.getValue("/root/temp/locatelist/inpt");
-
- var PopLocate = "";
- var InptLocate = "";
-
-
- if(ekg != "N"){
- PopLocate = PopLocate + ekg;
- }
- if(inject != "N"){
- if(PopLocate == ""){
- PopLocate = PopLocate + inject;
- }else{
- PopLocate = PopLocate + ", " + inject;
- }
- }
- if(pat != "N"){
- if(PopLocate == ""){
- PopLocate = PopLocate + pat;
- }else{
- PopLocate = PopLocate + ", " + pat;
- }
-
- }
- if(exam != "N"){
- if(PopLocate == ""){
- PopLocate = PopLocate + exam;
- }else{
- PopLocate = PopLocate + ", " + exam;
- }
- }
- if(inpt != "N"){
-
- InptLocate = inpt;
-
- }
-
-
- if(PopLocate != ""){
- PopLocate = PopLocate + "\n처방이 있습니다.";
- caption1.value = PopLocate;
- caption1.visible = true;
- caption1.refresh();
- }
- if(InptLocate != ""){
- InptLocate = InptLocate;
- caption7.value = InptLocate;
- caption7.visible = true;
- caption7.refresh();
- }
- }
- model.setFocus("iptSearch");
- }
-
-
-
- //오늘 채혈한 환자 조회
- function fGetBBcoll(row) {
- if(model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1") {
- model.makeValue("/root/send/pid", model.getValue("/root/main/bcoll/bcolllist["+ row +"]/pid"));
-
- submit("TRLLC00103");
-
- if(getNodesetCount("/root/main/bbcoll") > 0) {
- messageBox("오늘 채혈한 항목이 있습니다.", "I");
- }
-
- if(model.getvalue("/root/main/bcoll/bcolllist["+row+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today"))
- {
- if(getUserInfo("dutplceinstcd") == "031") {
- model.setValue("//root/hidden/JoHoiFlag/erflag", '1');
- }
- }
- }
- model.removenode("/root/send/pid");
- }
-
- //Donor 채혈 선택, 해제에 따른 환자명 보이기
- function fChangeDonorYN(row) {
- if(model.getValue("/root/hidden/JoHoiFlag/donorbcoll") == "Y") { //donor채혈이면 공여자명 보임
- grd_BcollInfo.colHidden(grd_BcollInfo.colRef("hngnm")) = false;
- } else {
- grd_BcollInfo.colHidden(grd_BcollInfo.colRef("hngnm")) = true;
- }
-
- model.refresh();
- }
-
- //바코드 일반이냐 자동이냐에 따라 프린터 설정 값 변경.
- function fPrintSetChange() {
- if(radio1.value == "1") {
- if(getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/genr") == 0) {
- messageBox("일반프린터 설정이 되어 있지 않습니다. 일반프린터 설정을", "I008");
- return;
- }
- copyNodeType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/genr");
- }else if(radio1.value == "3") {
- if(getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/auto") == 0) {
- messageBox("Auto프린터 설정이 되어 있지 않습니다. Auto프린터 설정을", "I008");
- return;
- }
- copyNodeType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/auto");
- }
-
- model.refresh();
- }
-
- //통합표시 체크박스 선택시에
- function fAllDisp(){
- if(model.getvalue("/root/hidden/JoHoiFlag/hdisp") == "1"){
- var pid = "";
- iCnt = 0;
- if(grd_BcollInfo.rows > 0){
-
- for(iRow = 1; iRow < grd_BcollInfo.rows;iRow++){
- if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/chk") =="true" && iCnt == 0){
- pid= model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/pid");
- iCnt ++;
- }
-
- if(iCnt != 0){
- if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/chk") =="true"){
- if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/pid") != pid){
-
- grd_BcollInfo.fixedcellischeck(0,1) = "false";
- messageBox("다른환자의 선택으로 통합표시를 할수 없습니다.", "I");
- return;
-
- }
- }
- }
-
- }
- if(iCnt !=0){
- fGetTclscdList(grd_BcollInfo.row); //다른환자가 없을시에는 통합조회한다.
- }
-
- }
- }
- else{
- model.removeNodeset("/root/main/TestInfo/getTestInfoCnts");
- model.refresh();
- }
- }
-
- //타이머
- var gTimerID;
- function fTimer(){
- gTimerID = window.setInterval( "fDaeGiCnt()", 5 * 1000 ); //5초 마다 대기인수 바뀜.
- }
-
- function fDaeGiCnt() {
- model.setValue("/root/hidden/JoHoiFlag/regnopatnm", iptSearch.currentText);
- model.removeNodeset("/root/main/daegicnt");
-
- datagrid1.refresh();
-
- var sSetUpVal = model.getValue("/root/main/barcdprntsetup/prntsetupinfo/auto[1]/comm03/daegiip");
-
- var sReturn = AutoLabel.WAITDATA(0, sSetUpVal);
- //var sReturn = "A|1|10|1-1001,2-1002,|^B|1|20|1-2001,2-2002,3-2003,|^C|3|15|1-3001,2-3002,3-3003,4-3004,|^D|1|16|1-4001,2-4002,3-4003,|^"
- /* A|1|10|1-1001,2-1002,|^
- B|1|20|1-2001,2-2002,3-2003,|^
- C|3|15|1-3001,2-3002,3-3003,4-3004,|^
- D|1|16|1-4001,2-4002,3-4003,|^
- */
-
- //alert(sReturn);
-
- if(sReturn != "") { //오류가 나지 않았다면.
- var vJangBi = sReturn.split("^");
-
- datagrid1.addRow();
- model.makeNode("/root/main/daegicnt");
-
- for(i = 0; i < vJangBi.length-1; i++) {
- var vDaegi = vJangBi[i].split("|");
- model.makeValue("/root/main/daegicnt/jangbi" + i, vDaegi[2]);
- }
- }
- datagrid1.refresh();
- }
-
- //자동장비대기건수 조회
- function fAutoRefYN() {
- if(model.getValue("/root/hidden/autoref") == "Y") {
- fDaeGiCnt();
-
- fTimer();
- } else {
-
- if (gTimerID != "") window.clearInterval(gTimerID);
-
- model.removeNodeset("/root/main/daegicnt");
- }
-
- model.refresh();
- }
- /* @group : 환자명 바코드 출력 기능
- * @ver : 2009.04.07
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 환자명 바코드 출력
- */
- function fGetPatNmBarCdPrint(){
- var pid = "";
- var toppid = getPatientInfo("pid");
-
- //top 정보가 없으면 조회조건에 입력한 환자번호
- if(toppid == ""){
- pid = model.getValue("/root/hidden/JoHoiFlag/regnopatnm");
- //top 정보가 있으면 탑정보의 환자번호
- }else{
- pid = toppid;
- }
-
- if(pid==""){
- messageBox("환자등록번호를 확인해주세요." , "I");
- return;
- }
-
- if(toppid != "" && toppid != model.getValue("/root/hidden/JoHoiFlag/regnopatnm")){
- messageBox("조건의 등록번호와 상단정보가 일치하지 않습니다." , "I");
- return;
- }
-
- model.removeNodeset("/root/send/data1");
-
- model.makeValue("/root/send/data1" , pid);
-
- submit("TRLZZ90101");
- if(getNodesetCount("/root/main/PatNmBarCdPrint/printinfo") > 0){
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7" ){
- fPatNmBarCdLabelSaTo("/root/main/PatNmBarCdPrint/printinfo");
- }else if( prtkind == "8"){
- fPatNmBarCdLabel_B472("/root/main/PatNmBarCdPrint/printinfo");
- }else{
- fPatNmBarCdLabel("/root/main/PatNmBarCdPrint/printinfo");
- }
- }
-
- }
- function fGetPatNmBarCdPrint_in(){
- var pid = "";
- var toppid = getPatientInfo("pid");
- //alert("바코드 분기1");
- //top 정보가 없으면 조회조건에 입력한 환자번호
- if(toppid == ""){
- pid = model.getValue("/root/hidden/JoHoiFlag/regnopatnm");
- //top 정보가 있으면 탑정보의 환자번호
- }else{
- pid = toppid;
- }
-
- if(pid==""){
- messageBox("환자등록번호를 확인해주세요." , "I");
- return;
- }
-
- if(toppid != "" && toppid != model.getValue("/root/hidden/JoHoiFlag/regnopatnm")){
- messageBox("조건의 등록번호와 상단정보가 일치하지 않습니다." , "I");
- return;
- }
- //alert("바코드 분기1");
- model.removeNodeset("/root/send/data1");
-
- model.makeValue("/root/send/data1" , pid);
- //alert("바코드 분기2");
- submit("TRLZZ90101");
- if(getNodesetCount("/root/main/PatNmBarCdPrint/printinfo") > 0){
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- if( prtkind == "2" || prtkind == "6" || prtkind == "7" ){
- fPatNmBarCdLabelSaTo("/root/main/PatNmBarCdPrint/printinfo");
- }else if(prtkind == "8"){
- fPatNmBarCdLabel_B472("/root/main/PatNmBarCdPrint/printinfo");
- }else{
- //alert("바코드 분기3");
- fPatNmBarCdLabel("/root/main/PatNmBarCdPrint/printinfo");
- }
- }
-
- }
- function fPrintPatnm(){
- var pid = "";
- var toppid = getPatientInfo("pid");
-
- //top 정보가 없으면 조회조건에 입력한 환자번호
- if(toppid == ""){
- pid = model.getValue("/root/hidden/JoHoiFlag/regnopatnm");
- //top 정보가 있으면 탑정보의 환자번호
- }else{
- pid = toppid;
- }
-
- if(pid==""){
- messageBox("환자등록번호를 확인해주세요." , "I");
- return;
- }
-
- if(toppid != "" && toppid != model.getValue("/root/hidden/JoHoiFlag/regnopatnm")){
- messageBox("조건의 등록번호와 상단정보가 일치하지 않습니다." , "I");
- return;
- }
-
- model.removeNodeset("/root/send/data1");
- model.makeValue("/root/send/data1" , pid);
-
- submit("TRLZZ90101");
- var orddd = model.getvalue("/root/main/PatNmBarCdPrint/printinfo/printdt");
- var orddday = orddd.substr(0,4) + orddd.substr(5,2) + orddd.substr(8,2);
- model.makeValue("/root/temp2/printdata/patname/orddd", orddday);
- model.makeValue("/root/temp2/printdata/patname/patnm", model.getvalue("/root/main/PatNmBarCdPrint/printinfo/patnm"));
- model.makeValue("/root/temp2/printdata/patname/pid", pid);
- model.makeValue("/root/temp2/printdata/patname/sexage", model.getvalue("/root/main/PatNmBarCdPrint/printinfo/patsexage"));
- exeReportPreview("RPMNO00111", "XMLSTR", "", "", "true", "false", "", "", "", "true");
-
- // model.makeValue("/root/temp2/printdata/patname/orddrnm", orddrnm);
- // model.makeValue("/root/temp2/printdata/patname/orddeptnm", orddeptnm);
-
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,200;1,79;1,340;1,193;1,379;1,147;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">외래채혈</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <import id="import1" disabled="false" visibility="visible" instancetype="merge" src="SSLLC80100_채혈검사처방상세.xrw" style="left:325px; top:10px; width:870px; height:734px; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:230px; width:115px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">채혈정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:245px; x2:320px; y2:245px; "/>
- <group id="group2" style="left:0px; top:10px; width:325px; height:85px; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:320px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:32px; width:94px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호</caption>
- <select1 id="combo3" ref="/root/hidden/JoHoiFlag/bcollflag" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:200px; height:19px; ">
- <choices>
- <item>
- <label>전체조회</label>
- <value>0</value>
- </item>
- <item>
- <label>미채혈</label>
- <value>1</value>
- </item>
- <item>
- <label>채혈</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetBcollFlag();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:15px; top:9px; width:94px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">채혈구분 :</caption>
- <input id="iptSearch" ref="/root/hidden/JoHoiFlag/regnopatnm" class="input_s_button" navindex="1" inputtype="button" style="left:105px; top:32px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetOutBCollJoHoi();
- ]]>
- </script>
- </input>
- <output id="ipt_hngnm" ref="/root/main/bcoll/hngnminfo/hngnm" class="output_fix" style="left:201px; top:32px; width:85px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:58px; width:117px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">도착시간등록 :</caption>
- <input id="iptArv" ref="/root/hidden/JoHoiFlag/arvtime" format="9999-99-99 99:99:99" style="left:130px; top:57px; width:100px; height:19px; "/>
- </group>
- <datagrid id="grd_BcollInfo" nodeset="/root/main/bcoll/bcolllist" allowselection="false" caption="^처방일자^Donor 명^진료과^검사희망일^채혈일^진료예약일^등록번호^testdeptcd^testdeptflagcd^tnsyn" colsep="^" colwidth="22, 60, 80, 70, 70, 70, 76, 100, 10, 10, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="byrow" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:250px; width:320px; height:470px; border-color:#c0c0c0; ">
- <col checkvalue="true,false" ref="chk" type="checkbox" style="text-align:center; "/>
- <col ref="prcpdd"/>
- <col ref="hngnm"/>
- <col ref="orddeptnm"/>
- <col ref="prcphopedd" format="yyyy-mm-dd"/>
- <col ref="barcdprntdt" format="yyyy-mm-dd"/>
- <col ref="ordrsrvdt" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="testdeptcd" visibility="hidden"/>
- <col ref="testdeptflagcd" visibility="hidden"/>
- <col ref="tnsyn" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fClick_grdBcollinfo();
-
- ]]>
- </script>
- </datagrid>
- <select id="checkbox1" ref="/root/hidden/JoHoiFlag/erflag" overflow="visible" appearance="full" style="left:235px; top:68px; width:76px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>응급채혈</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <button id="button61" class="icon_search" style="left:288px; top:43px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // modal("SPPMC02500");
- model.makeValue("/root/source/srchcond", "3");
- modal("SPPMC02500", 1,"150", "150", "SPPMC02500", "/root/source", "/root/send");
- var pid = model.getValue ( "/root/main/patinfo/patinfolist/pid" );
- if ( !isNull (pid )) { //받아온 값이 있으면 조회
- model.setvalue("/root/hidden/JoHoiFlag/regnopatnm" , pid);
- fGetOutBCollJoHoi();
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_prestr" ref="/root/hidden/bcoll/ordrsrvinfo/prestr" visibility="hidden" appearance="minimal" lass="combo_search" style="left:285px; top:230px; width:32px; height:10px; ">
- <choices>
- <itemset nodeset="/root/main/bcoll/ordrsrvinfo">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox4" ref="/root/hidden/JoHoiFlag/hdisp" overflow="visible" appearance="full" style="left:81px; top:230px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>통합표시</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetBBcoll(grd_BcollInfo.row);
- fGetTclscdList(grd_BcollInfo.row);
- ]]>
- </script>
- </select>
- <button id="button4" class="btn5_letter6" visibility="visible" style="left:235px; top:723px; width:86px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>환자명바코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //
- if(getUserInfo("dutplceinstcd") == "031") {
- fGetPatNmBarCdPrint();
- model.setFocus("iptSearch");
- }else{
- fGetPatNmBarCdPrint_in();
- model.setFocus("iptSearch");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" visibility="hidden" style="left:465px; top:265px; width:360px; height:70px; font-size:16pt; text-align:center; background-color:#ffff99; border-color:#ffcc00; border-width:2px; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- caption1.visible = false;
- caption1.refresh();
- ]]>
- </script>
- </caption>
- <caption id="caption7" visibility="hidden" style="left:465px; top:335px; width:360px; height:70px; font-size:16pt; text-align:center; background-color:#ccffff; border-color:#33cccc; border-width:2px; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- caption7.visible = false;
- caption7.refresh();
- ]]>
- </script>
- </caption>
- <datagrid id="datagrid2" nodeset="/root/main/bcoll/ordrsrvinfo" allowselection="false" caption="번호^예약일" colsep="^" colwidth="30, 200" mergecellsfixedrows="bycolrec" rowsep="|" style="left:55px; top:100px; width:250px; height:125px; ">
- <col ref="cd" style="text-align:center; "/>
- <col ref="nm" style="text-align:center; "/>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:5px; top:100px; width:45px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">진료</caption>
- <caption id="caption9" style="left:20px; top:120px; width:30px; height:13px; font-weight:bold; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">예약</caption>
- <caption id="caption10" style="left:20px; top:145px; width:30px; height:13px; font-weight:bold; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">정보</caption>
- <button id="button6" visibility="hidden" style="left:5px; top:180px; width:45px; height:20px; ">
- <caption>button6</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fRow = grd_BcollInfo.findRow("true",1,1,true);
- // for(iRow = fRow + 1; iRow < grd_BcollInfo.rows;iRow++){
- if(grd_BcollInfo.rows > 0) {
- for(iRow = 1; iRow < grd_BcollInfo.rows;iRow++){
- if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today")){
- // if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == '20140107'){
- grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcphopedd")) = "#ff3300";
- grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcpdd")) = "#ff3300";
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn5_letter6" visibility="visible" style="left:110px; top:723px; width:105px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>이름표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrintPatnm();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- <button id="button9" class="btn5_letter6" visibility="visible" style="left:0px; top:723px; width:87px; height:19px; background-image:../../../com/commonweb/images/btn3_letter8.gif; ">
- <caption>환자명 프린터</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatNmBarCdPrint_in();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:32px; ">
- <button id="button26" class="btn3_letter5" style="left:1px; top:2px; width:92px; height:22px; background-image:../../../com/commonweb/images/btn3_letter5.gif; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/genr"); //프린터 설정 안에 일반설정이 있을경우
-
- if(count != 0) {
- model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/genr"); //새 설정으로 바꾸기 위해 삭제..
- }
-
- count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/auto"); //프린터 설정 안에 auto설정이 있을경우
-
- if(count != 0) {
- model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/auto"); //새 설정으로 바꾸기 위해 삭제
- }
-
- copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/genr", "after");
- copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/auto", "after");
-
- modal("SPLLC91000" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/genr"); //일반 프린터 설정이 있을경우..
-
- if(count != 0) {
- model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/genr"); //새 설정으로 바꾸기 위해 삭제..
- }
-
- count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/auto"); //auto 프린터 설정이 있을경우..
-
- if(count != 0) {
- model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/auto"); //새 설정으로 바꾸기 위해 삭제
- }
-
- //새 설정으로 바꿈.
- copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo/genr", "after");
- copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo/auto", "after");
-
- fPrintSetChange();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:96px; top:2px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter6.gif; ">
- <caption>채취일시등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPLLC90300");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn3_letter4" style="left:203px; top:2px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>이력조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm") ==""){
- setParameter ( "SMMMO02500_cond", getPatientInfo("pid"));
- }else{
- setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden/JoHoiFlag/regnopatnm"));
- }
- open ( "SMMMO02500" );
- ]]>
- </script>
- </button>
- <line id="line7" class="line_3" style="x1:0px; y1:26px; x2:320px; y2:26px; "/>
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button2" class="btn3_letter4" style="left:390px; top:2px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>수혈처방</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPLBT90400");
- ]]>
- </script>
- </button>
- <group id="group7" style="left:819px; top:0px; width:370px; height:25px; ">
- <button id="btn_can3" class="btn4_letter3" style="left:302px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClear();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- </group>
- <button id="button3" class="btn3_letter6" style="left:285px; top:2px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>전환검체변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm") ==""){
- model.setValue("/root/hidden/ref/searchtext" , getPatientInfo("pid"));
- }else{
- model.setValue("/root/hidden/ref/searchtext" , model.getvalue("/root/hidden/JoHoiFlag/regnopatnm"));
- }
- modal("SPLLC90900","","","","","/root/hidden/ref","/root/hidden/ref");
- ]]>
- </script>
- </button>
- <group id="group6" style="left:820px; top:0px; width:370px; height:25px; ">
- <button id="button1" class="btn4_letter3" style="left:231px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- lzzfBarCodeRePrinf();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- <button id="btn_bcollcan" class="btn4_letter4" style="left:148px; top:1px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>채혈취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fExeBcollCan();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- <button id="btn_can2" class="btn4_letter3" style="left:301px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClear();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- <select1 id="radio2" ref="/root/hidden/pflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:5px; top:3px; width:143px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>Auto Label</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fPrintSetChange();
- ]]>
- </script>
- </select1>
- </group>
- <group id="group4" style="left:820px; top:0px; width:370px; height:25px; ">
- <button id="btn_cle" class="btn4_letter3" style="left:301px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClear();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- <button id="btn_bcoll" class="btn4_letter2" style="left:241px; top:1px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>채혈</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBcoll();
- model.setFocus("iptSearch");
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/hidden/pflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:60px; top:4px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>Auto Label</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fPrintSetChange();
- ]]>
- </script>
- </select1>
- </group>
- <select id="checkbox5" ref="/root/hidden/autoref" overflow="visible" appearance="full" style="left:475px; top:4px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>자동대기건수조회</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fAutoRefYN();
- ]]>
- </script>
- </select>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <select id="checkbox2" ref="/root/hidden/JoHoiFlag/ibftest" visibility="hidden" overflow="visible" appearance="full" style="left:250px; top:265px; width:23px; height:15px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>입원전검사실 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/hidden/JoHoiFlag/donorbcoll" visibility="hidden" overflow="visible" appearance="full" style="left:220px; top:265px; width:25px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>Donor 채혈</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangeDonorYN(); //공여자명 보이고 안 보이고
- model.refresh();
- ]]>
- </script>
- </select>
- <datagrid id="datagrid1" nodeset="/root/main/daegicnt" visibility="hidden" caption="A^B^C^D" colsep="^" colwidth="55, 55, 55, 55" mergecellsfixedrows="bycolrec" rowsep="|" style="left:595px; top:0px; width:222px; height:50px; text-align:center; ">
- <col ref="jangbi0"/>
- <col ref="jangbi1"/>
- <col ref="jangbi2"/>
- <col ref="jangbi3"/>
- </datagrid>
- </xhtml:body>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 27){
- caption1.visible = false;
- caption7.visible = false;
- caption1.refresh();
- }
- ]]>
- </script>
- </xhtml:html>
|