123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- <?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>
- <cond>
- <fromdd/>
- <todd/>
- <prid/>
- <cnstorddeptcd/>
- <orddrid/>
- <pid/>
- <hngnm/>
- <allcheck/>
- </cond>
- <cnstpatinfo>
- <cnstpatlist/>
- </cnstpatinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <orddept/>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var today = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "M");
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", getUserInfo("dutplcecd"), "0330");
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- model.setValue("/root/main/cond/cnstorddeptcd", getUserInfo("dutplcecd"));
- model.removenode("/root/main/cnstpatinfo/cnstpatlist" );
- model.refresh();
- ]]>
- </script>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO18001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/cnstinfo"/>
- </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/basiccodeweb/js/ZBC001.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"/>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:13px; ">협진환자리스트</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1174px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line3" style="x1:1096px; y1:22px; x2:1096px; y2:71px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:80px; width:126px; height:13px; vertical-align:middle; ">협진환자리스트</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:95px; x2:1174px; y2:95px; "/>
- <caption id="caption5" class="search_name" style="left:8px; top:25px; width:76px; height:17px; ">협진일</caption>
- <caption id="caption8" class="search_name" style="left:487px; top:26px; width:76px; height:17px; ">상 정 과</caption>
- <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:86px; top:25px; width:90px; height:19px; "/>
- <caption id="caption29" class="search_name" style="left:802px; top:21px; width:76px; height:17px; ">진 료 의</caption>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:565px; top:50px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_reqpatnm", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:802px; top:51px; width:76px; height:17px; ">환 자 명</caption>
- <input id="input1" ref="/root/main/cond/hngnm" class="input_search" style="left:880px; top:51px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_patsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:487px; top:50px; width:76px; height:17px; ">등록번호</caption>
- <input id="input2" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:193px; top:25px; width:90px; height:19px; "/>
- <button id="btn_prcpclsnm" class="icon_search" style="left:977px; top:51px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", pid);
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption9" style="left:178px; top:26px; width:15px; height:20px; ">~</caption>
- <button id="btn_reqpatnm" disabled="true" style="left:730px; top:50px; width:45px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPidTrim("/root/main/cond/pid");
- var pid = model.getValue("/root/main/cond/pid");
- if(pid == ""){
- return;
- }
-
- if(reqPatInfo("pid", "ptbs", pid)==true){
- var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_req" class="btn1_letter2" style="left:1109px; top:37px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/cnstpatinfo" );
- submit("TRMMO18001");
- ]]>
- </script>
- </button>
- <select1 id="cmb_orddept" ref="/root/main/cond/cnstorddeptcd" class="combo_search" appearance="minimal" editmode="search" _inputmode="koreanOnly" style="left:565px; top:26px; width:150px; 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[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
-
- if(cmb_orddept.value == "-"){
- model.removeNode("/root/init/userlist/usercombo");
- model.makeValue("/root/init/userlist/usercombo/userid", "-");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- }else{
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- }
- model.setValue("/root/main/cond/orddrid", "-");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:880px; top:20px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_patsrch" disabled="true" style="left:745px; top:46px; width:45px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/cond/pid");
- var hngnm = model.getValue("/root/main/cond/hngnm");
- if((pid =="")&&(hngnm !="")){
- fPatSrch(hngnm, "2");
- } else if((pid !="")&&(hngnm == "")){
- fPatSrch(pid, "1");
- } else {
- modal("SPPMC02500")
- }
-
- model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:290px; top:25px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>3개월</label>
- <value>3M</value>
- </item>
- <item>
- <label>6개월</label>
- <value>6M</value>
- </item>
- <item>
- <label>9개월</label>
- <value>9M</value>
- </item>
- <item>
- <label>1년</label>
- <value>1Y</value>
- </item>
- <item>
- <label>2년</label>
- <value>2Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var today = getCurrentDate();
- var idate = new Date();
- var prid = model.getValue("/root/main/cond/prid");
- // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- // model.makeValue("/root/send/cond/todd", today);
-
- if (prid =="3M") {
- var threeMDate = idate.getAddDate(-3, "M");
- model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="6M") {
- var sixMDate = idate.getAddDate(-6, "M");
- model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="9M") {
- var nineMDate = idate.getAddDate(-9, "M");
- model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="1Y") {
- var oneYDate = idate.getAddDate(-1, "Y");
- model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="2Y") {
- var twoYDate = idate.getAddDate(-2, "Y");
- model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <datagrid id="grd_cnstlist" nodeset="/root/main/cnstpatinfo/cnstpatlist" caption="^협진일^병실^성명^성별/나이^상정과^진단명^부진단명^ECOG^병기^흡연력^회의제목^회의일시^회의장소^회의내용^결과^상정이유^작성자" colsep="^" colwidth="22, 86, 65, 59, 69, 100, 194, 175, 54, 154, 170, 198, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:1175px; height:645px; ">
- <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
- <col ref="confdd" format="yyyy-mm-dd"/>
- <col ref="roomcd"/>
- <col ref="hngnm"/>
- <col ref="sa"/>
- <col ref="orddeptnm"/>
- <col ref="diagnm"/>
- <col ref="subdiagnm"/>
- <col ref="ecogscale"/>
- <col ref="stage"/>
- <col ref="smokcnts"/>
- <col ref="conftitl"/>
- <col ref="confplce" visibility="hidden"/>
- <col ref="confcnts" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrnm" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="orgdiagcd" visibility="hidden"/>
- <col ref="stagecd" visibility="hidden"/>
- <col ref="tnmcd1" visibility="hidden"/>
- <col ref="tnmcd2" visibility="hidden"/>
- <col ref="tnmcd3" visibility="hidden"/>
- <col ref="asumresn" visibility="hidden"/>
- <col ref="rsltcnts" visibility="hidden"/>
- <col ref="writid" visibility="hidden"/>
- <col ref="writnm" visibility="hidden"/>
- <col ref="smokday" visibility="hidden"/>
- <col ref="smokyear" visibility="hidden"/>
- <col ref="smokyn" visibility="hidden"/>
- <col ref="smokstrtyear" visibility="hidden"/>
- <col ref="smokendyear" visibility="hidden"/>
- </datagrid>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:746px; width:58px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/temp/templist");
- model.makeNode("/root/temp/templist");
- var rows = grd_cnstlist.rows;
- for (var i =0 ; i < rows ; i++ ) {
- var chkyn = model.getValue("/root/main/cnstpatinfo/cnstpatlist[" + i + "]/checkyn");
- if (chkyn =="Y") {
- copyNodeListType("/root/temp/templist", "/root/main/cnstpatinfo/cnstpatlist[" + i + "]", "after");
- }
- }
- var Nodes = instance1.selectNodes("/root/temp/templist");
- if (Nodes.length > 0) {
- exeReportPreview("RPMMO18001", "XMLSTR");
- } else {
- messageBox("출력할 대상이 없습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn1_letter2" style="left:1118px; top:746px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/allcheck" style="left:2px; top:103px; width:20px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var allcheck = model.getValue("/root/main/cond/allcheck");
- if (allcheck == "Y") {
- for (i =1; i < grd_cnstlist.rows ; i++ ) {
- model.setValue("/root/main/cnstpatinfo/cnstpatlist[" + i + "]/checkyn", "N");
- }
- } else {
- for (i =1; i < grd_cnstlist.rows ; i++ ) {
- model.setValue("/root/main/cnstpatinfo/cnstpatlist[" + i + "]/checkyn", "Y");
- }
- }
- model.refresh();
- ]]>
- </script>
- </bool>
- </xhtml:body>
- </xhtml:html>
|