123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <cureexamlist>
- <mainlist>
- <prcpdd/>
- <excuexectodd/>
- <pid/>
- <hngnm/>
- <sex/>
- <tel/>
- <examgoal/>
- <remfact/>
- </mainlist>
- </cureexamlist>
- <curersrvinfo>
- <mainlist>
- <choi/>
- <curecfrmyn/>
- <drugqty/>
- <statcd/>
- <curedg5/>
- <roomcd/>
- <remfact/>
- <genrdd/>
- <genrno/>
- </mainlist>
- </curersrvinfo>
- <curersrvlist>
- <mainlist>
- <flag/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <sex/>
- <age/>
- <hometel/>
- <mpphontel/>
- <curersrvdd/>
- <genrdd/>
- <genrno/>
- <suppdeptcd/>
- <statcd/>
- <cntctel/>
- <orddeptcd/>
- <orddrid/>
- <curedg1/>
- <curedgseq1/>
- <curedg2/>
- <curedgseq2/>
- <curedg3/>
- <curedgseq3/>
- <curedg4/>
- <curedgseq4/>
- <curedg5/>
- <curedgseq5/>
- <curedg6/>
- <curedgseq6/>
- <remfact/>
- <startdd/>
- <endcnts/>
- <curecfrmyn/>
- <drugqty/>
- <wardcd/>
- <roomcd/>
- </mainlist>
- </curersrvlist>
- <popupendflag/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <data>
- <srchlfag/>
- <srchdate1/>
- <srchdate2/>
- <srchdate3/>
- <srchdate4/>
- <srchpid/>
- <hngnm/>
- <srchcnfmyn/>
- <pid/>
- <srchioflag/>
- <excuroomgrpcdid>치료,투약실</excuroomgrpcdid>
- </data>
- <savedata/>
- <data2>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </data2>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data3>
- <newElement/>
- </data3>
- </send>
- <hidden>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <session/>
- </hidden>
- <init>
- <today/>
- <roomlist/>
- <orddeptcd>
- <cd/>
- <nm/>
- <deptengabbr/>
- <reqdeptno/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <item>
- <roomlist>
- <roomnm/>
- </roomlist>
- </item>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 부서코드 설정
- aezfSetSuppDeptcd();
-
- fInit();
- ]]>
- </script>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <submission id="TRAEB02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item"/>
- <submission id="TRAEA04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cureexamlist"/>
- <submission id="TRAEA04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/curersrvinfo"/>
- <submission id="TRAEA04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/curersrvlist"/>
- <submission id="TXAEA04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/curescheinfo/maininfo" resultref="/root/temp"/>
- <submission id="TXAEA04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/curescheinfo/maininfo/list" resultref="/root/temp"/>
- <submission id="TRAEA04904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInit() {
-
- // 진료과/진료의 조회
- submit("TRPMOCOM01", false);
-
- model.removenode("/root/main/cureexamlist");
- model.removenode("/root/main/curersrvinfo");
- model.removenode("/root/main/curersrvlist");
- var baseDate = getCurrentDate().toDate("YYYYMMDD");
- var nowDay = baseDate.getDayOfWeek("N");
-
- var dayCnt = - (eval(nowDay) - 1) ;
-
- model.setValue("/root/send/data/srchdate1", ((getCurrentDate()).toDate()).getAddDate(dayCnt).getDateFormat());
- model.setValue("/root/send/data/srchdate2", ((getCurrentDate()).toDate()).getAddDate(dayCnt+6).getDateFormat());
-
- model.setValue("/root/send/data/srchdate3", getCurrentDate());
- model.setValue("/root/send/data/srchdate4", ((getCurrentDate()).toDate()).getAddDate(30).getDateFormat());
-
- model.makeValue("/root/send/wardcd","3050135000");
- model.makeValue("/root/send/newoldyb","1");
- model.setValue("/root/send/data/srchioflag", "I");
-
- submit("TRAEB02802");
-
- model.refresh();
-
- }
-
- // 검사예약대상자현황
- function fGetExamRsrvList() {
-
- var srchpid = model.getValue("/root/send/data/srchpid");
- if (srchpid == "") {
- var srchdate1 = model.getValue("/root/send/data/srchdate1");
- if (srchdate1 == "") {
- messageBox("조회시작일자를 선택해 주십시오.","I999");
- return "0";
- }
-
- var srchdate2 = model.getValue("/root/send/data/srchdate2");
- if (srchdate2 == "") {
- messageBox("조회종료일자를 선택해 주십시오.","I999");
- return "0";
- }
- }
-
- model.removenode("/root/main/cureexamlist");
- model.removenode("/root/main/curersrvinfo");
- submit("TRAEA04901");
- submit("TRAEA04903");
-
- model.refresh();
- }
-
- // 치료예약대상자현황
- function fGetCureScheList() {
-
- var srchdate1 = model.getValue("/root/send/data/srchdate3");
- if (srchdate1 == "") {
- messageBox("조회시작일자를 선택해 주십시오.","I999");
- return "0";
- }
-
- var srchdate2 = model.getValue("/root/send/data/srchdate4");
- if (srchdate2 == "") {
- messageBox("조회종료일자를 선택해 주십시오.","I999");
- return "0";
- }
-
- model.removenode("/root/main/curersrvlist");
- submit("TRAEA04903");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:16px; width:1185px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button6" class="icon_search" style="left:543px; top:24px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetPopInfo();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:10px; top:25px; width:120px; height:17px; ">검사조회일자 :</caption>
- <button id="btn_req" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetExamRsrvList();
-
- // 치료 대상자 현황 병실
- submit("TRAEA04904");
- ]]>
- </script>
- </button>
- <input id="input36" ref="/root/send/data/srchdate2" class="input_s_essential" inputtype="date" style="left:230px; top:24px; width:100px; height:19px; "/>
- <input id="input37" ref="/root/send/data/srchdate1" class="input_s_essential" inputtype="date" style="left:127px; top:24px; width:100px; height:19px; "/>
- <caption id="caption58" class="search_name" style="left:349px; top:25px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="input19" ref="/root/send/data/srchpid" class="input_search" style="left:440px; top:24px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- setInputNodeCurText();
- fGetExamRsrvList();
-
- // 치료 대상자 현황 병실
- submit("TRAEA04904");
- }
- ]]>
- </script>
- </input>
- <group id="grp_btn" style="left:0px; top:722px; width:1190px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:1130px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">치료대상자관리</caption>
- <output id="ipt_patnm" ref="/root/send/data/hngnm" class="output_fix" style="left:560px; top:25px; width:85px; height:19px; "/>
- <caption id="caption23" class="tit_2" style="left:5px; top:60px; width:181px; height:14px; ">검사예약대상자현황</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:75px; x2:595px; y2:75px; "/>
- <datagrid id="grd_cureexamlist" nodeset="/root/main/cureexamlist/mainlist" caption="처방일자^실시일자^등록번호^성명^나이/성^연락처^목적" colsep="^" colwidth="85, 85, 80, 80, 70, 85, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:590px; height:420px; ">
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="excuexectodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sex"/>
- <col ref="tel"/>
- <col disabled="true" ref="examgoal" type="combo">
- <choices>
- <item>
- <label>진단</label>
- <value>A</value>
- </item>
- <item>
- <label>치료준비</label>
- <value>B</value>
- </item>
- <item>
- <label>치료 후</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_cureexamlist.row == 0 ) return;
-
- if ( grd_cureexamlist.isCell(event.target) && grd_cureexamlist.row >= grd_cureexamlist.fixedRows ) {
-
- var colidx = grd_cureexamlist.col;
- var rowidx = grd_cureexamlist.row;
-
- var pid = grd_cureexamlist.valueMatrix(rowidx, grd_cureexamlist.colRef("pid"));
- model.setValue("/root/send/data/pid", pid);
-
- model.removenode("/root/main/curersrvinfo");
- submit("TRAEA04902");
-
- var rowcnt = getNodesetCount("/root/main/curersrvinfo/mainlist");
-
- if (rowcnt > 0) {
- model.setValue("/root/main/curersrvinfo/mainlist[ " + 1 + "]/choi", "Y");
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/main/curersrvinfo/mainlist" caption="선택^치료
확정
여부^용량^상태^치료일자^병실^참고사항|선택^치료
확정
여부^용량^상태^치료일자^병실^참고사항" colsep="^" colwidth="40, 60, 60, 60, 90, 60, 181" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:535px; width:590px; height:185px; ">
- <col checkvalue="Y,N" ref="choi" type="radio"/>
- <col ref="curecfrmyn" type="combo">
- <choices>
- <item>
- <label>확정</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확정</label>
- <value>N</value>
- </item>
- <item>
- <label>취소</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="drugqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="statcd" type="combo">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>입원예정</label>
- <value>R</value>
- </item>
- <item>
- <label>대기</label>
- <value>D</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="curedg5" type="inputdate"/>
- <col ref="roomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/item/roomlist">
- <label ref="roomnm"/>
- <value ref="roomnm"/>
- </itemset>
- </choices>
- </col>
- <col ref="remfact" type="input"/>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:5px; top:515px; width:181px; height:13px; ">치료 대상자 현황</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:530px; x2:595px; y2:530px; "/>
- <button id="button1" class="btn2_letter2" style="left:553px; top:510px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var rowcnt = getNodesetCount("/root/main/curersrvinfo/mainlist[choi='Y' ]");
- if (rowcnt < 1) {
- messageBox("저장할 내역을", "C002");
- return;
- }
- model.makeNode("/root/send/curescheinfo/maininfo");
- copyNodeType("/root/send/curescheinfo/maininfo","/root/main/curersrvinfo/mainlist[choi='Y' ]", "replace");
- submit("TXAEA04901");
- submit("TRAEA04902");
-
- var rowcnt = getNodesetCount("/root/main/curersrvinfo/mainlist");
- if (rowcnt > 0) {
- model.setValue("/root/main/curersrvinfo/mainlist[ " + rowcnt + "]/choi", "Y");
- fGetCureScheList();
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:600px; top:75px; width:590px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button2" class="btn1_letter2" style="left:1130px; top:82px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCureScheList();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:600px; top:115px; width:181px; height:14px; ">치료예약대상자현황</caption>
- <line id="line3" class="line_1" style="x1:600px; y1:130px; x2:1190px; y2:130px; "/>
- <datagrid id="grd_curersrvlist" nodeset="/root/main/curersrvlist/mainlist" caption="치료일자^등록번호^성명^상태^진료과^진료의^치료
확정유무^용량^병실|치료일자^등록번호^성명^상태^진료과^진료의^치료
확정유무^용량^병실" colsep="^" colwidth="90, 60, 55, 55, 95, 55, 60, 40, 40" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:600px; top:135px; width:590px; height:585px; ">
- <col ref="curedg5" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col disabled="true" ref="statcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>입원예정</label>
- <value>R</value>
- </item>
- <item>
- <label>대기</label>
- <value>D</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="curecfrmyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>확정</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확정</label>
- <value>N</value>
- </item>
- <item>
- <label>취소</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="drugqty" style="text-align:right; "/>
- <col ref="roomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/item/roomlist">
- <label ref="roomnm"/>
- <value ref="roomnm"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_curersrvlist.row;
- row = row - 1;
- model.setValue("/root/main/curersrvlist/mainlist[" + row + "]/flag","Y");
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="search_name" style="left:610px; top:85px; width:90px; height:17px; ">치료일자 :</caption>
- <input id="input2" ref="/root/send/data/srchdate3" class="input_s_essential" inputtype="date" style="left:702px; top:83px; width:100px; height:19px; "/>
- <input id="input1" ref="/root/send/data/srchdate4" class="input_s_essential" inputtype="date" style="left:805px; top:83px; width:100px; height:19px; "/>
- <select1 id="rdo_srchioflag" ref="/root/send/data/srchioflag" appearance="full" cols="2" overflow="visible" style="left:990px; top:85px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetCureScheList();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:925px; top:85px; width:60px; height:17px; ">구분 :</caption>
- <button id="button3" class="btn2_letter2" style="left:1148px; top:110px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowcnt = getNodesetCount("/root/main/curersrvlist/mainlist[flag='Y' ]");
- if (rowcnt < 1) {
- messageBox("저장할 내역이", "I004");
- return;
- }
- model.makeNode("/root/send/curescheinfo/maininfo");
- copyNodeType("/root/send/curescheinfo/maininfo","/root/main/curersrvlist/mainlist[flag='Y' ]", "replace");
- submit("TXAEA04901");
-
- fGetCureScheList();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|