123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP02200_유전자검사동의서조회.xrw
- * 설 명 : 유전자검사동의서조회
- * 설 계 자 : (주)에이씨케이 - 이재민
- * 작 성 자 : (주)에이씨케이 - 이재민
- * 작 성 일 : 2010.01.04
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>유전자검사동의서조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <getSepogetlist>
- <hngnm/>
- <tclscd/>
- <tclsnm/>
- <prcpdd/>
- <fstprntdt/>
- <spcacptdt/>
- <spcproccd/>
- <spcpossnterm/>
- <usernm/>
- <inorddeptnm/>
- <roomcd/>
- <sday/>
- <pid/>
- <ocrtag/>
- <cnfmyn/>
- <delivecnfmid/>
- <delivecnfmdt/>
- </getSepogetlist>
- </main>
- <send>
- <code/>
- <fromdd/>
- <todd/>
- <select/>
- <pid/>
- <textflag/>
- <prntflag/>
- <cnfmyn/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <code/>
- <fromdd/>
- <todd/>
- <select/>
- <pid/>
- <textflag>1</textflag>
- <prntflag>-</prntflag>
- <cnfmyn>A</cnfmyn>
- </ref>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLLP02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit(){
- var toDay = getCurrentDate();
- model.removeNodeset("/root/main/getSepogetlist");
- model.setValue("/root/hidden/ref/fromdd",toDay);
- model.setValue("/root/hidden/ref/todd",toDay);
- model.setValue("/root/hidden/ref/select","00");
- model.setValue("/root/hidden/ref/pid","");
- model.setValue("/root/hidden/ref/code","S");
- model.refresh();
- }
-
- // 엑셀 저장
- function fExeExcel(grd_list){
- var fileName = window.fileDialog("save", ",", false, "유전자검사동의서_" + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_list.saveExcel(fileName);
- }
- }
-
- // 조회일자 3개월 이전으로 못가게 막기
- function fSetFromdd() {
- var fromdd = model.getValue("/root/hidden/ref/fromdd");
- var todd = model.getValue("/root/hidden/ref/todd");
- var mDate = todd.toDate("YYYYMMDD").getAddDate(-3, "M");
-
- if(mDate.getDateFormat("YYYYMMDD") > fromdd) {
- messageBox("3개월 이내의 기간만 검색","I006");
- return false;
- }else if(todd < fromdd) {
- messageBox("기간설정이 잘못", "E005");
- return false;
- }else {
- return true;
- }
- }
-
- // 조회
- function fGetSepogetlist(){ //조회일자 check
- model.resetInstanceNode("/root/main/getSepogetlist");
- model.refresh();
- if(!fSetFromdd()){
- return;
- }
- model.removeNodeset("/root/main/getSepogetlist");
- model.copyNode("root/send" , "root/hidden/ref");
- submit("TRLLP02102");
-
- for(i=1; i< grd_list.rows; i++){ //즉시폐기시 색변환
- if(model.getValue("/root/main/getSepogetlist["+i+"]/spcproccd") == "즉시폐기") {
- grd_list.cellStyle("background-color", i, grd_list.colRef("spcacptdt"), i, grd_list.colRef("spcacptdt")) = "#f7a08b";
- }
- if(model.getValue("/root/main/getSepogetlist["+i+"]/spcpossnterm") != "검사종료시") {
- if(model.getValue("/root/main/getSepogetlist["+i+"]/spcpossnterm") != "5년") {
- grd_list.cellStyle("background-color", i, grd_list.colRef("spcproccd"), i, grd_list.colRef("spcproccd")) = "#93DAFF";
- }
- }
- }
- }
- function fPopup(){
- model.resetInstanceNode("/root/send/iemr");
-
- var row = grd_list.row;
-
- if(model.getValue("/root/main/getSepogetlist["+row+"]/sday") == "스캔") {
-
- model.makeValue("/root/send/iemr/cmc_cretno", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@cretno"));
- model.makeValue("/root/send/iemr/docucd", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@formcd"));
- model.makeValue("/root/send/iemr/pid", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@pid"));
- model.makeValue("/root/send/iemr/orddeptcd", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@orddeptcd"));
- model.makeValue("/root/send/iemr/indd", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@orddd"));
- model.makeValue("/root/send/iemr/ioflag", model.getValue("/root/main/getSepogetlist[" + row + "]/sday/@prcpgenrflag"));
- model.makeValue("/root/send/iemr/cmc_spcid", "");
- model.makeValue("/root/send/iemr/cmc_orddate", "");
- model.makeValue("/root/send/iemr/cmc_orderseqno", "");
-
- if(window.children.item("imgemrviewer") == null) {
- open("SSMRC03110", "", "", "", "imgemrviewer", "/root/send/iemr", "/root/hidden/temp");
- //window.load("SSMRC03110.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }else{
- // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
- }
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target=="ipt_pid"){
- model.setValue("/root/hidden/ref/pid", (ipt_pid.currentText).getTrim().substr(0,13));
- //동의서 바코드 리딩시 동의서번호+페이지번호가 같이 읽혀짐..
-
- fGetSepogetlist();
- }
- }
- }
- ]]>
- </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:70px; x2:1194px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:82px; height:14px; ">환자명단</caption>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSepogetlist();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
- <caption id="caption8" style="left:280px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <input id="ipt_usdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:184px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_uedd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:296px; top:8px; width:90px; height:19px; "/>
- <caption id="caption13" class="search_name" style="left:887px; top:9px; width:19px; height:17px; "/>
- <select1 id="cmb_ref" ref="/root/hidden/ref/textflag" class="combo_search" appearance="minimal" style="left:908px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>동의서번호</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/hidden/ref/pid" inputtype="button" style="left:1000px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:395px; top:10px; width:62px; height:17px; ">구분 :</caption>
- <select1 id="select" ref="/root/hidden/ref/select" appearance="minimal" style="left:459px; top:9px; width:73px; height:19px; font-weight:normal; ">
- <choices>
- <item>
- <label>- 전체 -</label>
- <value>00</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio2" ref="/root/hidden/ref/cnfmyn" appearance="full" cols="3" overflow="visible" style="left:542px; top:11px; width:148px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>미확인</label>
- <value>N</value>
- </item>
- <item>
- <label>확인</label>
- <value>Y</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_prntflag" class="search_name" style="left:691px; top:9px; width:109px; height:17px; ">동의서상태 :</caption>
- <select1 id="cmb_prnt" ref="/root/hidden/ref/prntflag" class="combo_search" appearance="minimal" style="left:795px; top:8px; width:80px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>- 전체 -</label>
- <value>-</value>
- </item>
- <item>
- <label>출력</label>
- <value>1</value>
- </item>
- <item>
- <label>반납</label>
- <value>2</value>
- </item>
- <item>
- <label>반납확인</label>
- <value>3</value>
- </item>
- <item>
- <label>스캔</label>
- <value>4</value>
- </item>
- <item>
- <label>삭제</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/hidden/ref/code" appearance="minimal" style="left:100px; top:8px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>접수일자</label>
- <value>S</value>
- </item>
- <item>
- <label>처방일자</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:9px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- </group>
- <button id="btn_excel" class="btn2_letter2" visibility="visible" style="left:1149px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_list);
- ]]>
- </script>
- </button>
- <button id="btn_left" class="btn2_letter2" visibility="visible" style="left:790px; top:50px; width:42px; height:19px; ">
- <caption>▶</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_list.rightCol = grd_list.cols;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" visibility="visible" style="left:747px; top:50px; width:42px; height:19px; ">
- <caption>◀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_list.leftCol = 1;
- ]]>
- </script>
- </button>
- <datagrid id="grd_list" nodeset="/root/main/getSepogetlist" caption="동의서번호^등록번호^환자명^처방코드^처방명^처방일자^출력일자^접수일자^검체보존^보존기간^진료의사^진료과^병실^상태^^확인자^확인일시" colwidth="100, 80, 80, 80, 190, 90, 90, 90, 70, 100, 90, 90, 90, 90, 25, 70, 120" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1194px; height:660px; font-weight:bold; text-align:center; ">
- <col ref="ocrtag" type="output" style="text-align:center; "/>
- <col ref="pid" type="output" style="text-align:center; "/>
- <col ref="hngnm" type="output" style="text-align:center; "/>
- <col ref="tclscd" type="output" style="text-align:left; "/>
- <col ref="tclsnm" type="output" style="text-align:left; "/>
- <col ref="prcpdd" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="fstprntdt" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="spcacptdt" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="spcproccd" style="text-align:left; "/>
- <col ref="spcpossnterm" style="text-align:left; "/>
- <col ref="usernm" type="output" style="text-align:center; "/>
- <col ref="inorddeptnm" type="output" style="text-align:center; "/>
- <col ref="roomcd" type="output" style="text-align:left; "/>
- <col ref="sday" type="output" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="cnfmyn" type="checkbox"/>
- <col ref="delivecnfmid" type="output" style="text-align:left; "/>
- <col ref="delivecnfmdt" type="output" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fPopup();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_list.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_aprv" class="btn3_letter8" style="left:1px; top:4px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>유전자동의서확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.makeValue("/root/init/popup/ioflag", "I");
- //open("SPLLJ90400","","","","","/root/init/popup/ioflag","/root/send/ioflag");
- //model.removenode("/root/init/ioflag");
- open("SPLLJ90400");
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </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:248px; height:14px; ">유전자검사 동의서 조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|