123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>CVR(Critical Value Report) 확인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <prid>1M</prid>
- <fromdd/>
- <todd/>
- <confyn>N</confyn>
- <allcheck/>
- </cond>
- <cvrconfinfo>
- <cvrconflist/>
- </cvrconfinfo>
- </main>
- <send>
- <savedata/>
- </send>
- <init>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- // CVR 리스트를 조회 한다.
- function fReqGetConList() {
- model.resetInstanceNode("/root/main/prcpinfo/prcplist");
- model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
- submit("TRMMO04907");
- }
-
- // CVR 확인 정보를 저장한다.
- function fSaveConfInfo() {
- model.removeNode("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata", "/root/main/cvrconfinfo");
- submit("TXMMO04906");
- fReqGetConList();
- }
- ]]>
- </script>
- <submission id="TRMMO04907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/cvrconfinfo"/>
- <submission id="TXMMO04906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/cvrconfinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); //시작일자는 1개월 전
- model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
- btn_req.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </model>
- <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="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="660" pageheight="370" guideline="1,640;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:640px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:280px; height:13px; vertical-align:middle; ">CVR(Critical Value Report) 확인</caption>
- <caption id="caption4" style="left:351px; top:3px; width:286px; height:15px; color:#0000ff; ">(미확인 된 항목은 체크후 확인 버튼을 클릭하세요.)</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:30px; width:95px; height:17px; vertical-align:middle; ">전송일자 :</caption>
- <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:92px; top:30px; width:85px; height:19px; "/>
- <caption id="caption3" style="left:180px; top:30px; width:15px; height:20px; ">~</caption>
- <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:193px; top:30px; width:85px; height:19px; "/>
- <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:280px; top:30px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>1개월</label>
- <value>1M</value>
- </item>
- <item>
- <label>3개월</label>
- <value>3M</value>
- </item>
- <item>
- <label>6개월</label>
- <value>6M</value>
- </item>
- <item>
- <label>9개월</label>
- <value>9M</value>
- </item>
- <item>
- <label>1년</label>
- <value>1Y</value>
- </item>
- <item>
- <label>2년</label>
- <value>2Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var today = getCurrentDate();
- var idate = new Date();
- var prid = model.getValue("/root/main/cond/prid");
-
- if (prid =="3M") {
- var threeMDate = idate.getAddDate(-3, "M");
- model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="6M") {
- var sixMDate = idate.getAddDate(-6, "M");
- model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="9M") {
- var nineMDate = idate.getAddDate(-9, "M");
- model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="1Y") {
- var oneYDate = idate.getAddDate(-1, "Y");
- model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="2Y") {
- var twoYDate = idate.getAddDate(-2, "Y");
- model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line3" style="x1:570px; y1:26px; x2:570px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_req" class="btn1_letter2" style="left:575px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqGetConList();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" style="left:5px; top:335px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var curRow = grd_conflist.row;
- if (curRow < 1) return;
-
- var pid = model.getValue("/root/main/cvrconfinfo/cvrconflist["+ curRow +"]/pid");
- if(pid == ""){
- messageBox("통합기록조회를 검색할 환자를", "C002");
- return;
- }
- var wndobj = getOpenWindow("SMMRI00400");
- if(wndobj != null){
- setParameter("SMMRI00400_param_pid", pid);
- wndobj.javascript.fInitalize();
- }else{
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400", 2, 0, 0);
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:114px; top:335px; width:104px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var curRow = grd_conflist.row;
- if (curRow < 1) return;
-
- var pid = model.getValue("/root/main/cvrconfinfo/cvrconflist["+ curRow +"]/pid");
- model.makeValue("/root/source/pid", pid);
- if(pid == ""){
- messageBox("통합결과조회를 검색할 환자를", "C002");
- return;
- }
-
- curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
- if(curExamRsltObj != null){
- curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
- curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
- } else {
- open("SMAER00800", "", "", "", "SMAER00800", "/root/source/pid", "/root/send/data/singdata/srchpid");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:640px; y2:66px; "/>
- <datagrid id="grd_conflist" nodeset="/root/main/cvrconfinfo/cvrconflist" autoresize="true" caption="등록일자^일련번호^^환자번호^환자명^CVR 내용^확인^등록시간" colsep="^" colwidth="0, 0, 20, 60, 70, 317, 35, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:70px; width:640px; height:260px; ">
- <col ref="colldd" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <col checkvalue="Y,N" ref="status" type="checkbox"/>
- <col ref="pid" type="input" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="cmtcnts"/>
- <col ref="confyn" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- </datagrid>
- <caption id="caption5" class="search_name" style="left:380px; top:30px; width:95px; height:17px; vertical-align:middle; ">확인여부 :</caption>
- <select1 id="cmb_orddrid" ref="/root/main/cond/confyn" class="combo_default" appearance="minimal" itemcount="30" style="left:467px; top:30px; width:68px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>미확인</label>
- <value>N</value>
- </item>
- <item>
- <label>확인</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/allcheck" style="left:1px; top:72px; width:20px; height:23px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var allcheck = model.getValue("/root/main/cond/allcheck");
- if(allcheck == "Y"){
- for(var i = 1; i <= grd_conflist.rows-1; i++){
- var status = model.getValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status");
- if(status != "Y"){
- model.setValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status", "Y");
- }
- }
- } else {
- for(var i = 1; i <= grd_conflist.rows-1; i++){
- var status = model.getValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status");
- if(status != "N"){
- model.setValue("/root/main/cvrconfinfo/cvrconflist[" + i + "]/status", "N");
- }
- }
- }
- grd_conflist.refresh();
- ]]>
- </script>
- </bool>
- <button id="btn_conf" class="btn4_letter2" style="left:523px; top:335px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveConfInfo();//확인 정보를 저장한다.
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:584px; top:335px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|