| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 부적합검체조회.xrw
- * 설 명 : 부적합검체조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 윤재한
- * 작 성 일 : 2007.07.04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <getinsgspc>
- <choi/>
- <rgstdt/>
- <patnm/>
- <pid/>
- <bcno/>
- <orddeptnm/>
- <wardroom/>
- <spcnm/>
- <rsltstat/>
- <spcstatdesc/>
- <notitrgtnm/>
- <notidt/>
- <lastupdtrid/>
- <measfact/>
- <tclslist/>
- <execdeptcd/>
- <lastupdtdt/>
- <phone/>
- <resncd/>
- </getinsgspc>
- </main>
- <send>
- <usdd/>
- <uedd/>
- <deptgbn/>
- <codeflag/>
- <insgspcdata/>
- <userdeptflagcd/>
- <deptL/>
- <deptM/>
- <pid/>
- <execdeptcd/>
- <wardcd/>
- </send>
- <init>
- <LB0001>
- <cd/>
- <nm/>
- </LB0001>
- </init>
- <hidden>
- <ref>
- <usdd/>
- <uedd/>
- <deptgbn>1</deptgbn>
- <deptL>00</deptL>
- <deptM>00</deptM>
- <pid/>
- <execdeptcd>00</execdeptcd>
- </ref>
- <report/>
- <JoHoiFlag>
- <wardcd2>00</wardcd2>
- </JoHoiFlag>
- </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"/>
- <submission id="TRLLP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getInsgSpc"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- fGetInsgSpc();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0106"/>
- <submission id="TXLLP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //초기화
- function fSetInit(){
- grd_incgspc.fixedcellcheckbox(0, 1) = true;
- grd_incgspc.fixedcellischeck(0, 1) = false;
-
- var toDay = getCurrentDate();
-
- model.setValue("/root/hidden/ref/usdd", toDay);
- model.setValue("/root/hidden/ref/uedd", toDay);
-
-
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0001|0102|0104|0000|0111|"); //0106 시행부서
- submit("TRLZZ00101");
-
- model.removeNodeset("/root/main/getinsgspc");
- model.removeNodeset("/root/hidden/report");
-
- model.refresh();
- }
-
- //부적합검체상세내역 조회
- function fGetInsgSpc(){
- grd_incgspc.fixedcellischeck(0, 1) = false;
-
- model.removeNodeset("/root/main/getinsgspc");
-
- model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/usdd")); // 등록시작일
- model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/uedd")); // 등록종료일
- model.setValue("/root/send/deptgbn", model.getValue("/root/hidden/ref/deptgbn")); // 부서
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- model.setValue("/root/send/deptL", model.getValue("/root/hidden/ref/deptL"));
- model.setValue("/root/send/deptM", model.getValue("/root/hidden/ref/deptM"));
- model.setValue("/root/send/execdeptcd", model.getValue("/root/hidden/ref/execdeptcd"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid")); // 등록번호
- model.setValue("/root/send/wardcd", model.getValue("/root/hidden/JoHoiFlag/wardcd2")); // 병동
- //messageBox(model.getValue("/root/hidden/JoHoiFlag/wardcd2"),"aa") ;
- submit("TRLLP00701");
- }
-
- //부적합검체상세내역 삭제
- function fDelete(){
-
- for(i=1; i<grd_incgspc.rows; i++ ){
- if(model.getValue("/root/main/getinsgspc["+i+"]/choi")=="Y"){
- grd_incgspc.rowStatus(i)= 2;
- }else{
- grd_incgspc.rowStatus(i)= 0;
- }
- }
- model.setValue("/root/send/insgspcdata", grd_incgspc.getUpdateData());
-
- if(submit("TXLLP00701")){
- fGetInsgSpc();
- }
- }
-
- //출력
- function fRexpertPrint() {
- model.makeNode("/root/hidden/report");
- for(i=1; i<grd_incgspc.rows; i++ ){
- if(model.getValue("/root/main/getinsgspc["+i+"]/choi")=="Y"){
- //model.removeNodeset("/root/main/getinsgspc["+i+"]");
- copyNodeListType("/root/hidden/report", "/root/main/getinsgspc["+i+"]", "arter");
- }
- }
- exeReportPreview("RPLLP00100", "XMLSTR", "/root/hidden/report");
- model.removenode("/root/hidden/report");
- }
-
- function fComboAalue(){
-
- if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
- cmb_dept.visible = true;
- combo2.visible = false;
- }
- else{
- cmb_dept.visible = false;
- combo2.visible = true;
-
- }
- }
-
- function fKeyEvent(){
- if(event.keyCode == "13"){
- // 등록번호 바코드 리딩시
- if(event.target == "ipt_pid"){
- model.setValue("/root/hidden/ref/pid", ipt_pid.currentText);
- fGetInsgSpc();
- }
- }
- }
-
-
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "부적합검체목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
-
- }
- ]]>
- </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; ">
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <select1 id="combo2" ref="/root/hidden/ref/deptM" visibility="hidden" appearance="minimal" style="left:555px; top:8px; width:125px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/hidden/ref/deptgbn" visibility="hidden" appearance="minimal" style="left:535px; top:8px; width:85px; height:19px; font-weight:normal; ">
- <choices>
- <item>
- <label>대분류</label>
- <value>1</value>
- </item>
- <item>
- <label>중분류</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fComboAalue();
- ]]>
- </script>
- </select1>
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetInsgSpc();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_no_b" style="left:212px; top:8px; width:15px; height:20px; ">~</caption>
- <input id="ipt_usdd" ref="/root/hidden/ref/usdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_uedd" ref="/root/hidden/ref/uedd" class="input_search" inputtype="date" style="left:230px; top:8px; width:100px; height:19px; "/>
- <caption id="cap_rgstdd" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">통보일자 :</caption>
- <caption id="caption1" class="search_name" style="left:626px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
- <select1 id="cmb_dept" ref="/root/hidden/ref/deptL" visibility="hidden" appearance="minimal" style="left:726px; top:8px; width:125px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/hidden/ref/execdeptcd" appearance="minimal" style="left:726px; top:8px; width:125px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:896px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/hidden/ref/pid" class="input_button" inputtype="button" style="left:994px; top:8px; width:100px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:360px; top:10px; width:65px; height:17px; ">병 동</caption>
- </group>
- <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:150px; height:13px; ">부적합검체상세내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_incgspc" nodeset="/root/main/getinsgspc" caption="^처방일시^환자명^등록번호^바코드번호^진료과^병동/병실^시행여부^통보시간^통보자^연락번호^취소사유^검체상태^조치사항^검사항목^시행부서^피통보자^확인일시^검체명" colsep="^" colwidth="34, 105, 55, 72, 89, 89,107, 59, 105, 55,60,60,62, 200, 300,89,59,105,127" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:666px; ">
- <col checkvalue="Y,N" ref="choi" type="checkbox"/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:mm"/>
- <col ref="patnm"/>
- <col ref="pid"/>
- <col ref="bcno"/>
- <col ref="orddeptnm"/>
- <col ref="wardroom"/>
- <col ref="rsltstat" style="text-align:center; "/>
- <col ref="notidt" format="yyyy-mm-dd hh:mm"/>
- <col ref="lastupdtrid"/>
- <col ref="phone"/>
- <col ref="resncd"/>
- <col ref="spcstatdesc"/>
- <col ref="measfact"/>
- <col ref="tclslist"/>
- <col ref="execdeptcd"/>
- <col ref="notitrgtnm"/>
- <col ref="lastupdtdt"/>
- <col ref="spcnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_incgspc.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel (grd_incgspc);
- ]]>
- </script>
- </button>
- <select1 id="combo4" ref="/root/hidden/JoHoiFlag/wardcd2" class="combo_search" appearance="minimal" style="left:430px; top:20px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0001">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fWardSelect("W");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // var menu = model.getValue("/root/properties/menu/menuitemcd");
- // var scrid = getScreenID();
- //
- // if(model.getValue("/root/hidden/JoHoiFlag/regnopatnm") != "") {
- // if((menu != "MI00410037" && menu != "MI00410038") && (scrid == "SMLLC00300" || scrid == "SMLLC00200")) {//간호에서 팝업으로 띄울때
- // model.setValue("/root/hidden/JoHoiFlag/regnopatnm", "");
- // }
- // }
- //
- // model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRexpertPrint();
- ]]>
- </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_delete" class="btn4_letter2" disabled="true" style="left:1068px; top:3px; width:68px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelete();
- ]]>
- </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; ">부적합검체조회</caption>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|