123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- <?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="">
- <send>
- <reqdata/>
- </send>
- <main>
- <search>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <excuroomcd/>
- <pid/>
- <hngnm/>
- <searchflag/>
- </search>
- <pscilist>
- <psciinfo>
- <ordtypenm/>
- <pid/>
- <hngnm/>
- <orddrnm/>
- <testcdnm/>
- <rsltval/>
- <prcpdd/>
- <smssenddd/>
- <snssenddrnm/>
- </psciinfo>
- </pscilist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <init>
- <dept>
- <dept>
- </dept>
- </dept>
- <doctlist>
- <medispcl>
- <doctid/>
- <doctnm/>
- </medispcl>
- </doctlist>
- <cmb_info>
- <suppdeptlist>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </suppdeptlist>
- <excuroomcdlist>
- <excuroom>
- <basecd/>
- <basecdflagdesc/>
- </excuroom>
- </excuroomcdlist>
- </cmb_info>
- <LB0106/>
- </init>
- <hidden>
- <testgroup>
- <tsectcd/>
- </testgroup>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMQI02801" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" resultref="/root/main/pscilist"/>
- <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
- <submission id="TRAEA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/execridlist"/>
- <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" 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" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInit()
- {
- ipt_fromdd.value = getCurrentDate().substring(0,6).concat("01");
- ipt_todd.value = getCurrentDate();
-
- model.removeNodeset("/root/main/pscilist/psciinfo");
- fBaseInfoRef("0106|");
- // 진료과
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/dept";
- var sort_method = "depthngnm";
- sort_field = "depthngnm"
- zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
-
-
- // 진료과
- addComboItem("cmb_orddeptcd", "", "", "above");
-
- //fDoctSerach();
- zbcfGetCodeList( new Array("M0011","M0010"), new Array("/root/init2/cmb_info/initexecprcpstatcd","/root/init2/cmb_info/prcpgenrflag") );
- submit("TRZBC00101", false);
- submit("TRAEA00902", false); //검사실
- //submit("TRAEA00903", false); //검사자
- //submit("TRAEA00904", false); //지원부서
- //submit("TRAEA01301", false); //검사실
-
- //0103:사용자별검사그룹, 0106: 시행부서, 0108:연관검사, 0109:결과코드, 0210:소견마스터, 0115:장비마스터, 0000:사용자부서구분코드
-
-
- cmb_searchflag.select(0);
- cmb_excuroomcd.select(0);
-
-
- model.refresh();
- }
-
- function fPatPopUp()
- {
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "", "");
-
- if (model.getValue("/root/main/popupendflag") == "ok")
- {
- model.makeValue("/root/main/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/main/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
-
- //fHistSearch();
-
- model.refresh();
-
- }
-
- // 조회 함수
- function fPsciSearch()
- {
- var fromdd=model.getValue("/root/main/search/fromdd");
- var todd=model.getValue("/root/main/search/todd");
-
- if(fromdd>todd)
- {
- messageBox("조회종료일자보다 작은 조회시작일자인지","I007");
- model.setFocus("ipt_todd");
- return;
- }
-
- if(isNull(fromdd))
- {
- messageBox("조회시작일은","I003");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- if(isNull(todd))
- {
- messageBox("조회종료일은","I003");
- model.setFocus("ipt_todd");
- return;
- }
-
- if(isNull(model.getValue("/root/main/search/orddeptcd"))) //진료과 가 전체일때
- {
- model.makeValue("/root/send/reqdata/orddeptcd","%");
- }
-
- else
- {
- model.makeValue("/root/send/reqdata/orddeptcd",model.getValue("/root/main/search/orddeptcd"));
- }
- if(isNull(model.getValue("/root/main/search/excuroomcd")))
- {
- model.makeValue("/root/send/reqdata/excuroomcd","%");
- }
- else
- {
- model.makeValue("/root/send/reqdata/excuroomcd",model.getValue("/root/main/search/excuroomcd"));
- }
- if(isNull(model.getValue("/root/main/search/pid")))
- {
- model.makeValue("/root/send/reqdata/pid","%");
- }
- else
- {
- model.makeValue("/root/send/reqdata/pid",model.getValue("/root/main/search/pid"));
- }
- if(model.getValue("/root/main/search/excuroomcd")=="00") //검사부서가 전체 일때
- {
- model.makeValue("/root/send/reqdata/excuroomcd","%");
- }
- else
- {
- model.makeValue("/root/send/reqdata/excuroomcd",model.getValue("/root/main/search/excuroomcd"));
- }
-
-
- model.makeValue("/root/send/reqdata/searchflag",model.getValue("/root/main/search/searchflag"));
- model.makeValue("/root/send/reqdata/fromdd",fromdd);
- model.makeValue("/root/send/reqdata/todd",todd);
- submit("TRMQI02801");
- }
-
- function fExcel()
- {
- if (grd_psciinfo.rows < 2)
- {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
- var fileName = window.fileDialog("save", ",", false, "PSCI목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_psciinfo.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
-
- }
- //초기화 함수
- function fInitPsci()
- {
- ipt_fromdd.value = getCurrentDate().substring(0,6).concat("01");
- ipt_todd.value = getCurrentDate();
-
- cmb_searchflag.select(0);
- cmb_excuroomcd.select(0);
- cmb_orddeptcd.select(0);
-
- model.removeNodeset("/root/main/search/pid");
- model.removeNodeset("/root/main/search/hngnm");
- model.removeNodeset("/root/main/pscilist");
-
- model.refresh();
- }
-
-
-
-
-
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,5;2,-3;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:1px; y1:93px; x2:1195px; y2:93px; "/>
- <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:62px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption8" class="search_name" style="left:6px; top:10px; width:91px; height:17px; ">조회기간 :</caption>
- <caption id="caption7" class="search_no_b" style="left:182px; top:11px; width:12px; height:17px; ">~</caption>
- <caption id="caption5" class="search_name" style="left:300px; top:10px; width:75px; height:17px; ">진료과 :</caption>
- <caption id="caption2" class="search_name" style="left:530px; top:10px; width:89px; height:17px; ">검사부서 :</caption>
- <caption id="caption10" class="search_name" style="left:770px; top:10px; width:80px; height:17px; ">환자명 :</caption>
- <caption id="caption3" class="search_name" style="left:5px; top:36px; width:91px; height:17px; ">환자구분 :</caption>
- <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" inputtype="date" style="left:95px; top:10px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" inputtype="date" style="left:195px; top:10px; width:85px; height:19px; "/>
- <line id="line2" style="x1:1122px; y1:5px; x2:1122px; y2:56px; border-color:#ffcc99; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPsciSearch();
- // submit("TRMQR02800");
- ]]>
- </script>
- </button>
- <select1 id="cmb_orddeptcd" ref="/root/main/search/orddeptcd" class="combo_search" appearance="minimal" editmode="input" style="left:380px; top:10px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // var lrg = model.getValue("/root/send/lrg");
- // model.setValue("/root/send/mdl","");
- //
- //대분류가 임상일 경우
- // alert(lrg);
- // if(lrg == "01") {
- // model.removeNodeset("/root/init/mdl/M0428");
- // zbcfGetCodeList(new Array("M0428"), new Array("/root/init/mdl"), true);
- // searchmdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0428";
- // }
- //대분류가 비임상일 경우
- // else if(lrg == "02"){
- // model.removeNodeset("/root/init/mdl/M0429");
- // zbcfGetCodeList(new Array("M0429"), new Array("/root/init/mdl"), true);
- // searchmdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0429";
- // }
- //대분류가 안전관련 감면사례 보고일 경우
- // else{
- // alert("00");
- // model.removeNodeset("/root/init/mdl/M0429");
- // searchmdl.choices.itemset.attribute("nodeset") = "/root/init/mdl/M0429";
- // searchmdl.deselect();
-
- // }
- // searchmdl.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_excuroomcd" ref="/root/main/search/excuroomcd" class="combo_search" appearance="minimal" style="left:620px; top:10px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_searchflag" ref="/root/main/search/searchflag" class="combo_search" appearance="minimal" style="left:95px; top:36px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value>%</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <button id="button6" class="icon_search" style="left:1085px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPatPopUp();
- ]]>
- </script>
- </button>
- <output id="opt_pid" ref="/root/main/search/pid" class="output_fix" style="left:849px; top:10px; width:105px; height:19px; "/>
- <output id="opt_hngnm" ref="/root/main/search/hngnm" class="output_fix" style="left:962px; top:10px; width:110px; height:19px; "/>
- </group>
- <datagrid id="grd_psciinfo" nodeset="/root/main/pscilist/psciinfo" caption="구분^환자ID^환자명^주치의^검사명^검사결과^처방일자^SMS전송일자^SMS전송의사" colsep="^" colwidth="60, 116, 92, 92, 245, 118, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="29" rowsep="|" tooltip="true" style="left:0px; top:98px; width:1194px; height:617px; text-align:center; ">
- <col ref="ordtypenm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="testcdnm" style="text-align:center; "/>
- <col ref="rsltval" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="smssenddd" format="yyyy-mm-dd" style="left:1078px; top:23px; width:100px; height:23px; "/>
- <col ref="snssenddrnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //var cur_row = grd_safelist.row-1;
- //alert("cur_row => " + cur_row);
- //var temp = model.getValue("/root/main/list/safe[" + cur_row + "]/acptno");
- //alert("acptno ===> " + temp);
- // setParameter("ano", model.getValue("/root/main/list/safe[" + cur_row + "]/acptno"));
-
- // modal("SMMQR00100", "1", "", "");
- // submit("TRMQR01000");
-
- // model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- // var iRow = grd_safelist.mouseRow;
- // var iCol = grd_safelist.mouseCol;
- // var xPath = "/root/main/list/safe";
- // var sSerdiaggrdenm = model.getValue(xPath+"["+(iRow-1)+"]/serdiaggrdenm");
-
- // if(iRow > 0 && iCol == 3)
- // {
- // grd_safelist.tooltipText(iRow, iCol) = sSerdiaggrdenm;
- // }
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1122px; top:71px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fExcel();
-
-
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:5px; top:78px; width:113px; height:13px; ">PSCI목록</caption>
- <button id="button1" class="btn4_letter3" style="left:1124px; top:718px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitPsci();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">PSCI</caption>
- </xhtml:body>
- </xhtml:html>
|