123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 이상치 결과 보고.xrw
- * 설 명 : 이상치 결과 보고
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2011.02.16
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>이상치결과일괄보고</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <abnormallist>
- <chk/>
- <rstimg/>
- <bcno/>
- <pid/>
- <patnm/>
- <orddeptnm/>
- <wardroom/>
- <testcd/>
- <tclsscrnnm/>
- <spccd/>
- <spcnm/>
- <inptrslt/>
- <reptdt/>
- <bfreptrslt/>
- <bfreptdt/>
- <panic/>
- <delta/>
- <critical/>
- <rsltstat/>
- </abnormallist>
- <getUsernm>
- <usernm/>
- </getUsernm>
- </main>
- <send>
- <param/>
- <data2/>
- <data1/>
- <XFMGbn>00600</XFMGbn>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <fromdd/>
- <fromtm/>
- <todd/>
- <totm/>
- <eqmtcd>00</eqmtcd>
- <panic/>
- <delta/>
- <critical/>
- <pdcmark/>
- </ref>
- <refflag>
- <rsltstat>4</rsltstat>
- <userid/>
- <testlrgkind>-</testlrgkind>
- </refflag>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/param" replace="instance" resultref="/root/main/abnormallist"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TXLLR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fSetInit(){
- var toDay = getCurrentDate();
- var fromDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-1);
-
- model.setValue("/root/hidden/ref/fromdd", fromDay.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/todd", toDay);
- model.setValue("/root/hidden/ref/fromtm", "0000");
- model.setValue("/root/hidden/ref/totm", "2359");
- model.removeNodeset("/root/main/abnormallist");
- grd_abnormallist.fixedcellcheckbox(0,0) = true;
-
-
- fBaseInfoRef("0115|"); //기초자료 조회 0115 장비코드
- }
-
- function fGetAbnormalList(){
-
- var pdcmark = "";
-
- var panic = model.getValue("/root/hidden/ref/panic");
- var delta = model.getValue("/root/hidden/ref/delta");
- var critical = model.getValue("/root/hidden/ref/critical");
- var eqmtcd = model.getValue("/root/hidden/ref/eqmtcd");
-
- pdcmark = panic + delta + critical;
-
- if(pdcmark == ""){
-
- alert("Panic, Delta, Critical 구분을 하나라도 선택하십시오.");
- return;
- }
- if(eqmtcd == "00"){
-
- alert("장비코드를 선택하십시오.");
- return;
- }
-
- model.setValue("/root/hidden/ref/pdcmark", pdcmark);
-
- model.copyNode("/root/send/param", "/root/hidden/ref");
- model.removeNodeset("/root/main/abnormallist");
- submit("TRLLR00601");
-
- fSetGridColor();
-
- }
-
-
- function fSetGridColor(){
-
- for(var aRow = 1 ; aRow < grd_abnormallist.rows ; aRow++){
-
- if(model.getValue("/root/main/abnormallist["+ aRow +"]/panic") == "P"){
- grd_abnormallist.cellStyle ("background-color",aRow,15,aRow,15) = "#7BE6B7";
- }else{
- grd_abnormallist.cellStyle ("background-color",aRow,15,aRow,15) = "#ffffff";
- }
-
- if(model.getValue("/root/main/abnormallist["+ aRow +"]/delta") == "D"){
- grd_abnormallist.cellStyle ("background-color",aRow,16,aRow,16) = "#dec6a4";
- }else{
- grd_abnormallist.cellStyle ("background-color",aRow,16,aRow,16) = "#ffffff";
- }
-
- if(model.getValue("/root/main/abnormallist["+ aRow +"]/critical") == "C"){
- grd_abnormallist.cellStyle ("background-color",aRow,17,aRow,17) = "#ffe79d";
- }else{
- grd_abnormallist.cellStyle ("background-color",aRow,17,aRow,17) = "#ffffff";
- }
-
- if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "-"){
- grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_N.gif";
- grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
-
- }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "1"){
- grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_1.gif";
- grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
-
- }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "2"){
- grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_2.gif";
- grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
-
- }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "4"){
- grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_3.gif";
- grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
-
- }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "3"){
- grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_F.gif";
- grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
-
- }
-
-
- }
-
- model.refresh();
-
-
- }
-
-
-
- function fSetLstRept(){
-
- if(model.getvalue("/root/main/getUsernm/usernm") == ""){
- alert("검사자를 입력하십시오.");
- return;
- }
-
- for(var aRow = 1 ; aRow < grd_abnormallist.rows ; aRow++){
-
- if(model.getValue("/root/main/abnormallist["+ aRow +"]/chk") == "true"){
- grd_abnormallist.rowStatus(aRow) = 2;
- }else{
- grd_abnormallist.rowStatus(aRow) = 0;
- }
- }
- model.copyNode("/root/send/data1" , "/root/hidden/refflag");
- model.setValue("/root/send/data2", grd_abnormallist.getUpdateData());
-
- submit("TXLLR00401" , false);
-
- fGetAbnormalList();
-
- }
-
- function fUserNMRef(){
-
- if(model.getvalue("/root/hidden/refflag/userid") != ""){
-
- model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/refflag/userid"));
- submit("TRLZZ00104");
-
- if(model.getvalue("/root/main/getUsernm/usernm") == ""){
- model.setvalue("/root/hidden/refflag/userid", "");
- }
- model.refresh();
- }
- }
-
- ]]>
- </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:105px; x2:1194px; y2:105px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:70px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:70px; "/>
- <line id="line3" class="line_4" style="x1:1123px; y1:40px; x2:1123px; y2:62px; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:1133px; top:40px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAbnormalList();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:15px; top:10px; width:91px; height:17px; text-align:left; ">조회일자 :</caption>
- <caption id="caption4" style="left:245px; top:10px; width:20px; height:20px; text-align:center; ">~</caption>
- <input id="input1" ref="/root/hidden/ref/fromtm" class="input_search" format="hh:nn" rclass="input_search" style="left:206px; top:9px; width:40px; height:19px; "/>
- <input id="input2" ref="/root/hidden/ref/totm" class="input_search" format="hh:nn" rclass="input_search" style="left:366px; top:9px; width:40px; height:19px; "/>
- <input id="ipt_acpttodd" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:265px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_acptfromdd" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:9px; width:100px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:455px; top:10px; width:91px; height:17px; text-align:left; ">검사 장비 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/eqmtcd" appearance="minimal" style="left:550px; top:9px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0115">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:455px; top:40px; width:95px; height:17px; text-align:left; ">PDC 구분 :</caption>
- <select id="checkbox1" ref="/root/hidden/ref/panic" overflow="visible" appearance="full" style="left:550px; top:40px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Panic</label>
- <value>P</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/hidden/ref/delta" overflow="visible" appearance="full" style="left:610px; top:40px; width:60px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Delta</label>
- <value>D</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/hidden/ref/critical" overflow="visible" appearance="full" style="left:670px; top:40px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Critical</label>
- <value>C</value>
- </item>
- </choices>
- </select>
- <input id="ipt_testpsn" ref="/root/hidden/refflag/userid" class="input_essential" imemode="disabled" _chartype="upper" style="left:1023px; top:7px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13"){
-
- model.setvalue("/root/hidden/refflag/userid",ipt_testpsn.currentText);
- model.refresh();
- fUserNMRef();
- ipt_testpsn.selBegin = 0;
- ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
- }
- ]]>
- </script>
- </input>
- <output id="opt_testpsn" ref="/root/main/getUsernm/usernm" class="output_fix" style="left:1106px; top:7px; width:80px; height:19px; "/>
- <caption id="caption19" class="tit_2" style="left:953px; top:10px; width:66px; height:13px; ">검사자 :</caption>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:90px; width:134px; height:13px; ">결과 리스트</caption>
- <datagrid id="grd_abnormallist" nodeset="/root/main/abnormallist" caption="^^바코드번호^등록번호^환자명^진료과^병동/병실^testcd^검사명^spccd^검체명^결과^결과보고일시^이전결과^이전결과일시^P^D^C" colwidth="22, 20, 85, 75, 85, 50, 65, 45, 160, 50, 70, 80, 115, 80, 115, 25, 25, 25, 100" dataheight="25" defaultrows="1" mergecellsfixedrows="never" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:110px; width:1194px; height:630px; font-weight:normal; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="rstimg" style="text-align:center; "/>
- <col ref="bcno" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="wardroom" style="text-align:center; "/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="tclsscrnnm"/>
- <col ref="spccd" visibility="hidden" style="text-align:center; "/>
- <col ref="spcnm" style="text-align:center; "/>
- <col ref="inptrslt" style="text-align:left; "/>
- <col ref="reptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="bfreptrslt" style="text-align:left; "/>
- <col ref="bfreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="panic" style="text-align:center; "/>
- <col ref="delta" style="text-align:center; "/>
- <col ref="critical" style="text-align:center; "/>
- <col ref="rsltstat" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- </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; ">이상치결과일괄보고</caption>
- </group>
- <group id="grp_btn" 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_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="button11" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReportPrint();
- ]]>
- </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>
- </group>
- </xhtml:body>
- </xhtml:html>
|