123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- <?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>
- <pidlist1>
- <mainpidlist>
- <pid/>
- <patnm/>
- <sna/>
- <flag/>
- <wardcd/>
- <roomcd/>
- <juminno/>
- <emrinpat/>
- </mainpidlist>
- </pidlist1>
- </main>
- <send>
- <userid/>
- <flag>0</flag>
- <dailyyn/>
- <deptcd/>
- <drid/>
- <actdrid/>
- <wardcd/>
- <roomcd/>
- </send>
- <init>
- <cmb_ward>
- <initexecward>
- <execwardcdid/>
- <execwardcdnm/>
- </initexecward>
- </cmb_ward>
- <cmb_orddept>
- <initexecorddept>
- <execorddeptcdid/>
- <execorddeptcdnm/>
- </initexecorddept>
- </cmb_orddept>
- <cmb_orddept2>
- <initexecorddept>
- <execorddeptcdid/>
- <execorddeptcdnm/>
- </initexecorddept>
- </cmb_orddept2>
- <cmb_room>
- <initexecroom>
- <execroomcdid/>
- <execroomcdnm/>
- </initexecroom>
- </cmb_room>
- <userlist/>
- <userlist2/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 당일결과
- //chk_DailyResult.attribute("overflow")= "visible";
- //chk_DailyResult.attribute("cols")= 2;
- //chk_DailyResult.refresh();
-
-
- //model.makeValue("/root/send/userid", getUserInfo("userid"));
- model.makeValue("/root/send/flag", "0");
- model.makeNode("/root/send/actdrid");
- model.makeNode("/root/send/dailyyn");
-
- submit("TRAER00803"); // 진료과코드
- var jobkindcd = getUserInfo("jobkindcd");
- var dutplcecd = getUserInfo("dutplcecd");
- combo1.value = dutplcecd;
- cmb_wardcd.value = dutplcecd;
- submit("TRAER00801"); // 병동코드 조회
- if (combo1.label != "") { // 근무지가 진료과인경우
- combo1.value = dutplcecd
-
- combo1.dispatch("xforms-value-changed");
-
- model.setValue("root/send/drid", getUserInfo("userid"));
- combo5.value = getUserInfo("userid");
- if(combo2.label == ""){combo2.select(0); } //선택된 담당교수가 없는 경우 default로 첫번째 설정
- if(combo5.label == ""){combo5.select(0);} //선택된 담당교수가 없는 경우 default로 첫번째 설정
- cmb_wardcd.value = "";
- model.refresh();
-
- fGetPatList() ;
-
- } else if (cmb_wardcd.label != "") { // 근무지가 병동인 경우
- combo1.value = "";
- cmb_wardcd.value = dutplcecd;
- if(cmb_wardcd.label == ""){cmb_wardcd.select(0);} //선택된 담당교수가 없는 경우 default로 첫번째 설정
- model.setValue("/root/send/drid", "");
- model.setValue("/root/send/actdrid", "");
- model.setValue("/root/send/flag", "1");
- model.refresh();
-
- fGetPatList() ;
-
- } else { // 근무지가 병동이나 진료과가 아닌경우
- combo1.value = ""
- cmb_wardcd.value = ""
- model.setValue("/root/send/drid", "");
- model.setValue("/root/send/actdrid", "");
- model.refresh();
- }
- fChkButton();
- ]]>
- </script>
- <submission id="TRAER00819" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/pidlist1"/>
- <submission id="TRAER00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_ward"/>
- <submission id="TRAER00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardcd" replace="instance" resultref="/root/init/cmb_room"/>
- <submission id="TRAER00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_orddept"/>
- <submission id="TRAER00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptcd" replace="instance" resultref="/root/init/cmb_orddr"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fGetPatList() {
-
-
- var deptcd = combo1.value;
- var drid = combo2.value;
- var wardcd = cmb_wardcd.value ;
- var roomcd = combo4.value;
-
- if ( deptcd == "" && drid == "" && wardcd == "" && roomcd == "" ) {
- messageBox("조회 항목[진료과,주치의,병동,병실]을 선택하세요.","I999");
- return;
- }
- submit("TRAER00819");
-
- var srchLength1 = model.instances(0).selectNodes( "/root/main/pidlist1/mainpidlist" ).length;
- if ( srchLength1 > 0 ) {
-
- // Grid Background Color Clear
- for ( var i = 1; i <= srchLength1; i++ ) {
- grd_pidlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";
- }
-
- for ( var i = 1; i <= srchLength1; i++ ) {
- var emrinpat = model.getValue("/root/main/pidlist1/mainpidlist[" + i + "]/emrinpat");
- if (getUserInfo("jobkindcd") == "0330" || getUserInfo("jobkindcd") == "0332") {
- if ( emrinpat== "N3" ) { // 의사의 내환자일 경우 색깔로 표시
- grd_pidlist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";
- }
- } else {
- if ( emrinpat== "N4" ) { // 간호사의 내환자 일경우 색깔로 표시
- grd_pidlist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";
- }
- }
- }
- }
- }
-
- function fSendPidList(grdobj){
- // alert("1");
- if ( grdobj.row >= grdobj.fixedRows ) {
-
- var row = grdobj.row;
-
- var pid = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/pid");
- var patnm = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/patnm");
- var juminno = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/juminno");
- //var warcd = model.getValue("/root/main/pidlist1/mainpidlist[" + row + "]/wardcd");
- window.opener.model.setValue("/root/send/data/singdata/srchpid", pid);
- window.opener.model.makeValue("/root/main/patinfo/patinfolist/hngnm", patnm);
- window.opener.model.makeValue("/root/main/patinfo/patinfolist/rrgstno1", juminno);
-
- //if ( warcd != "" )
- // window.opener.model.setValue("/root/send/data/singdata/wardcd", wardcd);
-
- window.opener.model.refresh();
-
- window.opener.javaScript.btn_srch.dispatch("DOMActivate");
- // searchChart("/root/hidden/temp")
- }
- }
-
-
- /* @group : 결과조회
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 주치의정보 조회를 위한 Function
- */
- function fChngSrchDrId() {
-
- if ( model.getValue("/root/send/deptcd") == "" ) return;
- // model.resetInstanceNode("/root/init/cmb_orddr/initexecorddr");
- // submit("TRAER00804");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , model.getValue("/root/send/deptcd"), "0330", "", "M");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", model.getValue("/root/send/deptcd"), "0330", "", "A");
-
- addComboInstance("/root/init/userlist", "userid^usernm", "^--전체--", "usercombo"); //의사콤보 전체항목 추가
- addComboInstance("/root/init/userlist2", "userid^usernm", "^--전체--", "usercombo");//의사콤보 전체항목 추가
- }
-
- /* @group : 결과조회
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병실정보 조회를 위한 Function
- */
- function fChngSrchRoomCd() {
-
- if ( model.getValue("/root/send/wardcd") == "" ) return;
- model.resetInstanceNode("/root/init/cmb_room/initexecroom");
- submit("TRAER00802");
- }
- /* @group : 결과조회
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병동조회
- */
- function fChkButton() {
- var flag = model.getValue("/root/send/flag");
- if (flag == "1") {
- cmb_wardcd.disabled = false;
- combo4.disabled = false;
-
- } else {
- cmb_wardcd.disabled = true;
- combo4.disabled = true;
- model.setValue("/root/send/wardcd", "");
- model.setValue("/root/send/roomcd", "");
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body overflow="hidden" pagewidth="410" pageheight="650" guideline="1,440;1,410;">
- <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:7px; top:0px; width:398px; height:105px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:340px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/flag", radio1.value);
- fGetPatList();
- window.modelesstopmost = true;
- ]]>
- </script>
- </button>
- <datagrid id="grd_pidlist" nodeset="/root/main/pidlist1/mainpidlist" autoresize="true" caption="등록번호^이름^S/A^구분^병동^병실^주민번호^대상자구분" colsep="^" colwidth="70, 59, 36, 33, 71, 56, 63, 0" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" style="left:6px; top:112px; width:399px; height:533px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="font-weight:bold; "/>
- <col ref="sna" style="text-align:center; "/>
- <col ref="flag"/>
- <col disabled="true" ref="wardcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/cmb_ward/initexecward">
- <label ref="execwardcdnm"/>
- <value ref="execwardcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" style="text-align:left; "/>
- <col ref="juminno" style="text-align:center; "/>
- <col ref="emrinpat" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_pidlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( (grd_pidlist.row >= grd_pidlist.fixedRows) && (grd_pidlist.isCell(event.target))) {
- fSendPidList(grd_pidlist);
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_flag" ref="/root/send/flag" class="combo_search" visibility="hidden" appearance="minimal" style="left:350px; top:10px; width:30px; height:19px; ">
- <choices>
- <item>
- <label>--전체--</label>
- <value>0</value>
- </item>
- <item>
- <label>입원</label>
- <value>1</value>
- </item>
- <item>
- <label>외래</label>
- <value>2</value>
- </item>
- <item>
- <label>응급</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_1" style="x1:7px; y1:107px; x2:405px; y2:107px; "/>
- <caption id="caption3" class="search_name" style="left:8px; top:11px; width:80px; height:17px; ">조회기준</caption>
- <caption id="caption1" class="search_name" style="left:8px; top:36px; width:70px; height:17px; ">진료과</caption>
- <select1 id="combo1" ref="/root/send/deptcd" class="combo_search" appearance="minimal" style="left:86px; top:35px; width:84px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
- <label ref="execorddeptcdnm"/>
- <value ref="execorddeptcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchDrId();
-
- // btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:8px; top:56px; width:67px; height:17px; ">주치의</caption>
- <select1 id="combo2" ref="/root/send/drid" class="combo_search" appearance="minimal" style="left:86px; top:55px; width:84px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:8px; top:80px; width:86px; height:17px; ">병동</caption>
- <select1 id="cmb_wardcd" ref="/root/send/wardcd" class="combo_search" appearance="minimal" style="left:86px; top:79px; width:84px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_ward/initexecward">
- <label ref="execwardcdnm"/>
- <value ref="execwardcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchRoomCd();
- if(isNull(model.getValue("/root/send/wardcd")) == true) {
- model.setValue("/root/send/roomcd", "");
- } else {
- model.setValue("/root/send/flag", "1");
- }
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <select1 id="combo4" ref="/root/send/roomcd" class="combo_search" appearance="minimal" style="left:175px; top:80px; width:84px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_room/initexecroom">
- <label ref="execroomcdnm"/>
- <value ref="execroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <select id="chk_DailyResult" ref="/root/send/dailyyn" overflow="visible" appearance="full" style="left:275px; top:10px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>당일결과</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dailyyn = model.getValue("/root/send/dailyyn")
- if (dailyyn == "Y") {
- btn_mypat.visible = false;
- } else {
- btn_mypat.visible = true;
- }
- ]]>
- </script>
- </select>
- <select1 id="combo5" ref="/root/send/actdrid" class="combo_search" appearance="minimal" style="left:240px; top:55px; width:84px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist2/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- window.modelesstopmost = true;
- ]]>
- </script>
- </select1>
- <select1 id="radio1" ref="/root/send/flag" appearance="full" cols="4" overflow="visible" style="left:85px; top:10px; width:185px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>입원</label>
- <value>1</value>
- </item>
- <item>
- <label>외래</label>
- <value>2</value>
- </item>
- <item>
- <label>응급</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fChkButton();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:175px; top:55px; width:70px; height:17px; ">담당의</caption>
- <button id="btn_mypat" class="btn2_letter3" style="left:265px; top:80px; width:53px; height:19px; ">
- <caption>내환자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_pidlist.colsort(grd_pidlist.colRef("emrinpat")) = "desc"
- grd_pidlist.sort(1, 1, grd_pidlist.rows -1, grd_pidlist.cols -1) = "usersort";
- grd_pidlist.gridToInstance();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|