123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- <?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>
- <curersrvlist>
- <mainlist>
- <pid/>
- <hngnm/>
- <age/>
- <sex/>
- <cntctel/>
- <orddeptcd/>
- <orddrid/>
- <curecfrmyn/>
- <curedg5/>
- <day/>
- <roomcd/>
- <drugqty/>
- <cfrmyn/>
- <suplcustcd/>
- <remfact/>
- <genrdd/>
- <genrno/>
- <suppdeptcd/>
- <orddeptnm/>
- <orddrnm/>
- </mainlist>
- </curersrvlist>
- <popupendflag/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <data>
- <srchstatcd/>
- <srchdate1/>
- <srchdate2/>
- <srchpid/>
- <hngnm/>
- <srchcnfmynlist/>
- <pid/>
- </data>
- <savedata/>
- <data2>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </data2>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data/>
- </req>
- </send>
- <hidden>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <session/>
- </hidden>
- <init>
- <cmb_info>
- <initsuplcustcd>
- <suplcustcdid/>
- <suplcustcdnm/>
- </initsuplcustcd>
- </cmb_info>
- <today/>
- <roomlist/>
- <orddeptcd>
- <cd/>
- <nm/>
- <deptengabbr/>
- <reqdeptno/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <item>
- <roomlist/>
- </item>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 부서코드 설정
- aezfSetSuppDeptcd();
-
- // 진료과/진료의 조회
- submit("TRPMOCOM01", false);
-
- fInit();
- ]]>
- </script>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <submission id="TRAEA02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEB02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item"/>
- <submission id="TRAEA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/curersrvlist"/>
- <submission id="TXAEA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data"/>
- <bind id="bind1" ref="/root/main/curersrvlist/mainlist/day" type="xsd:string" script="setDayOfWeek();"/>
- </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() {
- 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/srchcnfmyn", "");
-
- model.makeValue("/root/send/wardcd","3050135000");
- model.makeValue("/root/send/newoldyb","1");
-
- submit("TRAEB02802");
- submit("TRAEA02301");
- model.refresh();
- }
-
- function fGetCureScheList() {
- var selectcnfmyn = model.getValue("/root/send/data/srchcnfmynlist");
- var srchpid = model.getValue("/root/send/data/srchpid");
-
- if (selectcnfmyn != "") {
- selectcnfmyn = "'" + selectcnfmyn.split(" ").join("','") + "'";
- }
- model.makeValue("/root/send/data/selectcnfmyn", selectcnfmyn);
-
- 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/curersrvlist");
- submit("TRAEA05101");
- model.refresh();
- }
-
- //
- function setDayOfWeek() {
- var rowCnt = getNodesetCount("/root/main/curersrvlist/mainlist");
- var curedg5 = "";
-
- for (i=1; i<=rowCnt; i++) {
- curedg5 = model.getValue("/root/main/curersrvlist/mainlist[" + i +"]/curedg5");
-
- var baseDate = curedg5.toDate("YYYYMMDD");
- var nowDay = baseDate.getDayOfWeek("K");
-
- model.setValue("/root/main/curersrvlist/mainlist[" + i + "]/day", nowDay);
-
- }
- model.refresh();
- }
-
- // 치료대상자 변경 정보 저장
- function chkUpdatedData() {
- if ( messageBox("", "Q002") == 6 ) {
- var update = getGridUpdateData(grd_curersrvlist);
-
- if ( update == "" ) {
- messageBox("변경된 정보가 없습니다.", "I");
- } else {
- model.setValue("/root/send/req/data", update);
- submit("TXAEA05101");
-
- // 저장 후 재 조회
- submit("TRAEA05101");
-
- 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[
- model.setValue("/root/send/data2/srchcond", "2");
- model.setValue("/root/send/data2/pid", model.getValue("/root/main/cond/pid"));
-
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/send/data/srchpid", sPid);
- model.setValue("/root/send/data/hngnm", sHngnm);
-
- fGetCureScheList();
- ]]>
- </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[
- fGetCureScheList();
- ]]>
- </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();
- fGetCureScheList();
- }
- ]]>
- </script>
- </input>
- <group id="grp_btn" style="left:0px; top:722px; width:1190px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1132px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- chkUpdatedData() ;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:1075px; top:0px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowcnt = getNodesetCount("/root/main/curersrvlist/mainlist");
- if (rowcnt > 0) {
- model.makeValue("/root/main/curersrvlist/mainlist[" + 1 + "]/srchdate1", model.getValue("/root/send/data/srchdate1"));
- model.makeValue("/root/main/curersrvlist/mainlist[" + 1 + "]/srchdate2", model.getValue("/root/send/data/srchdate2"));
- exeReportPreview("RPAEA05100", "XMLSTR", "/root/main/curersrvlist/mainlist");
- } else {
- messageBox("출력할 내역이", "I004");
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">치료확정대상자조회</caption>
- <caption id="caption1" class="search_name" style="left:660px; top:25px; width:112px; height:17px; ">치료확정유무 :</caption>
- <output id="ipt_patnm" ref="/root/send/data/hngnm" class="output_fix" style="left:560px; top:25px; width:85px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:5px; y1:75px; x2:1190px; y2:75px; "/>
- <datagrid id="grd_curersrvlist" nodeset="/root/main/curersrvlist/mainlist" caption="등록번호^성명^나이^성별^연락처^진료과^진료의^치료확정여부^치료일자^요일^병실^용량^확인^공급처^참고사항^genrdd^genrno^suppdeptcd^진료과명^진료의명" colsep="^" colwidth="70, 70, 40, 40, 115, 100, 68, 85, 75, 35, 45, 45, 45, 110, 200, 0, 0, 0, 0, 0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:80px; width:1185px; height:635px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="age" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="cntctel"/>
- <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">
- <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="curedg5" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="day" style="text-align:center; "/>
- <col disabled="true" ref="roomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/item/roomlist">
- <label ref="roomnm"/>
- <value ref="roomcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="drugqty" type="output" format="#,###" style="text-align:right; "/>
- <col ref="cfrmyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="suplcustcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initsuplcustcd">
- <label ref="suplcustcdnm"/>
- <value ref="suplcustcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="remfact" type="output"/>
- <col ref="genrdd" visibility="hidden"/>
- <col ref="genrno" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="orddeptnm" visibility="hidden"/>
- <col ref="orddrnm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_curersrvlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:5px; top:60px; width:181px; height:13px; ">치료 대상자 현황</caption>
- <button id="btn_excsave" class="btn2_letter4" visibility="visible" style="left:1126px; top:55px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_curersrvlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/send/data/srchcnfmynlist" overflow="visible" appearance="full" cols="3" style="left:775px; top:25px; width:155px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>확정</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확정</label>
- <value>N</value>
- </item>
- <item>
- <label>취소</label>
- <value>C</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|