123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>삽관유지 환자리스트</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <cdgrupid/>
- <recflag/>
- <wardcd/>
- <searchdd/>
- </cond>
- <stdinfo>
- <stdlist/>
- </stdinfo>
- </main>
- <init>
- <codeinfo/>
- </init>
- <send>
- <reqdata/>
- </send>
- <hidden/>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- //model.setValue("/root/main/cond/settingrnid", "");
- //model.setValue("/root/main/cond/userid", getUserId());
- //model.setValue("/root/main/cond/usernm", getUserName());
- model.setValue("/root/main/cond/searchdd", getCurrentDate());
- model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW00101");
-
- // model.setValue("/root/main/cond/settingrnid", "");
- // for(i=1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- // if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- // model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- // }
- // }
-
- cmb_wardcd.refresh();
- // cmb_settingrnid.refresh();
-
- fGetCathPatientList();
- }
-
- function fGetCathPatientList(){
- var searchdd = model.getValue("/root/main/cond/searchdd");
- var wardcd = model.getValue("/root/main/cond/wardcd");
- alert("searchdd : " + searchdd + " wardcd : " + wardcd);
-
- if (wardcd == null || wardcd == "") {
- messageBox("병동을 선택 후 다시 조회하십시오.", "E999");
- return;
- }
-
- if (searchdd == null || searchdd == "" ) {
- messageBox("업무일자를 다시 설정 후 조회하십시오 .", "E999");
- return;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- model.makeValue("/root/send/reqdata/wardcd" , wardcd);
- model.makeValue("/root/send/reqdata/searchdd", searchdd);
-
-
- // 내환자 세팅 관련(추후 요청시 사용)
- //model.makeValue("/root/send/reqdata/settingrnid", model.getValue("/root/main/cond/settingrnid"));
-
- // 예약내역 초기화
- model.removeNodeset("/root/main/cathlist");
- model.makeNode("/root/main/cathlist");
- grd_cathinfo.refresh();
-
- //grd_cathinfo.rebuild();
-
- if(submit("TRMNR04118")){
- //if (getNodesetCount("/root/main_om/testrsltinfo/rsltlist") == 0) {
- if (getNodesetCount("/root/main/cathlist/cathinfo") == 0) {
- messageBox("출력할 데이터가 존재하지 않습니다.", "I");
- return;
- }
- }
- }
-
- ]]>
- </script>
- <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" ev:event="xforms-ready">
- <![CDATA[
- // var flag = model.property("flag");
- // var sRecflag = opener.javascript.model.getValue("/root/main/cond/trnsinfo/recflag");
- // alert(sRecflag);
- // model.makeValue("/root/main/cond/recflag", sRecflag);
- //
- // grd_stdinfo.colWidth(grd_stdinfo.colRef("lnkcd")) = 0;
- // grd_stdinfo.colWidth(grd_stdinfo.colRef("cdnm")) = 205;
- // if(flag == "popup") {
- // var cdgrupid = model.property("cdgrupid");
- //
- // cmb_cdgrupid.value = cdgrupid;
- // cmb_cdgrupid.disabled = true;
- //
- // btn_add.visible = false;
- // btn_del.visible = false;
- // btn_sav.visible = false;
- //
- // btn_search.dispatch("DOMActivate");
- //
- // } else {
- // model.removeNodeset(grd_stdinfo.nodeset);
- // grd_stdinfo.refresh();
- // cmb_cdgrupid.select(0);
- // btn_add.visible = true;
- // btn_del.visible = true;
- // btn_sav.visible = true;
- // }
- //
- //
- // model.makeValue("/root/send/reqdata/srchdd", getCurrentDate());
- // model.makeValue("/root/send/reqdata/cdgrupid", "'U27'");
- //
- // submit("TRMNW00001");
-
-
- grd_cathinfo.mergeCol(5) = false;
- grd_cathinfo.mergeCol(6) = false;
- grd_cathinfo.mergeCol(7) = false;
- grd_cathinfo.mergeCol(8) = false;
- grd_cathinfo.mergeCol(9) = false;
- grd_cathinfo.mergeCol(10) = false;
- grd_cathinfo.mergeCol(11) = false;
- grd_cathinfo.mergeCol(12) = false;
- grd_cathinfo.mergeCol(13) = false;
- grd_cathinfo.mergeCol(14) = false;
- grd_cathinfo.mergeCol(15) = false;
-
- fInit();
-
- ]]>
- </script>
- <submission id="TRMNN03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/stdinfo"/>
- <submission id="TXMNN03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init"/>
- <submission id="TRMNR04118" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cathinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="450" pageheight="440" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:405px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; font-family:돋움체; ">삽관유지 환자리스트</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:430px; height:382px; ">
- <group id="grp_sea" style="left:0px; top:5px; width:425px; height:30px; font-family:돋움체; vertical-align:top; background-color:#fffbf2; border-color:#ffd799; ">
- <button id="btn_search" class="btn1_letter2" style="left:365px; top:4px; width:56px; height:22px; font-family:돋움체; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCathPatientList();
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:425px; y2:65px; font-family:돋움체; "/>
- <datagrid id="grd_cathinfo" nodeset="/root/main/cathlist/cathinfo" class="datagrid2" caption="병실^환자명^등록번호^S/A^item^시행일시^시행일시" colsep="^" colwidth="43, 59, 0, 41, 129, 73, 43" mergecells="byrestriccol" mergecellsfixedrows="byrowrec" rowheader="select" rowsep="|" tooltip="true" style="left:0px; top:70px; width:425px; height:310px; font-family:돋움체; ">
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="sexage"/>
- <col ref="itemnm"/>
- <col ref="opdd" format="yyyy-mm-dd"/>
- <col ref="optm" format="hh:mm"/>
- </datagrid>
- <caption id="caption12" class="tit_2" style="left:0px; top:50px; width:175px; height:14px; font-family:돋움체; ">삽관유지 환자리스트</caption>
- <caption id="caption2" class="search_name" style="left:10px; top:10px; width:105px; height:17px; ">병동:</caption>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:70px; top:10px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <input id="ipt_searchdd" ref="/root/main/cond/searchdd" class="input_default" inputtype="date" style="left:255px; top:10px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:170px; top:10px; width:105px; height:17px; ">업무일자:</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|