123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 :
- * 설 명 :
- * 설 계 자 :
- * 작 성 자 : PHIS - SSH
- * 작 성 일 : 2010.03.18
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <aprvlist>
- <prntstat/>
- <ocrtag/>
- <prcpdd/>
- <pid/>
- <hngnm/>
- <sexage/>
- <orddept/>
- <orddrnm/>
- <tclslist/>
- <bcno/>
- <spcstat/>
- <cnfmyn/>
- <delivecnfmid/>
- <delivecnfmdt/>
- <disable/>
- <cretno/>
- <formcd/>
- <orddeptcd/>
- <orddd/>
- <prcpgenrflag/>
- <formnm/>
- </aprvlist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <textflag>1</textflag>
- <text/>
- <ioflag>I</ioflag>
- <prntflag>-</prntflag>
- <cnfmyn>A</cnfmyn>
- <ocrtag/>
- <execnfmyn/>
- <iemr/>
- </send>
- <init>
- </init>
- <hidden>
- <autom>1</autom>
- <autoref>1</autoref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <bind id="bind1" ref="/root/main/aprvlist/cnfmyn" readonly="../disable = '4' and ../cnfmyn='Y'"/>
- <!-- <bind id="bind2" ref="/root/main/aprvlist/cnfmyn" readonly="../ocrtag = if(../cnfmyn = 'Y' and ../spcstat >= '430', ../ocrtag, '')
"/> -->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLLJ90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/aprvlist"/>
- <submission id="TXLLJ90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- </model>
- <script type="javascript">
- <![CDATA[
- iCnt = 1;
- var gTimerID;
- function fTimer(){
-
- iCnt ++;
-
- if(iCnt%2 == 0){
- m = model.getvalue("/root/hidden/autom");
- gTimerID = window.setInterval( "fGetAprvList()", m * 60000 );
-
- button89.attribute("text") = "자동조회 On";
- input2.disabled = true;
- }
- else{
- model.setvalue("/root/hidden/autoref" , "2");
- button89.attribute("text") = "자동조회 Off";
- input2.disabled = false;
- window.clearInterval(gTimerID) ;
- }
-
- }
-
-
- //초기화
- function fSetInit() {
- model.setFocus("ipt_pid");
- //fBaseInfoRef("0000|");
-
- fTimer();
-
- model.resetInstanceNode("/root/main/bloodprcplist/outprcplist");
-
- model.setValue("/root/send/fromdd", getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd", getCurrentDate());
- model.setValue("/root/send/text", "");
-
- // 화면열때 자동조회
- fGetAprvList();
-
- model.refresh();
-
- }
-
- // 조회
- function fGetAprvList(){
- if(model.getValue("/root/send/ioflag") == ""){
- messageBox("재원 구분을 선택하세요", "E");
- return;
- }
- submit("TRLLJ90401");
- /*
- var sOcrTag;
- for(i = 1; i < grd_dnorinfo.rows; i++){
-
- if(grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("cnfmyn")) == true){
- sOcrTag = grd_dnorinfo.valueMatrix(i, grd_dnorinfo.colRef("ocrtag"));
-
- if(model.getXPathValue('count(/root/main/aprvlist[ocrtag = "'+ sOcrTag + '"])') > 0){
-
- }
-
-
- }
- }*/
-
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target=="ipt_pid"){
- model.setValue("/root/send/text", (ipt_pid.currentText).getTrim().substr(0,13));
- //동의서 바코드 리딩시 동의서번호+페이지번호가 같이 읽혀짐..
-
- fGetAprvList();
- }
- }
- }
-
- //검사실 확인 체크
- function fSetAprvCnfm(){
- model.makeValue("/root/send/ocrtag", model.getValue("/root/main/aprvlist[" + grd_dnorinfo.row + "]/ocrtag"));
- model.makeValue("/root/send/execnfmyn", model.getValue("/root/main/aprvlist[" + grd_dnorinfo.row + "]/cnfmyn"));
-
- submit("TXLLJ90401");
-
- fGetAprvList();
-
- }
-
- //bind로 처리 사용안함
- function fSort(){
- for(i = 1; i <= grd_dnorinfo.rows; i++){
- //해당 동의서 가장 상태값 큰게 접수이상이고 확인한 동의서일 경우 검사실확인 컬럼 disable하기위함
- if(model.getValue("/root/main/aprvlist[" + i + "]/disable") == "4" && model.getValue("/root/main/aprvlist[" + i + "]/cnfmyn") == "Y"){
- grd_dnorinfo.isReadOnly(i, grd_dnorinfo.colRef("cnfmyn"), i, grd_dnorinfo.colRef("cnfmyn")) = true;
-
- }
- alert(model.getValue("/root/main/aprvlist[" + i + "]/disable"));
- }
- model.refresh();
- }
-
- //동의서 Viewer
- function fViewAprv(){
- model.resetInstanceNode("/root/send/iemr");
-
- var row = grd_dnorinfo.row;
-
- if(model.getValue("/root/main/aprvlist[" + row + "]/prntstat") == "스캔") {
-
- // 이윤주수정(20130423)
- // model.makeValue("/root/send/iemr/cmc_cretno" , model.getValue("/root/main/aprvlist[" + row + "]/cretno"));
- // model.makeValue("/root/send/iemr/docucd" , model.getValue("/root/main/aprvlist[" + row + "]/formcd"));
- // model.makeValue("/root/send/iemr/pid" , model.getValue("/root/main/aprvlist[" + row + "]/pid"));
- // model.makeValue("/root/send/iemr/orddeptcd" , model.getValue("/root/main/aprvlist[" + row + "]/orddeptcd"));
- // model.makeValue("/root/send/iemr/indd" , model.getValue("/root/main/aprvlist[" + row + "]/orddd"));
- // model.makeValue("/root/send/iemr/ioflag" , model.getValue("/root/main/aprvlist[" + row + "]/prcpgenrflag"));
- // model.makeValue("/root/send/iemr/cmc_spcid" , "");
- // model.makeValue("/root/send/iemr/cmc_orddate", "");
- // model.makeValue("/root/send/iemr/cmc_orderseqno", "");
-
- model.makeValue("/root/send/iemr/ocrcode" , model.getValue("/root/main/aprvlist[" + row + "]/ocrtag"));
-
- if(window.children.item("imgemrviewer") == null) {
- open("SSMRC03130", "", "", "", "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;
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1160" pageheight="770" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:14px; width:1140px; height:756px; ">
- <datagrid id="grd_dnorinfo" nodeset="/root/main/aprvlist" class="datagrid3" caption="동의서
상태^동의서번호^처방일^등록번호^성명^성별/나이^진료과^진료의사^검사명^서식명^바코드번호^검체상태^검사실
확인^확인자^확인일시^Max검체상태^cretno^formcd^orddeptcd^orddd^prcpgenrflag" colsep="^" colwidth="60, 90, 70, 80, 80, 60, 60, 70, 150, 135, 80, 70, 50, 70, 120, 60, 0, 0, 0, 0, 0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:75px; width:1134px; height:655px; text-align:center; ">
- <col ref="prntstat" style="text-align:center; "/>
- <col ref="ocrtag" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sexage" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddept"/>
- <col ref="orddrnm"/>
- <col ref="tclslist" style="text-align:left; "/>
- <col ref="formnm" style="text-align:left; "/>
- <col ref="bcno"/>
- <col disabled="true" ref="spcstat" type="combo">
- <choices>
- <item>
- <label>처방</label>
- <value>000</value>
- </item>
- <item>
- <label>간호확인</label>
- <value>100</value>
- </item>
- <item>
- <label>수납</label>
- <value>230</value>
- </item>
- <item>
- <label>바코드발행</label>
- <value>400</value>
- </item>
- <item>
- <label>채혈</label>
- <value>410</value>
- </item>
- <item>
- <label>가접수</label>
- <value>420</value>
- </item>
- <item>
- <label>접수</label>
- <value>430</value>
- </item>
- <item>
- <label>중간보고</label>
- <!-- 예비결과-->
- <value>710</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>720</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>730</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>740</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="cnfmyn" type="checkbox"/>
- <col ref="delivecnfmid"/>
- <col ref="delivecnfmdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="disable" visibility="hidden"/>
- <col ref="cretno"/>
- <col ref="formcd"/>
- <col ref="orddeptcd"/>
- <col ref="orddd"/>
- <col ref="prcpgenrflag"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dnorinfo.gridToInstance();
- //정렬시 bind로 처리한 disable가 풀리는 문제점
- model.recalculate();
- //fSort();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(isDataCell() && grd_dnorinfo.col == grd_dnorinfo.colRef("cnfmyn")){
- fSetAprvCnfm();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- window.clipBoardData = grd_dnorinfo.valueMatrix(grd_dnorinfo.row, grd_dnorinfo.col);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fViewAprv();
- ]]>
- </script>
- </datagrid>
- <line id="line10" class="line_1" style="x1:5px; y1:70px; x2:1139px; y2:70px; "/>
- <caption id="caption32" class="tit_2" style="left:5px; top:55px; width:167px; height:14px; ">유전자 동의서 내역</caption>
- <group id="grp_sea" style="left:0px; top:10px; width:1140px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1139px; height:35px; "/>
- <line id="line13" class="line_4" style="x1:1063px; y1:7px; x2:1063px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:9px; width:94px; height:17px; ">처방일자 :</caption>
- <button id="btn_ref" class="btn1_letter2" style="left:1073px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAprvList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_no_b" style="left:195px; top:8px; width:15px; height:17px; ">~</caption>
- <input id="input26" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:95px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input1" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:214px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption1" class="search_name" style="left:311px; top:9px; width:94px; height:17px; ">검색구분 :</caption>
- <select1 id="cmb_ref" ref="/root/send/textflag" class="combo_search" appearance="minimal" style="left:400px; 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/send/text" inputtype="button" style="left:492px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="cap_prntflag" class="search_name" style="left:596px; top:9px; width:109px; height:17px; ">동의서상태 :</caption>
- <select1 id="cmb_prnt" ref="/root/send/prntflag" class="combo_search" appearance="minimal" style="left:700px; 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>
- <input id="input2" ref="/root/hidden/autom" class="input_search" style="left:1021px; top:8px; width:24px; height:19px; "/>
- <caption id="caption8" class="search_no_b" style="left:1045px; top:8px; width:15px; height:17px; ">분</caption>
- <button id="button89" class="btn5_letter6" style="left:933px; top:8px; width:86px; height:19px; ">
- <caption>자동조회 On</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTimer();
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/send/ioflag" appearance="full" cols="3" overflow="visible" style="left:787px; top:2px; width:148px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio2" ref="/root/send/cnfmyn" appearance="full" cols="3" overflow="visible" style="left:787px; top:17px; 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>
- </group>
- <button id="button1" class="btn4_letter2" style="left:1080px; top:731px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:980px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:13px; ">유전자동의서 확인</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|