123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <aprvlist>
- <aprvinfo>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <orddrid/>
- <suppkind/>
- <ordtype/>
- <spclcd/>
- <execdd/>
- <rqstdd/>
- <diagcd/>
- <diagnm/>
- <aprvflag/>
- <aprvfromdd/>
- <aprvtodd/>
- <aprvdays/>
- <aprvjudg/>
- <aprvno/>
- <drugyn/>
- <drugno/>
- </aprvinfo>
- <rsltinfo>
- <rtncnt/>
- </rsltinfo>
- </aprvlist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <spclcd/>
- <aprvflag>N</aprvflag>
- <aprvupdt/>
- <pid/>
- </send>
- <hidden>
- <allflag>Y</allflag>
- <spclcdflag/>
- <popupmenu>
- <item>
- <name>승인 내역 삭제</name>
- <func>fDelAprv</func>
- </item>
- </popupmenu>
- </hidden>
- <temp>
- <excllist>
- <exclinfo>
- <no/>
- <hngnm/>
- <rrgstno/>
- <rgstno/>
- <rqstdd/>
- <aprvflag/>
- <ordtype/>
- <aprvfromdd/>
- <aprvtodd/>
- <aprvdays/>
- <diagcd/>
- <diagnm/>
- <drlcno/>
- <drnm/>
- <drflag/>
- <drugyn/>
- <drugno/>
- <aprvjudg/>
- <aprvno/>
- <instcd/>
- </exclinfo>
- </excllist>
- </temp>
- </root>
- </instance>
- <submission id="TRPMC03921" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/aprvlist"/>
- <submission id="TXPMC03911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/aprvlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- grd_aprv.rowHeight(0) = 36;
-
- ]]>
- </script>
- </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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSetSpclCd() {
- if (model.getValue("/root/hidden/allflag") == "Y") {
- model.setValue("/root/send/spclcd", "'V800','V810','V801','V811'");
- } else {
- model.setValue("/root/send/spclcd", "'" + model.getValue("/root/hidden/spclcdflag").replace(/ /g, "','") + "'");
- }
- }
-
- function fDelAprv() {
-
- if (model.getValue("/root/main/aprvlist/aprvinfo[" + grd_aprv.row + "]/rqstdd") == "") {
- messageBox("승인 정보가 없습니다.", "E999");
- return;
- }
-
- for (var i = 1; i <= instance1.selectNodes("/root/main/aprvlist/aprvinfo").length; i++) {
- if (grd_aprv.rowStatus(i) > 0) {
- messageBox("변경된 내역을 저장한 후 삭제해 주십시오.", "E999");
- return;
- }
- }
-
- if (messageBox("해당 내역을 삭제하시겠습니까?", "Q999") != 6) return;
-
- grd_aprv.addStatus(grd_aprv.row, "delete");
-
- model.setValue("/root/send/aprvupdt", grd_aprv.getUpdateData());
-
- fSetSpclCd();
-
- grd_aprv.rebuildStyle();
-
- submit("TXPMC03911");
-
- var rtnCnt = model.getValue("/root/main/aprvlist/rsltinfo/rtncnt");
-
- if (rtnCnt < 1) {
- messageBox("삭제에 실패했습니다.", "C999");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:120px; height:13px; ">사전 승인 관리</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line16" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
- <button id="btn_save" class="btn2_letter2" style="left:1153px; top:60px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (messageBox("변경 내역을 저장하시겠습니까?", "Q999") != 6) return;
-
- model.setValue("/root/send/aprvupdt", grd_aprv.getUpdateData());
-
- fSetSpclCd();
-
- grd_aprv.rebuildStyle();
-
- submit("TXPMC03911");
-
- var rtnCnt = model.getValue("/root/main/aprvlist/rsltinfo/rtncnt");
-
- if (rtnCnt > 0) {
- messageBox("[ " + rtnCnt + " ] 건의 내역이 저장되었습니다.", "I999");
- } else {
- messageBox("변경 내역이 없습니다.", "E999");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:65px; width:80px; height:13px; ">승인 내역</caption>
- <caption id="caption17" class="search_name" style="left:5px; top:29px; width:76px; height:17px; ">진료일 :</caption>
- <caption id="caption2" style="left:175px; top:29px; width:14px; height:17px; text-align:center; ">~</caption>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1132px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetSpclCd();
-
- grd_aprv.rebuildStyle();
-
- submit("TRPMC03921");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1120px; y1:27px; x2:1120px; y2:49px; "/>
- <input id="ipt_fromdd" ref="/root/send/fromdd" inputtype="date" style="left:85px; top:28px; width:89px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" inputtype="date" style="left:190px; top:28px; width:89px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:295px; top:29px; width:96px; height:17px; ">특정 코드 :</caption>
- <select id="chk_all" ref="/root/hidden/allflag" overflow="visible" appearance="full" style="left:395px; top:29px; width:49px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/hidden/allflag") == "Y") {
- model.setValue("/root/hidden/spclcdflag", "V800','V810','V801','V811");
- chk_spclcd.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="chk_spclcd" ref="/root/hidden/spclcdflag" overflow="visible" appearance="full" cellspacing="3" cols="5" style="left:445px; top:29px; width:200px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>V800</label>
- <value>V800</value>
- </item>
- <item>
- <label>V810</label>
- <value>V810</value>
- </item>
- <item>
- <label>V801</label>
- <value>V801</value>
- </item>
- <item>
- <label>V811</label>
- <value>V811</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/hidden/spclcdflag") != "") {
- model.setValue("/root/hidden/allflag", "");
- chk_all.refresh();
- }
- ]]>
- </script>
- </select>
- <caption id="caption4" class="search_name" style="left:650px; top:29px; width:96px; height:17px; ">승인 여부 :</caption>
- <select1 id="chk_aprvflag" ref="/root/send/aprvflag" appearance="full" cellspacing="3" cols="3" overflow="visible" style="left:750px; top:29px; width:155px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미승인</label>
- <value>N</value>
- </item>
- <item>
- <label>승인</label>
- <value>Y</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_pid" class="search_name" style="left:913px; top:29px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" style="left:1005px; top:28px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" style="left:1080px; top:29px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/main/patinfo/patinfolist");
- model.makeNode("/root/main/patinfo/patinfolist");
-
- modal("SPPMC02500", "", "200", "200");
-
- if (model.getValue("/root/main/popupendflag") != "cancel") {
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- ipt_pid.refresh();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_aprv" nodeset="/root/main/aprvlist/aprvinfo" caption="등록번호^이름^주민등록번호^진료일^생성번호^진료과^진료의^보조유형^진료형태^특정코드^실시일^재원일수^신청일^주상병코드^주상병명^사전승인
구분^사전승인
시작일^사전승인
종료일^사전승인
일수^사전승인
심사^사전승인번호^처방전
발급여부^처방전 발급번호" colsep="^" colwidth="55, 60, 100, 70, 60, 120, 60, 120, 60, 55, 70, 60, 80, 90, 280, 60, 80, 80, 60, 60, 120, 60, 140" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1195px; height:675px; text-align:center; ">
- <col explorerbar="sort" ref="pid"/>
- <col explorerbar="sort" ref="hngnm"/>
- <col ref="rrgstno"/>
- <col explorerbar="sort" ref="orddd" format="yyyy-mm-dd"/>
- <col ref="cretno" visibility="hidden"/>
- <col explorerbar="sort" ref="orddeptnm"/>
- <col explorerbar="sort" ref="orddrnm"/>
- <col explorerbar="sort" ref="suppkindnm"/>
- <col explorerbar="sort" disabled="true" ref="ordtype" type="combo">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>DSC</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col explorerbar="sort" ref="spclcd"/>
- <col explorerbar="sort" ref="execdd" format="yyyy-mm-dd"/>
- <col explorerbar="sort" ref="indays"/>
- <col explorerbar="sort" ref="rqstdd" format="yyyy-mm-dd" style="color:#0000ff; "/>
- <col explorerbar="sort" ref="diagcd" style="color:#0000ff; "/>
- <col ref="diagnm" style="color:#0000ff; text-align:left; "/>
- <col explorerbar="sort" disabled="true" ref="aprvflag" type="combo" style="color:#0000ff; ">
- <choices>
- <item>
- <label>기본</label>
- <value>0</value>
- </item>
- <item>
- <label>연장</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col explorerbar="sort" ref="aprvfromdd" format="yyyy-mm-dd" style="color:#0000ff; "/>
- <col ref="aprvtodd" format="yyyy-mm-dd" style="color:#0000ff; "/>
- <col explorerbar="sort" ref="aprvdays" style="color:#0000ff; "/>
- <col explorerbar="sort" disabled="true" ref="aprvjudg" type="combo" style="color:#0000ff; ">
- <choices>
- <item>
- <label/>
- <value>0</value>
- </item>
- <item>
- <label>승인</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col explorerbar="sort" ref="aprvno" style="color:#0000ff; "/>
- <col explorerbar="sort" ref="drugyn" style="color:#0000ff; "/>
- <col explorerbar="sort" ref="drugno" style="color:#0000ff; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (!grd_aprv.isCell(event.target)) {
- return;
- }
-
- setPopupMenu("grd_aprv", false, "/root/hidden/popupmenu/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_aprv.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_excl" nodeset="/root/temp/excllist/exclinfo" visibility="hidden" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:495px; top:155px; width:180px; height:80px; ">
- <col ref="no"/>
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="rgstno"/>
- <col ref="rqstdd"/>
- <col ref="aprvflag"/>
- <col ref="ordtype"/>
- <col ref="aprvfromdd"/>
- <col ref="aprvtodd"/>
- <col ref="aprvdays"/>
- <col ref="diagcd"/>
- <col ref="diagnm"/>
- <col ref="drlcno"/>
- <col ref="drnm"/>
- <col ref="drflag"/>
- <col ref="drugyn"/>
- <col ref="drugno"/>
- <col ref="aprvjudg"/>
- <col ref="aprvno"/>
- <col ref="instcd"/>
- </datagrid>
- <button id="btn_excl" class="btn2_letter8" style="left:1044px; top:60px; width:66px; height:19px; ">
- <caption>엑셀파일불러오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("open", "", false);
- grd_excl.loadExcel(file);
-
- var cnt = 0;
-
- for (var i = 2; i <= instance1.selectNodes("/root/temp/excllist/exclinfo").length; i++) {
-
- var ePath = "/root/temp/excllist/exclinfo[" + i + "]/";
-
- var rrgstno = model.getValue(ePath + "rrgstno");
- var aprvfromdd = model.getValue(ePath + "aprvfromdd").replace(/\./g, "");
- var aprvtodd = model.getValue(ePath + "aprvtodd").replace(/\./g, "");
-
- for (var j = 1; j <= instance1.selectNodes("/root/main/aprvlist/aprvinfo").length; j++) {
-
- var aPath = "/root/main/aprvlist/aprvinfo[" + j + "]/";
-
- if (model.getValue(aPath + "rrgstno") == rrgstno
- && model.getValue(aPath + "execdd") >= aprvfromdd
- && model.getValue(aPath + "execdd") <= aprvtodd ) {
-
- model.setValue(aPath + "rqstdd", model.getValue(ePath + "rqstdd").replace(/\./g, ""));
- model.setValue(aPath + "diagcd", model.getValue(ePath + "diagcd"));
- model.setValue(aPath + "diagnm", model.getValue(ePath + "diagnm"));
-
- switch (model.getValue(ePath + "aprvflag")) {
- case "기본":
- model.setValue(aPath + "aprvflag", "0");
- break;
- case "연장":
- model.setValue(aPath + "aprvflag", "1");
- break;
- default:
- model.setValue(aPath + "aprvflag", "");
- break;
- }
-
- model.setValue(aPath + "aprvfromdd", model.getValue(ePath + "aprvfromdd").replace(/\./g, ""));
- model.setValue(aPath + "aprvtodd", model.getValue(ePath + "aprvtodd").replace(/\./g, ""));
- model.setValue(aPath + "aprvdays", model.getValue(ePath + "aprvdays").replace(/일/g, ""));
-
- switch (model.getValue(ePath + "aprvjudg")) {
- case "":
- model.setValue(aPath + "aprvjudg", "0");
- break;
- case "승인":
- model.setValue(aPath + "aprvjudg", "1");
- break;
- default:
- model.setValue(aPath + "aprvjudg", "");
- break;
- }
-
- model.setValue(aPath + "aprvno", model.getValue(ePath + "aprvno"));
- model.setValue(aPath + "drugyn", model.getValue(ePath + "drugyn"));
- model.setValue(aPath + "drugno", model.getValue(ePath + "drugno"));
-
- grd_aprv.addStatus(j, "update");
-
- grd_aprv.cellStyle("font-weight", j, grd_aprv.colRef("rqstdd"), j, grd_aprv.colRef("drugno")) = "bold";
-
- cnt++;
- }
- }
- }
-
- if (cnt < 1) {
- messageBox("일치하는 항목이 없습니다.", "E999");
- } else {
- messageBox("[ " + cnt + " ] 건의 승인 정보를 불러왔습니다.", "I999");
- }
- ]]>
- </script>
- </button>
- <button id="btn_excl_down" class="btn2_letter4" style="left:975px; top:60px; width:64px; height:19px; ">
- <caption>EXCEL</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save",",",false,"중증 치매 승인 관리","xls","Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_aprv.saveExcel(fileName, "sheet1");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|