123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <condition>
- <fromdd/>
- <todd/>
- <termflag>0</termflag>
- <orddeptcd/>
- <subdeptcd/>
- <medispclid/>
- <cnclinfg/>
- </condition>
- <inpatissueinfo>
- <inpatissueinfolist/>
- </inpatissueinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept>
- <dept/>
- </orddept>
- <info/>
- <userlist>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist>
- <subdeptinfo>
- <subdeptlist/>
- </subdeptinfo>
- </init>
- </root>
- </instance>
- <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="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/emrctlweb/js/MCT001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit_SMMCT00100();
- ]]>
- </script>
- <submission id="TRMCT00100" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inpatissueinfo"/>
- <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMMB04102" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMMB04103" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMMB04106" method="post" mediatype="application/x-www-form-urlencoded"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- * @desc : 초기화
- */
- function fInit_SMMCT00100(){
- //진료과
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
- addComboInstance("/root/init/subdeptinfo" , "subdeptcd^subdeptnm", "-^전체", "subdeptlist"); //부서콤보 Item '전체'추가
-
- //전문의
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , getUserInfo("dutplcecd"), "0330", "", "M");
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
-
-
- //초기값 셋팅
- model.setValue("/root/main/condition/fromdd" , getCurrentDate());
- model.setValue("/root/main/condition/todd" , getCurrentDate());
- model.setValue("/root/main/condition/termflag", "0");
- model.setValue("/root/main/condition/orddeptcd" , "-");
- model.setValue("/root/main/condition/subdeptcd" , "-");
- model.setValue("/root/main/condition/medispclid" , "-");
- model.removeNodeset(grd_inpatinfolst.nodeset );
-
- cap_total.value = "총 0 명";
-
- model.refresh();
- }
-
-
-
- /**
- * @desc : 입원장발급현황 조회
- */
- function fGetInPatInfoList(){
- var cnt = 0 ;
- cap_total.value = "총 " + cnt + " 명";
- model.removeNodeset(grd_inpatinfolst.nodeset);
- model.resetInstanceNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
- if( model.getValue("/root/send/reqdata/orddeptcd") == "-" ) model.setValue("/root/send/reqdata/orddeptcd", "");
- if( model.getValue("/root/send/reqdata/subdeptcd") == "-" ) model.setValue("/root/send/reqdata/subdeptcd", "");
- if( model.getValue("/root/send/reqdata/medispclid") == "-" ) model.setValue("/root/send/reqdata/medispclid", "");
-
- submit("TRMCT00100");
- var nodelist = instance1.selectNodes(grd_inpatinfolst.nodeset );
- if( nodelist != null ) cnt = nodelist.length ;
-
- cap_total.value = "총 " + cnt + " 명";
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">입원장발급현황</caption>
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:40px; "/>
- <line id="line5" style="x1:1110px; y1:30px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:67px; width:139px; height:13px; ">입원장발급현황 조회</caption>
- <line id="line1" class="line_1" style="x1:4px; y1:85px; x2:1191px; y2:86px; "/>
- <select1 id="cmb_termflag" ref="/root/main/condition/termflag" class="combo_default" disabled="false" appearance="minimal" style="left:77px; top:32px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>입원지시일</label>
- <value>0</value>
- </item>
- <item>
- <label>입원희망일</label>
- <value>1</value>
- </item>
- <item>
- <label>환자입원희망일</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:180px; top:32px; width:90px; height:19px; "/>
- <input id="input1" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:280px; top:32px; width:90px; height:19px; "/>
- <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:460px; top:33px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetMedDr("", cmb_orddept.value ) ;
- ]]>
- </script>
- </select1>
- <select1 id="cmb_subdept" ref="/root/main/condition/subdeptcd" class="combo" appearance="minimal" style="left:645px; top:33px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
- <label ref="subdeptnm"/>
- <value ref="subdeptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_medispclid" ref="/root/main/condition/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:830px; top:33px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_all" ref="/root/main/condition/cnclinfg" class="checkbox_search" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:920px; top:34px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>취소포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_req" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetInPatInfoList();
- /*model.resetInstanceNode("/root/send");
- var fromdd = model.getValue("/root/main/condition/fromdd");
- var todd = model.getValue("/root/main/condition/todd");
-
- model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/todd", todd);
-
- submit("TRMCT00100");
- model.refresh();*/
- ]]>
- </script>
- </button>
- <caption id="caption8" style="left:269px; top:34px; width:15px; height:15px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">기간 :</caption>
- <datagrid id="grd_inpatinfolst" nodeset="/root/main/inpatissueinfo/inpatissueinfolist" autoresize="true" caption="입원여부^입원예약^환자ID^환자이름^세부분과^전문의^입원지시일^입원희망일^환자입원희망일^수술예정일^실제입원일^응급실내원일^입원대기일수^CP여부^진단명^입원취소사유" colwidth="69, 90, 80, 87, 100, 63, 90, 90, 90, 90, 90, 90, 84, 58, 300, 204" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" tooltip="true" style="left:3px; top:90px; width:1187px; height:690px; ">
- <col ref="inflag" style="text-align:center; "/>
- <col ref="inrsrvacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="pname" style="text-align:center; "/>
- <col ref="subdeptcd" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="indirecttdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="inhopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="patinhopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="scheopdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="erindd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="indlydy" style="text-align:center; "/>
- <col ref="cpyn" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="inrsrvcnclresn"/>
- </datagrid>
- <caption id="caption14" class="search_name" style="left:566px; top:33px; width:76px; height:17px; ">세 부 과</caption>
- <caption id="caption7" class="search_name" style="left:381px; top:33px; width:76px; height:17px; ">진 료 과</caption>
- <caption id="caption1" class="search_name" style="left:751px; top:33px; width:76px; height:17px; ">주 치 의</caption>
- <caption id="cap_total" class="search_name" style="left:1000px; top:33px; width:110px; height:17px; ">총 0 명</caption>
- <button id="button1" class="btn2_letter2" style="left:1150px; top:64px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var title = "입원장발급현황 (" + cmb_termflag.label + " : " + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) ;
- //fsaveGridToExcel(grd_inpatinfolst, title);
-
- var fileName = window.fileDialog("save", ",", false, "입원장발급현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_inpatinfolst.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>
- </xhtml:body>
- </xhtml:html>
|