123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBR00100.xrw
- * 설 명 : 혈액은행 결과관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.8.28
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <testpatlist>
- <patlist>
- <chk/>
- <bcno/>
- <pid/>
- <hngnm/>
- <lastreptdt/>
- <spcacptdt/>
- <prcpdd/>
- <erprcpflag/>
- </patlist>
- </testpatlist>
- </main>
- <send>
- </send>
- <init>
- <LB0106>
- <cd/>
- <nm/>
- </LB0106>
- </init>
- <hidden>
- <refparam>
- <searchflag>1</searchflag>
- <searchtext/>
- <startdd/>
- <enddd/>
- <tsectcd/>
- <rstflag>2</rstflag>
- <testlrgkind>B</testlrgkind>
- <sectcd/>
- </refparam>
- <abresult>
- </abresult>
- <onclickbtnref/>
- <nm/>
- <aborslt>
- <aborslt/>
- </aborslt>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fBaseInfoRef("0106|0602|0108|0109|0603|0210|0000|1301|0402|");
- model.removenode("/root/init/LB0603[2]");
- model.setvalue("/root/hidden/refparam/sectcd", "00");
- model.setvalue("/root/hidden/refparam/tsectcd", "00");
- model.setvalue("/root/hidden/refparam/startdd",getCurrentDate());
- model.setvalue("/root/hidden/refparam/enddd",getCurrentDate());
- combo4.disabled = true;
-
- model.refresh();
-
- //model.setFocus("ipt_testpsn");
-
- model.setFocus("ID_txt");
- group3.disabled = true;
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLBR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testpatlist"/>
- <submission id="TRLLR80105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/aborslt"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSetRefFromdd() {
-
-
- var fromdd = model.getValue("/root/hidden/refparam/startdd");
- var todd = model.getValue("/root/hidden/refparam/enddd");
-
-
-
- var mDate = todd.toDate("YYYYMMDD").getAddDate(-3);
-
-
- if(mDate.getDateFormat("YYYYMMDD") > fromdd) {
- messageBox("3일 이내의 기간만 검색","I006");
-
- return false;
- }else if(todd < fromdd) {
- messageBox("기간설정이 잘못", "E005");
-
- return false;
- }else {
- return true;
- }
- }
- function fOnclickBtnRef(gbn){
- if(!fSetRefFromdd()) return;
- fSetClear2();
-
- var sear = model.getvalue("/root/hidden/refparam/searchtext").getTrim();
-
- if(gbn == "Q" && sear ==""){
- return;
- }
-
- if(sear.isNumber()){ //숫자이면
- model.setvalue("/root/hidden/refparam/searchflag", "2"); //등록번호조회
- }else{ //문자이고
- if(model.getvalue("/root/hidden/refparam/searchflag") != "3"){ //이름조회가 아니라면
- model.setvalue("/root/hidden/refparam/searchflag", "1"); //검체번호
- }
- }
- //if(model.getvalue("/root/hidden/refparam/searchflag") == "1" && sear !="" && gbn == "Q"){
- model.setvalue("/root/hidden/refparam/searchtext" , sear.toUpperCase());
- iptSearch.selBegin = 0;
- iptSearch.selEnd = iptSearch.currentText.length;
-
- //}
-
- model.copyNode("/root/send/data1","/root/hidden/refparam") ;
- if(gbn != "Q"){
- model.setvalue("/root/send/data1/searchtext" , "");
- }
-
- submit("TRLBR00101");
-
- model.copyNode("/root/send/data1","/root/hidden/default");
-
- for(i=1 ;i<grd_patList.rows;i++){
- if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "-"){
- grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_N.gif";
- grd_patList.cellstyle("background-position", i, 1) = "center"
- }else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "1"){
- grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_1.gif";
- grd_patList.cellstyle("background-position", i, 1) = "center"
- }
- else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "2"){
- grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_2.gif";
- grd_patList.cellstyle("background-position", i, 1) = "center"
- }
- else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "4"){
- grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_3.gif";
- grd_patList.cellstyle("background-position", i, 1) = "center"
- }
- else if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/rsltstat") == "3"){
- grd_patList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/icnRSTFLAG_F.gif";
- grd_patList.cellstyle("background-position", i, 1) = "center"
- }
-
- //응급 검사 일경우 뻘건색 표시 20090831 승현 추가
- if(model.getvalue("/root/main/testpatlist/patlist["+i+"]/erprcpflag") == "Y"){ //응급
- grd_patList.rowStyle(i, "data", "background-color") = "#f7a08b";
- }else{
- grd_patList.rowStyle(i, "data", "background-color") = "#ffffff";
- }
- }
-
- //엔터키로 조회 했다는 상태값 설정
- model.setValue("/root/hidden/onclickbtnref", gbn);
-
- if(gbn == "Q" && grd_patList.rows > 1) {
-
- if(model.getValue("/root/hidden/refparam/searchflag") == "2"){
- //등록번호로 조회시 환자목록 자동 선택 막음 ==> 환자목록 반드시 클릭후 결과 입력 하도록 수정
- //오류남 2009.05.18 김성희 수정
- //grd_patList.row= 1;
- fPatListClick2();
- }else {
- grd_patList.row= 1;
- fPatListClick(1);
- }
- }
-
- //--------------------------------------------------------------------
- // BMT 실시 정보
- fGetBMTInfo("info");
- }
-
- function fPatListClick(row){
-
- //var strBcno = model.getValue("/root/main/testpatlist/patlist["+row+"]")
-
- model.copyNode("/root/send/data1","/root/hidden/refparam") ;
- model.copyNode("/root/send/data2","/root/main/testpatlist/patlist["+row+"]");
- model.makeValue("root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- model.makeValue("root/send/bloodrsltflag","Y");
-
- submit("TRLLR80101");
-
- // model.resetNode("/root/hidden/aborslt");
- // model.refresh()
-
- // model.setvalue("/root/hidden/aborslt/aborslt","");
- submit("TRLLR80105");
-
- //model.copyNode("/root/send/data1","/root/hidden/default");
- //model.copyNode("/root/send/data2","/root/hidden/default");
-
- var HiddenYN = model.getValue("/root/init/LB0402/nm");
-
- if(HiddenYN == "Y"){
- fhiddenrow();
- }
- fRemakeList();
-
- }
- function fPatListClick2(){
- model.copyNode("/root/send/data1","/root/hidden/refparam") ;
- model.copyNode("/root/send/data2","/root/main/testpatlist/patlist["+1+"]");
-
- submit("TRLLR80103");
-
- var HiddenYN = model.getValue("/root/init/LB0402/nm");
-
- if(HiddenYN == "Y"){
- fhiddenrow();
- }
- //model.copyNode("/root/send/data1","/root/hidden/default");
- //model.copyNode("/root/send/data2","/root/hidden/default");
- fRemakeList();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,526;1,746;1,506;1,422;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">혈액은행결과관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption16" class="tit_2" style="left:5px; top:184px; width:115px; height:13px; ">환자목록</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:199px; x2:320px; y2:199px; "/>
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:320px; height:164; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:73px; width:94px; height:17px; ">작업일자 :</caption>
- <caption id="caption5" class="search_name" style="left:15px; top:97px; width:94px; height:17px; ">시행부서 :</caption>
- <caption id="caption1" class="search_name" style="left:15px; top:121px; width:94px; height:17px; ">결과구분 :</caption>
- <select1 id="combo2" ref="/root/hidden/refparam/rstflag" class="combo_default" appearance="minimal" style="left:105px; top:120px; 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>
- <item>
- <label>최종보고</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/hidden/refparam/sectcd" class="combo_default" appearance="minimal" style="left:105px; top:96px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0603">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var etc = model.getvalue("/root/hidden/refparam/sectcd");
-
- if(etc == "00"){
- combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0602";
- model.setvalue("/root/hidden/refparam/tsectcd" , "00");
- combo4.disabled = true;
- }
- else{
- combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0602[cd= '00' or etc01='"+ etc +"']";
- model.setvalue("/root/hidden/refparam/tsectcd" , "00");
- combo4.disabled = false;
- }
- combo4.refresh();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:72px; width:90px; height:19px; "/>
- <caption id="caption2" class="search_no_b" style="left:199px; top:73px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <input id="input2" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:215px; top:72px; width:90px; height:19px; "/>
- <button id="button6" class="btn1_letter2" style="left:249px; top:145px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fOnclickBtnRef();
- ]]>
- </script>
- </button>
- <import id="import1" instancetype="merge" src="SSLBR80100_혈액은행검사항목상세.xrw" style="left:325px; top:14px; width:870px; height:730px; "/>
- <line id="line13" class="line_4" style="x1:244px; y1:145px; x2:244px; y2:167px; "/>
- <select1 id="combo1" ref="/root/hidden/refparam/searchflag" class="combo_search" appearance="minimal" style="left:105px; top:18px; width:200px; height:19px; ">
- <choices>
- <item>
- <label>바코드번호</label>
- <value>1</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>2</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption18" class="search_name" style="left:15px; top:19px; width:94px; height:17px; ">검색구분 :</caption>
- <line id="line6" class="line_7" style="x1:14px; y1:66px; x2:299px; y2:66px; "/>
- <datagrid id="grd_patList" nodeset="/root/main/testpatlist/patlist" caption="^바코드번호^등록번호^성명^결과일시^접수일시^처방일자^응급구문" colsep="^" colwidth="22, 90, 80, 80,120, 120, 80, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:204px; width:320px; height:529px; font-weight:bold; ">
- <col ref="chk" style="text-align:center; "/>
- <col ref="bcno"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="erprcpflag"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_patList.row;
- if(grd_patList.isCell(event.target) && grd_patList.row >= grd_patList.fixedRows ){
- if(row > 0){
- grd_TestInfoCnts.rebuildStyle();
- grd_TestInfoCnts.allStyle("all","background-color") = "#ffffff";
- fPatListClick(row);
-
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patList.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="iptSearch" ref="/root/hidden/refparam/searchtext" class="input_button" navindex="1" imemode="disabled" inputtype="button" style="left:105px; top:42px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fOnclickBtnRef("Q");
- ]]>
- </script>
- </input>
- <select1 id="combo4" ref="/root/hidden/refparam/tsectcd" class="combo_default" appearance="minimal" style="left:195px; top:96px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0602">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input3" ref="/root/hidden/aborslt/aborslt" style="left:192px; top:151px; width:45px; height:19px; text-align:left; "/>
- <caption id="caption7" class="search_name" style="left:15px; top:150px; width:170px; height:20px; color:#ff0000; ">간호정보조사지의 혈액형</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button1" class="btn3_letter6" style="left:83px; top:3px; width:104px; height:22px; ">
- <caption>특이결과등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSpcfRsltSave();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter7" style="left:190px; top:3px; width:116px; height:22px; ">
- <caption>부적합검체등록</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- //window.load("SMLLJ90100_부적합검체등록.xrw","modeless", "", "width:360px; height:465;min:hidden;max:hidden;align:center");
- //modal("SPLLJ90100");
- if(model.getValue("/root/main/TestInfo/getSpcInfo/bcno") != ""){
- model.makeValue("/root/hidden/bcno", model.getValue("/root/main/TestInfo/getSpcInfo/bcno"));
- }else{
- model.makeValue("/root/hidden/bcno", "");
- }
-
- modal("SPLLJ90100_부적합검체등록","","","","","/root/hidden/bcno","/root/hidden/bcno");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" style="left:309px; top:3px; width:104px; height:22px; ">
- <caption>수정결과등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUpdtRslt();
- ]]>
- </script>
- </button>
- <button id="button8" class="btn3_letter4" style="left:0px; top:3px; width:80px; height:22px; ">
- <caption>TAT조회</caption>
- </button>
- <button id="button5" class="btn3_letter4" style="left:414px; top:3px; width:80px; height:22px; ">
- <caption>이력조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getvalue("/root/hidden/refparam/searchtext") == "" && model.getValue("/root/hidden/refparam/searchflag") == "2"){
- setParameter ( "SMMMO02500_cond", getPatientInfo("pid"));
- }else if(model.getvalue("/root/hidden/refparam/searchtext") != "" && model.getValue("/root/hidden/refparam/searchflag") == "2"){
- setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden/refparam/searchtext"));
- }
- open ( "SMMMO02500" );
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_rsltsave" class="btn4_letter4" visibility="hidden" style="left:879px; top:3px; width:80px; height:22px; ">
- <caption>결과저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsRsltSave();
- ]]>
- </script>
- </button>
- <button id="btn_MdlRept" class="btn4_letter4" style="left:962px; top:3px; width:80px; height:22px; ">
- <caption>예비결과</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetMdlRept();
- ]]>
- </script>
- </button>
- <button id="btn_LstRept" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
- <caption>최종보고</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetLstRept();
- ]]>
- </script>
- </button>
- <button id="btn_cle" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetClear();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" style="left:902px; top:3px; width:56px; height:22px; ">
- <caption>재검</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsJeaGeom();
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
-
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- <group id="Group_idChk" style="left:466px; top:240px; width:280px; height:165px; background-color:#ff99cc; border-color:#5abaff; border-width:1px; border-style:solid; ">
- <caption id="caption3" style="left:19px; top:19px; width:242px; height:70px; font-size:18pt; font-weight:bold; ">검사자를 입력하세요</caption>
- <textarea id="ID_txt" ref="/root/hidden/nm" overflow="hidden" style="left:34px; top:89px; width:195px; height:55px; font-size:22pt; "/>
- <button id="button4" style="left:232px; top:119px; width:42px; height:25px; font-size:8pt; font-weight:bold; color:#003399; text-align:center; background-image:../../../lis\commonweb\images\btn_lis.gif; background-repeat:no-repeat; background-stretch:stretch; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- Group_idChk.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|