123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <?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>흉부방사선 검사결과조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <brstraytestrsltinfo>
- </brstraytestrsltinfo>
- <cond>
- <termflag>1</termflag>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <wardcd/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- <popupmenu>
- <grid01>
- <item>
- <name>통합기록조회</name>
- <func>fSytsRecRefPopup</func>
- </item>
- <item>
- <name>병원감염보고서등록</name>
- <func>fHospInfcReptPopup</func>
- </item>
- </grid01>
- </popupmenu>
- <getdata>
- <selectedpid/>
- </getdata>
- </hidden>
- <init>
- <initdate>
- <today/>
- </initdate>
- <warddeptlist>
- </warddeptlist>
- <deptlist>
- </deptlist>
- </init>
- </root>
- </instance>
- <submission id="TRASI02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/brstraytestrsltinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.removeNodeset("/root/main/brstraytestrsltinfo");
- model.refresh();
- fSetParameter() ;
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <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/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- // 공통코드를 조회한다.
-
- // 진료과
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- addComboItem("cmb_orddeptcd","","","above");
-
- //병동
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "/root/init/warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- addComboItem("cmb_wardcd","","","above");
- model.refresh();
- }
-
- function fSetParameter(){
- var today = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "M");
- model.setValue("/root/init/initdate/today", today);
- model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- model.makeValue("/root/send/cond/todd", today);
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- model.refresh();
- }
- //상단정보설정
- function fUpInfo(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- }
-
- function fReqOpPatPamInfo(){
-
- var tioflag=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/ioflag");
- if(tioflag == "I") {
- var ioflag="I";
- var pid= model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid");
- var indd=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/indd");
- var cretno=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/cretno") ;
- var seqno=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/iseqno");
- var instcd=getUserInfo("dutplceinstcd");
- var srchdd=getCurrentDate();
- var param= ioflag + "▦" //입원환자
- + pid + "▦"
- + indd + "▦"
- + cretno + "▦"
- + instcd+ "▦";
- setParameter("condparam", param);
- }
- else if(tioflag == "O") {
- var ioflag="O";
- var pid= model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid");
- var orddd=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/indd");
- var cretno=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/cretno") ;
- var instcd=getUserInfo("dutplceinstcd");
- var srchdd=getCurrentDate();
- var param= ioflag + "▦" //외래환자
- + pid + "▦"
- + orddd + "▦"
- + cretno + "▦"
- + instcd + "▦"
- + srchdd;
- setParameter("condparam", param);
- }
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- function fSytsRecRefPopup(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- modal("SMMRI00400",1,10,10,"SMMRI00400", "", "/root/hidden/oprecinfo/info");
- }
-
- function fPrcpRefPopup(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- modal("SPTMP00100", "", "", "", "popup", "/root/send", "/root/main/grid01");
- }
-
- function fHospInfcReptPopup(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- open("SMASI00100", 1,10,10, "SMASI00100");
- //window.close();
- }
- /*=======================================================================================================================================
- @desc : 흉부방사선 검사결과 조회
- =======================================================================================================================================*/
- function fGetRadRslt(){
- if( !isRequiredControls("cmb_trgtmancnt","ipt_fromdd","ipt_todd") ){
- return;
- }
-
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- openLoadingBar("흉부방사선 검사결과 정보 ") ;//처리중 화면을 오픈한다.
- submit("TRASI02201");
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1208" pageheight="784" style="margin-left:8; margin-right:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group2" style="left:0px; top:13px; width:1195px; height:744px; vertical-align:top; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_no_b" style="left:312px; top:9px; width:12px; height:17px; ">~</caption>
- <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
- <caption id="caption3" class="search_name" style="left:690px; top:8px; width:92px; height:17px; ">병동 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRadRslt();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:194px; top:8px; width:110px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:330px; top:8px; width:110px; height:19px; "/>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" appearance="minimal" style="left:760px; top:8px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_trgtmancnt" ref="/root/main/cond/termflag" class="combo_s_essential" appearance="minimal" style="left:106px; top:8px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>처방일</label>
- <value>1</value>
- </item>
- <item>
- <label>촬영일</label>
- <value>2</value>
- </item>
- <item>
- <label>판독일</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:465px; top:8px; width:92px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:550px; top:8px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_trgtmancnt" class="search_name" style="left:15px; top:9px; width:92px; height:17px; ">기간선택 :</caption>
- </group>
- <line id="line2" class="line_1" style="x1:1px; y1:75px; x2:1191px; y2:75px; "/>
- <caption id="caption25" class="tit_2" style="left:0px; top:58px; width:173px; height:14px; ">훙부방사선검사결과</caption>
- <button id="btn_excel" class="btn2_letter2" style="left:1147px; top:54px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- // if (fileName != ""){
- // grd_brstraytestrsltlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- // }
- var fileName = window.fileDialog("save", ",", false, "흉부방사선검사결과", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_brstraytestrsltlist.saveExcel(fileName, "흉부방사선검사결과", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_brstraytestrsltlist" nodeset="/root/main/brstraytestrsltinfo/brstraytestrsltlist" autoresize="true" caption="등록번호^성명^성별^나이^진료과^병동^병실^입원일^퇴원일^처방일^촬영일^접수일^판독일^상태^판독결과^cretno^seqno^instcd^orddd^ioflag" colsep="^" colwidth="70, 62, 40, 40, 110, 74, 72, 80, 80, 80, 80, 80, 80, 50, 288, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:80px; width:1192px; height:661px; vertical-align:middle; ">
- <![CDATA[b]]>
- <col ref="pid"/>
- <col ref="name"/>
- <col ref="sexflag"/>
- <col ref="age"/>
- <col disabled="true" ref="orddeptcd"/>
- <col disabled="true" ref="wardcd"/>
- <col ref="roomcd"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="prcpdd" visibility="visible" format="yyyy-mm-dd"/>
- <col ref="phodd" format="yyyy-mm-dd"/>
- <col ref="acptdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="readdd" format="yyyy-mm-dd"/>
- <col ref="stat" visibility="hidden"/>
- <col ref="readrslt"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_brstraytestrsltlist.gridToInstance();
- ]]>
- </script>
- <!--
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(( grd_brstraytestrsltlist.mouseRow > 0) && ( grd_brstraytestrsltlist.mouseRow <= grd_brstraytestrsltlist.rows )) {
- fReqOpPatPamInfo();
- }
- ]]>
- </script>
- -->
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_brstraytestrsltlist", false, "/root/hidden/popupmenu/grid01/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">흉부방사선 검사결과조회</caption>
- </group>
- <group id="group6" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" style="left:5px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1120px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/brstraytestrsltinfo");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|